cynx-lib 1.3.73 → 1.3.74

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cynx-lib",
3
- "version": "1.3.73",
3
+ "version": "1.3.74",
4
4
  "type": "module",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -335,6 +335,7 @@ export default function PrivacyBlur({
335
335
  shimmerSpeed,
336
336
  showBadge = true,
337
337
  showCountdown = false,
338
+ showRevealButton = false,
338
339
  position = 'center',
339
340
  icon,
340
341
  badgeIcon,
@@ -444,7 +445,7 @@ export default function PrivacyBlur({
444
445
  const effectiveBadgeIcon = badgeIcon || icon;
445
446
  const blurValue = typeof blur === 'number' ? `${blur}px` : blur;
446
447
  const isBlurred = active && !tempRevealed;
447
- const hasOverlay = showBadge && Boolean(text || effectiveBadgeIcon || isRevealable);
448
+ const hasOverlay = showBadge && Boolean(text || effectiveBadgeIcon || (isRevealable && showRevealButton));
448
449
  const placementStyles = getPlacementStyles(position);
449
450
 
450
451
  return (
@@ -539,7 +540,7 @@ export default function PrivacyBlur({
539
540
  {effectiveBadgeIcon || <EyeOff size={14} style={{ color: 'var(--muted)' }} />}
540
541
  </span>
541
542
  {text && <span style={{ whiteSpace: 'normal', wordBreak: 'break-word', lineHeight: 1.35 }}>{text}</span>}
542
- {isRevealable && (
543
+ {isRevealable && showRevealButton && (
543
544
  <span style={{ fontSize: '.7rem', color: 'var(--accent)', textDecoration: 'underline', marginLeft: 4, flexShrink: 0, whiteSpace: 'nowrap', alignSelf: 'center' }}>
544
545
  {revealText}
545
546
  </span>