@jpmorganchase/elemental-dev-portal 2.9.2 → 2.11.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/components/BranchSelector/BranchSelector.spec.d.ts +2 -15
- package/components/DevPortalProvider/index.d.ts +1 -0
- package/components/NodeContent/NodeContent.d.ts +3 -2
- package/components/Search/SearchOverlay.d.ts +16 -0
- package/containers/StoplightProject.d.ts +2 -0
- package/handlers/getBranches.d.ts +2 -2
- package/hooks/useGetBranches.d.ts +1 -1
- package/index.esm.js +436 -382
- package/index.js +454 -407
- package/index.mjs +436 -382
- package/package.json +7 -7
- package/styles.min.css +1 -1
- package/types.d.ts +3 -1
- package/version.d.ts +1 -1
- package/web-components.min.js +1 -1
- package/web-components.min.js.LICENSE.txt +34 -25
@@ -1,15 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
slug: string;
|
4
|
-
is_default: boolean;
|
5
|
-
is_published: boolean;
|
6
|
-
projectId: number;
|
7
|
-
name: string;
|
8
|
-
} | {
|
9
|
-
id: number;
|
10
|
-
slug: string;
|
11
|
-
is_default: boolean;
|
12
|
-
is_published: boolean;
|
13
|
-
projectId: number;
|
14
|
-
name?: undefined;
|
15
|
-
})[];
|
1
|
+
import { Branch } from '../../types';
|
2
|
+
export declare const branches: Branch[];
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
2
2
|
export declare type DevPortalProviderProps = {
|
3
3
|
platformUrl?: string;
|
4
4
|
platformAuthToken?: string;
|
5
|
+
isLoggedIn?: boolean;
|
5
6
|
};
|
6
7
|
export declare const PlatformContext: React.Context<DevPortalProviderProps>;
|
7
8
|
export declare const DevPortalProvider: React.FC<DevPortalProviderProps>;
|
@@ -1,15 +1,16 @@
|
|
1
1
|
import { CustomLinkComponent, DocsProps, ReferenceResolver } from '@jpmorganchase/elemental-core';
|
2
2
|
import { Node } from '../../types';
|
3
3
|
declare type DocsBaseProps = Pick<DocsProps, 'tryItCorsProxy' | 'tryItCredentialsPolicy' | 'nodeHasChanged' | 'nodeUnsupported'>;
|
4
|
-
declare type DocsLayoutProps = Pick<Required<DocsProps>['layoutOptions'], 'compact' | 'hideTryIt' | 'hideTryItPanel' | 'hideExport'>;
|
4
|
+
declare type DocsLayoutProps = Pick<Required<DocsProps>['layoutOptions'], 'compact' | 'hideTryIt' | 'hideTryItPanel' | 'hideSamples' | 'hideExport' | 'hideSecurityInfo' | 'hideServerInfo'>;
|
5
5
|
export declare type NodeContentProps = {
|
6
6
|
node: Node;
|
7
7
|
Link: CustomLinkComponent;
|
8
8
|
hideMocking?: boolean;
|
9
9
|
refResolver?: ReferenceResolver;
|
10
|
+
maxRefDepth?: number;
|
10
11
|
onExportRequest?: (type: 'original' | 'bundled') => void;
|
11
12
|
} & DocsBaseProps & DocsLayoutProps;
|
12
|
-
export declare const NodeContent: ({ node, Link, hideMocking, refResolver, tryItCorsProxy, tryItCredentialsPolicy, nodeHasChanged, nodeUnsupported, compact, hideTryIt, hideTryItPanel, hideExport, onExportRequest, }: NodeContentProps) => JSX.Element;
|
13
|
+
export declare const NodeContent: ({ node, Link, hideMocking, refResolver, maxRefDepth, tryItCorsProxy, tryItCredentialsPolicy, nodeHasChanged, nodeUnsupported, compact, hideTryIt, hideSamples, hideTryItPanel, hideSecurityInfo, hideServerInfo, hideExport, onExportRequest, }: NodeContentProps) => JSX.Element;
|
13
14
|
export declare const getNodeUriParts: (uri: string) => {
|
14
15
|
fileUri: string;
|
15
16
|
pointer: string;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { NodeSearchResult, ProjectTableOfContents } from '../../types';
|
2
|
+
declare type SearchOverlayProps = {
|
3
|
+
isFetching: boolean;
|
4
|
+
search: string;
|
5
|
+
setSearch: (search: string) => void;
|
6
|
+
data?: NodeSearchResult[];
|
7
|
+
toc?: ProjectTableOfContents;
|
8
|
+
nodeSlug?: string;
|
9
|
+
projectSlug?: string;
|
10
|
+
branchSlug?: string;
|
11
|
+
isSearchShowing: boolean;
|
12
|
+
onClose: () => void;
|
13
|
+
onClick: (item?: NodeSearchResult) => void;
|
14
|
+
};
|
15
|
+
export declare const SearchOverlay: ({ isFetching, search, setSearch, data, toc, nodeSlug, projectSlug, branchSlug, isSearchShowing, onClose, onClick, }: SearchOverlayProps) => JSX.Element;
|
16
|
+
export {};
|
@@ -6,6 +6,8 @@ export interface StoplightProjectProps extends RoutingProps {
|
|
6
6
|
hideTryIt?: boolean;
|
7
7
|
hideMocking?: boolean;
|
8
8
|
hideExport?: boolean;
|
9
|
+
hideServerInfo?: boolean;
|
10
|
+
hideSecurityInfo?: boolean;
|
9
11
|
collapseTableOfContents?: boolean;
|
10
12
|
tryItCredentialsPolicy?: 'omit' | 'include' | 'same-origin';
|
11
13
|
tryItCorsProxy?: string;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { Branches } from '../types';
|
2
2
|
export declare const getBranches: ({ projectId, platformUrl, platformAuthToken, }: {
|
3
3
|
projectId: string;
|
4
4
|
platformUrl?: string | undefined;
|
5
5
|
platformAuthToken?: string | undefined;
|
6
|
-
}) => Promise<
|
6
|
+
}) => Promise<Branches>;
|