@stoplight/elements-core 7.5.8 → 7.5.12
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/components/Docs/Article/index.d.ts +2 -2
- package/components/Docs/story-helper.d.ts +1 -1
- package/components/MarkdownViewer/CustomComponents/ResolvedImage.d.ts +1 -1
- package/core.css +77 -0
- package/index.esm.js +15 -109
- package/index.js +7 -102
- package/index.mjs +15 -109
- package/package.json +5 -7
- package/styles.min.css +1 -1
- package/types.d.ts +2 -14
- package/utils/guards.d.ts +2 -2
- package/components/Docs/Article/Headings.d.ts +0 -5
- package/hooks/useComponentSize.d.ts +0 -4
- package/hooks/useComputeMarkdownHeadings.d.ts +0 -4
- package/hooks/useLocationHash.d.ts +0 -1
package/types.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IMarkdownViewerProps } from '@stoplight/markdown-viewer';
|
|
2
2
|
import { IHttpOperation, IHttpService, NodeType } from '@stoplight/types';
|
|
3
3
|
import { JSONSchema4, JSONSchema6, JSONSchema7 } from 'json-schema';
|
|
4
4
|
export declare type JSONSchema = JSONSchema4 | JSONSchema6 | JSONSchema7;
|
|
5
5
|
export declare type ParsedNode = {
|
|
6
6
|
type: NodeType.Article;
|
|
7
|
-
data:
|
|
7
|
+
data: IMarkdownViewerProps['markdown'];
|
|
8
8
|
} | {
|
|
9
9
|
type: NodeType.HttpOperation;
|
|
10
10
|
data: IHttpOperation;
|
|
@@ -105,15 +105,3 @@ export declare type ParamField = {
|
|
|
105
105
|
description: string;
|
|
106
106
|
example: string;
|
|
107
107
|
};
|
|
108
|
-
export interface IArticleHeading {
|
|
109
|
-
id: string;
|
|
110
|
-
title: string;
|
|
111
|
-
depth: number;
|
|
112
|
-
}
|
|
113
|
-
export interface IArticleHeadings {
|
|
114
|
-
headings: IArticleHeading[];
|
|
115
|
-
title?: string;
|
|
116
|
-
className?: string;
|
|
117
|
-
minimal?: boolean;
|
|
118
|
-
maxWidth?: number;
|
|
119
|
-
}
|
package/utils/guards.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IMarkdownViewerProps } from '@stoplight/markdown-viewer';
|
|
2
2
|
import { IHttpOperation, IHttpService } from '@stoplight/types';
|
|
3
3
|
import { JSONSchema7 } from 'json-schema';
|
|
4
|
-
export declare function isSMDASTRoot(maybeAst: unknown): maybeAst is
|
|
4
|
+
export declare function isSMDASTRoot(maybeAst: unknown): maybeAst is IMarkdownViewerProps['markdown'];
|
|
5
5
|
export declare function isJSONSchema(maybeSchema: unknown): maybeSchema is JSONSchema7;
|
|
6
6
|
export declare function isHttpService(maybeHttpService: unknown): maybeHttpService is IHttpService;
|
|
7
7
|
export declare function isHttpOperation(maybeHttpOperation: unknown): maybeHttpOperation is IHttpOperation;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useLocationHash(): string | false;
|