cortex-react-ui 0.1.180 → 0.1.182
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/lib/cjs/index.js +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/types/Camera/Camera.d.ts +3 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/types/Camera/Camera.d.ts +3 -1
- package/lib/index.d.ts +3 -1
- package/lib/styles/Camera/index.scss +1 -3
- package/package.json +1 -7
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { WebcamProps } from 'react-webcam';
|
|
2
|
-
declare const Camera: ({ onCapture, isOffline, mode, isShowOffline, ...props }: CameraProps) => JSX.Element;
|
|
2
|
+
declare const Camera: ({ onCapture, isOffline, mode, validateText, resetText, isShowOffline, ...props }: CameraProps) => JSX.Element;
|
|
3
3
|
export declare type CameraProps = {
|
|
4
4
|
onCapture: ({ fileStoreName, fileRowId, file }: TfileCapturedProps) => void;
|
|
5
5
|
mode?: 'photo' | 'video';
|
|
6
6
|
isOffline?: boolean;
|
|
7
7
|
isShowOffline?: boolean;
|
|
8
|
+
validateText?: string;
|
|
9
|
+
resetText?: string;
|
|
8
10
|
} & Partial<WebcamProps>;
|
|
9
11
|
export declare type TfileCapturedProps = {
|
|
10
12
|
fileStoreName?: string | null;
|
package/lib/index.d.ts
CHANGED
|
@@ -99,12 +99,14 @@ declare type ScannerProps = {
|
|
|
99
99
|
onScan?: (detectedCodes: IDetectedBarcode[]) => void;
|
|
100
100
|
} & IScannerProps;
|
|
101
101
|
|
|
102
|
-
declare const Camera: ({ onCapture, isOffline, mode, isShowOffline, ...props }: CameraProps) => JSX.Element;
|
|
102
|
+
declare const Camera: ({ onCapture, isOffline, mode, validateText, resetText, isShowOffline, ...props }: CameraProps) => JSX.Element;
|
|
103
103
|
declare type CameraProps = {
|
|
104
104
|
onCapture: ({ fileStoreName, fileRowId, file }: TfileCapturedProps) => void;
|
|
105
105
|
mode?: 'photo' | 'video';
|
|
106
106
|
isOffline?: boolean;
|
|
107
107
|
isShowOffline?: boolean;
|
|
108
|
+
validateText?: string;
|
|
109
|
+
resetText?: string;
|
|
108
110
|
} & Partial<WebcamProps>;
|
|
109
111
|
declare type TfileCapturedProps = {
|
|
110
112
|
fileStoreName?: string | null;
|
package/package.json
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cortex-react-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.182",
|
|
4
4
|
"description": "React UI",
|
|
5
5
|
"author": "Anthony",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "lib/cjs/index.js",
|
|
8
8
|
"module": "lib/esm/index.js",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"import": "./lib/esm/index.js",
|
|
12
|
-
"require": "./lib/cjs/index.js"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
9
|
"publishConfig": {
|
|
16
10
|
"access": "public"
|
|
17
11
|
},
|