beez-ui 3.0.0 → 3.0.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/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ Todos los cambios relevantes de beez-ui se documentan en este archivo con el for
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [3.0.1] - 2026-10-16
8
+
9
+ ### Fixed
10
+
11
+ - Las fotos de `Avatar`, `AvatarGroup` y `AccountMenu` se piden sin `Referer` (`referrerPolicy="no-referrer"`), así cargan las fotos de perfil de Google que antes se rechazaban y quedaban las iniciales.
12
+
7
13
  ## [3.0.0] - 2026-10-16
8
14
 
9
15
  ### Added
@@ -2,7 +2,7 @@
2
2
  import { c as _c } from "react/compiler-runtime";
3
3
  import { Avatar as AvatarPrimitive } from "@base-ui/react/avatar";
4
4
  import { AnimatePresence, motion } from "motion/react";
5
- import { AVATAR_STATUS_HIDDEN_SCALE } from "../../constants/avatar.js";
5
+ import { AVATAR_IMAGE_REFERRER_POLICY, AVATAR_STATUS_HIDDEN_SCALE } from "../../constants/avatar.js";
6
6
  import { usePrefersReducedMotion } from "../../hooks/use-prefers-reduced-motion.js";
7
7
  import { cn } from "../../lib/utils.js";
8
8
  import { ARC_DURATION, ARC_SPRING_SNAPPY } from "../../motion/arc-tokens.js";
@@ -168,6 +168,7 @@ function AvatarImage(t0) {
168
168
  src: t5,
169
169
  loading: "lazy",
170
170
  decoding: "async",
171
+ referrerPolicy: AVATAR_IMAGE_REFERRER_POLICY,
171
172
  ...props
172
173
  })
173
174
  });
@@ -1,10 +1,15 @@
1
- /** Copy and options of Arc's Avatar and Avatar group. */
2
1
  /** Presence an avatar can show with Arc's status dot. */
3
2
  export type AvatarStatus = "online" | "offline";
4
3
  /** Avatar diameters: 24px (`sm`), 32px (`md`), 40px (`lg`) and Arc's 88px profile size (`xl`). */
5
4
  export type AvatarSize = "sm" | "md" | "lg" | "xl";
6
5
  /** Sizes an avatar group accepts for its avatars and overflow chip. */
7
6
  export type AvatarGroupSize = "sm" | "md" | "lg";
7
+ /**
8
+ * Referrer policy of avatar photos. They are usually hosted by an identity provider (Google, GitHub), and Google rejects
9
+ * some photos requested with a cross-site `Referer`, which left the avatar on its initials. Omitting the referrer also
10
+ * keeps the consumer's page private. A consumer can still pass its own `referrerPolicy`.
11
+ */
12
+ export declare const AVATAR_IMAGE_REFERRER_POLICY = "no-referrer";
8
13
  /** Default Spanish labels read by assistive technology for each presence. */
9
14
  export declare const AVATAR_STATUS_LABEL: {
10
15
  readonly online: "En línea";
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Referrer policy of avatar photos. They are usually hosted by an identity provider (Google, GitHub), and Google rejects
3
+ * some photos requested with a cross-site `Referer`, which left the avatar on its initials. Omitting the referrer also
4
+ * keeps the consumer's page private. A consumer can still pass its own `referrerPolicy`.
5
+ */
6
+ export const AVATAR_IMAGE_REFERRER_POLICY = "no-referrer";
1
7
  /** Default Spanish labels read by assistive technology for each presence. */
2
8
  export const AVATAR_STATUS_LABEL = {
3
9
  online: "En línea",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beez-ui",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Shared UI components with the customizations extracted from TuTribu.",
5
5
  "type": "module",
6
6
  "sideEffects": [