@open-slot-ui/core 0.6.0 → 0.6.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 +10 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1918,8 +1918,9 @@ interface CurrencyInfo {
|
|
|
1918
1918
|
/**
|
|
1919
1919
|
* The Stake Engine supported-currency matrix (symbol · decimals · placement), 1:1 with
|
|
1920
1920
|
* the platform's `CurrencyMeta`. Symbol placement: prefix by default, SUFFIX for the
|
|
1921
|
-
* few that render after the amount (DKK/PLN/VND/CLP/ARS/PEN).
|
|
1922
|
-
*
|
|
1921
|
+
* few that render after the amount (DKK/NOK/PLN/VND/CLP/ARS/PEN). Decimals follow the
|
|
1922
|
+
* ISO minor units — 0 for JPY/KRW/IDR/VND/CLP, 3 for the KWD/JOD/BHD dinars (1000 fils),
|
|
1923
|
+
* 2 otherwise. Crypto is included (8-dp) so high-precision balances also format right.
|
|
1923
1924
|
*/
|
|
1924
1925
|
declare const CURRENCY_TABLE: Readonly<Record<string, CurrencyInfo>>;
|
|
1925
1926
|
/** True if `code` is a Stake social/sweepstakes coin (displayed "GC"/"SC"). */
|
package/dist/index.d.ts
CHANGED
|
@@ -1918,8 +1918,9 @@ interface CurrencyInfo {
|
|
|
1918
1918
|
/**
|
|
1919
1919
|
* The Stake Engine supported-currency matrix (symbol · decimals · placement), 1:1 with
|
|
1920
1920
|
* the platform's `CurrencyMeta`. Symbol placement: prefix by default, SUFFIX for the
|
|
1921
|
-
* few that render after the amount (DKK/PLN/VND/CLP/ARS/PEN).
|
|
1922
|
-
*
|
|
1921
|
+
* few that render after the amount (DKK/NOK/PLN/VND/CLP/ARS/PEN). Decimals follow the
|
|
1922
|
+
* ISO minor units — 0 for JPY/KRW/IDR/VND/CLP, 3 for the KWD/JOD/BHD dinars (1000 fils),
|
|
1923
|
+
* 2 otherwise. Crypto is included (8-dp) so high-precision balances also format right.
|
|
1923
1924
|
*/
|
|
1924
1925
|
declare const CURRENCY_TABLE: Readonly<Record<string, CurrencyInfo>>;
|
|
1925
1926
|
/** True if `code` is a Stake social/sweepstakes coin (displayed "GC"/"SC"). */
|
package/dist/index.js
CHANGED
|
@@ -1562,8 +1562,18 @@ var CURRENCY_TABLE = Object.freeze({
|
|
|
1562
1562
|
MXN: { symbol: "MX$", decimals: 2 },
|
|
1563
1563
|
TRY: { symbol: "\u20BA", decimals: 2 },
|
|
1564
1564
|
GBP: { symbol: "\xA3", decimals: 2 },
|
|
1565
|
+
NGN: { symbol: "\u20A6", decimals: 2 },
|
|
1566
|
+
TWD: { symbol: "NT$", decimals: 2 },
|
|
1567
|
+
SGD: { symbol: "SG$", decimals: 2 },
|
|
1568
|
+
MYR: { symbol: "RM", decimals: 2 },
|
|
1569
|
+
CRC: { symbol: "\u20A1", decimals: 2 },
|
|
1570
|
+
// three-decimal dinars (1 unit = 1000 fils) — the >2-decimal path must format these
|
|
1571
|
+
KWD: { symbol: "KD", decimals: 3 },
|
|
1572
|
+
JOD: { symbol: "JD", decimals: 3 },
|
|
1573
|
+
BHD: { symbol: "BD", decimals: 3 },
|
|
1565
1574
|
// ── fiat — symbol AFTER the amount ───────────────────────────────────────────
|
|
1566
1575
|
DKK: { symbol: "kr", decimals: 2, symbolAfter: true },
|
|
1576
|
+
NOK: { symbol: "kr", decimals: 2, symbolAfter: true },
|
|
1567
1577
|
PLN: { symbol: "z\u0142", decimals: 2, symbolAfter: true },
|
|
1568
1578
|
VND: { symbol: "\u20AB", decimals: 0, symbolAfter: true },
|
|
1569
1579
|
CLP: { symbol: "CLP", decimals: 0, symbolAfter: true },
|