@stoplight/elements 9.0.12-beta-0.1 → 9.0.12-beta-0.3
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/dist/LICENSE +190 -0
- package/dist/README.md +19 -0
- package/dist/__fixtures__/api-descriptions/Instagram.d.ts +1547 -0
- package/dist/__fixtures__/api-descriptions/badgesForSchema.d.ts +1 -0
- package/dist/__fixtures__/api-descriptions/simpleApiWithInternalOperations.d.ts +224 -0
- package/dist/__fixtures__/api-descriptions/simpleApiWithoutDescription.d.ts +212 -0
- package/dist/__fixtures__/api-descriptions/todosApiBundled.d.ts +1 -0
- package/dist/__fixtures__/api-descriptions/zoomApiYaml.d.ts +1 -0
- package/dist/components/API/APIWithResponsiveSidebarLayout.d.ts +25 -0
- package/dist/components/API/APIWithSidebarLayout.d.ts +32 -0
- package/dist/components/API/APIWithStackedLayout.d.ts +29 -0
- package/dist/components/API/utils.d.ts +20 -0
- package/dist/containers/API.d.ts +30 -0
- package/dist/containers/API.spec.d.ts +1 -0
- package/dist/containers/API.stories.d.ts +58 -0
- package/dist/containers/story-helper.d.ts +2 -0
- package/dist/hooks/useExportDocumentProps.d.ts +11 -0
- package/dist/hooks/useExportDocumentProps.spec.d.ts +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.esm.js +657 -0
- package/dist/index.js +681 -0
- package/dist/index.mjs +657 -0
- package/dist/package.json +52 -0
- package/dist/styles.min.css +1 -0
- package/dist/utils/oas/index.d.ts +3 -0
- package/dist/utils/oas/oas2.d.ts +2 -0
- package/dist/utils/oas/oas3.d.ts +2 -0
- package/dist/utils/oas/types.d.ts +33 -0
- package/dist/web-components/components.d.ts +1 -0
- package/dist/web-components/index.d.ts +1 -0
- package/dist/web-components.min.js +2 -0
- package/dist/web-components.min.js.LICENSE.txt +176 -0
- package/package.json +2 -2
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { RoutingProps } from '@stoplight/elements-core';
|
|
2
|
+
import { ExtensionAddonRenderer } from '@stoplight/elements-core/components/Docs';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export declare type APIProps = APIPropsWithDocument | APIPropsWithUrl;
|
|
5
|
+
export declare type APIPropsWithUrl = {
|
|
6
|
+
apiDescriptionUrl: string;
|
|
7
|
+
} & CommonAPIProps;
|
|
8
|
+
export declare type APIPropsWithDocument = {
|
|
9
|
+
apiDescriptionDocument: string | object;
|
|
10
|
+
apiDescriptionUrl?: string;
|
|
11
|
+
} & CommonAPIProps;
|
|
12
|
+
export interface CommonAPIProps extends RoutingProps {
|
|
13
|
+
layout?: 'sidebar' | 'stacked' | 'responsive';
|
|
14
|
+
logo?: string;
|
|
15
|
+
hideTryIt?: boolean;
|
|
16
|
+
hideSamples?: boolean;
|
|
17
|
+
hideTryItPanel?: boolean;
|
|
18
|
+
hideSecurityInfo?: boolean;
|
|
19
|
+
hideServerInfo?: boolean;
|
|
20
|
+
hideSchemas?: boolean;
|
|
21
|
+
hideInternal?: boolean;
|
|
22
|
+
hideExport?: boolean;
|
|
23
|
+
tryItCredentialsPolicy?: 'omit' | 'include' | 'same-origin';
|
|
24
|
+
tryItCorsProxy?: string;
|
|
25
|
+
maxRefDepth?: number;
|
|
26
|
+
renderExtensionAddon?: ExtensionAddonRenderer;
|
|
27
|
+
outerRouter?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare const APIImpl: React.FC<APIProps>;
|
|
30
|
+
export declare const API: React.FC<APIProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { APIProps } from './API';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.FC<APIProps>;
|
|
6
|
+
argTypes: {
|
|
7
|
+
apiDescriptionDocument: {
|
|
8
|
+
control: string;
|
|
9
|
+
type: {
|
|
10
|
+
required: boolean;
|
|
11
|
+
};
|
|
12
|
+
table: {
|
|
13
|
+
category: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
apiDescriptionUrl: {
|
|
17
|
+
control: string;
|
|
18
|
+
table: {
|
|
19
|
+
category: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
layout: {
|
|
23
|
+
control: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
table: {
|
|
27
|
+
category: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
basePath: {
|
|
31
|
+
table: {
|
|
32
|
+
category: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
router: {
|
|
36
|
+
table: {
|
|
37
|
+
category: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
args: {
|
|
42
|
+
router: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export default _default;
|
|
46
|
+
export declare const APIWithYamlProvidedDirectly: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, APIProps>;
|
|
47
|
+
export declare const APIWithJSONProvidedDirectly: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, APIProps>;
|
|
48
|
+
export declare const APIWithoutDescription: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, APIProps>;
|
|
49
|
+
export declare const APIWithInternalOperations: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, APIProps>;
|
|
50
|
+
export declare const OpenApi3Schema: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, APIProps>;
|
|
51
|
+
export declare const BadgesForSchema: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, APIProps>;
|
|
52
|
+
export declare const StackedLayout: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, APIProps>;
|
|
53
|
+
export declare const ResponsiveLayout: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, APIProps>;
|
|
54
|
+
export declare const Box: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, APIProps>;
|
|
55
|
+
export declare const DigitalOcean: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, APIProps>;
|
|
56
|
+
export declare const Github: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, APIProps>;
|
|
57
|
+
export declare const Instagram: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, APIProps>;
|
|
58
|
+
export declare const WithExtensionRenderer: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, APIProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { APIWithStackedLayout } from './components/API/APIWithStackedLayout';
|
|
2
|
+
export type { APIProps } from './containers/API';
|
|
3
|
+
export { API } from './containers/API';
|
|
4
|
+
export { useExportDocumentProps } from './hooks/useExportDocumentProps';
|
|
5
|
+
export { transformOasToServiceNode } from './utils/oas';
|
|
6
|
+
export type { ServiceNode } from './utils/oas/types';
|