@jpmorganchase/elemental 7.0.1 → 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.
@@ -5,15 +5,24 @@ import { ServiceNode } from '../../utils/oas/types';
5
5
  declare type SidebarLayoutProps = {
6
6
  serviceNode: ServiceNode;
7
7
  logo?: string;
8
+ hideTryItPanel?: boolean;
8
9
  hideTryIt?: boolean;
10
+ hideSamples?: boolean;
9
11
  hideSchemas?: boolean;
10
12
  hideInternal?: boolean;
11
13
  hideExport?: boolean;
14
+ hideInlineExamples?: boolean;
15
+ hideServerInfo?: boolean;
16
+ hideSecurityInfo?: boolean;
12
17
  exportProps?: ExportButtonProps;
13
18
  tryItCredentialsPolicy?: 'omit' | 'include' | 'same-origin';
14
19
  tryItCorsProxy?: string;
15
20
  compact?: number | boolean;
16
21
  renderExtensionAddon?: ExtensionAddonRenderer;
22
+ basePath?: string;
23
+ outerRouter?: boolean;
24
+ tryItOutDefaultServer?: string;
25
+ useCustomNav?: boolean;
17
26
  };
18
27
  export declare const APIWithResponsiveSidebarLayout: React.FC<SidebarLayoutProps>;
19
28
  export {};
@@ -5,15 +5,21 @@ import { ServiceNode } from '../../utils/oas/types';
5
5
  declare type SidebarLayoutProps = {
6
6
  serviceNode: ServiceNode;
7
7
  logo?: string;
8
+ hideTryItPanel?: boolean;
8
9
  hideTryIt?: boolean;
10
+ hideSamples?: boolean;
9
11
  hideSchemas?: boolean;
10
12
  hideInternal?: boolean;
13
+ hideServerInfo?: boolean;
14
+ hideSecurityInfo?: boolean;
11
15
  hideExport?: boolean;
12
16
  hideInlineExamples?: boolean;
13
17
  exportProps?: ExportButtonProps;
14
18
  tryItCredentialsPolicy?: 'omit' | 'include' | 'same-origin';
15
19
  tryItCorsProxy?: string;
16
20
  renderExtensionAddon?: ExtensionAddonRenderer;
21
+ basePath?: string;
22
+ outerRouter?: boolean;
17
23
  tryItOutDefaultServer?: string;
18
24
  useCustomNav?: boolean;
19
25
  layout?: 'sidebar' | 'drawer';
@@ -12,15 +12,19 @@ interface Location {
12
12
  }
13
13
  declare type StackedLayoutProps = {
14
14
  serviceNode: ServiceNode;
15
+ hideTryItPanel?: boolean;
15
16
  hideTryIt?: boolean;
17
+ hideSamples?: boolean;
16
18
  hideExport?: boolean;
17
- hideInlineExamples?: boolean;
19
+ hideServerInfo?: boolean;
20
+ hideSecurityInfo?: boolean;
18
21
  exportProps?: ExportButtonProps;
19
22
  tryItCredentialsPolicy?: TryItCredentialsPolicy;
20
23
  tryItCorsProxy?: string;
21
24
  showPoweredByLink?: boolean;
22
25
  location: Location;
23
26
  renderExtensionAddon?: ExtensionAddonRenderer;
27
+ hideInlineExamples?: boolean;
24
28
  tryItOutDefaultServer?: string;
25
29
  };
26
30
  export declare const APIWithStackedLayout: React.FC<StackedLayoutProps>;
@@ -16,4 +16,5 @@ interface ComputeAPITreeConfig {
16
16
  export declare const computeAPITree: (serviceNode: ServiceNode, config?: ComputeAPITreeConfig) => TableOfContentsItem[];
17
17
  export declare const findFirstNodeSlug: (tree: TableOfContentsItem[]) => string | void;
18
18
  export declare const isInternal: (node: ServiceChildNode | ServiceNode) => boolean;
19
+ export declare const resolveRelativePath: (currentPath: string, basePath: string, outerRouter: boolean) => string;
19
20
  export {};
@@ -13,6 +13,10 @@ export interface CommonAPIProps extends RoutingProps {
13
13
  layout?: 'sidebar' | 'stacked' | 'responsive' | 'drawer';
14
14
  logo?: string;
15
15
  hideTryIt?: boolean;
16
+ hideSamples?: boolean;
17
+ hideTryItPanel?: boolean;
18
+ hideSecurityInfo?: boolean;
19
+ hideServerInfo?: boolean;
16
20
  hideSchemas?: boolean;
17
21
  hideInternal?: boolean;
18
22
  hideExport?: boolean;
@@ -21,6 +25,7 @@ export interface CommonAPIProps extends RoutingProps {
21
25
  tryItCorsProxy?: string;
22
26
  maxRefDepth?: number;
23
27
  renderExtensionAddon?: ExtensionAddonRenderer;
28
+ outerRouter?: boolean;
24
29
  tryItOutDefaultServer?: string;
25
30
  useCustomNav?: boolean;
26
31
  }
@@ -1,3 +1 @@
1
1
  import '@testing-library/jest-dom';
2
- import * as React from 'react';
3
- export declare const APIWithoutRouter: React.FC<import("./API").APIProps>;