@scalar/api-reference 0.8.1 → 0.8.3

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 (51) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +19 -15
  3. package/dist/browser/standalone.js +1742 -1006
  4. package/dist/components/ApiReference.vue.d.ts +34 -28
  5. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  6. package/dist/components/Content/Authentication/Authentication.vue.d.ts +12 -0
  7. package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -0
  8. package/dist/components/Content/Authentication/SecurityScheme.vue.d.ts +11 -0
  9. package/dist/components/Content/Authentication/SecurityScheme.vue.d.ts.map +1 -0
  10. package/dist/components/Content/Authentication/SecuritySchemeSelector.vue.d.ts +17 -0
  11. package/dist/components/Content/Authentication/SecuritySchemeSelector.vue.d.ts.map +1 -0
  12. package/dist/components/Content/Authentication/index.d.ts +2 -0
  13. package/dist/components/Content/Authentication/index.d.ts.map +1 -0
  14. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Introduction/Introduction.vue.d.ts +9 -1
  16. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  17. package/dist/components/Content/ReferenceEndpoint/ExampleRequest.vue.d.ts +9 -1
  18. package/dist/components/Content/ReferenceEndpoint/ExampleRequest.vue.d.ts.map +1 -1
  19. package/dist/components/Content/ReferenceEndpoint/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  20. package/dist/components/Content/ReferenceEndpoint/ReferenceEndpoint.vue.d.ts +17 -1
  21. package/dist/components/Content/ReferenceEndpoint/ReferenceEndpoint.vue.d.ts.map +1 -1
  22. package/dist/components/IntersectionObserver.vue.d.ts +6 -2
  23. package/dist/components/IntersectionObserver.vue.d.ts.map +1 -1
  24. package/dist/components/SearchModal.vue.d.ts.map +1 -1
  25. package/dist/components/Section/Section.vue.d.ts +6 -0
  26. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  27. package/dist/components/Section/SectionHeader.vue.d.ts +9 -0
  28. package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
  29. package/dist/components/Sidebar.vue.d.ts.map +1 -1
  30. package/dist/components/SidebarElement.vue.d.ts +2 -0
  31. package/dist/components/SidebarElement.vue.d.ts.map +1 -1
  32. package/dist/helpers/generateRequest.d.ts +2 -2
  33. package/dist/helpers/generateRequest.d.ts.map +1 -1
  34. package/dist/helpers/getExampleFromSchema.d.ts +11 -0
  35. package/dist/helpers/getExampleFromSchema.d.ts.map +1 -0
  36. package/dist/helpers/getOperationSectionId.d.ts +2 -2
  37. package/dist/helpers/getOperationSectionId.d.ts.map +1 -1
  38. package/dist/helpers/hasSecuritySchemes.d.ts +3 -0
  39. package/dist/helpers/hasSecuritySchemes.d.ts.map +1 -0
  40. package/dist/helpers/index.d.ts +2 -1
  41. package/dist/helpers/index.d.ts.map +1 -1
  42. package/dist/index.js +8079 -7716
  43. package/dist/stores/globalStore.d.ts +21 -0
  44. package/dist/stores/globalStore.d.ts.map +1 -0
  45. package/dist/stores/index.d.ts +2 -0
  46. package/dist/stores/index.d.ts.map +1 -0
  47. package/dist/types.d.ts +59 -8
  48. package/dist/types.d.ts.map +1 -1
  49. package/package.json +4 -4
  50. package/dist/helpers/generateResponseContent.d.ts +0 -5
  51. package/dist/helpers/generateResponseContent.d.ts.map +0 -1
@@ -1,4 +1,5 @@
1
1
  import { type ThemeId } from '@scalar/themes';
2
+ import type { ReferenceConfiguration } from '../types';
2
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
4
  spec: {
4
5
  type: import("vue").PropType<string>;
@@ -8,18 +9,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
8
9
  };
9
10
  theme: {
10
11
  type: import("vue").PropType<ThemeId>;
11
- default: string;
12
12
  };
13
- isEditable: {
14
- type: import("vue").PropType<boolean>;
15
- default: boolean;
16
- };
17
- showSidebar: {
18
- type: import("vue").PropType<boolean>;
19
- default: boolean;
13
+ configuration: {
14
+ type: import("vue").PropType<ReferenceConfiguration>;
20
15
  };
21
- footerBelowSidebar: {
22
- type: import("vue").PropType<boolean>;
16
+ aiWriterMarkdown: {
17
+ type: import("vue").PropType<string>;
23
18
  };
24
19
  specUrl: {
25
20
  type: import("vue").PropType<string>;
@@ -27,14 +22,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
27
22
  specResult: {
28
23
  type: import("vue").PropType<Record<any, any>>;
29
24
  };
30
- hocuspocusConfiguration: {
31
- type: import("vue").PropType<import("@scalar/swagger-editor").HocuspocusConfigurationProp>;
32
- };
33
25
  initialTabState: {
34
26
  type: import("vue").PropType<import("@scalar/swagger-editor").EditorHeaderTabs>;
35
27
  };
28
+ showSidebar: {
29
+ type: import("vue").PropType<boolean>;
30
+ default: undefined;
31
+ };
32
+ isEditable: {
33
+ type: import("vue").PropType<boolean>;
34
+ default: undefined;
35
+ };
36
+ hocuspocusConfiguration: {
37
+ type: import("vue").PropType<import("@scalar/swagger-editor").HocuspocusConfigurationProp>;
38
+ };
36
39
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
40
  changeTheme: (value: ThemeId) => void;
41
+ startAIWriter: (value: string[], swaggerData: string, swaggerType: "json" | "yaml") => void;
38
42
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
39
43
  spec: {
40
44
  type: import("vue").PropType<string>;
@@ -44,18 +48,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
44
48
  };
45
49
  theme: {
46
50
  type: import("vue").PropType<ThemeId>;
47
- default: string;
48
- };
49
- isEditable: {
50
- type: import("vue").PropType<boolean>;
51
- default: boolean;
52
51
  };
53
- showSidebar: {
54
- type: import("vue").PropType<boolean>;
55
- default: boolean;
52
+ configuration: {
53
+ type: import("vue").PropType<ReferenceConfiguration>;
56
54
  };
57
- footerBelowSidebar: {
58
- type: import("vue").PropType<boolean>;
55
+ aiWriterMarkdown: {
56
+ type: import("vue").PropType<string>;
59
57
  };
60
58
  specUrl: {
61
59
  type: import("vue").PropType<string>;
@@ -63,18 +61,26 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
63
61
  specResult: {
64
62
  type: import("vue").PropType<Record<any, any>>;
65
63
  };
66
- hocuspocusConfiguration: {
67
- type: import("vue").PropType<import("@scalar/swagger-editor").HocuspocusConfigurationProp>;
68
- };
69
64
  initialTabState: {
70
65
  type: import("vue").PropType<import("@scalar/swagger-editor").EditorHeaderTabs>;
71
66
  };
67
+ showSidebar: {
68
+ type: import("vue").PropType<boolean>;
69
+ default: undefined;
70
+ };
71
+ isEditable: {
72
+ type: import("vue").PropType<boolean>;
73
+ default: undefined;
74
+ };
75
+ hocuspocusConfiguration: {
76
+ type: import("vue").PropType<import("@scalar/swagger-editor").HocuspocusConfigurationProp>;
77
+ };
72
78
  }>> & {
73
79
  onChangeTheme?: ((value: ThemeId) => any) | undefined;
80
+ onStartAIWriter?: ((value: string[], swaggerData: string, swaggerType: "json" | "yaml") => any) | undefined;
74
81
  }, {
75
- theme: ThemeId;
76
- isEditable: boolean;
77
82
  showSidebar: boolean;
83
+ isEditable: boolean;
78
84
  }, {}>, {
79
85
  "search-modal"?(_: {}): any;
80
86
  header?(_: {}): any;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8hB1D,wBAA8G;AAuB9G,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":"AAGA,OAAO,EAAE,KAAK,OAAO,EAAe,MAAM,gBAAgB,CAAA;AAc1D,OAAO,KAAK,EAAE,sBAAsB,EAAwB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAylB5E,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,12 @@
1
+ import { type Spec } from '../../../types';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ spec: {
4
+ type: import("vue").PropType<Spec>;
5
+ };
6
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ spec: {
8
+ type: import("vue").PropType<Spec>;
9
+ };
10
+ }>>, {}, {}>;
11
+ export default _default;
12
+ //# sourceMappingURL=Authentication.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Authentication.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/Authentication.vue.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;AA+K1C,wBAAkD"}
@@ -0,0 +1,11 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ value: {
3
+ type: import("vue").PropType<any>;
4
+ };
5
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
6
+ value: {
7
+ type: import("vue").PropType<any>;
8
+ };
9
+ }>>, {}, {}>;
10
+ export default _default;
11
+ //# sourceMappingURL=SecurityScheme.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SecurityScheme.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/SecurityScheme.vue.ts"],"names":[],"mappings":";;;;;;;;;AA8XA,wBAAkD"}
@@ -0,0 +1,17 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ value: {
3
+ type: import("vue").PropType<any>;
4
+ required: true;
5
+ };
6
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ input: (key: string) => void;
8
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
+ value: {
10
+ type: import("vue").PropType<any>;
11
+ required: true;
12
+ };
13
+ }>> & {
14
+ onInput?: ((key: string) => any) | undefined;
15
+ }, {}, {}>;
16
+ export default _default;
17
+ //# sourceMappingURL=SecuritySchemeSelector.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SecuritySchemeSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/SecuritySchemeSelector.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAyMA,wBAAkD"}
@@ -0,0 +1,2 @@
1
+ export { default as Authentication } from './Authentication.vue';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,IAAI,EAAO,MAAM,aAAa,CAAA;;;;;;;;;;;;;;;;;;;;AAiS5C,wBAAkD"}
1
+ {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,IAAI,EAAO,MAAM,aAAa,CAAA;;;;;;;;;;;;;;;;;;;;AAkS5C,wBAAkD"}
@@ -1,4 +1,4 @@
1
- import type { Info, Server } from '../../../types';
1
+ import type { Info, Server, Spec } from '../../../types';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  info: {
4
4
  type: import("vue").PropType<Info>;
@@ -8,6 +8,10 @@ declare const _default: import("vue").DefineComponent<{
8
8
  type: import("vue").PropType<Server[]>;
9
9
  required: true;
10
10
  };
11
+ spec: {
12
+ type: import("vue").PropType<Spec>;
13
+ required: true;
14
+ };
11
15
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
16
  info: {
13
17
  type: import("vue").PropType<Info>;
@@ -17,6 +21,10 @@ declare const _default: import("vue").DefineComponent<{
17
21
  type: import("vue").PropType<Server[]>;
18
22
  required: true;
19
23
  };
24
+ spec: {
25
+ type: import("vue").PropType<Spec>;
26
+ required: true;
27
+ };
20
28
  }>>, {}, {}>;
21
29
  export default _default;
22
30
  //# sourceMappingURL=Introduction.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;;;AA2UlD,wBAAkD"}
1
+ {"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2VxD,wBAAkD"}
@@ -1,4 +1,4 @@
1
- import type { Operation, Server } from '../../../types';
1
+ import type { Operation, Server, Spec } from '../../../types';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  operation: {
4
4
  type: import("vue").PropType<Operation>;
@@ -8,6 +8,10 @@ declare const _default: import("vue").DefineComponent<{
8
8
  type: import("vue").PropType<Server>;
9
9
  required: true;
10
10
  };
11
+ spec: {
12
+ type: import("vue").PropType<Spec>;
13
+ required: true;
14
+ };
11
15
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
16
  operation: {
13
17
  type: import("vue").PropType<Operation>;
@@ -17,6 +21,10 @@ declare const _default: import("vue").DefineComponent<{
17
21
  type: import("vue").PropType<Server>;
18
22
  required: true;
19
23
  };
24
+ spec: {
25
+ type: import("vue").PropType<Spec>;
26
+ required: true;
27
+ };
20
28
  }>>, {}, {}>;
21
29
  export default _default;
22
30
  //# sourceMappingURL=ExampleRequest.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/ExampleRequest.vue.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;;;AA+dvD,wBAAkD"}
1
+ {"version":3,"file":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/ExampleRequest.vue.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwe7D,wBAAkD"}
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleResponses.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/ReferenceEndpoint/ExampleResponses/ExampleResponses.vue.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;;;;;AAukB7D,wBAAkD"}
1
+ {"version":3,"file":"ExampleResponses.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/ReferenceEndpoint/ExampleResponses/ExampleResponses.vue.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;;;;;AA2mB7D,wBAAkD"}
@@ -1,4 +1,4 @@
1
- import type { Server, TransformedOperation } from '../../../types';
1
+ import type { Server, Spec, Tag, TransformedOperation } from '../../../types';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  operation: {
4
4
  type: import("vue").PropType<TransformedOperation>;
@@ -8,6 +8,14 @@ declare const _default: import("vue").DefineComponent<{
8
8
  type: import("vue").PropType<Server>;
9
9
  required: true;
10
10
  };
11
+ spec: {
12
+ type: import("vue").PropType<Spec>;
13
+ required: true;
14
+ };
15
+ tag: {
16
+ type: import("vue").PropType<Tag>;
17
+ required: true;
18
+ };
11
19
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
20
  operation: {
13
21
  type: import("vue").PropType<TransformedOperation>;
@@ -17,6 +25,14 @@ declare const _default: import("vue").DefineComponent<{
17
25
  type: import("vue").PropType<Server>;
18
26
  required: true;
19
27
  };
28
+ spec: {
29
+ type: import("vue").PropType<Spec>;
30
+ required: true;
31
+ };
32
+ tag: {
33
+ type: import("vue").PropType<Tag>;
34
+ required: true;
35
+ };
20
36
  }>>, {}, {}>;
21
37
  export default _default;
22
38
  //# sourceMappingURL=ReferenceEndpoint.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReferenceEndpoint.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/ReferenceEndpoint.vue.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAO,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;;;AA0MvE,wBAAkD"}
1
+ {"version":3,"file":"ReferenceEndpoint.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/ReferenceEndpoint.vue.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8M7E,wBAAkD"}
@@ -5,14 +5,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
5
  is: {
6
6
  type: import("vue").PropType<string>;
7
7
  };
8
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ intersecting: () => void;
10
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
11
  id: {
10
12
  type: import("vue").PropType<string>;
11
13
  };
12
14
  is: {
13
15
  type: import("vue").PropType<string>;
14
16
  };
15
- }>>, {}, {}>, {
17
+ }>> & {
18
+ onIntersecting?: (() => any) | undefined;
19
+ }, {}, {}>, {
16
20
  default?(_: {}): any;
17
21
  }>;
18
22
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"IntersectionObserver.vue.d.ts","sourceRoot":"","sources":["../../src/components/IntersectionObserver.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAuGA,wBAA8G;AAI9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"IntersectionObserver.vue.d.ts","sourceRoot":"","sources":["../../src/components/IntersectionObserver.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AA8GA,wBAA8G;AAiB9G,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":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/SearchModal.vue.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,IAAI,EAA6B,MAAM,UAAU,CAAA;;;;;;;;;;;;AAub/D,wBAAkD"}
1
+ {"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/SearchModal.vue.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,IAAI,EAA6B,MAAM,UAAU,CAAA;;;;;;;;;;;;AA2b/D,wBAAkD"}
@@ -2,10 +2,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
2
  id: {
3
3
  type: import("vue").PropType<string>;
4
4
  };
5
+ label: {
6
+ type: import("vue").PropType<string>;
7
+ };
5
8
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
6
9
  id: {
7
10
  type: import("vue").PropType<string>;
8
11
  };
12
+ label: {
13
+ type: import("vue").PropType<string>;
14
+ };
9
15
  }>>, {}, {}>, {
10
16
  default?(_: {}): any;
11
17
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/Section.vue.ts"],"names":[],"mappings":";;;;;;;;;;;AAkFA,wBAA8G;AAI9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/Section.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAiGA,wBAA8G;AAI9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -1,4 +1,8 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ level: {
3
+ type: import("vue").PropType<number>;
4
+ default: number;
5
+ };
2
6
  loading: {
3
7
  type: import("vue").PropType<boolean>;
4
8
  default: boolean;
@@ -8,6 +12,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
8
12
  default: boolean;
9
13
  };
10
14
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ level: {
16
+ type: import("vue").PropType<number>;
17
+ default: number;
18
+ };
11
19
  loading: {
12
20
  type: import("vue").PropType<boolean>;
13
21
  default: boolean;
@@ -17,6 +25,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
17
25
  default: boolean;
18
26
  };
19
27
  }>>, {
28
+ level: number;
20
29
  loading: boolean;
21
30
  tight: boolean;
22
31
  }, {}>, {
@@ -1 +1 @@
1
- {"version":3,"file":"SectionHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionHeader.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAuGA,wBAA8G;AAU9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"SectionHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionHeader.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyGA,wBAA8G;AAU9G,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":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../src/components/Sidebar.vue.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAa,IAAI,EAAO,MAAM,UAAU,CAAA;;;;;;;;;;;;AAgapD,wBAAkD"}
1
+ {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../src/components/Sidebar.vue.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAa,IAAI,EAAO,MAAM,UAAU,CAAA;;;;;;;;;;;;AA0apD,wBAAkD"}
@@ -8,6 +8,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
8
8
  icon?: {
9
9
  src: string;
10
10
  } | undefined;
11
+ httpVerb?: string | undefined;
11
12
  }>;
12
13
  required: true;
13
14
  };
@@ -35,6 +36,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
35
36
  icon?: {
36
37
  src: string;
37
38
  } | undefined;
39
+ httpVerb?: string | undefined;
38
40
  }>;
39
41
  required: true;
40
42
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../src/components/SidebarElement.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgTA,wBAA8G;AAmB9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../src/components/SidebarElement.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwVA,wBAA8G;AAmB9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import type { ClientRequestConfig } from '@scalar/api-client';
2
2
  import { type ParamMap } from '../hooks';
3
- import type { Operation, Server } from '../types';
3
+ import type { Operation, Server, Spec } from '../types';
4
4
  /**
5
5
  * Generate parameters for the request
6
6
  */
7
- export declare function generateRequest(operation: Operation, parameterMap: ParamMap, server: Server): ClientRequestConfig;
7
+ export declare function generateRequest(operation: Operation, parameterMap: ParamMap, server: Server, spec: Spec): ClientRequestConfig;
8
8
  //# sourceMappingURL=generateRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generateRequest.d.ts","sourceRoot":"","sources":["../../src/helpers/generateRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAE7D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAIjD;;GAEG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,QAAQ,EACtB,MAAM,EAAE,MAAM,GACb,mBAAmB,CAiCrB"}
1
+ {"version":3,"file":"generateRequest.d.ts","sourceRoot":"","sources":["../../src/helpers/generateRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAG7D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAA;AAExC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAMvD;;GAEG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,QAAQ,EACtB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,GACT,mBAAmB,CAyGrB"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This function takes a properties object and generates an example response content.
3
+ */
4
+ export declare const getExampleFromSchema: (schema: Record<string, any>, options?: {
5
+ /**
6
+ * The fallback string for empty string values.
7
+ * @default ''
8
+ **/
9
+ emptyString: string;
10
+ }, level?: number) => any;
11
+ //# sourceMappingURL=getExampleFromSchema.d.ts.map
@@ -0,0 +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,3 +1,3 @@
1
- import { type TransformedOperation } from 'src/types';
2
- export declare const getOperationSectionId: (operation: TransformedOperation) => string;
1
+ import type { Tag, TransformedOperation } from '../types';
2
+ export declare const getOperationSectionId: (operation: TransformedOperation, parentTag: Tag) => string;
3
3
  //# sourceMappingURL=getOperationSectionId.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getOperationSectionId.d.ts","sourceRoot":"","sources":["../../src/helpers/getOperationSectionId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAErD,eAAO,MAAM,qBAAqB,cAAe,oBAAoB,WAEpE,CAAA"}
1
+ {"version":3,"file":"getOperationSectionId.d.ts","sourceRoot":"","sources":["../../src/helpers/getOperationSectionId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAGzD,eAAO,MAAM,qBAAqB,cACrB,oBAAoB,aACpB,GAAG,WAKf,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { type Spec } from 'src/types';
2
+ export declare const hasSecuritySchemes: (spec?: Spec) => boolean;
3
+ //# sourceMappingURL=hasSecuritySchemes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasSecuritySchemes.d.ts","sourceRoot":"","sources":["../../src/helpers/hasSecuritySchemes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,WAAW,CAAA;AAErC,eAAO,MAAM,kBAAkB,UAAW,IAAI,YAO7C,CAAA"}
@@ -1,11 +1,12 @@
1
1
  export * from './generateRequest';
2
- export * from './generateResponseContent';
2
+ export * from './getExampleFromSchema';
3
3
  export * from './getHeadingId';
4
4
  export * from './getHeadingsFromMarkdown';
5
5
  export * from './getModelSectionId';
6
6
  export * from './getOperationSectionId';
7
7
  export * from './getTagSectionId';
8
8
  export * from './hasModels';
9
+ export * from './hasSecuritySchemes';
9
10
  export * from './mapFromObject';
10
11
  export * from './objectMerge';
11
12
  export * from './scrollToId';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,2BAA2B,CAAA;AACzC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,2BAA2B,CAAA;AACzC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,2BAA2B,CAAA;AACzC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA"}