hise-flow-graphs 1.1.21 → 1.1.22
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/components/Certificates/CertificateGraph/helpers.d.ts +1 -1
- package/dist/components/Certificates/WalkingGraph/helpers.d.ts +2 -2
- package/dist/components/Certificates/WorkspaceCertificate/WorkspaceFileNode/helpers.d.ts +1 -1
- package/dist/components/Certificates/WorkspaceCertificate/WorkspaceIDENode/helpers.d.ts +2 -2
- package/dist/components/Certificates/WorkspaceCertificate/WorkspacePipelineNode/helpers.d.ts +2 -2
- package/dist/components/Certificates/WorkspaceCertificate/helpers.d.ts +1 -1
- package/dist/context/HiseConfigContext.d.ts +33 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.es.js +19789 -17842
- package/dist/index.umd.js +154 -47
- package/package.json +2 -2
|
@@ -20,7 +20,7 @@ export declare const getStyle: (type: string) => CSSProperties;
|
|
|
20
20
|
export declare const getSchemes: (label: string, vertex: string, labels: Certificate["serviceLabels"], schemes: Certificate["schemes"]) => {
|
|
21
21
|
[key: string]: object;
|
|
22
22
|
};
|
|
23
|
-
export declare const getNodeLabel: (type: string, desc: any) => string | import("react/jsx-runtime").JSX.Element
|
|
23
|
+
export declare const getNodeLabel: (type: string, desc: any) => string | import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export declare const getNodeDescription: (type: string, desc: any) => any;
|
|
25
25
|
export declare const getLabelLink: (type: string, guid: string, isExecutable: "true" | "false") => string | null;
|
|
26
26
|
export declare const getKey: (key: string, scheme: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Edge, Node } from
|
|
2
|
-
import { Certificate } from
|
|
1
|
+
import { Edge, Node } from 'reactflow';
|
|
2
|
+
import { Certificate } from '../../../@types/CertificateTypes';
|
|
3
3
|
export declare const nodeWidth = 250;
|
|
4
4
|
export declare const nodeHeight = 120;
|
|
5
5
|
export declare const getWalkingNodesAndEdges: (nodes: Array<Node>, edges: Array<Edge>, direction?: string) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const copyFile: (vertexId: string, certId: string) => Promise<Response>;
|
|
1
|
+
export declare const copyFile: (vertexId: string, certId: string, apiRoute: string) => Promise<Response>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Replica } from "../../../../@types/CertificateTypes";
|
|
2
|
-
export declare const runIDE: (vertexId: string, certId: string) => Promise<Response>;
|
|
3
|
-
export declare const startIDE: (vertexId: string, certificateId: string, edges: object, matches: Replica["matches"], refresh: Function, toggleModal: Function) => Promise<void>;
|
|
2
|
+
export declare const runIDE: (vertexId: string, certId: string, apiRoute: string) => Promise<Response>;
|
|
3
|
+
export declare const startIDE: (vertexId: string, certificateId: string, edges: object, matches: Replica["matches"], refresh: Function, toggleModal: Function, apiRoute: string) => Promise<void>;
|
package/dist/components/Certificates/WorkspaceCertificate/WorkspacePipelineNode/helpers.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Replica } from "../../../../@types/CertificateTypes";
|
|
2
|
-
export declare const runPipeline: (vertexId: string, certId: string) => Promise<Response>;
|
|
3
|
-
export declare const startPipeline: (vertexId: string, certificateId: string, edges: object, matches: Replica["matches"], refresh: Function, toggleModal: Function) => Promise<void>;
|
|
2
|
+
export declare const runPipeline: (vertexId: string, certId: string, apiRoute: string) => Promise<Response>;
|
|
3
|
+
export declare const startPipeline: (vertexId: string, certificateId: string, edges: object, matches: Replica["matches"], refresh: Function, toggleModal: Function, apiRoute: string) => Promise<void>;
|
|
@@ -7,4 +7,4 @@ export declare const getWorkspaceNodesAndEdges: (vertices: Certificate["vertices
|
|
|
7
7
|
edges: Edge[];
|
|
8
8
|
};
|
|
9
9
|
export declare const findInputFiles: (vertexId: string, edges: object, matches: Replica["matches"]) => Promise<string[]>;
|
|
10
|
-
export declare const copyInputFiles: (files: Array<string>, certId: string) => Promise<Response[]>;
|
|
10
|
+
export declare const copyInputFiles: (files: Array<string>, certId: string, apiRoute: string) => Promise<Response[]>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration interface for hise-flow-graphs
|
|
4
|
+
* These values should be provided by the parent application (ingest-ui, or other)
|
|
5
|
+
*/
|
|
6
|
+
export interface HiseConfig {
|
|
7
|
+
/** Base API route (e.g., https://[development | staging | production].allenimmunology.org) */
|
|
8
|
+
apiRoute: string;
|
|
9
|
+
}
|
|
10
|
+
interface HiseConfigProviderProps {
|
|
11
|
+
config: HiseConfig;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Provider component that supplies configuration to hise-flow-graphs
|
|
16
|
+
* Must be wrapped around any hise-flow-graphs components in the parent app
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* import { HiseConfigProvider } from 'hise-flow-graphs';
|
|
21
|
+
*
|
|
22
|
+
* <HiseConfigProvider config={{ apiRoute: import.meta.env.VITE_API_ROUTE }}>
|
|
23
|
+
* <YourApp />
|
|
24
|
+
* </HiseConfigProvider>
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare const HiseConfigProvider: React.FC<HiseConfigProviderProps>;
|
|
28
|
+
/**
|
|
29
|
+
* Hook to access hise-flow-graphs configuration
|
|
30
|
+
* @throws Error if used outside of HiseConfigProvider
|
|
31
|
+
*/
|
|
32
|
+
export declare const useHiseConfig: () => HiseConfig;
|
|
33
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -12,5 +12,7 @@ import { getSchemes } from './components/Certificates/CertificateGraph/helpers';
|
|
|
12
12
|
import { startPipeline } from './components/Certificates/WorkspaceCertificate/WorkspacePipelineNode/helpers';
|
|
13
13
|
import { startIDE } from './components/Certificates/WorkspaceCertificate/WorkspaceIDENode/helpers';
|
|
14
14
|
import { ReplicaPipelineInfo } from './components/Certificates/WorkspaceCertificate/ReplicaPipelineNode';
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
import { HiseConfigProvider, useHiseConfig } from './context/HiseConfigContext';
|
|
16
|
+
import type { HiseConfig } from './context/HiseConfigContext';
|
|
17
|
+
export { ReadCertificate, EditCertificate, ReviewCertificate, WorkspaceCertificate, WalkingGraph, getCertificateBody, EditNodeModal, MaskMetadataModal, getSchemes, startPipeline, startIDE, PipelineModal, IDEModal, ReplicaPipelineInfo, HiseConfigProvider, useHiseConfig, };
|
|
18
|
+
export type { HiseConfig };
|