vitepress-openapi 0.1.15 → 0.1.16

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.
@@ -94,6 +94,9 @@ export interface ServerConfig {
94
94
  allowCustomServer?: boolean;
95
95
  getServers?: GetServersFunction | null;
96
96
  }
97
+ export interface StorageConfig {
98
+ prefix?: string;
99
+ }
97
100
  export interface OperationLinkConfig {
98
101
  linkPrefix?: string;
99
102
  transformHref?: (href: string) => string;
@@ -119,6 +122,7 @@ export interface UseThemeConfig {
119
122
  codeSamples?: Partial<CodeSamplesConfig>;
120
123
  linksPrefixes?: Partial<LinksPrefixesConfig>;
121
124
  server?: Partial<ServerConfig>;
125
+ storage?: Partial<StorageConfig>;
122
126
  markdown?: Partial<MarkdownConfig>;
123
127
  }
124
128
  export interface CodeSamplesConfig {
@@ -154,6 +158,7 @@ type GetServersFunction = ({ method, path, operation }: {
154
158
  }) => string[] | null;
155
159
  export declare const DEFAULT_OPERATION_SLOTS: OperationSlot[];
156
160
  export declare const DEFAULT_BASE_URL = "http://localhost";
161
+ export declare const DEFAULT_STORAGE_PREFIX = "--oa";
157
162
  export declare const availableLanguages: LanguageConfig[];
158
163
  export declare function useTheme(initialConfig?: PartialUseThemeConfig): {
159
164
  isDark: import("vue").WritableComputedRef<boolean, boolean>;
@@ -270,6 +275,9 @@ export declare function useTheme(initialConfig?: PartialUseThemeConfig): {
270
275
  allowCustomServer?: boolean | undefined;
271
276
  getServers?: {} | null | undefined;
272
277
  } | undefined;
278
+ storage?: {
279
+ prefix?: string | undefined;
280
+ } | undefined;
273
281
  markdown?: {
274
282
  operationLink?: false | {
275
283
  linkPrefix?: string | undefined;
@@ -354,5 +362,7 @@ export declare function useTheme(initialConfig?: PartialUseThemeConfig): {
354
362
  getExternalLinksNewTab: () => boolean;
355
363
  setMarkdownConfig: (config: Partial<UnwrapNestedRefs<MarkdownConfig>>) => void;
356
364
  getOperationLinkConfig: () => OperationLinkConfig | false | undefined;
365
+ getStoragePrefix: () => string;
366
+ setStorageConfig: (config: Partial<StorageConfig>) => void;
357
367
  };
358
368
  export {};