@seatlayer/core 0.95.1 → 0.97.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.
- package/dist/ar-Q44JP5JY.js +1 -0
- package/dist/be-CGFFSIQL.js +1 -0
- package/dist/bg-WOYK6OLH.js +1 -0
- package/dist/ca-77ZVI3X5.js +1 -0
- package/dist/chunk-2P72QUJR.js +1 -0
- package/dist/chunk-5N4H3KMR.js +1 -0
- package/dist/chunk-ASIIXY5M.js +1 -0
- package/dist/{chunk-O3DGXAIC.js → chunk-CUACREZL.js} +1 -1
- package/dist/{chunk-CEIVHWRB.js → chunk-FLMKHAUT.js} +1 -1
- package/dist/{chunk-TKYTTEJ2.js → chunk-IW7QZIMF.js} +1 -1
- package/dist/chunk-M5VINTGE.js +1 -0
- package/dist/chunk-NGZXKXOY.js +1 -0
- package/dist/{chunk-U7CVRE4P.js → chunk-OLGPAFXW.js} +1 -1
- package/dist/{chunk-M5X6G7FD.js → chunk-P4C24CIZ.js} +1 -1
- package/dist/{chunk-A3ZL3R75.js → chunk-QEPYNCBJ.js} +1 -1
- package/dist/chunk-VAI2VDQR.js +1 -0
- package/dist/{chunk-Q3MSDG4S.js → chunk-YPESNMTC.js} +1 -1
- package/dist/chunk-Z43H6AWN.js +1 -0
- package/dist/core/chart-ops/index.cjs +1 -1
- package/dist/core/chart-ops/index.d.cts +40 -18
- package/dist/core/chart-ops/index.d.ts +40 -18
- package/dist/core/chart-ops/index.js +1 -1
- package/dist/core/inventory/index.cjs +1 -1
- package/dist/core/inventory/index.js +1 -1
- package/dist/core/layout/index.cjs +1 -1
- package/dist/core/layout/index.js +1 -1
- package/dist/core/quality/index.js +1 -1
- package/dist/core/render-assets/index.js +1 -1
- package/dist/core/sections/index.js +1 -1
- package/dist/cs-OSBZYCSR.js +1 -0
- package/dist/cy-ZCOJW2WH.js +1 -0
- package/dist/da-2PDK6JTR.js +1 -0
- package/dist/de-R5LLVFUU.js +1 -0
- package/dist/el-ZPFVDCWA.js +1 -0
- package/dist/es-7YASJP32.js +1 -0
- package/dist/et-J4TV6KQL.js +1 -0
- package/dist/fa-4TEO7UGM.js +1 -0
- package/dist/fi-GIUDDKMH.js +1 -0
- package/dist/fr-J5J2XJLA.js +1 -0
- package/dist/he-OCEHSVUJ.js +1 -0
- package/dist/hi-EK5CTBW5.js +1 -0
- package/dist/hr-SLDTQOYC.js +1 -0
- package/dist/hu-2QNE77NO.js +1 -0
- package/dist/id-LGDAFQJK.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +8 -16
- package/dist/index.d.ts +8 -16
- package/dist/index.js +1 -1
- package/dist/it-DT4Y3IYB.js +1 -0
- package/dist/ja-D5EY2XCQ.js +1 -0
- package/dist/ko-DD2NV45Q.js +1 -0
- package/dist/ku-KZCMVLBE.js +1 -0
- package/dist/localeLoaders-GGAKX22E.js +1 -0
- package/dist/lt-QWGTJ47Y.js +1 -0
- package/dist/lv-LYAIG3VK.js +1 -0
- package/dist/ms-XTF4KNGD.js +1 -0
- package/dist/nl-QEXY6XHS.js +1 -0
- package/dist/no-HCOXN2CN.js +1 -0
- package/dist/pl-BWY53TSD.js +1 -0
- package/dist/pt-2UJUBCPL.js +1 -0
- package/dist/ro-GGXOLTED.js +1 -0
- package/dist/ru-ZTFK3WCU.js +1 -0
- package/dist/sk-KU543Y2U.js +1 -0
- package/dist/sl-FT576R7A.js +1 -0
- package/dist/sr-WE3J46JE.js +1 -0
- package/dist/stage-CKb7aNoH.d.cts +18 -0
- package/dist/stage-CKb7aNoH.d.ts +18 -0
- package/dist/sv-YEAOPSEB.js +1 -0
- package/dist/th-BEBRDHJA.js +1 -0
- package/dist/tr-LOAHUPSH.js +1 -0
- package/dist/uk-2GMICSHN.js +1 -0
- package/dist/vi-TC5B6AUR.js +1 -0
- package/dist/view3d/index.cjs +241 -78
- package/dist/view3d/index.d.cts +146 -78
- package/dist/view3d/index.d.ts +146 -78
- package/dist/view3d/index.js +239 -76
- package/dist/view3d/scene/scene.worker.cjs +1 -1
- package/dist/view3d/scene/scene.worker.js +1 -1
- package/dist/zh-Hans-TSZWTZQY.js +1 -0
- package/dist/zh-Hant-TLB4FZYM.js +1 -0
- package/package.json +1 -1
- package/dist/ar-ACDAWDG3.js +0 -1
- package/dist/be-MMLNJEJ2.js +0 -1
- package/dist/bg-ULTV77R3.js +0 -1
- package/dist/ca-2NRQWAFI.js +0 -1
- package/dist/chunk-F2EXXZSZ.js +0 -1
- package/dist/chunk-F7TP67LK.js +0 -1
- package/dist/chunk-LAX7F5ML.js +0 -1
- package/dist/chunk-LFJUXTIO.js +0 -1
- package/dist/chunk-M7JA4BGP.js +0 -1
- package/dist/cs-B3WL73W4.js +0 -1
- package/dist/cy-3EP6TX65.js +0 -1
- package/dist/da-YFCIQ5IW.js +0 -1
- package/dist/de-Y6HGIGLE.js +0 -1
- package/dist/el-7XNCC4HQ.js +0 -1
- package/dist/es-HOHSNNC5.js +0 -1
- package/dist/et-4XG3F3L2.js +0 -1
- package/dist/fa-LGZETRFZ.js +0 -1
- package/dist/fi-EJ7WAJ6Y.js +0 -1
- package/dist/fr-2AYVLJIX.js +0 -1
- package/dist/he-AW5ARPXB.js +0 -1
- package/dist/hr-TWJE7W7B.js +0 -1
- package/dist/hu-RJSTAAQ7.js +0 -1
- package/dist/it-CMJGPQEI.js +0 -1
- package/dist/ja-ADBJEN56.js +0 -1
- package/dist/ku-EUUAH5EO.js +0 -1
- package/dist/localeLoaders-E6HOKVNP.js +0 -1
- package/dist/lt-5IPKKDZP.js +0 -1
- package/dist/lv-6D3FN6DH.js +0 -1
- package/dist/nl-QVZAZWDH.js +0 -1
- package/dist/no-PEVS2KFB.js +0 -1
- package/dist/pl-ZZFOX74N.js +0 -1
- package/dist/pt-NKA7SU2B.js +0 -1
- package/dist/ro-NMCKGNBF.js +0 -1
- package/dist/ru-HPOD5UXT.js +0 -1
- package/dist/sk-GRJUAHE4.js +0 -1
- package/dist/sl-WZMICIEW.js +0 -1
- package/dist/sr-5DMHZCZI.js +0 -1
- package/dist/sv-G3NNXEWJ.js +0 -1
- package/dist/tr-HJ2KMOJD.js +0 -1
- package/dist/uk-FVJDE2SG.js +0 -1
- package/dist/zh-Hans-HPO7O27I.js +0 -1
- package/dist/zh-Hant-55X4MZZC.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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
/**
|