@pagamio/frontend-commons-lib 0.8.259 → 0.8.260

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.
@@ -6,7 +6,7 @@ export interface UseImageUploadProps {
6
6
  project: 'vas' | 'stocklink' | 'events' | 'commerce';
7
7
  env: 'dev' | 'uat' | 'prod';
8
8
  endpoint: string;
9
- /** Process image before upload: resize to 800×800, convert to WebP, strip EXIF. Default: true */
9
+ /** Process image before upload: resize to 1920×1920, convert to WebP at 92% quality, strip EXIF. Default: true */
10
10
  processImage?: boolean;
11
11
  }
12
12
  export declare const useImageUpload: ({ project, env, endpoint, processImage }: UseImageUploadProps) => {
@@ -135,7 +135,7 @@ export function uploadFileWithXHR(url, file, onProgress) {
135
135
  * - Strips EXIF metadata (canvas read-back discards it)
136
136
  * - Converts to WebP at the given quality (0–1)
137
137
  */
138
- export function processImageForUpload(file, maxDimension = 800, quality = 0.85) {
138
+ export function processImageForUpload(file, maxDimension = 1920, quality = 0.92) {
139
139
  return new Promise((resolve, reject) => {
140
140
  const img = new window.Image();
141
141
  const objectUrl = URL.createObjectURL(file);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pagamio/frontend-commons-lib",
3
3
  "description": "Pagamio library for Frontend reusable components like the form engine and table container",
4
- "version": "0.8.259",
4
+ "version": "0.8.260",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "provenance": false