cortex-react-ui 0.2.23 → 0.2.25
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/Camera/Camera.d.ts +1 -0
- package/lib/cjs/Map/components/DrawTools.d.ts +2 -1
- package/lib/cjs/Map/components/MapFullscreenControl.d.ts +2 -1
- package/lib/cjs/Map/components/Maps.d.ts +2 -1
- package/lib/cjs/Scanner/Dialog.d.ts +2 -1
- package/lib/cjs/Scanner/DialogMask.d.ts +2 -2
- package/lib/cjs/Scanner/ScanConfirmationDialog.d.ts +1 -0
- package/lib/cjs/Scanner/Scanner.d.ts +1 -0
- package/lib/cjs/index.js +3 -3
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/Camera/Camera.d.ts +1 -0
- package/lib/esm/Map/components/DrawTools.d.ts +2 -1
- package/lib/esm/Map/components/MapFullscreenControl.d.ts +2 -1
- package/lib/esm/Map/components/Maps.d.ts +2 -1
- package/lib/esm/Scanner/Dialog.d.ts +2 -1
- package/lib/esm/Scanner/DialogMask.d.ts +2 -2
- package/lib/esm/Scanner/ScanConfirmationDialog.d.ts +1 -0
- package/lib/esm/Scanner/Scanner.d.ts +1 -0
- package/lib/esm/index.js +3 -3
- package/lib/esm/index.js.map +1 -1
- package/lib/index.d.ts +8 -8
- package/package.json +4 -4
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import React__default, { CSSProperties } from 'react';
|
|
3
3
|
import { IDetectedBarcode, IScannerProps } from '@yudiel/react-qr-scanner';
|
|
4
4
|
import { WebcamProps } from 'react-webcam';
|
|
@@ -84,15 +84,15 @@ type TScanConfirmDialogLabels = {
|
|
|
84
84
|
message?: string;
|
|
85
85
|
btnOk?: {
|
|
86
86
|
label: string;
|
|
87
|
-
style?:
|
|
87
|
+
style?: React__default.CSSProperties;
|
|
88
88
|
};
|
|
89
89
|
btnCancel?: {
|
|
90
90
|
label: string;
|
|
91
|
-
style?:
|
|
91
|
+
style?: React__default.CSSProperties;
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
declare const Scanner:
|
|
95
|
+
declare const Scanner: React__default.FC<ScannerProps>;
|
|
96
96
|
type TScanTrackerType = 'outline' | 'boundingBox' | 'centerText';
|
|
97
97
|
type ScannerProps = {
|
|
98
98
|
scanConfirmation?: boolean;
|
|
@@ -101,7 +101,7 @@ type ScannerProps = {
|
|
|
101
101
|
onScan?: (detectedCodes: IDetectedBarcode[]) => void;
|
|
102
102
|
} & IScannerProps;
|
|
103
103
|
|
|
104
|
-
declare const Camera:
|
|
104
|
+
declare const Camera: React__default.FC<CameraProps>;
|
|
105
105
|
type CameraProps = {
|
|
106
106
|
onCapture: ({ fileStoreName, fileRowId, file }: TfileCapturedProps) => void;
|
|
107
107
|
mode?: 'photo' | 'video';
|
|
@@ -415,12 +415,12 @@ declare const CrossIcon: React__default.FC<Props>;
|
|
|
415
415
|
* En React 18, ref est passé séparément via forwardRef
|
|
416
416
|
*/
|
|
417
417
|
type ForwardRefProps<T, P = object> = P & {
|
|
418
|
-
ref?: React
|
|
418
|
+
ref?: React.Ref<T>;
|
|
419
419
|
};
|
|
420
420
|
/**
|
|
421
421
|
* Type pour la fonction de rendu compatible React 18/19
|
|
422
422
|
*/
|
|
423
|
-
type ForwardRefRenderFunction<T, P> = (props: P, ref: React
|
|
423
|
+
type ForwardRefRenderFunction<T, P> = (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null;
|
|
424
424
|
/**
|
|
425
425
|
* Composant wrapper compatible React 18 et React 19
|
|
426
426
|
*
|
|
@@ -441,7 +441,7 @@ type ForwardRefRenderFunction<T, P> = (props: P, ref: React$1.ForwardedRef<T>) =
|
|
|
441
441
|
* );
|
|
442
442
|
* ```
|
|
443
443
|
*/
|
|
444
|
-
declare function forwardRef<T, P>(render: ForwardRefRenderFunction<T, P>): React
|
|
444
|
+
declare function forwardRef<T, P>(render: ForwardRefRenderFunction<T, P>): React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>;
|
|
445
445
|
|
|
446
446
|
export { AuthDownloadLink, BarLoader, Button, Camera, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ConfirmDialog, ContextMenu, CrossIcon, Dialog, DialogActions, DialogContent, DialogFooter, DialogHeader, DialogTitle, Divider, DomContainer, ErrorDialog, Map, Menu, MenuGroup, MenuItem, Popper, PopupMenu, Scanner, Selected, Spinner, TagInput, ToggleButton, Tooltip, WarningDialog, forwardRef };
|
|
447
447
|
export type { ForwardRefProps, ForwardRefRenderFunction };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cortex-react-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.25",
|
|
4
4
|
"description": "React UI",
|
|
5
5
|
"author": "Anthony",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@dateam/ark": "^0.2.19",
|
|
61
|
-
"react": "
|
|
62
|
-
"react-dom": "
|
|
61
|
+
"react": "^18 || ^19",
|
|
62
|
+
"react-dom": "^18 || ^19"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@babel/core": "^7.26.0",
|
|
@@ -97,7 +97,6 @@
|
|
|
97
97
|
"@types/node": "^22.10.5",
|
|
98
98
|
"@types/react": "^18.3.0",
|
|
99
99
|
"@types/react-dom": "^18.3.0",
|
|
100
|
-
"@yudiel/react-qr-scanner": "^2.5.1",
|
|
101
100
|
"babel-loader": "^10.0.0",
|
|
102
101
|
"css-loader": "^7.1.0",
|
|
103
102
|
"eslint-config-airbnb": "^19.0.4",
|
|
@@ -127,6 +126,7 @@
|
|
|
127
126
|
},
|
|
128
127
|
"dependencies": {
|
|
129
128
|
"@rollup/plugin-replace": "^6.0.0",
|
|
129
|
+
"@yudiel/react-qr-scanner": "^2.5.1",
|
|
130
130
|
"leaflet": "^1.9.0",
|
|
131
131
|
"leaflet-active-area": "^1.2.1",
|
|
132
132
|
"leaflet-draw": "^1.0.4",
|