@stoplight/elements-core 7.16.6 → 8.0.1
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/Article.stories.d.ts +4 -4
- package/components/Docs/Docs.stories.d.ts +1 -1
- package/components/Docs/HttpOperation/HttpOperation.d.ts +2 -2
- package/components/Docs/HttpOperation/HttpOperation.stories.d.ts +2 -2
- package/components/Docs/HttpOperation/Request.d.ts +2 -2
- package/components/Docs/HttpService/HttpService.stories.d.ts +2 -2
- package/components/Docs/Model/Model.stories.d.ts +2 -2
- package/components/Layout/MobileTopNav.d.ts +9 -0
- package/components/Layout/ResponsiveSidebarLayout.d.ts +22 -0
- package/components/Logo.d.ts +4 -10
- package/components/RequestSamples/RequestSamples.stories.d.ts +2 -2
- package/components/ResponseExamples/ResponseExamples.d.ts +2 -2
- package/components/ResponseExamples/ResponseExamples.stories.d.ts +2 -2
- package/components/{MosaicTableOfContents → TableOfContents}/constants.d.ts +6 -4
- package/components/{MosaicTableOfContents → TableOfContents}/index.d.ts +1 -0
- package/components/{MosaicTableOfContents → TableOfContents}/types.d.ts +2 -1
- package/components/TryIt/Parameters/useOperationParameters.d.ts +2 -2
- package/components/TryIt/TryIt.d.ts +2 -2
- package/components/TryIt/TryIt.stories.d.ts +11 -11
- package/components/TryIt/TryItWithRequestSamples.stories.d.ts +3 -3
- package/hooks/useResponsiveLayout.d.ts +13 -0
- package/index.d.ts +7 -4
- package/index.esm.js +387 -191
- package/index.js +388 -188
- package/index.mjs +387 -191
- package/package.json +3 -3
- package/styles.min.css +1 -1
- package/types.d.ts +10 -1
- package/utils/guards.d.ts +2 -1
- /package/components/{MosaicTableOfContents → TableOfContents}/TableOfContents.d.ts +0 -0
- /package/components/{MosaicTableOfContents → TableOfContents}/TableOfContents.spec.d.ts +0 -0
- /package/components/{MosaicTableOfContents → TableOfContents}/TableOfContents.stories.d.ts +0 -0
- /package/components/{MosaicTableOfContents → TableOfContents}/utils.d.ts +0 -0
package/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IMarkdownViewerProps } from '@stoplight/markdown-viewer';
|
|
2
|
-
import { IHttpOperation, IHttpService, NodeType } from '@stoplight/types';
|
|
2
|
+
import { IHttpOperation, IHttpService, IHttpWebhookOperation, 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 = {
|
|
@@ -8,6 +8,9 @@ export declare type ParsedNode = {
|
|
|
8
8
|
} | {
|
|
9
9
|
type: NodeType.HttpOperation;
|
|
10
10
|
data: IHttpOperation;
|
|
11
|
+
} | {
|
|
12
|
+
type: NodeType.HttpWebhook;
|
|
13
|
+
data: IHttpWebhookOperation;
|
|
11
14
|
} | {
|
|
12
15
|
type: NodeType.HttpService;
|
|
13
16
|
data: IHttpService;
|
|
@@ -105,3 +108,9 @@ export declare type ParamField = {
|
|
|
105
108
|
description: string;
|
|
106
109
|
example: string;
|
|
107
110
|
};
|
|
111
|
+
export declare type LogoProps = {
|
|
112
|
+
altText: string;
|
|
113
|
+
url?: string;
|
|
114
|
+
backgroundColor?: string;
|
|
115
|
+
href?: string;
|
|
116
|
+
};
|
package/utils/guards.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { IMarkdownViewerProps } from '@stoplight/markdown-viewer';
|
|
2
|
-
import { IHttpOperation, IHttpService } from '@stoplight/types';
|
|
2
|
+
import { IHttpOperation, IHttpService, IHttpWebhookOperation } from '@stoplight/types';
|
|
3
3
|
import { JSONSchema7 } from 'json-schema';
|
|
4
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;
|
|
8
|
+
export declare function isHttpWebhookOperation(maybeHttpWebhookOperation: unknown): maybeHttpWebhookOperation is IHttpWebhookOperation;
|
|
8
9
|
export declare function isProperUrl(url: string): boolean;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|