@jield/solodb-react-components 1.0.19 → 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.
- package/dist/index.cjs +23 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8321 -7956
- package/dist/index.js.map +1 -1
- package/dist/modules/iris/components/IrisOperatorDashboard.d.ts +1 -0
- package/dist/modules/iris/components/IrisOperatorEventDetails.d.ts +10 -0
- package/dist/modules/iris/components/IrisOperatorEventList.d.ts +9 -0
- package/dist/modules/iris/components/irisOperatorDashboardUtils.d.ts +4 -0
- package/dist/modules/iris/components/irisOperatorEventDetailsUtils.d.ts +9 -0
- package/dist/modules/iris/hooks/useIrisStreamContextEvents.d.ts +12 -0
- package/package.json +1 -1
|
@@ -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 {};
|