@open-slot-ui/core 0.1.0 → 0.1.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.cjs CHANGED
@@ -1172,9 +1172,6 @@ function validateSpec(spec) {
1172
1172
  if (spec.rtp != null && !(typeof spec.rtp === "number" && Number.isFinite(spec.rtp))) {
1173
1173
  add("error", "rtp", "bad-rtp", `rtp must be a number, got ${String(spec.rtp)}`);
1174
1174
  }
1175
- if (spec.statusBar != null && spec.statusBar !== "top" && spec.statusBar !== "bottom") {
1176
- add("error", "statusBar", "bad-statusbar", `statusBar must be 'top' or 'bottom', got "${String(spec.statusBar)}"`);
1177
- }
1178
1175
  if (spec.realityCheck != null && !(typeof spec.realityCheck.everyMinutes === "number" && spec.realityCheck.everyMinutes > 0)) {
1179
1176
  add("error", "realityCheck.everyMinutes", "bad-interval", "realityCheck.everyMinutes must be a number > 0");
1180
1177
  }
@@ -2257,20 +2254,6 @@ function clampBet(amount, cfg, divisor = API_AMOUNT_DIVISOR) {
2257
2254
  return Math.min(max, Math.max(min, v));
2258
2255
  }
2259
2256
 
2260
- // src/win.ts
2261
- var DEFAULT_WIN_TIERS = Object.freeze([
2262
- { name: "big", minMultiplier: 10 },
2263
- { name: "mega", minMultiplier: 50 },
2264
- { name: "epic", minMultiplier: 100 }
2265
- ]);
2266
- function winTier(win, stake, tiers = DEFAULT_WIN_TIERS) {
2267
- if (!Number.isFinite(win) || !Number.isFinite(stake) || stake <= 0 || win <= stake) return "none";
2268
- const mult = win / stake;
2269
- let name = "win";
2270
- for (const t of tiers) if (mult >= t.minMultiplier) name = t.name;
2271
- return name;
2272
- }
2273
-
2274
2257
  exports.API_AMOUNT_DIVISOR = API_AMOUNT_DIVISOR;
2275
2258
  exports.AutoplayControl = AutoplayControl;
2276
2259
  exports.BLOCK_KINDS = BLOCK_KINDS;
@@ -2281,7 +2264,6 @@ exports.Control = Control;
2281
2264
  exports.ControlRegistry = ControlRegistry;
2282
2265
  exports.DEFAULT_MENU_TITLES = DEFAULT_MENU_TITLES;
2283
2266
  exports.DEFAULT_NOTICE_ACTION = DEFAULT_NOTICE_ACTION;
2284
- exports.DEFAULT_WIN_TIERS = DEFAULT_WIN_TIERS;
2285
2267
  exports.DictionaryTranslator = DictionaryTranslator;
2286
2268
  exports.EventBus = EventBus;
2287
2269
  exports.EventLog = EventLog;
@@ -2341,6 +2323,5 @@ exports.sanitizeThemeOverrides = sanitizeThemeOverrides;
2341
2323
  exports.themePresets = themePresets;
2342
2324
  exports.validateSpec = validateSpec;
2343
2325
  exports.valueFitMaxWidth = valueFitMaxWidth;
2344
- exports.winTier = winTier;
2345
2326
  //# sourceMappingURL=index.cjs.map
2346
2327
  //# sourceMappingURL=index.cjs.map