ablok-components 0.3.11 → 0.3.13
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/ablok-components.es.js +5548 -5512
- package/dist/ablok-components.umd.js +29 -29
- package/dist/utilities/helpers.d.ts +5 -3
- package/package.json +1 -1
|
@@ -7,9 +7,11 @@ export declare function loadImageFromDataUrl(dataUrl: string): Promise<HTMLImage
|
|
|
7
7
|
export declare function resizeImageElementToDataUrl(img: HTMLImageElement, width: number, height: number, mimeType?: string, quality?: number): string;
|
|
8
8
|
export declare function resizeImageFileByMaxWidth(file: File, maxWidth: number, quality?: number): Promise<File>;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* Basic client-side input cleanup for user-entered text.
|
|
11
|
+
*
|
|
12
|
+
* This helps reduce obvious HTML/script injection attempts in plain text fields,
|
|
13
|
+
* but SQL injection must be prevented on the backend with parameterized queries.
|
|
12
14
|
* @param input - The user input string to sanitize
|
|
13
|
-
* @returns Sanitized string
|
|
15
|
+
* @returns Sanitized string for client-side usage
|
|
14
16
|
*/
|
|
15
17
|
export declare function sanitizeInput(input: string): string;
|