@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.
Files changed (33) hide show
  1. package/dist/LICENSE +190 -0
  2. package/dist/README.md +19 -0
  3. package/dist/__fixtures__/api-descriptions/Instagram.d.ts +1547 -0
  4. package/dist/__fixtures__/api-descriptions/badgesForSchema.d.ts +1 -0
  5. package/dist/__fixtures__/api-descriptions/simpleApiWithInternalOperations.d.ts +224 -0
  6. package/dist/__fixtures__/api-descriptions/simpleApiWithoutDescription.d.ts +212 -0
  7. package/dist/__fixtures__/api-descriptions/todosApiBundled.d.ts +1 -0
  8. package/dist/__fixtures__/api-descriptions/zoomApiYaml.d.ts +1 -0
  9. package/dist/components/API/APIWithResponsiveSidebarLayout.d.ts +25 -0
  10. package/dist/components/API/APIWithSidebarLayout.d.ts +32 -0
  11. package/dist/components/API/APIWithStackedLayout.d.ts +29 -0
  12. package/dist/components/API/utils.d.ts +20 -0
  13. package/dist/containers/API.d.ts +30 -0
  14. package/dist/containers/API.spec.d.ts +1 -0
  15. package/dist/containers/API.stories.d.ts +58 -0
  16. package/dist/containers/story-helper.d.ts +2 -0
  17. package/dist/hooks/useExportDocumentProps.d.ts +11 -0
  18. package/dist/hooks/useExportDocumentProps.spec.d.ts +1 -0
  19. package/dist/index.d.ts +6 -0
  20. package/dist/index.esm.js +657 -0
  21. package/dist/index.js +681 -0
  22. package/dist/index.mjs +657 -0
  23. package/dist/package.json +52 -0
  24. package/dist/styles.min.css +1 -0
  25. package/dist/utils/oas/index.d.ts +3 -0
  26. package/dist/utils/oas/oas2.d.ts +2 -0
  27. package/dist/utils/oas/oas3.d.ts +2 -0
  28. package/dist/utils/oas/types.d.ts +33 -0
  29. package/dist/web-components/components.d.ts +1 -0
  30. package/dist/web-components/index.d.ts +1 -0
  31. package/dist/web-components.min.js +2 -0
  32. package/dist/web-components.min.js.LICENSE.txt +176 -0
  33. 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,2 @@
1
+ export declare const renderExtensionRenderer: (props: any) => JSX.Element | null;
2
+ export declare const wrapOptionsContext: (story: any) => JSX.Element;
@@ -0,0 +1,11 @@
1
+ export declare function useExportDocumentProps({ originalDocument, bundledDocument, }: {
2
+ originalDocument: string | object;
3
+ bundledDocument: unknown;
4
+ }): {
5
+ original: {
6
+ onPress: () => void;
7
+ };
8
+ bundled: {
9
+ onPress: () => void;
10
+ };
11
+ };
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -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';