@digilogiclabs/saas-factory-ui 1.18.1 → 1.18.2

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
@@ -4856,8 +4856,9 @@ interface RandomPlayerPickerProps {
4856
4856
  * Visual intensity preset. Default "normal".
4857
4857
  * - "subtle" / "normal": current behavior — shorter spins, standard
4858
4858
  * ease-out curve.
4859
- * - "dramatic": physics-like spin — ~1.8× duration, exponential ease
4860
- * for a long winding-down tail, +4 extra revolutions, plus more
4859
+ * - "dramatic": physics-like spin — 1.5× duration, ease-out-quart
4860
+ * curve so motion continues through the full duration with a slow
4861
+ * winding-down tail, +4 extra revolutions, plus more
4861
4862
  * particles/glow/shake on reveal.
4862
4863
  */
4863
4864
  intensity?: RandomPlayerIntensity;
package/dist/index.d.ts CHANGED
@@ -4856,8 +4856,9 @@ interface RandomPlayerPickerProps {
4856
4856
  * Visual intensity preset. Default "normal".
4857
4857
  * - "subtle" / "normal": current behavior — shorter spins, standard
4858
4858
  * ease-out curve.
4859
- * - "dramatic": physics-like spin — ~1.8× duration, exponential ease
4860
- * for a long winding-down tail, +4 extra revolutions, plus more
4859
+ * - "dramatic": physics-like spin — 1.5× duration, ease-out-quart
4860
+ * curve so motion continues through the full duration with a slow
4861
+ * winding-down tail, +4 extra revolutions, plus more
4861
4862
  * particles/glow/shake on reveal.
4862
4863
  */
4863
4864
  intensity?: RandomPlayerIntensity;
package/dist/index.js CHANGED
@@ -33073,7 +33073,7 @@ var WEDGE_PALETTE = [
33073
33073
  "#f97316"
33074
33074
  ];
33075
33075
  var DEFAULT_EASING = "cubic-bezier(0.12, 0.78, 0.22, 1)";
33076
- var DRAMATIC_EASING = "cubic-bezier(0.16, 1, 0.3, 1)";
33076
+ var DRAMATIC_EASING = "cubic-bezier(0.22, 1, 0.36, 1)";
33077
33077
  var INTENSITY_CONFIG = {
33078
33078
  subtle: {
33079
33079
  particles: 14,
@@ -33098,7 +33098,7 @@ var INTENSITY_CONFIG = {
33098
33098
  shakePeak: 10,
33099
33099
  glowMult: 1.45,
33100
33100
  pulseStroke: 8,
33101
- durationMult: 1.8,
33101
+ durationMult: 1.5,
33102
33102
  easing: DRAMATIC_EASING,
33103
33103
  revsBoost: 4
33104
33104
  }
@@ -33231,13 +33231,18 @@ function RandomPlayerPicker({
33231
33231
  (0, import_react69.useEffect)(() => {
33232
33232
  const ids = participants.map((p) => p.id).join("|");
33233
33233
  const structuralChange = ids !== prevIdsRef.current;
33234
- setPool(participants);
33235
33234
  if (structuralChange) {
33235
+ setPool(participants);
33236
33236
  setHistory([]);
33237
33237
  setWinner(null);
33238
33238
  setRotation(0);
33239
33239
  setParticles([]);
33240
33240
  prevIdsRef.current = ids;
33241
+ } else {
33242
+ setPool((prev) => {
33243
+ const byId = new Map(participants.map((p) => [p.id, p]));
33244
+ return prev.map((p) => byId.get(p.id) ?? p);
33245
+ });
33241
33246
  }
33242
33247
  }, [participants]);
33243
33248
  const cx = size / 2;