@energy8platform/shell 0.7.0 → 0.7.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/html.cjs.js CHANGED
@@ -403,15 +403,19 @@ function resolveTheme(theme = {}) {
403
403
  * trailing zeros are trimmed down to (but never past) `minDecimals`, so small wins keep their
404
404
  * significant digits. Balance / bet / prices stay fixed at `minDecimals`.
405
405
  *
406
+ * Separators default to the platform convention — `.` decimal, `,` thousands (`€1,234.50`).
407
+ * A comma decimal is NOT safe as a default: players read "2,50" as 250 and believe they were
408
+ * paid far more than they were. Games that need another convention pass `currency.separator`.
409
+ *
406
410
  * Example with `maxDecimals: 4, minDecimals: 2`:
407
- * fixed → 0.0673 → 0,07 0.3 → 0,30
408
- * variable → 0.0673 → 0,0673 0.067 → 0,067 0.3 → 0,30 0 → 0,00
411
+ * fixed → 0.0673 → 0.07 0.3 → 0.30
412
+ * variable → 0.0673 → 0.0673 0.067 → 0.067 0.3 → 0.30 0 → 0.00
409
413
  */
410
414
  function formatCurrency(value, currency, variableDecimals = false) {
411
415
  const maxDecimals = currency.maxDecimals ?? 2;
412
416
  const minDecimals = Math.max(0, Math.min(maxDecimals, currency.minDecimals ?? maxDecimals));
413
- const thousands = currency.separator?.thousands ?? '.';
414
- const decimal = currency.separator?.decimal ?? ',';
417
+ const thousands = currency.separator?.thousands ?? ',';
418
+ const decimal = currency.separator?.decimal ?? '.';
415
419
  const safe = Number.isFinite(value) ? value : 0;
416
420
  // fixed callers round at minDecimals; variable callers round at maxDecimals then trim back down.
417
421
  const places = variableDecimals ? maxDecimals : minDecimals;
@@ -1689,7 +1693,7 @@ class KeyboardController {
1689
1693
 
1690
1694
  // AUTO-GENERATED by scripts/gen-version.mjs — do not edit. Mirrors package.json "version".
1691
1695
  /** The @energy8platform/shell package version, stamped into the game-info footer. */
1692
- const PACKAGE_VERSION = '0.7.0';
1696
+ const PACKAGE_VERSION = '0.7.1';
1693
1697
 
1694
1698
  /** Apply defaults to the raw config (the mount target lives on the renderer, not here). */
1695
1699
  function resolveConfig(config) {