@open-slot-ui/core 0.3.3 → 0.4.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/dist/index.d.cts CHANGED
@@ -484,6 +484,11 @@ declare class ValueDisplay extends Control {
484
484
  get(): number;
485
485
  /** Keep the prior spec on malformed input; clamp decimals to 0..8 (P11). */
486
486
  setCurrency(spec: CurrencySpec): void;
487
+ /** Accent emphasis: the renderer tints the value in the theme accent while on.
488
+ * For "this number is modified" moments — e.g. a bet display showing the
489
+ * EFFECTIVE stake while an ante/boost multiplies it. */
490
+ readonly emphasized: Signal<boolean>;
491
+ setEmphasis(on: boolean): void;
487
492
  /** Integer minor units for the counter (no float drift). */
488
493
  get minorUnits(): number;
489
494
  }
package/dist/index.d.ts CHANGED
@@ -484,6 +484,11 @@ declare class ValueDisplay extends Control {
484
484
  get(): number;
485
485
  /** Keep the prior spec on malformed input; clamp decimals to 0..8 (P11). */
486
486
  setCurrency(spec: CurrencySpec): void;
487
+ /** Accent emphasis: the renderer tints the value in the theme accent while on.
488
+ * For "this number is modified" moments — e.g. a bet display showing the
489
+ * EFFECTIVE stake while an ante/boost multiplies it. */
490
+ readonly emphasized: Signal<boolean>;
491
+ setEmphasis(on: boolean): void;
487
492
  /** Integer minor units for the counter (no float drift). */
488
493
  get minorUnits(): number;
489
494
  }
package/dist/index.js CHANGED
@@ -456,6 +456,13 @@ var ValueDisplay = class extends Control {
456
456
  if (!spec || typeof spec.code !== "string") return;
457
457
  this.currency.set({ ...spec, decimals: clampDecimals(spec.decimals) });
458
458
  }
459
+ /** Accent emphasis: the renderer tints the value in the theme accent while on.
460
+ * For "this number is modified" moments — e.g. a bet display showing the
461
+ * EFFECTIVE stake while an ante/boost multiplies it. */
462
+ emphasized = new Signal(false);
463
+ setEmphasis(on) {
464
+ this.emphasized.set(on === true);
465
+ }
459
466
  /** Integer minor units for the counter (no float drift). */
460
467
  get minorUnits() {
461
468
  return Math.round(this.value.get() * Math.pow(10, this.currency.get().decimals));
@@ -1447,10 +1454,12 @@ var openuiDefaults = {
1447
1454
  };
1448
1455
  var openuiSocialDefaults = {
1449
1456
  "openui.bet": "Play",
1450
- "openui.balance": "Credits",
1457
+ "openui.balance": "Balance",
1451
1458
  "openui.win": "Prize",
1452
1459
  "openui.buyFeature.title": "Play bonus",
1453
- "openui.buyFeature.message": "Play this bonus now?"
1460
+ "openui.buyFeature.message": "Play this bonus now?",
1461
+ "openui.err.insufficient.message": "You don't have enough balance for this play.",
1462
+ "openui.err.limit.message": "A play limit has been reached. Please try again later."
1454
1463
  };
1455
1464
  function interpolate(template, vars) {
1456
1465
  if (!vars) return template;