@kenlo/kdls-design-system 2.33.0 → 2.33.1
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/components/Modal/dialogLayer.d.ts +2 -0
- package/dist/components/Uploader/Uploader.d.ts +1 -1
- package/dist/components/Uploader/Uploader.edit.test.d.ts +1 -0
- package/dist/components/Uploader/exportImage.d.ts +23 -0
- package/dist/components/Uploader/exportImage.test.d.ts +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +2783 -2684
- package/kdls-manifest.json +2 -2
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@ export interface UploaderProps {
|
|
|
20
20
|
mode?: UploaderMode;
|
|
21
21
|
/** Data URL or src URL of the uploaded file (controlled) */
|
|
22
22
|
value?: string | null;
|
|
23
|
-
/** Fired with the new data URL when a file is selected, or null when removed */
|
|
23
|
+
/** Fired with the new data URL when a file is selected or edited, or null when removed */
|
|
24
24
|
onChange?: (dataUrl: string | null) => void;
|
|
25
25
|
/**
|
|
26
26
|
* Crop constraint. Pass a ratio string (`"16:9"`) or pixel dimensions
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type ImageEdit = {
|
|
2
|
+
viewport: {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
};
|
|
6
|
+
image: {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
};
|
|
10
|
+
crop: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
w: number;
|
|
14
|
+
h: number;
|
|
15
|
+
};
|
|
16
|
+
zoom: number;
|
|
17
|
+
rotation: number;
|
|
18
|
+
output?: {
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare function exportImage(source: string, edit: ImageEdit): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|