@stoplight/elements 9.0.11 → 9.0.12-beta-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/.storybook/main.js +6 -0
- package/.storybook/manager.js +1 -0
- package/.storybook/preview.jsx +3 -0
- package/jest.config.js +7 -0
- package/package.json +76 -16
- package/src/__fixtures__/api-descriptions/Instagram.ts +1859 -0
- package/src/__fixtures__/api-descriptions/badgesForSchema.ts +36 -0
- package/src/__fixtures__/api-descriptions/simpleApiWithInternalOperations.ts +253 -0
- package/src/__fixtures__/api-descriptions/simpleApiWithoutDescription.ts +243 -0
- package/src/__fixtures__/api-descriptions/todosApiBundled.ts +430 -0
- package/src/__fixtures__/api-descriptions/zoomApiYaml.ts +6083 -0
- package/src/components/API/APIWithResponsiveSidebarLayout.tsx +125 -0
- package/src/components/API/APIWithSidebarLayout.tsx +158 -0
- package/src/components/API/APIWithStackedLayout.tsx +286 -0
- package/src/components/API/__tests__/utils.test.ts +1323 -0
- package/src/components/API/utils.ts +206 -0
- package/src/containers/API.spec.tsx +122 -0
- package/src/containers/API.stories.tsx +117 -0
- package/src/containers/API.tsx +277 -0
- package/src/containers/story-helper.tsx +53 -0
- package/src/hooks/useExportDocumentProps.spec.tsx +68 -0
- package/src/hooks/useExportDocumentProps.tsx +48 -0
- package/src/styles.css +1 -0
- package/src/utils/oas/__tests__/oas.spec.ts +411 -0
- package/src/utils/oas/index.ts +192 -0
- package/src/utils/oas/oas2.ts +31 -0
- package/src/utils/oas/oas3.ts +54 -0
- package/src/utils/oas/types.ts +34 -0
- package/src/web-components/__stories__/Api.stories.tsx +63 -0
- package/src/web-components/components.ts +26 -0
- package/src/web-components/index.ts +3 -0
- package/tsconfig.build.json +18 -0
- package/tsconfig.json +7 -0
- package/web-components.config.js +1 -0
- package/__fixtures__/api-descriptions/Instagram.d.ts +0 -1547
- package/__fixtures__/api-descriptions/badgesForSchema.d.ts +0 -1
- package/__fixtures__/api-descriptions/simpleApiWithInternalOperations.d.ts +0 -224
- package/__fixtures__/api-descriptions/simpleApiWithoutDescription.d.ts +0 -212
- package/__fixtures__/api-descriptions/todosApiBundled.d.ts +0 -1
- package/__fixtures__/api-descriptions/zoomApiYaml.d.ts +0 -1
- package/components/API/APIWithResponsiveSidebarLayout.d.ts +0 -25
- package/components/API/APIWithSidebarLayout.d.ts +0 -32
- package/components/API/APIWithStackedLayout.d.ts +0 -29
- package/components/API/utils.d.ts +0 -20
- package/containers/API.d.ts +0 -30
- package/containers/API.spec.d.ts +0 -1
- package/containers/API.stories.d.ts +0 -58
- package/containers/story-helper.d.ts +0 -2
- package/hooks/useExportDocumentProps.d.ts +0 -11
- package/hooks/useExportDocumentProps.spec.d.ts +0 -1
- package/index.esm.js +0 -657
- package/index.js +0 -681
- package/index.mjs +0 -657
- package/styles.min.css +0 -1
- package/utils/oas/index.d.ts +0 -3
- package/utils/oas/oas2.d.ts +0 -2
- package/utils/oas/oas3.d.ts +0 -2
- package/utils/oas/types.d.ts +0 -33
- package/web-components/components.d.ts +0 -1
- package/web-components/index.d.ts +0 -1
- package/web-components.min.js +0 -2
- package/web-components.min.js.LICENSE.txt +0 -176
- /package/{index.d.ts → src/index.ts} +0 -0
package/utils/oas/index.d.ts
DELETED
package/utils/oas/oas2.d.ts
DELETED
package/utils/oas/oas3.d.ts
DELETED
package/utils/oas/types.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { IHttpOperation, IHttpService, IHttpWebhookOperation, NodeType } from '@stoplight/types';
|
|
2
|
-
import { JSONSchema7 } from 'json-schema';
|
|
3
|
-
export declare enum NodeTypes {
|
|
4
|
-
Paths = "paths",
|
|
5
|
-
Path = "path",
|
|
6
|
-
Operation = "operation",
|
|
7
|
-
Webhooks = "webhooks",
|
|
8
|
-
Webhook = "webhook",
|
|
9
|
-
Components = "components",
|
|
10
|
-
Models = "models",
|
|
11
|
-
Model = "model"
|
|
12
|
-
}
|
|
13
|
-
export interface ISourceNodeMap {
|
|
14
|
-
type: string;
|
|
15
|
-
match?: string;
|
|
16
|
-
notMatch?: string;
|
|
17
|
-
children?: ISourceNodeMap[];
|
|
18
|
-
}
|
|
19
|
-
declare type Node<T, D> = {
|
|
20
|
-
type: T;
|
|
21
|
-
uri: string;
|
|
22
|
-
name: string;
|
|
23
|
-
data: D;
|
|
24
|
-
tags: string[];
|
|
25
|
-
};
|
|
26
|
-
export declare type ServiceNode = Node<NodeType.HttpService, IHttpService> & {
|
|
27
|
-
children: ServiceChildNode[];
|
|
28
|
-
};
|
|
29
|
-
export declare type ServiceChildNode = OperationNode | WebhookNode | SchemaNode;
|
|
30
|
-
export declare type OperationNode = Node<NodeType.HttpOperation, IHttpOperation>;
|
|
31
|
-
export declare type WebhookNode = Node<NodeType.HttpWebhook, IHttpWebhookOperation>;
|
|
32
|
-
export declare type SchemaNode = Node<NodeType.Model, JSONSchema7>;
|
|
33
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ApiElement: new () => HTMLElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|