@stoplight/elements-core 7.3.10 → 7.5.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/types.d.ts CHANGED
@@ -94,9 +94,11 @@ export declare type Item = {
94
94
  type: 'item';
95
95
  uri: string;
96
96
  };
97
+ export declare type RouterType = 'history' | 'memory' | 'hash' | 'static';
97
98
  export interface RoutingProps {
98
99
  basePath?: string;
99
- router?: 'history' | 'hash' | 'memory';
100
+ staticRouterPath?: string;
101
+ router?: RouterType;
100
102
  }
101
103
  export declare type ParamField = {
102
104
  name: string;
@@ -113,4 +115,5 @@ export interface IArticleHeadings {
113
115
  title?: string;
114
116
  className?: string;
115
117
  minimal?: boolean;
118
+ maxWidth?: number;
116
119
  }
@@ -1,3 +1,3 @@
1
1
  import { IServer } from '@stoplight/types';
2
- export declare const getServersToDisplay: (originalServers: IServer[]) => IServer[];
2
+ export declare const getServersToDisplay: (originalServers: IServer[], mockUrl?: string | undefined) => IServer[];
3
3
  export declare const getServerUrlWithDefaultValues: (server: IServer) => string;
@@ -0,0 +1,2 @@
1
+ import { HttpSecurityScheme } from '@stoplight/types';
2
+ export declare function getDefaultDescription(scheme: HttpSecurityScheme): string;
package/utils/string.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  /// <reference types="lodash" />
2
2
  export declare const caseInsensitivelyEquals: import("lodash").CurriedFunction2<string, string, boolean>;
3
+ export declare function slugify(name: string): string;