@archbase/admin 4.0.35 → 4.0.37

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.
@@ -5,6 +5,8 @@ export interface MyProfileModalOptions {
5
5
  avatarMaxSizeKB?: number;
6
6
  /** Qualidade da compressão da imagem do avatar (0 a 1), sendo 1 melhor qualidade */
7
7
  avatarImageQuality?: number;
8
+ /** Maior dimensão (px) do avatar final — a imagem é redimensionada automaticamente. 0 mantém a resolução original */
9
+ avatarMaxOutputSizePx?: number;
8
10
  }
9
11
  export declare const defaultMyProfileModalOptions: MyProfileModalOptions;
10
12
  export interface ArchbaseMyProfileModalProps {
Binary file
package/dist/index.js CHANGED
@@ -3745,7 +3745,8 @@ const qo = {
3745
3745
  // Configurações de campos obrigatórios
3746
3746
  requiredNickname: !0,
3747
3747
  avatarMaxSizeKB: 2e3,
3748
- avatarImageQuality: 1
3748
+ avatarImageQuality: 1,
3749
+ avatarMaxOutputSizePx: 512
3749
3750
  };
3750
3751
  function Fn({ opened: e, handleClose: t, userId: o, updateUser: A, options: n }) {
3751
3752
  const s = xr(), a = Ir(), l = Ur(), d = It(`myProfile${o}Store`), i = Tt(Yr.User), u = { ...qo, ...n ?? {} }, { dataSource: c, isLoading: h, error: f, isError: b, clearError: v } = Et({
@@ -3793,7 +3794,8 @@ function Fn({ opened: e, handleClose: t, userId: o, updateUser: A, options: n })
3793
3794
  width: 200,
3794
3795
  height: 200,
3795
3796
  maxSizeKB: u.avatarMaxSizeKB,
3796
- imageQuality: u.avatarImageQuality
3797
+ imageQuality: u.avatarImageQuality,
3798
+ maxOutputSizePx: u.avatarMaxOutputSizePx
3797
3799
  }
3798
3800
  ) }),
3799
3801
  /* @__PURE__ */ r(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archbase/admin",
3
- "version": "4.0.35",
3
+ "version": "4.0.37",
4
4
  "description": "Admin interface components for Archbase React",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -43,12 +43,12 @@
43
43
  "react-router-dom": "^6.28.0",
44
44
  "usehooks-ts": "^2.16.0",
45
45
  "zustand": "^5.0.6",
46
- "@archbase/components": "4.0.35",
47
- "@archbase/core": "4.0.35",
48
- "@archbase/data": "4.0.35",
49
- "@archbase/layout": "4.0.35",
50
- "@archbase/security": "4.0.35",
51
- "@archbase/template": "4.0.35"
46
+ "@archbase/components": "4.0.37",
47
+ "@archbase/core": "4.0.37",
48
+ "@archbase/data": "4.0.37",
49
+ "@archbase/layout": "4.0.37",
50
+ "@archbase/security": "4.0.37",
51
+ "@archbase/template": "4.0.37"
52
52
  },
53
53
  "devDependencies": {
54
54
  "keepalive-for-react": "^5.0.7",
Binary file