@stoplight/elements-core 8.0.0 → 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.
@@ -1,13 +1,13 @@
1
- declare const meta: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, {
1
+ declare const meta: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
2
2
  data: any;
3
3
  } & import("@stoplight/react-error-boundary").ErrorBoundaryProps<{}>>;
4
4
  export default meta;
5
- export declare const Basic: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
5
+ export declare const Basic: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
6
6
  data: any;
7
7
  } & import("@stoplight/react-error-boundary").ErrorBoundaryProps<{}>>;
8
- export declare const KitchenSink: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
8
+ export declare const KitchenSink: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
9
9
  data: any;
10
10
  } & import("@stoplight/react-error-boundary").ErrorBoundaryProps<{}>>;
11
- export declare const MultipleTryIts: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
11
+ export declare const MultipleTryIts: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
12
12
  data: any;
13
13
  } & import("@stoplight/react-error-boundary").ErrorBoundaryProps<{}>>;
@@ -1,5 +1,5 @@
1
1
  import { Story } from '@storybook/react';
2
2
  import { DocsProps } from './Docs';
3
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, DocsProps>;
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, DocsProps>;
4
4
  export default _default;
5
5
  export declare const DocsStory: Story<DocsProps>;
@@ -1,7 +1,7 @@
1
- declare const meta: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, {
1
+ declare const meta: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
2
2
  data: any;
3
3
  } & import("@stoplight/react-error-boundary").ErrorBoundaryProps<{}>>;
4
4
  export default meta;
5
- export declare const Story: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
5
+ export declare const Story: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
6
6
  data: any;
7
7
  } & import("@stoplight/react-error-boundary").ErrorBoundaryProps<{}>>;
@@ -1,7 +1,7 @@
1
- declare const meta: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, {
1
+ declare const meta: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
2
2
  data: any;
3
3
  } & import("@stoplight/react-error-boundary").ErrorBoundaryProps<{}>>;
4
4
  export default meta;
5
- export declare const Story: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
5
+ export declare const Story: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
6
6
  data: any;
7
7
  } & import("@stoplight/react-error-boundary").ErrorBoundaryProps<{}>>;
@@ -1,7 +1,7 @@
1
- declare const meta: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, {
1
+ declare const meta: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
2
2
  data: any;
3
3
  } & import("@stoplight/react-error-boundary").ErrorBoundaryProps<{}>>;
4
4
  export default meta;
5
- export declare const Story: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
5
+ export declare const Story: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
6
6
  data: any;
7
7
  } & import("@stoplight/react-error-boundary").ErrorBoundaryProps<{}>>;
@@ -0,0 +1,9 @@
1
+ import { LogoProps } from '../../types';
2
+ import type { TableOfContentsItem } from '../TableOfContents';
3
+ export declare const MobileTopNav: ({ name, logo, tree, pathname, onTocClick, }: {
4
+ name: string;
5
+ logo?: string | LogoProps | undefined;
6
+ tree: TableOfContentsItem[];
7
+ pathname: string;
8
+ onTocClick(): void;
9
+ }) => JSX.Element;
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ import { LogoProps } from '../../types';
3
+ import type { TableOfContentsItem } from '../TableOfContents';
4
+ declare type ResponsiveSidebarLayoutProps = {
5
+ maxContentWidth?: number;
6
+ sidebarWidth?: number;
7
+ children?: React.ReactNode;
8
+ name: string;
9
+ logo?: string | LogoProps;
10
+ tree?: TableOfContentsItem[];
11
+ onTocClick?(): void;
12
+ };
13
+ export declare const ResponsiveSidebarLayout: React.ForwardRefExoticComponent<ResponsiveSidebarLayoutProps & React.RefAttributes<HTMLDivElement>>;
14
+ export declare const Sidebar: ({ name, logo, tree, pathname, onTocClick, isInResponsiveMode, }: {
15
+ name: string;
16
+ logo?: string | LogoProps | undefined;
17
+ tree: TableOfContentsItem[];
18
+ pathname: string;
19
+ onTocClick?(): void;
20
+ isInResponsiveMode: boolean;
21
+ }) => JSX.Element;
22
+ export {};
@@ -1,11 +1,5 @@
1
1
  import * as React from 'react';
2
- interface LogoProps {
3
- logo: {
4
- altText: string;
5
- url?: string;
6
- backgroundColor?: string;
7
- href?: string;
8
- };
9
- }
10
- export declare const Logo: React.FC<LogoProps>;
11
- export {};
2
+ import { LogoProps } from '../types';
3
+ export declare const Logo: React.FC<{
4
+ logo: LogoProps;
5
+ }>;
@@ -1,4 +1,4 @@
1
1
  import { RequestSamplesProps } from './RequestSamples';
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, RequestSamplesProps>;
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, RequestSamplesProps>;
3
3
  export default _default;
4
- export declare const HoistedStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, RequestSamplesProps>;
4
+ export declare const HoistedStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, RequestSamplesProps>;
@@ -1,4 +1,4 @@
1
1
  import { ResponseExamplesProps } from './ResponseExamples';
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, ResponseExamplesProps>;
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, ResponseExamplesProps>;
3
3
  export default _default;
4
- export declare const HoistedStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, ResponseExamplesProps>;
4
+ export declare const HoistedStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ResponseExamplesProps>;
@@ -1 +1,2 @@
1
1
  export * from './TableOfContents';
2
+ export * from './types';
@@ -1,13 +1,13 @@
1
1
  import { TryItProps } from './TryIt';
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, TryItProps>;
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, TryItProps>;
3
3
  export default _default;
4
- export declare const SimpleGET: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, TryItProps>;
5
- export declare const WithParameters: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, TryItProps>;
6
- export declare const WithVariables: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, TryItProps>;
7
- export declare const UrlEncoded: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, TryItProps>;
8
- export declare const UrlEncodedOneOf: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, TryItProps>;
9
- export declare const Multipart: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, TryItProps>;
10
- export declare const RequestBodySchema: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, TryItProps>;
11
- export declare const RequestBodyExamples: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, TryItProps>;
12
- export declare const TryItAuth: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, TryItProps>;
13
- export declare const TryItAuthDuplicated: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, TryItProps>;
4
+ export declare const SimpleGET: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TryItProps>;
5
+ export declare const WithParameters: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TryItProps>;
6
+ export declare const WithVariables: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TryItProps>;
7
+ export declare const UrlEncoded: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TryItProps>;
8
+ export declare const UrlEncodedOneOf: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TryItProps>;
9
+ export declare const Multipart: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TryItProps>;
10
+ export declare const RequestBodySchema: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TryItProps>;
11
+ export declare const RequestBodyExamples: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TryItProps>;
12
+ export declare const TryItAuth: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TryItProps>;
13
+ export declare const TryItAuthDuplicated: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TryItProps>;
@@ -1,5 +1,5 @@
1
1
  import { TryItWithRequestSamplesProps } from './TryItWithRequestSamples';
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, TryItWithRequestSamplesProps>;
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, TryItWithRequestSamplesProps>;
3
3
  export default _default;
4
- export declare const WithParameters: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, TryItWithRequestSamplesProps>;
5
- export declare const WithVariables: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, TryItWithRequestSamplesProps>;
4
+ export declare const WithParameters: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TryItWithRequestSamplesProps>;
5
+ export declare const WithVariables: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TryItWithRequestSamplesProps>;
@@ -0,0 +1,13 @@
1
+ declare type ElementsNode = 'docs';
2
+ export declare enum ScreenType {
3
+ Phone = 415,
4
+ Tablet = 750,
5
+ Resized_Browser = 980,
6
+ Normal_Browser = 1000000
7
+ }
8
+ export declare const useResponsiveLayout: () => {
9
+ isResponsiveLayoutEnabled: boolean;
10
+ screenType: ScreenType | undefined;
11
+ getElementsBreakpoint: (node: ElementsNode) => number;
12
+ };
13
+ export {};
package/index.d.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  export { Docs, DocsProps, ParsedDocs } from './components/Docs';
2
2
  export { DeprecatedBadge } from './components/Docs/HttpOperation/Badges';
3
3
  export { ExportButton, ExportButtonProps } from './components/Docs/HttpService/ExportButton';
4
+ export { ResponsiveSidebarLayout } from './components/Layout/ResponsiveSidebarLayout';
4
5
  export { SidebarLayout } from './components/Layout/SidebarLayout';
6
+ export { LinkHeading } from './components/LinkHeading';
5
7
  export { Logo } from './components/Logo';
6
8
  export { DefaultSMDComponents } from './components/MarkdownViewer/CustomComponents/CodeComponent';
7
9
  export { CustomComponentMapping, MarkdownComponentsProvider, } from './components/MarkdownViewer/CustomComponents/Provider';
@@ -23,6 +25,7 @@ export { withRouter } from './hoc/withRouter';
23
25
  export { useBundleRefsIntoDocument } from './hooks/useBundleRefsIntoDocument';
24
26
  export { useParsedData } from './hooks/useParsedData';
25
27
  export { useParsedValue } from './hooks/useParsedValue';
28
+ export { useResponsiveLayout } from './hooks/useResponsiveLayout';
26
29
  export { useRouter } from './hooks/useRouter';
27
30
  export { Styled, withStyles } from './styled';
28
31
  export { Divider, Group, ITableOfContentsTree, Item, ParsedNode, RoutingProps, TableOfContentItem } from './types';