vitepress-openapi 0.0.3-alpha.75 → 0.0.3-alpha.76
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/dist/OpenApi-CDzPw3Gb.js +5669 -0
- package/dist/OpenApi-JZDy_oqC.cjs +111 -0
- package/dist/types/src/components/Context/OAContextAsync.vue.d.ts +4 -4
- package/dist/types/src/components/Context/OAContextProvider.vue.d.ts +2 -2
- package/dist/types/src/components/Feature/OAInfo.vue.d.ts +2 -2
- package/dist/types/src/components/Feature/OAIntroduction.vue.d.ts +2 -2
- package/dist/types/src/components/Feature/OAOperation.vue.d.ts +19 -4
- package/dist/types/src/components/Feature/OAServers.vue.d.ts +2 -2
- package/dist/types/src/components/Feature/OASpec.vue.d.ts +20 -5
- package/dist/types/src/components/index.d.ts +1 -3
- package/dist/types/src/components/ui/button/Button.vue.d.ts +4 -4
- package/dist/types/src/components/ui/checkbox/Checkbox.vue.d.ts +12 -12
- package/dist/types/src/components/ui/collapsible/Collapsible.vue.d.ts +2 -2
- package/dist/types/src/components/ui/collapsible/CollapsibleContent.vue.d.ts +2 -2
- package/dist/types/src/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +2 -2
- package/dist/types/src/components/ui/label/Label.vue.d.ts +3 -3
- package/dist/types/src/components/ui/select/Select.vue.d.ts +11 -10
- package/dist/types/src/components/ui/select/SelectContent.vue.d.ts +21 -10
- package/dist/types/src/components/ui/select/SelectGroup.vue.d.ts +3 -3
- package/dist/types/src/components/ui/select/SelectItem.vue.d.ts +4 -4
- package/dist/types/src/components/ui/select/SelectItemText.vue.d.ts +2 -2
- package/dist/types/src/components/ui/select/SelectLabel.vue.d.ts +2 -2
- package/dist/types/src/components/ui/select/SelectScrollDownButton.vue.d.ts +3 -3
- package/dist/types/src/components/ui/select/SelectScrollUpButton.vue.d.ts +3 -3
- package/dist/types/src/components/ui/select/SelectSeparator.vue.d.ts +1 -1
- package/dist/types/src/components/ui/select/SelectTrigger.vue.d.ts +4 -3
- package/dist/types/src/components/ui/select/SelectValue.vue.d.ts +2 -2
- package/dist/types/src/components/ui/tabs/Tabs.vue.d.ts +6 -6
- package/dist/types/src/components/ui/tabs/TabsContent.vue.d.ts +4 -4
- package/dist/types/src/components/ui/tabs/TabsList.vue.d.ts +3 -3
- package/dist/types/src/components/ui/tabs/TabsTrigger.vue.d.ts +4 -4
- package/dist/types/src/composables/useOpenapi.d.ts +2 -2
- package/dist/types/src/composables/useShiki.d.ts +1 -0
- package/dist/types/src/lib/parser/parseOpenapi.d.ts +4 -4
- package/dist/vitepress-openapi.client.cjs.js +135 -151
- package/dist/vitepress-openapi.client.es.js +17589 -18289
- package/dist/vitepress-openapi.css +1 -1
- package/dist/vitepress-openapi.node.cjs.js +1 -1
- package/dist/vitepress-openapi.node.es.js +1 -1
- package/package.json +5 -4
- package/src/components/Common/Highlight/OAShiki.vue +1 -1
- package/src/components/Context/OAContextAsync.vue +2 -3
- package/src/components/Context/OAContextProvider.vue +1 -1
- package/src/components/Feature/OAInfo.vue +1 -1
- package/src/components/Feature/OAIntroduction.vue +1 -1
- package/src/components/Feature/OAOperation.vue +13 -3
- package/src/components/Feature/OAServers.vue +1 -1
- package/src/components/Feature/OASpec.vue +12 -3
- package/src/components/Playground/OAPlaygroundParameterInput.vue +2 -2
- package/src/components/Playground/OAPlaygroundParameters.vue +4 -4
- package/src/components/Response/OAResponses.vue +2 -2
- package/src/components/index.ts +0 -4
- package/src/components/ui/button/Button.vue +2 -2
- package/src/components/ui/checkbox/Checkbox.vue +2 -2
- package/src/components/ui/collapsible/Collapsible.vue +2 -2
- package/src/components/ui/collapsible/CollapsibleContent.vue +2 -2
- package/src/components/ui/collapsible/CollapsibleTrigger.vue +2 -2
- package/src/components/ui/label/Label.vue +2 -2
- package/src/components/ui/select/Select.vue +2 -2
- package/src/components/ui/select/SelectContent.vue +3 -3
- package/src/components/ui/select/SelectGroup.vue +2 -2
- package/src/components/ui/select/SelectItem.vue +2 -2
- package/src/components/ui/select/SelectItemText.vue +2 -2
- package/src/components/ui/select/SelectLabel.vue +2 -2
- package/src/components/ui/select/SelectScrollDownButton.vue +2 -2
- package/src/components/ui/select/SelectScrollUpButton.vue +2 -2
- package/src/components/ui/select/SelectSeparator.vue +2 -2
- package/src/components/ui/select/SelectTrigger.vue +2 -2
- package/src/components/ui/select/SelectValue.vue +2 -2
- package/src/components/ui/select-with-custom-option/SelectWithCustomOption.vue +1 -1
- package/src/components/ui/tabs/Tabs.vue +2 -2
- package/src/components/ui/tabs/TabsContent.vue +2 -2
- package/src/components/ui/tabs/TabsList.vue +2 -2
- package/src/components/ui/tabs/TabsTrigger.vue +2 -2
- package/src/composables/useOpenapi.ts +3 -3
- package/src/composables/useShiki.ts +6 -2
- package/src/lib/parser/parseOpenapi.ts +43 -19
- package/dist/OpenApi-BpIBs3Rx.cjs +0 -95
- package/dist/OpenApi-CJg3ai1M.js +0 -4851
- package/dist/types/src/components/Feature/OARemoteOperation.vue.d.ts +0 -32
- package/dist/types/src/components/Feature/OARemoteSpec.vue.d.ts +0 -24
- package/src/components/Feature/OARemoteOperation.vue +0 -41
- package/src/components/Feature/OARemoteSpec.vue +0 -36
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TabsListProps } from '
|
|
1
|
+
import type { TabsListProps } from 'reka-ui';
|
|
2
2
|
import type { HTMLAttributes } from 'vue';
|
|
3
|
-
import { TabsList } from '
|
|
3
|
+
import { TabsList } from 'reka-ui';
|
|
4
4
|
import { cn } from '../../../lib/utils';
|
|
5
5
|
type __VLS_Props = TabsListProps & {
|
|
6
6
|
class?: HTMLAttributes['class'];
|
|
@@ -8,7 +8,7 @@ type __VLS_Props = TabsListProps & {
|
|
|
8
8
|
declare const delegatedProps: import("vue").ComputedRef<{
|
|
9
9
|
loop: boolean;
|
|
10
10
|
asChild: boolean;
|
|
11
|
-
as: import("
|
|
11
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
12
12
|
}>;
|
|
13
13
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
14
14
|
declare var __VLS_6: {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { TabsTriggerProps } from '
|
|
1
|
+
import type { TabsTriggerProps } from 'reka-ui';
|
|
2
2
|
import type { HTMLAttributes } from 'vue';
|
|
3
3
|
import type { TabsTriggerVariants } from './index';
|
|
4
|
-
import { TabsTrigger } from '
|
|
4
|
+
import { TabsTrigger } from 'reka-ui';
|
|
5
5
|
import { cn } from '../../../lib/utils';
|
|
6
6
|
import { tabsTriggerVariants } from './index';
|
|
7
7
|
interface Props extends TabsTriggerProps {
|
|
@@ -10,10 +10,10 @@ interface Props extends TabsTriggerProps {
|
|
|
10
10
|
}
|
|
11
11
|
declare const forwardedProps: import("vue").ComputedRef<{
|
|
12
12
|
variant: TabsTriggerVariants["variant"];
|
|
13
|
-
value:
|
|
13
|
+
value: string | number;
|
|
14
14
|
disabled: boolean;
|
|
15
15
|
asChild: boolean;
|
|
16
|
-
as: import("
|
|
16
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
17
17
|
}>;
|
|
18
18
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
19
19
|
declare var __VLS_6: {};
|
|
@@ -2,11 +2,11 @@ import type { OpenAPIDocument } from '../types';
|
|
|
2
2
|
import type { PartialUseThemeConfig } from './useTheme';
|
|
3
3
|
export declare const OPENAPI_LOCAL_KEY: unique symbol;
|
|
4
4
|
export declare function useOpenapi({ spec, config, }?: {
|
|
5
|
-
spec?: OpenAPIDocument;
|
|
5
|
+
spec?: OpenAPIDocument | string;
|
|
6
6
|
config?: PartialUseThemeConfig;
|
|
7
7
|
}): {
|
|
8
8
|
async: ({ spec, }?: {
|
|
9
|
-
spec?: OpenAPIDocument;
|
|
9
|
+
spec?: OpenAPIDocument | string;
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
spec: OpenAPIDocument;
|
|
12
12
|
setSpec: (spec: any) => void;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { OpenAPIDocument, ParsedOpenAPI } from '../../types';
|
|
2
2
|
export declare function parseOpenapi(): {
|
|
3
3
|
transformSync: ({ spec, defaultTag, defaultTagDescription, }: {
|
|
4
|
-
spec: OpenAPIDocument;
|
|
4
|
+
spec: OpenAPIDocument | string;
|
|
5
5
|
defaultTag?: string;
|
|
6
6
|
defaultTagDescription?: string;
|
|
7
7
|
}) => {} & OpenAPIDocument;
|
|
8
8
|
transformAsync: ({ spec, }: {
|
|
9
|
-
spec: ParsedOpenAPI;
|
|
9
|
+
spec: ParsedOpenAPI | string;
|
|
10
10
|
}) => Promise<ParsedOpenAPI>;
|
|
11
11
|
parseSync: ({ spec, defaultTag, defaultTagDescription, }: {
|
|
12
|
-
spec: OpenAPIDocument;
|
|
12
|
+
spec: OpenAPIDocument | string;
|
|
13
13
|
defaultTag?: string;
|
|
14
14
|
defaultTagDescription?: string;
|
|
15
15
|
}) => ParsedOpenAPI;
|
|
16
16
|
parseAsync: ({ spec, defaultTag, defaultTagDescription, }: {
|
|
17
|
-
spec: OpenAPIDocument;
|
|
17
|
+
spec: OpenAPIDocument | string;
|
|
18
18
|
defaultTag?: string;
|
|
19
19
|
defaultTagDescription?: string;
|
|
20
20
|
}) => Promise<ParsedOpenAPI>;
|