@elaraai/e3-ui-components 0.0.1-beta.15 → 0.0.1-beta.17

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.
@@ -1,10 +1,9 @@
1
- import { DatasetStatusInfo, RequestOptions } from '@elaraai/e3-api-client';
1
+ import { RequestOptions } from '@elaraai/e3-api-client';
2
2
  export interface InputPreviewProps {
3
3
  apiUrl: string;
4
4
  repo: string;
5
5
  workspace: string;
6
6
  path: string;
7
- inputInfo: DatasetStatusInfo | null;
8
7
  requestOptions?: RequestOptions;
9
8
  }
10
9
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"InputPreview.d.ts","sourceRoot":"","sources":["../../src/components/InputPreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AA2BH,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAOhF,MAAM,WAAW,iBAAiB;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACpC,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,yDAiLvB,CAAC"}
1
+ {"version":3,"file":"InputPreview.d.ts","sourceRoot":"","sources":["../../src/components/InputPreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AA2BH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAO7D,MAAM,WAAW,iBAAiB;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,yDAuLuD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { RequestOptions } from '@elaraai/e3-api-client';
2
+ export interface TaskLogsProps {
3
+ apiUrl: string;
4
+ repo: string;
5
+ workspace: string;
6
+ task: string;
7
+ requestOptions?: RequestOptions;
8
+ }
9
+ /**
10
+ * Renders a virtualized log viewer for a task's stdout/stderr.
11
+ */
12
+ export declare const TaskLogs: import('react').NamedExoticComponent<TaskLogsProps>;
13
+ //# sourceMappingURL=TaskLogs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskLogs.d.ts","sourceRoot":"","sources":["../../src/components/TaskLogs.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ,qDA4BnB,CAAC"}
@@ -1,17 +1,15 @@
1
- import { TaskStatusInfo, RequestOptions } from '@elaraai/e3-api-client';
1
+ import { RequestOptions } from '@elaraai/e3-api-client';
2
2
  export interface TaskPreviewProps {
3
3
  apiUrl: string;
4
4
  repo: string;
5
5
  workspace: string;
6
6
  task: string;
7
- taskInfo: TaskStatusInfo | null;
8
- outputHash: string | null;
7
+ output: string;
9
8
  requestOptions?: RequestOptions;
10
9
  }
11
10
  /**
12
11
  * Renders a preview of a task's output and logs.
13
- * Decodes Beast2 data and renders as an East UI component if possible,
14
- * with a virtualized log viewer for stdout/stderr.
12
+ * Composes TaskUI/TaskValue for output and TaskLogs for stdout/stderr.
15
13
  */
16
14
  export declare const TaskPreview: import('react').NamedExoticComponent<TaskPreviewProps>;
17
15
  //# sourceMappingURL=TaskPreview.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TaskPreview.d.ts","sourceRoot":"","sources":["../../src/components/TaskPreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAiCH,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAO7E,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;IAChC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,wDA+OuL,CAAC"}
1
+ {"version":3,"file":"TaskPreview.d.ts","sourceRoot":"","sources":["../../src/components/TaskPreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAaH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAI7D,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,wDAsEkH,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { RequestOptions } from '@elaraai/e3-api-client';
2
+ export interface TaskUIProps {
3
+ apiUrl: string;
4
+ repo: string;
5
+ workspace: string;
6
+ task: string;
7
+ output: string;
8
+ requestOptions?: RequestOptions;
9
+ }
10
+ /**
11
+ * Renders a task's output as an East UI component.
12
+ * Decodes Beast2 data and renders it using EastChakraComponent.
13
+ */
14
+ export declare const TaskUI: import('react').NamedExoticComponent<TaskUIProps>;
15
+ //# sourceMappingURL=TaskUI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskUI.d.ts","sourceRoot":"","sources":["../../src/components/TaskUI.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAsBH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAI7D,MAAM,WAAW,WAAW;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC;AAUD;;;GAGG;AACH,eAAO,MAAM,MAAM,mDAqHjB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { RequestOptions } from '@elaraai/e3-api-client';
2
+ export interface TaskValueProps {
3
+ apiUrl: string;
4
+ repo: string;
5
+ workspace: string;
6
+ task: string;
7
+ output: string;
8
+ requestOptions?: RequestOptions;
9
+ }
10
+ /**
11
+ * Renders a preview of a task's non-UI output value.
12
+ * Decodes Beast2 data and displays it using EastValueViewer.
13
+ */
14
+ export declare const TaskValue: import('react').NamedExoticComponent<TaskValueProps>;
15
+ //# sourceMappingURL=TaskValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskValue.d.ts","sourceRoot":"","sources":["../../src/components/TaskValue.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAW7D,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC;AAUD;;;GAGG;AACH,eAAO,MAAM,SAAS,sDAwEpB,CAAC"}
@@ -4,6 +4,9 @@
4
4
  */
5
5
  export { InputPreview, type InputPreviewProps } from './InputPreview.js';
6
6
  export { TaskPreview, type TaskPreviewProps } from './TaskPreview.js';
7
+ export { TaskLogs, type TaskLogsProps } from './TaskLogs.js';
8
+ export { TaskUI, type TaskUIProps } from './TaskUI.js';
9
+ export { TaskValue, type TaskValueProps } from './TaskValue.js';
7
10
  export { StatusDisplay, type StatusDisplayProps } from './StatusDisplay.js';
8
11
  export { EastValueViewer, type EastValueViewerProps } from './EastValueViewer.js';
9
12
  export { VirtualizedLogViewer, type VirtualizedLogViewerProps } from './VirtualizedLogViewer.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,KAAK,yBAAyB,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,KAAK,yBAAyB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { QueryOverrides, DatasetPreview } from './types.js';
2
- import { DatasetStatusInfo, RequestOptions } from '@elaraai/e3-api-client';
3
- export declare function useInputDataPreview(apiUrl: string, repo: string, workspace: string | null, inputInfo: DatasetStatusInfo | null, requestOptions?: RequestOptions, queryOptions?: QueryOverrides): {
2
+ import { RequestOptions } from '@elaraai/e3-api-client';
3
+ export declare function useInputDataPreview(apiUrl: string, repo: string, workspace: string | null, path: string | null, requestOptions?: RequestOptions, queryOptions?: QueryOverrides): {
4
4
  data: DatasetPreview | undefined;
5
5
  isLoading: boolean;
6
6
  error: Error | null;
@@ -1 +1 @@
1
- {"version":3,"file":"useInputDataPreview.d.ts","sourceRoot":"","sources":["../../src/hooks/useInputDataPreview.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAKhF,wBAAgB,mBAAmB,CAC/B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,SAAS,EAAE,iBAAiB,GAAG,IAAI,EACnC,cAAc,CAAC,EAAE,cAAc,EAC/B,YAAY,CAAC,EAAE,cAAc;;;;EA8ChC"}
1
+ {"version":3,"file":"useInputDataPreview.d.ts","sourceRoot":"","sources":["../../src/hooks/useInputDataPreview.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAK7D,wBAAgB,mBAAmB,CAC/B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,cAAc,CAAC,EAAE,cAAc,EAC/B,YAAY,CAAC,EAAE,cAAc;;;;EA+ChC"}
@@ -1,6 +1,6 @@
1
1
  import { QueryOverrides } from './types.js';
2
- import { TaskStatusInfo, RequestOptions } from '@elaraai/e3-api-client';
3
- export declare function useTaskLogs(apiUrl: string, repo: string, workspace: string | null, task: TaskStatusInfo | null, stream?: 'stdout' | 'stderr', requestOptions?: RequestOptions, queryOptions?: QueryOverrides): import('@tanstack/react-query').UseQueryResult<{
2
+ import { RequestOptions } from '@elaraai/e3-api-client';
3
+ export declare function useTaskLogs(apiUrl: string, repo: string, workspace: string | null, taskName: string | null, stream?: 'stdout' | 'stderr', requestOptions?: RequestOptions, queryOptions?: QueryOverrides): import('@tanstack/react-query').UseQueryResult<{
4
4
  data: string;
5
5
  offset: bigint;
6
6
  size: bigint;
@@ -1 +1 @@
1
- {"version":3,"file":"useTaskLogsHook.d.ts","sourceRoot":"","sources":["../../src/hooks/useTaskLogsHook.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAwD7E,wBAAgB,WAAW,CACvB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,IAAI,EAAE,cAAc,GAAG,IAAI,EAC3B,MAAM,GAAE,QAAQ,GAAG,QAAmB,EACtC,cAAc,CAAC,EAAE,cAAc,EAC/B,YAAY,CAAC,EAAE,cAAc;UAlDd,MAAM;YAAU,MAAM;UAAQ,MAAM;eAAa,MAAM;cAAY,OAAO;UAgE5F"}
1
+ {"version":3,"file":"useTaskLogsHook.d.ts","sourceRoot":"","sources":["../../src/hooks/useTaskLogsHook.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAwD7D,wBAAgB,WAAW,CACvB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,MAAM,GAAE,QAAQ,GAAG,QAAmB,EACtC,cAAc,CAAC,EAAE,cAAc,EAC/B,YAAY,CAAC,EAAE,cAAc;UAlDd,MAAM;YAAU,MAAM;UAAQ,MAAM;eAAa,MAAM;cAAY,OAAO;UA2D5F"}
@@ -1,6 +1,6 @@
1
1
  import { QueryOverrides, DatasetPreview } from './types.js';
2
- import { TaskStatusInfo, RequestOptions } from '@elaraai/e3-api-client';
3
- export declare function useTaskOutputPreview(apiUrl: string, repo: string, workspace: string | null, task: TaskStatusInfo | null, outputHash?: string | null, requestOptions?: RequestOptions, queryOptions?: QueryOverrides): {
2
+ import { RequestOptions } from '@elaraai/e3-api-client';
3
+ export declare function useTaskOutputPreview(apiUrl: string, repo: string, workspace: string | null, outputPath: string | null, requestOptions?: RequestOptions, queryOptions?: QueryOverrides): {
4
4
  data: DatasetPreview | undefined;
5
5
  isLoading: boolean;
6
6
  error: Error | null;
@@ -1 +1 @@
1
- {"version":3,"file":"useTaskOutputPreview.d.ts","sourceRoot":"","sources":["../../src/hooks/useTaskOutputPreview.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjE,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAK7E,wBAAgB,oBAAoB,CAChC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,IAAI,EAAE,cAAc,GAAG,IAAI,EAC3B,UAAU,GAAE,MAAM,GAAG,IAAW,EAChC,cAAc,CAAC,EAAE,cAAc,EAC/B,YAAY,CAAC,EAAE,cAAc;;;;EA6ChC"}
1
+ {"version":3,"file":"useTaskOutputPreview.d.ts","sourceRoot":"","sources":["../../src/hooks/useTaskOutputPreview.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAK7D,wBAAgB,oBAAoB,CAChC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,UAAU,EAAE,MAAM,GAAG,IAAI,EACzB,cAAc,CAAC,EAAE,cAAc,EAC/B,YAAY,CAAC,EAAE,cAAc;;;;EA+ChC"}