pollination-react-io 1.26.2 → 1.28.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 { FilePreviewProps } from './FilePreview.types';
3
+ import './FilePreview.scss';
4
+ declare const FilePreview: React.FC<FilePreviewProps>;
5
+ export default FilePreview;
@@ -0,0 +1,12 @@
1
+ import { FileMeta } from "@pollination-solutions/pollination-sdk";
2
+ import { HTMLProps } from "react";
3
+ import { APIClient } from "../hooks";
4
+ export interface FilePreviewProps {
5
+ projectOwner?: string;
6
+ projectName?: string;
7
+ jobId?: string;
8
+ value?: FileMeta;
9
+ client: APIClient;
10
+ inputProps?: HTMLProps<HTMLInputElement>;
11
+ onPreviewChange?: (...any: any) => void;
12
+ }
@@ -4,6 +4,7 @@ export interface SelectCloudArtifactsProps {
4
4
  projectOwner?: string;
5
5
  projectName?: string;
6
6
  jobId?: string;
7
+ runId?: string;
7
8
  value?: FileMeta;
8
9
  hidden?: boolean;
9
10
  fileNameMatch?: string;
@@ -2,8 +2,8 @@ import { FileMeta } from '@pollination-solutions/pollination-sdk';
2
2
  import { FileWithPath } from 'react-dropzone';
3
3
  import { APIClient } from './useAPIClient';
4
4
  export declare const useArtifacts: (owner: string, name: string, client: APIClient) => {
5
- listArtifacts: (path?: string[], jobId?: string) => Promise<FileMeta[]>;
5
+ listArtifacts: (path?: string[], jobId?: string, runId?: string) => Promise<FileMeta[]>;
6
6
  deleteArtifact: (path: string) => Promise<void>;
7
- downloadArtifact: (path: string) => Promise<any>;
7
+ downloadArtifact: (path: string, jobId?: string) => Promise<any>;
8
8
  uploadArtifact: (folderRoot: FileMeta | undefined, file: FileWithPath) => Promise<import("@pollination-solutions/pollination-sdk").S3UploadRequest>;
9
9
  };
@@ -0,0 +1,2 @@
1
+ import type { EffectCallback, DependencyList } from "react";
2
+ export declare const useDebounce: (delay: number) => (effect: EffectCallback, deps?: DependencyList) => void;