@jield/solodb-react-components 1.0.21 → 1.0.23

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,6 +1,8 @@
1
1
  type RuntimeConfig = {
2
2
  serverUri: string;
3
+ irisServerUri: string;
3
4
  };
4
5
  export declare function initSolodbComponents(partial: Partial<RuntimeConfig>): void;
5
- export declare function getServerUri(): string;
6
+ export declare function getSolodbServerApiUrl(): string;
7
+ export declare function getIrisServerUrl(): string;
6
8
  export {};
@@ -1,5 +1,5 @@
1
1
  import { FileUploadEvent } from '@jield/solodb-typescript-core';
2
- import { ContentEntry } from './irisOperatorDashboardUtils';
2
+ import { ContentEntry } from '../irisOperatorDashboardUtils';
3
3
  interface IrisOperatorEventDetailsProps {
4
4
  event: FileUploadEvent | null;
5
5
  contentEntries: ContentEntry[];
@@ -1,8 +1,6 @@
1
1
  import { Run } from '@jield/solodb-typescript-core';
2
- export default function NavigateInRunWithQrScanner({ runsList, setRun, setRunStepPartId, setRunPartId, setRunPartLabel, }: {
2
+ export default function NavigateInRunWithQrScanner({ runsList, setRun, setRunPartLabel, }: {
3
3
  runsList: Run[];
4
4
  setRun: (run: Run) => void;
5
- setRunStepPartId?: (stepPart: number) => void;
6
- setRunPartId?: (part: number) => void;
7
5
  setRunPartLabel?: (label: string) => void;
8
6
  }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Represents a book.
3
+ * key sequence suports := ([a-zA-Z0-9-], * , /)
4
+ */
5
+ export declare function makeKeySequenceListener(keySequence: string, callback: (readedKeys: string) => void, currentReadedKeys?: (keys: string) => void): (e: KeyboardEvent) => void;
@@ -0,0 +1,13 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ type NotificationVariant = "success" | "danger";
3
+ export type NotificationType = {
4
+ text: string;
5
+ show: boolean;
6
+ variant: NotificationVariant;
7
+ };
8
+ type NotificationProps = {
9
+ notification: NotificationType;
10
+ setNotification: Dispatch<SetStateAction<NotificationType>>;
11
+ };
12
+ export default function Notification({ notification, setNotification }: NotificationProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jield/solodb-react-components",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "type": "module",
5
5
  "repository": "jield-webdev/solodb-react-components",
6
6
  "main": "./dist/index.cjs",
@@ -27,7 +27,7 @@
27
27
  "coverage": "vitest run --coverage"
28
28
  },
29
29
  "dependencies": {
30
- "@jield/solodb-typescript-core": "^1.0.16",
30
+ "@jield/solodb-typescript-core": "^1.0.18",
31
31
  "@testing-library/dom": "^10.4.1",
32
32
  "moment": "^2.30.1",
33
33
  "moment-timezone": "^0.6.0",