@digilogiclabs/saas-factory-ui 1.20.0 → 1.21.0

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/index.d.mts CHANGED
@@ -4887,6 +4887,24 @@ interface RandomPlayerPickerProps {
4887
4887
  * winner is revealed. Default false.
4888
4888
  */
4889
4889
  enableHaptics?: boolean;
4890
+ /**
4891
+ * Optional tick sound URL — played once per wedge/row crossing during a
4892
+ * spin. Component preloads the clip, plays it with every `onTick` event,
4893
+ * and releases the Audio element on unmount. Pair with any short `.mp3`
4894
+ * or `.wav`. Ignored under `prefers-reduced-motion`. Does NOT suppress
4895
+ * the `onTick` callback, so consumers can still wire custom behavior
4896
+ * alongside the built-in sound.
4897
+ */
4898
+ tickSoundUrl?: string;
4899
+ /**
4900
+ * Optional winner sound URL — played once when a winner is revealed.
4901
+ * Same preload/cleanup semantics as `tickSoundUrl`.
4902
+ */
4903
+ winSoundUrl?: string;
4904
+ /**
4905
+ * Volume for `tickSoundUrl` and `winSoundUrl`. Range 0..1. Default 0.6.
4906
+ */
4907
+ soundVolume?: number;
4890
4908
  /**
4891
4909
  * How to present the idle state (participants < 2). Default "message".
4892
4910
  * Set to "wheel" to reserve layout space with a gray placeholder disc.
@@ -4904,7 +4922,7 @@ interface RandomPlayerPickerProps {
4904
4922
  /** Accessible label for the wheel root. */
4905
4923
  ariaLabel?: string;
4906
4924
  }
4907
- declare function RandomPlayerPicker({ participants, mode, reelVisibleRows, reelRowHeight, theme, darkMode, size, onPick, onSpinStart, onTick, trigger, label, removeWinners, spinDuration, minRevolutions, maxRevolutions, showHistory, showControls, showStats, renderWinner, spinRef, intensity, enableHaptics, placeholderMode, placeholderCaption, className, style, ariaLabel, }: RandomPlayerPickerProps): react_jsx_runtime.JSX.Element;
4925
+ declare function RandomPlayerPicker({ participants, mode, reelVisibleRows, reelRowHeight, theme, darkMode, size, onPick, onSpinStart, onTick, trigger, label, removeWinners, spinDuration, minRevolutions, maxRevolutions, showHistory, showControls, showStats, renderWinner, spinRef, intensity, enableHaptics, tickSoundUrl, winSoundUrl, soundVolume, placeholderMode, placeholderCaption, className, style, ariaLabel, }: RandomPlayerPickerProps): react_jsx_runtime.JSX.Element;
4908
4926
 
4909
4927
  type GameTimerMode = "countdown" | "countup";
4910
4928
  type GameTimerThemePreset = "green" | "red" | "blue" | "amber" | "purple" | "pink" | "teal";
package/dist/index.d.ts CHANGED
@@ -4887,6 +4887,24 @@ interface RandomPlayerPickerProps {
4887
4887
  * winner is revealed. Default false.
4888
4888
  */
4889
4889
  enableHaptics?: boolean;
4890
+ /**
4891
+ * Optional tick sound URL — played once per wedge/row crossing during a
4892
+ * spin. Component preloads the clip, plays it with every `onTick` event,
4893
+ * and releases the Audio element on unmount. Pair with any short `.mp3`
4894
+ * or `.wav`. Ignored under `prefers-reduced-motion`. Does NOT suppress
4895
+ * the `onTick` callback, so consumers can still wire custom behavior
4896
+ * alongside the built-in sound.
4897
+ */
4898
+ tickSoundUrl?: string;
4899
+ /**
4900
+ * Optional winner sound URL — played once when a winner is revealed.
4901
+ * Same preload/cleanup semantics as `tickSoundUrl`.
4902
+ */
4903
+ winSoundUrl?: string;
4904
+ /**
4905
+ * Volume for `tickSoundUrl` and `winSoundUrl`. Range 0..1. Default 0.6.
4906
+ */
4907
+ soundVolume?: number;
4890
4908
  /**
4891
4909
  * How to present the idle state (participants < 2). Default "message".
4892
4910
  * Set to "wheel" to reserve layout space with a gray placeholder disc.
@@ -4904,7 +4922,7 @@ interface RandomPlayerPickerProps {
4904
4922
  /** Accessible label for the wheel root. */
4905
4923
  ariaLabel?: string;
4906
4924
  }
4907
- declare function RandomPlayerPicker({ participants, mode, reelVisibleRows, reelRowHeight, theme, darkMode, size, onPick, onSpinStart, onTick, trigger, label, removeWinners, spinDuration, minRevolutions, maxRevolutions, showHistory, showControls, showStats, renderWinner, spinRef, intensity, enableHaptics, placeholderMode, placeholderCaption, className, style, ariaLabel, }: RandomPlayerPickerProps): react_jsx_runtime.JSX.Element;
4925
+ declare function RandomPlayerPicker({ participants, mode, reelVisibleRows, reelRowHeight, theme, darkMode, size, onPick, onSpinStart, onTick, trigger, label, removeWinners, spinDuration, minRevolutions, maxRevolutions, showHistory, showControls, showStats, renderWinner, spinRef, intensity, enableHaptics, tickSoundUrl, winSoundUrl, soundVolume, placeholderMode, placeholderCaption, className, style, ariaLabel, }: RandomPlayerPickerProps): react_jsx_runtime.JSX.Element;
4908
4926
 
4909
4927
  type GameTimerMode = "countdown" | "countup";
4910
4928
  type GameTimerThemePreset = "green" | "red" | "blue" | "amber" | "purple" | "pink" | "teal";