@scalar/api-reference 1.3.0 → 1.4.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.
- package/CHANGELOG.md +14 -0
- package/dist/browser/standalone.js +7 -7
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceBase.vue.d.ts +1 -1
- package/dist/components/ApiReferenceBase.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts +5 -5
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ClassicHeader.vue.d.ts +10 -0
- package/dist/components/ClassicHeader.vue.d.ts.map +1 -0
- package/dist/components/Content/Content.vue.d.ts +2 -0
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/DarkModeIconToggle.vue.d.ts +3 -0
- package/dist/components/DarkModeIconToggle.vue.d.ts.map +1 -0
- package/dist/components/DarkModeToggle.vue.d.ts.map +1 -1
- package/dist/components/Icon/icons/index.d.ts +1 -1
- package/dist/components/Icon/icons/index.d.ts.map +1 -1
- package/dist/components/IntersectionObserver.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.d.ts +18 -0
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -0
- package/dist/components/Layouts/ModernLayout.vue.d.ts +18 -0
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -0
- package/dist/components/Layouts/index.d.ts +7 -0
- package/dist/components/Layouts/index.d.ts.map +1 -0
- package/dist/components/Sidebar.vue.d.ts.map +1 -1
- package/dist/helpers/hasModels.d.ts +1 -1
- package/dist/helpers/hasModels.d.ts.map +1 -1
- package/dist/helpers/index.d.ts +2 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/showItemInClient.d.ts +3 -0
- package/dist/helpers/showItemInClient.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useDarkModeState.d.ts.map +1 -1
- package/dist/hooks/useNavigation.d.ts +28 -0
- package/dist/hooks/useNavigation.d.ts.map +1 -0
- package/dist/{index-efc6f45c.js → index-0f5b8a92.js} +11423 -11287
- package/dist/{index-e8f29118.js → index-1eca3167.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/stores/template.d.ts +0 -9
- package/dist/stores/template.d.ts.map +1 -1
- package/dist/types.d.ts +10 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -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":"AAKA,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,UAAU,CAAA;;;;AAkGtE,wBAAwG;AAGxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -9,8 +9,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
9
9
|
onUpdateContent?: ((value: string) => any) | undefined;
|
|
10
10
|
onStartAIWriter?: ((value: string[], swaggerData: string, swaggerType: "json" | "yaml") => any) | undefined;
|
|
11
11
|
}, {}, {}>, Readonly<{
|
|
12
|
-
header: (props: ReferenceSlotProps) => any;
|
|
13
12
|
footer: (props: ReferenceSlotProps) => any;
|
|
13
|
+
header: (props: ReferenceSlotProps) => any;
|
|
14
14
|
"content-start": (props: ReferenceSlotProps) => any;
|
|
15
15
|
"content-end": (props: ReferenceSlotProps) => any;
|
|
16
16
|
"sidebar-start": (props: ReferenceSlotProps) => any;
|
|
@@ -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,EAIL,KAAK,cAAc,EACnB,KAAK,kBAAkB,EAExB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;
|
|
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,EAIL,KAAK,cAAc,EACnB,KAAK,kBAAkB,EAExB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;AA4QjB,wBAAwG;AAGxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -27,7 +27,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
27
27
|
type: import("vue").PropType<string>;
|
|
28
28
|
};
|
|
29
29
|
error: {
|
|
30
|
-
type: import("vue").PropType<string | import("vue").
|
|
30
|
+
type: import("vue").PropType<string | import("vue").Ref<string> | import("vue").ComputedRef<string> | null>;
|
|
31
31
|
};
|
|
32
32
|
}, {
|
|
33
33
|
handleOpenSwaggerEditor: (action?: import("@scalar/swagger-editor").OpenSwaggerEditorActions | undefined) => void;
|
|
@@ -59,7 +59,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
59
59
|
type: import("vue").PropType<string>;
|
|
60
60
|
};
|
|
61
61
|
error: {
|
|
62
|
-
type: import("vue").PropType<string | import("vue").
|
|
62
|
+
type: import("vue").PropType<string | import("vue").Ref<string> | import("vue").ComputedRef<string> | null>;
|
|
63
63
|
};
|
|
64
64
|
}>> & {
|
|
65
65
|
onStartAIWriter?: ((value: string[], swaggerData: string, swaggerType: "json" | "yaml") => any) | undefined;
|
|
@@ -98,7 +98,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
98
98
|
type: import("vue").PropType<string>;
|
|
99
99
|
};
|
|
100
100
|
error: {
|
|
101
|
-
type: import("vue").PropType<string | import("vue").
|
|
101
|
+
type: import("vue").PropType<string | import("vue").Ref<string> | import("vue").ComputedRef<string> | null>;
|
|
102
102
|
};
|
|
103
103
|
}, {
|
|
104
104
|
handleOpenSwaggerEditor: (action?: import("@scalar/swagger-editor").OpenSwaggerEditorActions | undefined) => void;
|
|
@@ -130,7 +130,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
130
130
|
type: import("vue").PropType<string>;
|
|
131
131
|
};
|
|
132
132
|
error: {
|
|
133
|
-
type: import("vue").PropType<string | import("vue").
|
|
133
|
+
type: import("vue").PropType<string | import("vue").Ref<string> | import("vue").ComputedRef<string> | null>;
|
|
134
134
|
};
|
|
135
135
|
}>> & {
|
|
136
136
|
onStartAIWriter?: ((value: string[], swaggerData: string, swaggerType: "json" | "yaml") => any) | undefined;
|
|
@@ -143,8 +143,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
143
143
|
onChangeTheme?: ((value: ThemeId) => any) | undefined;
|
|
144
144
|
onUpdateContent?: ((value: string) => any) | undefined;
|
|
145
145
|
}, {}, {}>, Readonly<{
|
|
146
|
-
header: (props: ReferenceSlotProps) => any;
|
|
147
146
|
footer: (props: ReferenceSlotProps) => any;
|
|
147
|
+
header: (props: ReferenceSlotProps) => any;
|
|
148
148
|
editor: (props: ReferenceSlotProps) => any;
|
|
149
149
|
"content-start": (props: ReferenceSlotProps) => any;
|
|
150
150
|
"content-end": (props: ReferenceSlotProps) => any;
|
|
@@ -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;AAK7C,OAAO,KAAK,EACV,sBAAsB,EAEtB,kBAAkB,EAClB,IAAI,EACL,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAudjB,wBAAwG;AAGxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
}>;
|
|
4
|
+
export default _default;
|
|
5
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
|
+
new (): {
|
|
7
|
+
$slots: S;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=ClassicHeader.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClassicHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/ClassicHeader.vue.ts"],"names":[],"mappings":";;;AA6FA,wBAAwG;AAGxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -8,7 +8,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
8
8
|
parsedSpec: Spec;
|
|
9
9
|
rawSpec: string;
|
|
10
10
|
}>>>, {}, {}>, {
|
|
11
|
+
start?(_: {}): any;
|
|
11
12
|
"empty-state"?(_: {}): any;
|
|
13
|
+
end?(_: {}): any;
|
|
12
14
|
}>;
|
|
13
15
|
export default _default;
|
|
14
16
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,IAAI,EAAO,MAAM,aAAa,CAAA;;;;;;;;;;;;;;AAyV5C,wBAAwG;AAGxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
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<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=DarkModeIconToggle.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DarkModeIconToggle.vue.d.ts","sourceRoot":"","sources":["../../src/components/DarkModeIconToggle.vue.ts"],"names":[],"mappings":";AAoFA,wBAKG"}
|
|
@@ -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":";AAyHA,wBAKG"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const getIcon: (name: string) => string;
|
|
2
|
-
export type Icon = 'Add' | 'CheckMark' | 'ChevronDown' | 'ChevronLeft' | 'ChevronRight' | 'ChevronUp' | 'Close' | 'Ellipses' | 'ExternalLink' | 'GitHub' | 'LightDarkModeToggle' | 'Logo' | 'LogoAPI' | 'LogoClient' | 'LogoMarket' | 'LogoSwagger' | 'Menu' | 'Search';
|
|
2
|
+
export type Icon = 'Add' | 'CheckMark' | 'ChevronDown' | 'ChevronLeft' | 'ChevronRight' | 'ChevronUp' | 'Close' | 'DarkMode' | 'Ellipses' | 'ExternalLink' | 'GitHub' | 'LightDarkModeToggle' | 'LightMode' | 'Logo' | 'LogoAPI' | 'LogoClient' | 'LogoMarket' | 'LogoSwagger' | 'Menu' | 'Search';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/icons/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,SAAU,MAAM,WASnC,CAAA;AAED,MAAM,MAAM,IAAI,GACZ,KAAK,GACL,WAAW,GACX,aAAa,GACb,aAAa,GACb,cAAc,GACd,WAAW,GACX,OAAO,GACP,UAAU,GACV,cAAc,GACd,QAAQ,GACR,qBAAqB,GACrB,MAAM,GACN,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,MAAM,GACN,QAAQ,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon/icons/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,SAAU,MAAM,WASnC,CAAA;AAED,MAAM,MAAM,IAAI,GACZ,KAAK,GACL,WAAW,GACX,aAAa,GACb,aAAa,GACb,cAAc,GACd,WAAW,GACX,OAAO,GACP,UAAU,GACV,UAAU,GACV,cAAc,GACd,QAAQ,GACR,qBAAqB,GACrB,WAAW,GACX,MAAM,GACN,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,MAAM,GACN,QAAQ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntersectionObserver.vue.d.ts","sourceRoot":"","sources":["../../src/components/IntersectionObserver.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"IntersectionObserver.vue.d.ts","sourceRoot":"","sources":["../../src/components/IntersectionObserver.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;AA+GA,wBAAwG;AAGxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReferenceProps, ReferenceSlots } from '../../types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ReferenceProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ReferenceProps>>>, {}, {}>, Readonly<ReferenceSlots>>;
|
|
3
|
+
export default _default;
|
|
4
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
5
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
6
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
7
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
8
|
+
} : {
|
|
9
|
+
type: import('vue').PropType<T[K]>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=ClassicLayout.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ClassicLayout.vue.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;;AA4HjE,wBAAwG;AAGxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ReferenceProps, type ReferenceSlots } from '../../types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<ReferenceProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ReferenceProps>>>, {}, {}>, Readonly<ReferenceSlots>>;
|
|
3
|
+
export default _default;
|
|
4
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
5
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
6
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
7
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
8
|
+
} : {
|
|
9
|
+
type: import('vue').PropType<T[K]>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=ModernLayout.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAA;;AAqLtE,wBAAwG;AAGxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ReferenceLayoutType, type ReferenceProps } from 'src/types';
|
|
2
|
+
import { type Component, type DeepReadonly } from 'vue';
|
|
3
|
+
declare const layouts: DeepReadonly<{
|
|
4
|
+
[x in ReferenceLayoutType]: Component<ReferenceProps>;
|
|
5
|
+
}>;
|
|
6
|
+
export default layouts;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAA;AACzE,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,MAAM,KAAK,CAAA;AAKvD,QAAA,MAAM,OAAO,EAAE,YAAY,CAAC;KACzB,CAAC,IAAI,mBAAmB,GAAG,SAAS,CAAC,cAAc,CAAC;CACtD,CAGA,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../src/components/Sidebar.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../src/components/Sidebar.vue.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;;;;;;;;;AAsQpC,wBAAwG;AAGxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,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":"hasModels.d.ts","sourceRoot":"","sources":["../../src/helpers/hasModels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,UAAU,CAAA;AAEpC,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"hasModels.d.ts","sourceRoot":"","sources":["../../src/helpers/hasModels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,UAAU,CAAA;AAEpC,eAAO,MAAM,SAAS,UAAW,IAAI,YAUpC,CAAA"}
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -15,13 +15,14 @@ export * from './getVariableNames';
|
|
|
15
15
|
export * from './hasModels';
|
|
16
16
|
export * from './hasSecuritySchemes';
|
|
17
17
|
export * from './isJsonString';
|
|
18
|
+
export * from './isValidUrl';
|
|
18
19
|
export * from './json2xml';
|
|
19
20
|
export * from './mapFromObject';
|
|
20
21
|
export * from './objectMerge';
|
|
21
22
|
export * from './prettyPrintJson';
|
|
22
23
|
export * from './replaceVariables';
|
|
23
24
|
export * from './scrollToId';
|
|
25
|
+
export * from './showItemInClient';
|
|
24
26
|
export * from './splitMarkdownInSections';
|
|
25
27
|
export * from './transformToJson';
|
|
26
|
-
export * from './isValidUrl';
|
|
27
28
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,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,
|
|
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,cAAc,CAAA;AAC5B,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,oBAAoB,CAAA;AAClC,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"showItemInClient.d.ts","sourceRoot":"","sources":["../../src/helpers/showItemInClient.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AASpD,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,oBAAoB,QAW/D"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDarkModeState.d.ts","sourceRoot":"","sources":["../../src/hooks/useDarkModeState.ts"],"names":[],"mappings":"AAKA,wGAAwG;AACxG,wBAAgB,gBAAgB;;;
|
|
1
|
+
{"version":3,"file":"useDarkModeState.d.ts","sourceRoot":"","sources":["../../src/hooks/useDarkModeState.ts"],"names":[],"mappings":"AAKA,wGAAwG;AACxG,wBAAgB,gBAAgB;;;EAoD/B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Spec } from '../types';
|
|
2
|
+
export type SidebarEntry = {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
type: 'Page' | 'Folder';
|
|
6
|
+
children?: SidebarEntry[];
|
|
7
|
+
select?: () => void;
|
|
8
|
+
httpVerb?: string;
|
|
9
|
+
show: boolean;
|
|
10
|
+
};
|
|
11
|
+
type SidebarIdVisibility = Record<string, boolean>;
|
|
12
|
+
declare function setItemIdVisibility(id: string, visible: boolean): void;
|
|
13
|
+
type CollapsedSidebarItems = Record<string, boolean>;
|
|
14
|
+
declare function toggleCollapsedSidebarItem(key: string): void;
|
|
15
|
+
declare function setCollapsedSidebarItem(key: string, value: boolean): void;
|
|
16
|
+
export declare function useNavigation(options?: {
|
|
17
|
+
parsedSpec: Spec;
|
|
18
|
+
}): {
|
|
19
|
+
items: import("vue").ComputedRef<SidebarEntry[]>;
|
|
20
|
+
activeItemId: import("vue").ComputedRef<string | null>;
|
|
21
|
+
sidebarIdVisibility: SidebarIdVisibility;
|
|
22
|
+
setItemIdVisibility: typeof setItemIdVisibility;
|
|
23
|
+
collapsedSidebarItems: CollapsedSidebarItems;
|
|
24
|
+
toggleCollapsedSidebarItem: typeof toggleCollapsedSidebarItem;
|
|
25
|
+
setCollapsedSidebarItem: typeof setCollapsedSidebarItem;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=useNavigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNavigation.d.ts","sourceRoot":"","sources":["../../src/hooks/useNavigation.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,IAAI,EAA6B,MAAM,UAAU,CAAA;AAE/D,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAA;IACvB,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;CACd,CAAA;AAMD,KAAK,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAIlD,iBAAS,mBAAmB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,QAExD;AAKD,KAAK,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAIpD,iBAAS,0BAA0B,CAAC,GAAG,EAAE,MAAM,QAE9C;AAED,iBAAS,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,QAE3D;AAqHD,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE;IAAE,UAAU,EAAE,IAAI,CAAA;CAAE;;;;;;;;EAiD3D"}
|