pollination-react-io 1.34.0 → 1.35.0

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.
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { StudyCardProps } from './StudyCard.types';
3
+ import './StudyCard.scss';
4
+ export declare const StudyCard: React.FC<StudyCardProps>;
5
+ export default StudyCard;
@@ -0,0 +1,15 @@
1
+ import { CloudJob, UserPrivate } from '@pollination-solutions/pollination-sdk';
2
+ import { CSSProperties } from 'react';
3
+ import { APIClient } from '../hooks';
4
+ export interface StudyCardProps {
5
+ projectOwner: string;
6
+ projectName: string;
7
+ study?: CloudJob;
8
+ canWrite?: boolean;
9
+ runList?: boolean;
10
+ style?: CSSProperties;
11
+ authUser?: UserPrivate;
12
+ client?: APIClient;
13
+ showMenu: boolean;
14
+ onDelete?: () => void;
15
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const CircleOne: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
3
+ export default CircleOne;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const CircleThree: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
3
+ export default CircleThree;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const CircleTwo: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
3
+ export default CircleTwo;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { RunViewProps } from './RunView.types';
3
+ import './RunView.scss';
4
+ import 'react-circular-progressbar/dist/styles.css';
5
+ export declare const CloudRunView: React.FC<RunViewProps>;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { RunViewProps } from './RunView.types';
3
+ import './RunView.scss';
4
+ export declare const LocalRunView: React.FC<RunViewProps>;
File without changes
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { RunViewProps } from './RunView.types';
3
+ import './RunView.scss';
4
+ export declare const RunView: React.FC<RunViewProps>;
@@ -0,0 +1,11 @@
1
+ import type { UserPrivate } from '@pollination-solutions/pollination-sdk';
2
+ import { APIClient } from '../hooks';
3
+ import { TreeUnit } from '../atoms/TreeView/Tree.types';
4
+ export declare type RunViewProps = {
5
+ projectName: string;
6
+ projectOwner: string | undefined;
7
+ authUser?: UserPrivate;
8
+ client?: APIClient;
9
+ runId?: string | undefined;
10
+ getNodeFromTree?: (node: TreeUnit) => any;
11
+ };
@@ -0,0 +1,19 @@
1
+ export declare enum TreeNodeType {
2
+ FolderNode = 0,
3
+ FileNode = 1
4
+ }
5
+ export declare type TreeUnit = {
6
+ key: string;
7
+ label: string;
8
+ nodeType: TreeNodeType;
9
+ absPath?: string;
10
+ children?: TreeUnit[];
11
+ };
12
+ export interface TreeProps {
13
+ treeData?: TreeUnit[];
14
+ getNodeFromTree?: (node: TreeUnit) => any;
15
+ }
16
+ export interface TreeNodeProps {
17
+ node?: TreeUnit;
18
+ getNodeFromTree?: (node: TreeUnit) => any;
19
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { TreeProps } from './Tree.types';
3
+ export declare const Tree: React.FC<TreeProps>;
@@ -0,0 +1,3 @@
1
+ export declare const toUnixPath: (path: string) => string;
2
+ export declare const getExtension: (fileName: string) => string;
3
+ export declare const treeDataFactory: (paths: string[], rootPath: string, flatAll?: boolean) => any[];
@@ -3,4 +3,5 @@ export declare const usePollinationPanel: () => {
3
3
  getFileBase64: (key?: any, accept?: any) => PanelMessageOut;
4
4
  saveFileBase64: (key: string, file: File | Blob, subFolder: string, fileName: string) => Promise<PanelMessageOut>;
5
5
  fromFileToBase64: (filePath: string) => PanelMessageOut;
6
+ getFilesFromDir: (root: any) => PanelMessageOut;
6
7
  };