@seatlayer/core 0.96.0 → 0.98.0

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.
Files changed (123) hide show
  1. package/dist/ar-Q44JP5JY.js +1 -0
  2. package/dist/be-CGFFSIQL.js +1 -0
  3. package/dist/bg-WOYK6OLH.js +1 -0
  4. package/dist/ca-77ZVI3X5.js +1 -0
  5. package/dist/chunk-2MXDWZQ4.js +1 -0
  6. package/dist/chunk-2P72QUJR.js +1 -0
  7. package/dist/chunk-5N4H3KMR.js +1 -0
  8. package/dist/chunk-ASIIXY5M.js +1 -0
  9. package/dist/{chunk-O3DGXAIC.js → chunk-CUACREZL.js} +1 -1
  10. package/dist/{chunk-CEIVHWRB.js → chunk-FLMKHAUT.js} +1 -1
  11. package/dist/{chunk-TKYTTEJ2.js → chunk-IW7QZIMF.js} +1 -1
  12. package/dist/chunk-M5VINTGE.js +1 -0
  13. package/dist/{chunk-U7CVRE4P.js → chunk-OLGPAFXW.js} +1 -1
  14. package/dist/{chunk-M5X6G7FD.js → chunk-P4C24CIZ.js} +1 -1
  15. package/dist/{chunk-A3ZL3R75.js → chunk-QEPYNCBJ.js} +1 -1
  16. package/dist/chunk-VAI2VDQR.js +1 -0
  17. package/dist/{chunk-Q3MSDG4S.js → chunk-YPESNMTC.js} +1 -1
  18. package/dist/chunk-Z43H6AWN.js +1 -0
  19. package/dist/core/chart-ops/index.cjs +1 -1
  20. package/dist/core/chart-ops/index.d.cts +40 -18
  21. package/dist/core/chart-ops/index.d.ts +40 -18
  22. package/dist/core/chart-ops/index.js +1 -1
  23. package/dist/core/inventory/index.cjs +1 -1
  24. package/dist/core/inventory/index.js +1 -1
  25. package/dist/core/layout/index.cjs +1 -1
  26. package/dist/core/layout/index.js +1 -1
  27. package/dist/core/quality/index.js +1 -1
  28. package/dist/core/render-assets/index.js +1 -1
  29. package/dist/core/sections/index.js +1 -1
  30. package/dist/cs-OSBZYCSR.js +1 -0
  31. package/dist/cy-ZCOJW2WH.js +1 -0
  32. package/dist/da-2PDK6JTR.js +1 -0
  33. package/dist/de-R5LLVFUU.js +1 -0
  34. package/dist/el-ZPFVDCWA.js +1 -0
  35. package/dist/es-7YASJP32.js +1 -0
  36. package/dist/et-J4TV6KQL.js +1 -0
  37. package/dist/fa-4TEO7UGM.js +1 -0
  38. package/dist/fi-GIUDDKMH.js +1 -0
  39. package/dist/fr-J5J2XJLA.js +1 -0
  40. package/dist/he-OCEHSVUJ.js +1 -0
  41. package/dist/hi-EK5CTBW5.js +1 -0
  42. package/dist/hr-SLDTQOYC.js +1 -0
  43. package/dist/hu-2QNE77NO.js +1 -0
  44. package/dist/id-LGDAFQJK.js +1 -0
  45. package/dist/index.cjs +1 -1
  46. package/dist/index.d.cts +8 -16
  47. package/dist/index.d.ts +8 -16
  48. package/dist/index.js +1 -1
  49. package/dist/it-DT4Y3IYB.js +1 -0
  50. package/dist/ja-D5EY2XCQ.js +1 -0
  51. package/dist/ko-DD2NV45Q.js +1 -0
  52. package/dist/ku-KZCMVLBE.js +1 -0
  53. package/dist/localeLoaders-GGAKX22E.js +1 -0
  54. package/dist/lt-QWGTJ47Y.js +1 -0
  55. package/dist/lv-LYAIG3VK.js +1 -0
  56. package/dist/ms-XTF4KNGD.js +1 -0
  57. package/dist/nl-QEXY6XHS.js +1 -0
  58. package/dist/no-HCOXN2CN.js +1 -0
  59. package/dist/pl-BWY53TSD.js +1 -0
  60. package/dist/pt-2UJUBCPL.js +1 -0
  61. package/dist/ro-GGXOLTED.js +1 -0
  62. package/dist/ru-ZTFK3WCU.js +1 -0
  63. package/dist/sk-KU543Y2U.js +1 -0
  64. package/dist/sl-FT576R7A.js +1 -0
  65. package/dist/sr-WE3J46JE.js +1 -0
  66. package/dist/stage-CKb7aNoH.d.cts +18 -0
  67. package/dist/stage-CKb7aNoH.d.ts +18 -0
  68. package/dist/sv-YEAOPSEB.js +1 -0
  69. package/dist/th-BEBRDHJA.js +1 -0
  70. package/dist/tr-LOAHUPSH.js +1 -0
  71. package/dist/uk-2GMICSHN.js +1 -0
  72. package/dist/vi-TC5B6AUR.js +1 -0
  73. package/dist/view3d/index.cjs +283 -78
  74. package/dist/view3d/index.d.cts +152 -78
  75. package/dist/view3d/index.d.ts +152 -78
  76. package/dist/view3d/index.js +281 -76
  77. package/dist/view3d/scene/scene.worker.cjs +1 -1
  78. package/dist/view3d/scene/scene.worker.js +1 -1
  79. package/dist/zh-Hans-TSZWTZQY.js +1 -0
  80. package/dist/zh-Hant-TLB4FZYM.js +1 -0
  81. package/package.json +1 -1
  82. package/dist/ar-3S65PDDG.js +0 -1
  83. package/dist/be-WJKGEBTI.js +0 -1
  84. package/dist/bg-TZUF36MP.js +0 -1
  85. package/dist/ca-WLW64J7W.js +0 -1
  86. package/dist/chunk-F2EXXZSZ.js +0 -1
  87. package/dist/chunk-F7TP67LK.js +0 -1
  88. package/dist/chunk-LAX7F5ML.js +0 -1
  89. package/dist/chunk-LFJUXTIO.js +0 -1
  90. package/dist/chunk-M7JA4BGP.js +0 -1
  91. package/dist/cs-HQXANWJA.js +0 -1
  92. package/dist/cy-EG5BJOG7.js +0 -1
  93. package/dist/da-5XEBRUEE.js +0 -1
  94. package/dist/de-SCVAU32D.js +0 -1
  95. package/dist/el-KBW7YAF5.js +0 -1
  96. package/dist/es-IFLC65KX.js +0 -1
  97. package/dist/et-OXB22VMP.js +0 -1
  98. package/dist/fa-GFAZXHP6.js +0 -1
  99. package/dist/fi-AI67VYYH.js +0 -1
  100. package/dist/fr-V3RG2KYP.js +0 -1
  101. package/dist/he-J3I6MRUR.js +0 -1
  102. package/dist/hr-SA4WZ3AG.js +0 -1
  103. package/dist/hu-TM35NZ4U.js +0 -1
  104. package/dist/it-E4QYIYC4.js +0 -1
  105. package/dist/ja-S5M7EINH.js +0 -1
  106. package/dist/ku-DNZQIUUG.js +0 -1
  107. package/dist/localeLoaders-JTNNRDK2.js +0 -1
  108. package/dist/lt-ETQDX2HL.js +0 -1
  109. package/dist/lv-FYFIWI4F.js +0 -1
  110. package/dist/nl-XOG5SBZQ.js +0 -1
  111. package/dist/no-7UGUTFXW.js +0 -1
  112. package/dist/pl-5HR7DQIK.js +0 -1
  113. package/dist/pt-L4CCONDZ.js +0 -1
  114. package/dist/ro-KZVPOCZ6.js +0 -1
  115. package/dist/ru-CD7HYORB.js +0 -1
  116. package/dist/sk-AQZOHJYW.js +0 -1
  117. package/dist/sl-XYRITXI6.js +0 -1
  118. package/dist/sr-6VTXFVHT.js +0 -1
  119. package/dist/sv-EJWP7WJV.js +0 -1
  120. package/dist/tr-VKVADTIZ.js +0 -1
  121. package/dist/uk-QSJV3LDS.js +0 -1
  122. package/dist/zh-Hans-2FN4LFAW.js +0 -1
  123. package/dist/zh-Hant-5T2AB4FR.js +0 -1
package/dist/index.d.cts CHANGED
@@ -3191,7 +3191,7 @@ declare function generateSeatThumb(seat: ExpandedSeat, focalPoint: Point, _neigh
3191
3191
  * CDN bundle every buyer downloads, which is ~227 KB brotli as of 0.59.0.
3192
3192
  *
3193
3193
  * NOTHING in this file may import a non-English locale. English is the built-in
3194
- * fallback and must resolve synchronously; the other 36 locales are fetched on
3194
+ * fallback and must resolve synchronously; the other 42 locales are fetched on
3195
3195
  * demand — see `./bundles.ts` for why that split is load-bearing rather than a
3196
3196
  * nicety, and `./localeLoaders.ts` for the map the npm build code-splits on.
3197
3197
  *
@@ -3208,7 +3208,7 @@ declare function generateSeatThumb(seat: ExpandedSeat, focalPoint: Point, _neigh
3208
3208
  * expected to cover. `zh-Hans`/`zh-Hant` carry a script subtag because Chinese
3209
3209
  * cannot be selected by language alone — see {@link resolveLocale}.
3210
3210
  */
3211
- type Locale = 'ar' | 'be' | 'bg' | 'ca' | 'cs' | 'cy' | 'da' | 'de' | 'el' | 'en' | 'es' | 'et' | 'fa' | 'fi' | 'fr' | 'he' | 'hr' | 'hu' | 'it' | 'ja' | 'ku' | 'lt' | 'lv' | 'nl' | 'no' | 'pl' | 'pt' | 'ro' | 'ru' | 'sk' | 'sl' | 'sr' | 'sv' | 'tr' | 'uk' | 'zh-Hans' | 'zh-Hant';
3211
+ type Locale = 'ar' | 'be' | 'bg' | 'ca' | 'cs' | 'cy' | 'da' | 'de' | 'el' | 'en' | 'es' | 'et' | 'fa' | 'fi' | 'fr' | 'he' | 'hi' | 'hr' | 'hu' | 'id' | 'it' | 'ja' | 'ko' | 'ku' | 'lt' | 'lv' | 'ms' | 'nl' | 'no' | 'pl' | 'pt' | 'ro' | 'ru' | 'sk' | 'sl' | 'sr' | 'sv' | 'th' | 'tr' | 'uk' | 'vi' | 'zh-Hans' | 'zh-Hant';
3212
3212
  declare const SUPPORTED_LOCALES: Locale[];
3213
3213
  /**
3214
3214
  * Each language's name in itself. A reader scanning a language switcher for
@@ -3232,7 +3232,7 @@ declare const LOCALE_NAMES: Record<Locale, string>;
3232
3232
  *
3233
3233
  * Deliberately written out rather than `[...SUPPORTED_LOCALES]`, even now that
3234
3234
  * the two agree: spreading would make the guard vacuous the moment someone adds
3235
- * a 38th locale to the supported set, which is exactly when it is needed.
3235
+ * a 44th locale to the supported set, which is exactly when it is needed.
3236
3236
  * `test/i18nBundles.test.ts` pins this against the loader map and the files on
3237
3237
  * disk, so the two cannot drift.
3238
3238
  */
@@ -3289,7 +3289,7 @@ declare function formatDate(value: number | Date, opts?: Intl.DateTimeFormatOpti
3289
3289
 
3290
3290
  /**
3291
3291
  * Locale bundle loader — the ONE place that decides how a non-English
3292
- * dictionary reaches the page, and the reason 36 locales cost the buyer
3292
+ * dictionary reaches the page, and the reason 42 locales cost the buyer
3293
3293
  * nothing.
3294
3294
  *
3295
3295
  * There are two delivery paths because there are two builds:
@@ -3302,7 +3302,7 @@ declare function formatDate(value: number | Date, opts?: Intl.DateTimeFormatOpti
3302
3302
  * is INLINED. Until 0.59.0 that is exactly what happened — es/de/fr shipped
3303
3303
  * inside `seatlayer.js` to every buyer of every chart while this file's own
3304
3304
  * comment claimed they were code-split. At ~5 KB brotli each, carrying all
3305
- * 36 that way would have added ~180 KB to a 227 KB bundle. So the CDN path
3305
+ * 36 that way would have added ~180 KB to a 227 KB bundle (42 now). So the CDN path
3306
3306
  * loads a sibling ESM asset by absolute URL instead, exactly like the 3D
3307
3307
  * scene, panorama and hosted-checkout chunks do.
3308
3308
  *
@@ -3356,17 +3356,9 @@ interface MoneyFormatOptions {
3356
3356
  declare function formatMoney(amount: number, currency: string, options: MoneyFormatOptions): string;
3357
3357
  declare function formatMoney(amount: number, currency?: string, fractionDigits?: number, locale?: string): string;
3358
3358
  /**
3359
- * How many decimal places a currency has — 2 for USD/EUR, 0 for JPY/KRW/VND,
3360
- * 3 for KWD/BHD/JOD.
3361
- *
3362
- * Derived from Intl rather than from a table, because ICU already carries ISO
3363
- * 4217's exponents and a second hand-maintained list is a second thing to get
3364
- * wrong. (`workers/api/src/payments/money.ts` DOES keep a table, on purpose: it
3365
- * must THROW for a currency checkout cannot transact. Display has no such duty
3366
- * — it renders whatever the ledger already recorded, including a currency
3367
- * checkout would refuse.)
3368
- *
3369
- * Falls back to 2 for a code Intl rejects, so a bad row cannot blank a chart.
3359
+ * How many decimal places a currency's minor unit has — 2 for USD/EUR/COP,
3360
+ * 0 for JPY/KRW/VND/CLP, 3 for KWD/BHD/JOD. This is the ledger's unit (every
3361
+ * `*_minor` field), not how many digits a price is displayed with.
3370
3362
  */
3371
3363
  declare function currencyExponent(currency?: string): number;
3372
3364
  /**
package/dist/index.d.ts CHANGED
@@ -3191,7 +3191,7 @@ declare function generateSeatThumb(seat: ExpandedSeat, focalPoint: Point, _neigh
3191
3191
  * CDN bundle every buyer downloads, which is ~227 KB brotli as of 0.59.0.
3192
3192
  *
3193
3193
  * NOTHING in this file may import a non-English locale. English is the built-in
3194
- * fallback and must resolve synchronously; the other 36 locales are fetched on
3194
+ * fallback and must resolve synchronously; the other 42 locales are fetched on
3195
3195
  * demand — see `./bundles.ts` for why that split is load-bearing rather than a
3196
3196
  * nicety, and `./localeLoaders.ts` for the map the npm build code-splits on.
3197
3197
  *
@@ -3208,7 +3208,7 @@ declare function generateSeatThumb(seat: ExpandedSeat, focalPoint: Point, _neigh
3208
3208
  * expected to cover. `zh-Hans`/`zh-Hant` carry a script subtag because Chinese
3209
3209
  * cannot be selected by language alone — see {@link resolveLocale}.
3210
3210
  */
3211
- type Locale = 'ar' | 'be' | 'bg' | 'ca' | 'cs' | 'cy' | 'da' | 'de' | 'el' | 'en' | 'es' | 'et' | 'fa' | 'fi' | 'fr' | 'he' | 'hr' | 'hu' | 'it' | 'ja' | 'ku' | 'lt' | 'lv' | 'nl' | 'no' | 'pl' | 'pt' | 'ro' | 'ru' | 'sk' | 'sl' | 'sr' | 'sv' | 'tr' | 'uk' | 'zh-Hans' | 'zh-Hant';
3211
+ type Locale = 'ar' | 'be' | 'bg' | 'ca' | 'cs' | 'cy' | 'da' | 'de' | 'el' | 'en' | 'es' | 'et' | 'fa' | 'fi' | 'fr' | 'he' | 'hi' | 'hr' | 'hu' | 'id' | 'it' | 'ja' | 'ko' | 'ku' | 'lt' | 'lv' | 'ms' | 'nl' | 'no' | 'pl' | 'pt' | 'ro' | 'ru' | 'sk' | 'sl' | 'sr' | 'sv' | 'th' | 'tr' | 'uk' | 'vi' | 'zh-Hans' | 'zh-Hant';
3212
3212
  declare const SUPPORTED_LOCALES: Locale[];
3213
3213
  /**
3214
3214
  * Each language's name in itself. A reader scanning a language switcher for
@@ -3232,7 +3232,7 @@ declare const LOCALE_NAMES: Record<Locale, string>;
3232
3232
  *
3233
3233
  * Deliberately written out rather than `[...SUPPORTED_LOCALES]`, even now that
3234
3234
  * the two agree: spreading would make the guard vacuous the moment someone adds
3235
- * a 38th locale to the supported set, which is exactly when it is needed.
3235
+ * a 44th locale to the supported set, which is exactly when it is needed.
3236
3236
  * `test/i18nBundles.test.ts` pins this against the loader map and the files on
3237
3237
  * disk, so the two cannot drift.
3238
3238
  */
@@ -3289,7 +3289,7 @@ declare function formatDate(value: number | Date, opts?: Intl.DateTimeFormatOpti
3289
3289
 
3290
3290
  /**
3291
3291
  * Locale bundle loader — the ONE place that decides how a non-English
3292
- * dictionary reaches the page, and the reason 36 locales cost the buyer
3292
+ * dictionary reaches the page, and the reason 42 locales cost the buyer
3293
3293
  * nothing.
3294
3294
  *
3295
3295
  * There are two delivery paths because there are two builds:
@@ -3302,7 +3302,7 @@ declare function formatDate(value: number | Date, opts?: Intl.DateTimeFormatOpti
3302
3302
  * is INLINED. Until 0.59.0 that is exactly what happened — es/de/fr shipped
3303
3303
  * inside `seatlayer.js` to every buyer of every chart while this file's own
3304
3304
  * comment claimed they were code-split. At ~5 KB brotli each, carrying all
3305
- * 36 that way would have added ~180 KB to a 227 KB bundle. So the CDN path
3305
+ * 36 that way would have added ~180 KB to a 227 KB bundle (42 now). So the CDN path
3306
3306
  * loads a sibling ESM asset by absolute URL instead, exactly like the 3D
3307
3307
  * scene, panorama and hosted-checkout chunks do.
3308
3308
  *
@@ -3356,17 +3356,9 @@ interface MoneyFormatOptions {
3356
3356
  declare function formatMoney(amount: number, currency: string, options: MoneyFormatOptions): string;
3357
3357
  declare function formatMoney(amount: number, currency?: string, fractionDigits?: number, locale?: string): string;
3358
3358
  /**
3359
- * How many decimal places a currency has — 2 for USD/EUR, 0 for JPY/KRW/VND,
3360
- * 3 for KWD/BHD/JOD.
3361
- *
3362
- * Derived from Intl rather than from a table, because ICU already carries ISO
3363
- * 4217's exponents and a second hand-maintained list is a second thing to get
3364
- * wrong. (`workers/api/src/payments/money.ts` DOES keep a table, on purpose: it
3365
- * must THROW for a currency checkout cannot transact. Display has no such duty
3366
- * — it renders whatever the ledger already recorded, including a currency
3367
- * checkout would refuse.)
3368
- *
3369
- * Falls back to 2 for a code Intl rejects, so a bad row cannot blank a chart.
3359
+ * How many decimal places a currency's minor unit has — 2 for USD/EUR/COP,
3360
+ * 0 for JPY/KRW/VND/CLP, 3 for KWD/BHD/JOD. This is the ledger's unit (every
3361
+ * `*_minor` field), not how many digits a price is displayed with.
3370
3362
  */
3371
3363
  declare function currencyExponent(currency?: string): number;
3372
3364
  /**