@scalar/api-reference 1.1.7 → 1.2.1

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 (39) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/browser/standalone.js +19707 -19668
  3. package/dist/components/Anchor/Anchor.vue.d.ts +20 -0
  4. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -0
  5. package/dist/components/Anchor/index.d.ts +2 -0
  6. package/dist/components/Anchor/index.d.ts.map +1 -0
  7. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceBase.vue.d.ts +9 -11
  9. package/dist/components/ApiReferenceBase.vue.d.ts.map +1 -1
  10. package/dist/components/ApiReferenceLayout.vue.d.ts +10 -12
  11. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Authentication/Authentication.stories.d.ts +13 -0
  13. package/dist/components/Content/Authentication/Authentication.stories.d.ts.map +1 -0
  14. package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Authentication/SecuritySchemeSelector.vue.d.ts.map +1 -1
  16. package/dist/components/Content/EndpointsOverview.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Models.vue.d.ts.map +1 -1
  18. package/dist/components/Content/ReferenceEndpoint/ExampleRequest.vue.d.ts.map +1 -1
  19. package/dist/components/Content/ReferenceEndpoint/ReferenceEndpoint.vue.d.ts.map +1 -1
  20. package/dist/components/MobileHeader.vue.d.ts +13 -1
  21. package/dist/components/MobileHeader.vue.d.ts.map +1 -1
  22. package/dist/components/SearchButton.vue.d.ts +9 -0
  23. package/dist/components/SearchButton.vue.d.ts.map +1 -1
  24. package/dist/components/SearchModal.vue.d.ts +16 -0
  25. package/dist/components/SearchModal.vue.d.ts.map +1 -1
  26. package/dist/hooks/useActive.d.ts +5 -0
  27. package/dist/hooks/useActive.d.ts.map +1 -0
  28. package/dist/hooks/useParser.d.ts +22 -35
  29. package/dist/hooks/useParser.d.ts.map +1 -1
  30. package/dist/index.d.ts +1 -0
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +11241 -11209
  33. package/dist/stores/globalStore.d.ts +1 -0
  34. package/dist/stores/globalStore.d.ts.map +1 -1
  35. package/dist/stores/template.d.ts +1 -7
  36. package/dist/stores/template.d.ts.map +1 -1
  37. package/dist/types.d.ts +16 -9
  38. package/dist/types.d.ts.map +1 -1
  39. package/package.json +5 -5
@@ -0,0 +1,20 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ id: {
3
+ type: import("vue").PropType<string>;
4
+ required: true;
5
+ };
6
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ id: {
8
+ type: import("vue").PropType<string>;
9
+ required: true;
10
+ };
11
+ }>>, {}, {}>, {
12
+ default?(_: {}): any;
13
+ }>;
14
+ export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
20
+ //# sourceMappingURL=Anchor.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Anchor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Anchor/Anchor.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAgKA,wBAAwG;AAKxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as Anchor } from './Anchor.vue';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Anchor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue.ts"],"names":[],"mappings":";;;;;;;;;AAmLA,wBAQG"}
1
+ {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue.ts"],"names":[],"mappings":";;;;;;;;;AA+KA,wBAQG"}
@@ -1,5 +1,5 @@
1
1
  import { type ThemeId } from '@scalar/themes';
2
- import { type ReferenceConfiguration } from '../types';
2
+ import { type ReferenceConfiguration, type ReferenceSlotProps } from '../types';
3
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
4
  configuration: {
5
5
  type: import("vue").PropType<ReferenceConfiguration>;
@@ -16,16 +16,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
16
16
  onChangeTheme?: ((value: ThemeId) => any) | undefined;
17
17
  onUpdateContent?: ((value: string) => any) | undefined;
18
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
- footer?(_: {}): any;
28
- }>;
19
+ }, {}, {}>, Readonly<{
20
+ header: (props: ReferenceSlotProps) => any;
21
+ footer: (props: ReferenceSlotProps) => any;
22
+ "content-start": (props: ReferenceSlotProps) => any;
23
+ "content-end": (props: ReferenceSlotProps) => any;
24
+ "sidebar-start": (props: ReferenceSlotProps) => any;
25
+ "sidebar-end": (props: ReferenceSlotProps) => any;
26
+ }>>;
29
27
  export default _default;
30
28
  type __VLS_WithTemplateSlots<T, S> = T & {
31
29
  new (): {
@@ -1 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6VjB,wBAAwG;AAKxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
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,EAG3B,KAAK,kBAAkB,EAExB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAkQjB,wBAAwG;AAKxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { type ThemeId } from '@scalar/themes';
2
- import type { ReferenceConfiguration, Spec } from '../types';
2
+ import type { ReferenceConfiguration, ReferenceSlotProps, Spec } from '../types';
3
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
4
  configuration: {
5
5
  type: import("vue").PropType<ReferenceConfiguration>;
@@ -164,17 +164,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
164
164
  onToggleDarkMode?: (() => any) | undefined;
165
165
  onChangeTheme?: ((value: ThemeId) => any) | undefined;
166
166
  onUpdateContent?: ((value: string) => any) | undefined;
167
- }, {}, {}>, {
168
- header?(_: {
169
- breadcrumb: string;
170
- }): any;
171
- "sidebar-start"?(_: {}): any;
172
- "sidebar-end"?(_: {}): any;
173
- editor?(_: {}): any;
174
- "content-start"?(_: {}): any;
175
- "content-end"?(_: {}): any;
176
- footer?(_: {}): any;
177
- }>;
167
+ }, {}, {}>, Readonly<{
168
+ header: (props: ReferenceSlotProps) => any;
169
+ footer: (props: ReferenceSlotProps) => any;
170
+ editor: (props: ReferenceSlotProps) => any;
171
+ "content-start": (props: ReferenceSlotProps) => any;
172
+ "content-end": (props: ReferenceSlotProps) => any;
173
+ "sidebar-start": (props: ReferenceSlotProps) => any;
174
+ "sidebar-end": (props: ReferenceSlotProps) => any;
175
+ }>>;
178
176
  export default _default;
179
177
  type __VLS_WithTemplateSlots<T, S> = T & {
180
178
  new (): {
@@ -1 +1 @@
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAke5D,wBAAwG;AAKxG,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;AAK7C,OAAO,KAAK,EACV,sBAAsB,EAEtB,kBAAkB,EAClB,IAAI,EACL,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgdjB,wBAAwG;AAKxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3';
2
+ import Authentication from './Authentication.vue';
3
+ declare const meta: Meta<typeof Authentication>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Authentication>;
6
+ export declare const Default: Story;
7
+ export declare const NoAuthentication: Story;
8
+ export declare const BasicAuthentication: Story;
9
+ export declare const BearerAuthentication: Story;
10
+ export declare const ApiKey: Story;
11
+ export declare const OpenAuth: Story;
12
+ export declare const MultipleMethods: Story;
13
+ //# sourceMappingURL=Authentication.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Authentication.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/Authentication.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAErD,OAAO,cAAc,MAAM,sBAAsB,CAAA;AAEjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,cAAc,CAIrC,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAA;AAE5C,eAAO,MAAM,OAAO,EAAE,KAoBrB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAe9B,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,KAkBjC,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,KAoBlC,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAmBpB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAqBtB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KA+B7B,CAAA"}
@@ -1 +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;;;;;;;;;;AAwM1C,wBAQG"}
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;;;;;;;;;;AAyM1C,wBAQG"}
@@ -1 +1 @@
1
- {"version":3,"file":"SecuritySchemeSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/SecuritySchemeSelector.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAiNA,wBAYG"}
1
+ {"version":3,"file":"SecuritySchemeSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/SecuritySchemeSelector.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAkNA,wBAYG"}
@@ -1 +1 @@
1
- {"version":3,"file":"EndpointsOverview.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/EndpointsOverview.vue.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,aAAa,CAAA;;;;;;;;;;;;AAgT5D,wBAQG"}
1
+ {"version":3,"file":"EndpointsOverview.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/EndpointsOverview.vue.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,aAAa,CAAA;;;;;;;;;;;;AAiU5D,wBAQG"}
@@ -1 +1 @@
1
- {"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Models.vue.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;AAgL7C,wBAUG"}
1
+ {"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Models.vue.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;AAiM7C,wBAUG"}
@@ -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;;;;;;;;;;;;AA8c1D,wBAUG"}
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;;;;;;;;;;;;AA+c1D,wBAUG"}
@@ -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,GAAG,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;;;AA8M/D,wBAWG"}
1
+ {"version":3,"file":"ReferenceEndpoint.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/ReferenceEndpoint.vue.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;;;AA+N/D,wBAWG"}
@@ -1,3 +1,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<{}>>, {}, {}>;
1
+ declare const _default: import("vue").DefineComponent<{
2
+ open: {
3
+ type: import("vue").PropType<boolean>;
4
+ };
5
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ "update:open": (open: boolean) => void;
7
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
+ open: {
9
+ type: import("vue").PropType<boolean>;
10
+ };
11
+ }>> & {
12
+ "onUpdate:open"?: ((open: boolean) => any) | undefined;
13
+ }, {}, {}>;
2
14
  export default _default;
3
15
  //# 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":";AAgIA,wBAKG"}
1
+ {"version":3,"file":"MobileHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/MobileHeader.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAuHA,wBAWG"}
@@ -1,9 +1,18 @@
1
+ import { type Spec } from 'src/types';
1
2
  declare const _default: import("vue").DefineComponent<{
3
+ spec: {
4
+ type: import("vue").PropType<Spec>;
5
+ required: true;
6
+ };
2
7
  searchHotKey: {
3
8
  type: import("vue").PropType<string>;
4
9
  default: string;
5
10
  };
6
11
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
+ spec: {
13
+ type: import("vue").PropType<Spec>;
14
+ required: true;
15
+ };
7
16
  searchHotKey: {
8
17
  type: import("vue").PropType<string>;
9
18
  default: string;
@@ -1 +1 @@
1
- {"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/SearchButton.vue.ts"],"names":[],"mappings":";;;;;;;;;;;kBAmJ2E,MAAM;;AAFjF,wBAQG"}
1
+ {"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/SearchButton.vue.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,WAAW,CAAA;;;;;;;;;;;;;;;;;;;;kBAoLlB,MAAM;;AAJzB,wBAWG"}
@@ -4,11 +4,27 @@ declare const _default: import("vue").DefineComponent<{
4
4
  type: import("vue").PropType<Spec>;
5
5
  required: true;
6
6
  };
7
+ modalState: {
8
+ type: import("vue").PropType<{
9
+ open: boolean;
10
+ show: () => void;
11
+ hide: () => void;
12
+ }>;
13
+ required: true;
14
+ };
7
15
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
16
  parsedSpec: {
9
17
  type: import("vue").PropType<Spec>;
10
18
  required: true;
11
19
  };
20
+ modalState: {
21
+ type: import("vue").PropType<{
22
+ open: boolean;
23
+ show: () => void;
24
+ hide: () => void;
25
+ }>;
26
+ required: true;
27
+ };
12
28
  }>>, {}, {}>;
13
29
  export default _default;
14
30
  //# sourceMappingURL=SearchModal.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/SearchModal.vue.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,IAAI,EAA6B,MAAM,UAAU,CAAA;;;;;;;;;;;;AA6d/D,wBAQG"}
1
+ {"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/SearchModal.vue.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0b1D,wBAQG"}
@@ -0,0 +1,5 @@
1
+ /** This tells you if a component is active in a `<keepalive>` */
2
+ export declare function useActive(): {
3
+ isActive: import("vue").ComputedRef<boolean>;
4
+ };
5
+ //# sourceMappingURL=useActive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useActive.d.ts","sourceRoot":"","sources":["../../src/hooks/useActive.ts"],"names":[],"mappings":"AAEA,iEAAiE;AACjE,wBAAgB,SAAS;;EAexB"}
@@ -7,7 +7,7 @@ export declare function useParser({ input, }: {
7
7
  input?: string | Ref<string> | ComputedRef<string>;
8
8
  }): {
9
9
  parsedSpecRef: {
10
- tags: {
10
+ tags?: {
11
11
  name: string;
12
12
  description: string;
13
13
  operations: {
@@ -88,70 +88,57 @@ export declare function useParser({ input, }: {
88
88
  } | undefined;
89
89
  }[];
90
90
  }[];
91
- }[];
91
+ }[] | undefined;
92
92
  info: {
93
93
  title: string;
94
- description: string;
95
- termsOfService: string;
96
- contact: {
94
+ description?: string | undefined;
95
+ termsOfService?: string | undefined;
96
+ contact?: {
97
97
  email: string;
98
- };
99
- license: {
98
+ } | undefined;
99
+ license?: {
100
100
  name: string;
101
101
  url: string;
102
- };
103
- version: string;
102
+ } | undefined;
103
+ version?: string | undefined;
104
104
  };
105
105
  host?: string | undefined;
106
106
  schemes?: string[] | undefined;
107
- externalDocs: {
107
+ externalDocs?: {
108
108
  description: string;
109
109
  url: string;
110
- };
111
- servers: {
110
+ } | undefined;
111
+ servers?: {
112
112
  url: string;
113
113
  description?: string | undefined;
114
114
  variables?: import("../types").ServerVariables | undefined;
115
- }[];
115
+ }[] | undefined;
116
116
  components?: {
117
117
  schemas?: {
118
118
  [key: string]: import("openapi-types").OpenAPIV3.ReferenceObject | import("openapi-types").OpenAPIV3.SchemaObject;
119
- } | undefined;
119
+ } | Record<string, import("openapi-types").OpenAPIV3_1.SchemaObject> | undefined;
120
120
  responses?: {
121
121
  [key: string]: import("openapi-types").OpenAPIV3.ReferenceObject | import("openapi-types").OpenAPIV3.ResponseObject;
122
- } | undefined;
122
+ } | Record<string, import("openapi-types").OpenAPIV3_1.ReferenceObject | import("openapi-types").OpenAPIV3_1.ResponseObject> | undefined;
123
123
  parameters?: {
124
124
  [key: string]: import("openapi-types").OpenAPIV3.ReferenceObject | import("openapi-types").OpenAPIV3.ParameterObject;
125
- } | undefined;
125
+ } | Record<string, import("openapi-types").OpenAPIV3_1.ReferenceObject | import("openapi-types").OpenAPIV3.ParameterObject> | undefined;
126
126
  examples?: {
127
127
  [key: string]: import("openapi-types").OpenAPIV3.ReferenceObject | import("openapi-types").OpenAPIV3.ExampleObject;
128
- } | undefined;
128
+ } | Record<string, import("openapi-types").OpenAPIV3_1.ReferenceObject | import("openapi-types").OpenAPIV3.ExampleObject> | undefined;
129
129
  requestBodies?: {
130
130
  [key: string]: import("openapi-types").OpenAPIV3.ReferenceObject | import("openapi-types").OpenAPIV3.RequestBodyObject;
131
- } | undefined;
131
+ } | Record<string, import("openapi-types").OpenAPIV3_1.ReferenceObject | import("openapi-types").OpenAPIV3_1.RequestBodyObject> | undefined;
132
132
  headers?: {
133
133
  [key: string]: import("openapi-types").OpenAPIV3.ReferenceObject | import("openapi-types").OpenAPIV3.HeaderObject;
134
- } | undefined;
135
- securitySchemes?: {
136
- [key: string]: import("openapi-types").OpenAPIV3.SecuritySchemeObject | import("openapi-types").OpenAPIV3.ReferenceObject;
137
- } | undefined;
134
+ } | Record<string, import("openapi-types").OpenAPIV3_1.ReferenceObject | import("openapi-types").OpenAPIV3.HeaderObject> | undefined;
138
135
  links?: {
139
136
  [key: string]: import("openapi-types").OpenAPIV3.ReferenceObject | import("openapi-types").OpenAPIV3.LinkObject;
140
- } | undefined;
137
+ } | Record<string, import("openapi-types").OpenAPIV3_1.ReferenceObject | import("openapi-types").OpenAPIV3_1.LinkObject> | undefined;
141
138
  callbacks?: {
142
139
  [key: string]: import("openapi-types").OpenAPIV3.ReferenceObject | import("openapi-types").OpenAPIV3.CallbackObject;
143
- } | undefined;
144
- } | {
145
- schemas?: Record<string, import("openapi-types").OpenAPIV3_1.SchemaObject> | undefined;
146
- responses?: Record<string, import("openapi-types").OpenAPIV3_1.ReferenceObject | import("openapi-types").OpenAPIV3_1.ResponseObject> | undefined;
147
- parameters?: Record<string, import("openapi-types").OpenAPIV3_1.ReferenceObject | import("openapi-types").OpenAPIV3.ParameterObject> | undefined;
148
- examples?: Record<string, import("openapi-types").OpenAPIV3_1.ReferenceObject | import("openapi-types").OpenAPIV3.ExampleObject> | undefined;
149
- requestBodies?: Record<string, import("openapi-types").OpenAPIV3_1.ReferenceObject | import("openapi-types").OpenAPIV3_1.RequestBodyObject> | undefined;
150
- headers?: Record<string, import("openapi-types").OpenAPIV3_1.ReferenceObject | import("openapi-types").OpenAPIV3.HeaderObject> | undefined;
151
- securitySchemes?: Record<string, import("openapi-types").OpenAPIV3.SecuritySchemeObject | import("openapi-types").OpenAPIV3_1.ReferenceObject> | undefined;
152
- links?: Record<string, import("openapi-types").OpenAPIV3_1.ReferenceObject | import("openapi-types").OpenAPIV3_1.LinkObject> | undefined;
153
- callbacks?: Record<string, import("openapi-types").OpenAPIV3_1.ReferenceObject | import("openapi-types").OpenAPIV3_1.CallbackObject> | undefined;
154
- pathItems?: Record<string, import("openapi-types").OpenAPIV3_1.ReferenceObject | import("openapi-types").OpenAPIV3_1.PathItemObject<{}>> | undefined;
140
+ } | Record<string, import("openapi-types").OpenAPIV3_1.ReferenceObject | import("openapi-types").OpenAPIV3_1.CallbackObject> | undefined;
141
+ securitySchemes?: Record<string, Record<string, never> | import("openapi-types").OpenAPIV3.SecuritySchemeObject | import("openapi-types").OpenAPIV2.SecuritySchemeObject> | undefined;
155
142
  } | undefined;
156
143
  definitions?: import("openapi-types").OpenAPIV2.DefinitionsObject | undefined;
157
144
  openapi?: string | undefined;
@@ -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
@@ -6,5 +6,6 @@ export { default as Sidebar } from './components/Sidebar.vue';
6
6
  export { default as RenderedReference } from './components/Content/Content.vue';
7
7
  export { default as DarkModeToggle } from './components/DarkModeToggle.vue';
8
8
  export { default as SearchModal } from './components/SearchModal.vue';
9
+ export { default as SearchButton } from './components/SearchButton.vue';
9
10
  export * from './types';
10
11
  //# 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,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"}
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;AACrE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEvE,cAAc,SAAS,CAAA"}