@stoplight/elements-core 7.6.5 → 7.7.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/__fixtures__/operations/operation-minimal.d.ts +2 -0
- package/components/Docs/Docs.d.ts +2 -1
- package/components/Docs/HttpOperation/Body.d.ts +1 -1
- package/components/Docs/HttpService/AdditionalInfo.d.ts +1 -0
- package/components/Docs/HttpService/ServerInfo.d.ts +1 -1
- package/components/LinkHeading.d.ts +3 -0
- package/components/TryIt/Body/request-body-utils.d.ts +1 -1
- package/components/TryIt/Servers/ServersDropdown.d.ts +1 -1
- package/components/TryIt/TryIt.d.ts +1 -1
- package/components/TryIt/build-request.d.ts +5 -2
- package/components/TryIt/build-request.spec.d.ts +1 -0
- package/components/TryIt/chosenServer.d.ts +1 -1
- package/context/Options.d.ts +9 -0
- package/context/RouterType.d.ts +3 -0
- package/index.esm.js +245 -74
- package/index.js +245 -74
- package/index.mjs +245 -74
- package/package.json +6 -6
- package/styles.min.css +1 -1
- package/utils/http-spec/IServer.d.ts +1 -2
- package/utils/ref-resolving/ReferenceResolver.d.ts +1 -1
- package/utils/ref-resolving/resolvedObject.d.ts +3 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IServer
|
|
2
|
-
export declare type IServer = Omit<_IServer, 'id'>;
|
|
1
|
+
import type { IServer } from '@stoplight/types';
|
|
3
2
|
export declare const getServersToDisplay: (originalServers: IServer[], mockUrl?: string | undefined) => IServer[];
|
|
4
3
|
export declare const getServerUrlWithDefaultValues: (server: IServer) => string | null;
|
|
@@ -2,5 +2,5 @@ export declare type ReferenceInfo = {
|
|
|
2
2
|
source: string | null;
|
|
3
3
|
pointer: string | null;
|
|
4
4
|
};
|
|
5
|
-
export declare type ReferenceResolver = (ref: ReferenceInfo, propertyPath: string[] | null, currentObject
|
|
5
|
+
export declare type ReferenceResolver = (ref: ReferenceInfo, propertyPath: string[] | null, currentObject?: object) => any;
|
|
6
6
|
export declare const defaultResolver: (contextObject: object) => ReferenceResolver;
|
|
@@ -6,4 +6,7 @@ interface CreateResolvedObjectOptions {
|
|
|
6
6
|
export declare const createResolvedObject: (currentObject: object, options?: CreateResolvedObjectOptions) => object;
|
|
7
7
|
export declare const isResolvedObjectProxy: (someObject: object) => boolean;
|
|
8
8
|
export declare const getOriginalObject: (resolvedObject: object) => object;
|
|
9
|
+
export declare const isReference: (obj: unknown) => obj is Record<string, unknown> & {
|
|
10
|
+
$ref: string;
|
|
11
|
+
};
|
|
9
12
|
export {};
|