@stoplight/elements-core 7.4.0 → 7.5.2

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;
@@ -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;
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;