@jield/solodb-react-components 1.0.18 → 1.0.20

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 @@
1
+ export default function IrisOperatorDashboard(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { FileUploadEvent } from '@jield/solodb-typescript-core';
2
+ import { ContentEntry } from './irisOperatorDashboardUtils';
3
+ interface IrisOperatorEventDetailsProps {
4
+ event: FileUploadEvent | null;
5
+ contentEntries: ContentEntry[];
6
+ irisEndpoint: string;
7
+ onEventUpdated: (nextEvent: FileUploadEvent) => void;
8
+ }
9
+ export default function IrisOperatorEventDetails({ event, contentEntries, irisEndpoint, onEventUpdated, }: IrisOperatorEventDetailsProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ import { FileUploadEvent } from '@jield/solodb-typescript-core';
2
+ interface IrisOperatorEventListProps {
3
+ activeContext: string;
4
+ events: FileUploadEvent[];
5
+ selectedEventUid: string;
6
+ onSelectEvent: (uid: string) => void;
7
+ }
8
+ export default function IrisOperatorEventList({ activeContext, events, selectedEventUid, onSelectEvent, }: IrisOperatorEventListProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,4 @@
1
+ import { FileUploadEvent } from '@jield/solodb-typescript-core';
2
+ export type ContentEntry = [string, string];
3
+ export declare function getStateBadgeClass(state: string): string;
4
+ export declare function getContentEntries(content: FileUploadEvent["content"]): ContentEntry[];
@@ -0,0 +1,9 @@
1
+ export type IrisOperatorEventAction = "approve" | "fail" | "finish" | "reject";
2
+ export interface IrisOperatorEventActionConfig {
3
+ action: IrisOperatorEventAction;
4
+ buttonClassName: string;
5
+ label: string;
6
+ successMessage: string;
7
+ }
8
+ export declare function getAllowedActionsForState(state: string): IrisOperatorEventActionConfig[];
9
+ export declare function getErrorMessage(error: unknown): string;
@@ -0,0 +1,12 @@
1
+ import { FileUploadEvent } from '@jield/solodb-typescript-core';
2
+ interface IrisStreamContextEventsOptions {
3
+ irisEndpoint: string;
4
+ context: string;
5
+ onMessage: (data: FileUploadEvent) => void;
6
+ onError: (error: Event | null) => void;
7
+ }
8
+ export declare function useIrisStreamContextEvents({ irisEndpoint, context, onMessage, onError, }: IrisStreamContextEventsOptions): {
9
+ isConnected: boolean;
10
+ close: () => void;
11
+ };
12
+ export {};
@@ -0,0 +1,7 @@
1
+ import { RunStep, RunPart, RunStepPart, Run } from '@jield/solodb-typescript-core';
2
+ export declare const PartsBadgesTrayed: ({ step, parts, stepParts, run, }: {
3
+ step: RunStep;
4
+ parts: RunPart[];
5
+ stepParts: RunStepPart[];
6
+ run: Run;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- .equipment_container{padding:10px;border:5px solid black;margin:10px}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:400px;padding:20px}.loading-spinner{width:40px;height:40px;border:4px solid rgba(0,0,0,.1);border-radius:50%;border-top:4px solid #0d6efd;animation:spin 1s linear infinite;margin-bottom:10px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
1
+ .equipment_container{padding:10px;border:5px solid black;margin:10px}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:400px;padding:20px}.loading-spinner{width:40px;height:40px;border:4px solid rgba(0,0,0,.1);border-radius:50%;border-top:4px solid #0d6efd;animation:spin 1s linear infinite;margin-bottom:10px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tray-grid-group{display:flex;flex-wrap:wrap;gap:12px}.tray-grid-wrapper{display:flex;flex-direction:column;gap:6px}.tray-grid__label{font-size:.85rem;font-weight:600;color:#6c757d}.tray-grid{--tray-columns: 1;--tray-rows: 1;--tray-gap: 6px;--tray-padding: 8px;--tray-cell-min-height: 30px;--tray-border-color: #dee2e6;--tray-bg: #f8f9fa;--tray-cell-radius: 6px;display:grid;grid-template-columns:repeat(var(--tray-columns),minmax(0,1fr));grid-template-rows:repeat(var(--tray-rows),minmax(var(--tray-cell-min-height),auto));gap:var(--tray-gap);padding:var(--tray-padding);background:var(--tray-bg);border-radius:8px}.tray-grid[data-orientation=ttb]{grid-auto-flow:column}.tray-grid__cell{display:flex;align-items:center;justify-content:center;min-height:var(--tray-cell-min-height);background:transparent;border:none;border-radius:var(--tray-cell-radius);font-size:.75rem;color:#212529;text-align:center;padding:2px 4px}.tray-grid__cell--empty{background:transparent}.tray-grid__cell--inactive{background:#e9ecef}.tray-grid__cell--idle{background:#adb5bd}.tray-grid__cell--started{background:#90ffea}.tray-grid__cell--processed{background:#9be7b3}.tray-grid__cell--failed{background:#f4a1a1}.tray-grid__cell-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jield/solodb-react-components",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "type": "module",
5
5
  "repository": "jield-webdev/solodb-react-components",
6
6
  "main": "./dist/index.cjs",
@@ -27,19 +27,19 @@
27
27
  "coverage": "vitest run --coverage"
28
28
  },
29
29
  "dependencies": {
30
- "@jield/solodb-typescript-core": "^1.0.10",
30
+ "@jield/solodb-typescript-core": "^1.0.15",
31
31
  "@testing-library/dom": "^10.4.1",
32
32
  "moment": "^2.30.1",
33
33
  "moment-timezone": "^0.6.0",
34
34
  "qrcode.react": "^4.2.0",
35
35
  "react-bootstrap": "^2.10.10",
36
- "react-dropzone": "^14.3.8",
36
+ "react-dropzone": "^14.4.1",
37
37
  "react-google-charts": "^5.2.1",
38
- "react-hook-form": "^7.71.1",
39
- "react-intersection-observer": "^10.0.2",
38
+ "react-hook-form": "^7.71.2",
39
+ "react-intersection-observer": "^10.0.3",
40
40
  "react-markdown": "^10.1.0",
41
41
  "react-select": "^5.10.2",
42
- "yet-another-react-lightbox": "^3.28.0"
42
+ "yet-another-react-lightbox": "^3.29.1"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@tanstack/react-query": "^5.90",
@@ -51,29 +51,29 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@originjs/vite-plugin-commonjs": "^1.0.3",
54
- "@tanstack/react-query": "~5.90.19",
55
- "@tanstack/react-query-devtools": "~5.91.2",
54
+ "@tanstack/react-query": "~5.90.21",
55
+ "@tanstack/react-query-devtools": "~5.91.3",
56
56
  "@tanstack/react-table": "^8.21.3",
57
57
  "@testing-library/jest-dom": "^6.9.1",
58
58
  "@testing-library/react": "^16.3.2",
59
59
  "@testing-library/user-event": "^14.6.1",
60
- "@types/node": "^25.0.9",
61
- "@types/react": "^19.2.8",
60
+ "@types/node": "^25.4.0",
61
+ "@types/react": "^19.2.14",
62
62
  "@types/react-dom": "^19.2.3",
63
63
  "@types/react-router-dom": "^5.3.3",
64
- "@vitejs/plugin-react": "^5.1.2",
65
- "@vitest/coverage-v8": "^4.0.17",
66
- "axios": "^1.13.2",
67
- "jsdom": "^27.4.0",
68
- "prettier": "^3.8.0",
64
+ "@vitejs/plugin-react": "^5.1.4",
65
+ "@vitest/coverage-v8": "^4.0.18",
66
+ "axios": "^1.13.6",
67
+ "jsdom": "^28.1.0",
68
+ "prettier": "^3.8.1",
69
69
  "prop-types": "^15.8.1",
70
- "react": "^19.2.3",
71
- "react-dom": "^19.2.3",
72
- "react-router-dom": "^7.12.0",
70
+ "react": "^19.2.4",
71
+ "react-dom": "^19.2.4",
72
+ "react-router-dom": "^7.13.1",
73
73
  "typescript": "^5.9.3",
74
74
  "vite": "^7.3.1",
75
75
  "vite-plugin-dts": "^4.5.4",
76
- "vitest": "^4.0.17"
76
+ "vitest": "^4.0.18"
77
77
  },
78
- "packageManager": "yarn@4.12.0"
78
+ "packageManager": "yarn@4.13.0"
79
79
  }