@obb871001/api-integration-sdk 1.0.141 → 1.0.142

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.js CHANGED
@@ -841,6 +841,13 @@ const ui = mi(null), sl = () => {
841
841
  default:
842
842
  return e;
843
843
  }
844
+ }, dl = (e) => {
845
+ let i = Number(e);
846
+ return isNaN(i) ? e : new Intl.NumberFormat("en-US", {
847
+ style: "decimal",
848
+ minimumFractionDigits: 2,
849
+ maximumFractionDigits: 2
850
+ }).format(i);
844
851
  }, me = () => {
845
852
  const { client: e } = te(), i = V(
846
853
  async (r) => {
@@ -27478,7 +27485,7 @@ const ui = mi(null), sl = () => {
27478
27485
  const n = Nt({ enabled: i });
27479
27486
  return /* @__PURE__ */ Ze.jsx(ui.Provider, { value: n, children: e });
27480
27487
  };
27481
- function dl({
27488
+ function cl({
27482
27489
  children: e,
27483
27490
  autoFetchGamesInfo: i = !1,
27484
27491
  useMockData: m = !1,
@@ -27498,7 +27505,7 @@ function dl({
27498
27505
  ), _ = n || f;
27499
27506
  return /* @__PURE__ */ Ze.jsx(it, { client: _, children: /* @__PURE__ */ Ze.jsx(si.Provider, { value: { client: u, ...s }, children: /* @__PURE__ */ Ze.jsx(Et, { autoFetch: i, mockData: m, children: e }) }) });
27500
27507
  }
27501
- const cl = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27508
+ const _l = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27502
27509
  const { userCurrencyExchangeApi: m } = me(), { getToken: n } = te(), { enabled: s, ...u } = i, _ = !!n?.() && (s ? s.every((p) => p) : !0);
27503
27510
  return oi({
27504
27511
  queries: [
@@ -27512,7 +27519,7 @@ const cl = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27512
27519
  }
27513
27520
  ]
27514
27521
  });
27515
- }, _l = ({
27522
+ }, fl = ({
27516
27523
  refetchInterval: e = 5e4,
27517
27524
  trigger: i = [],
27518
27525
  enabled: m = !0
@@ -27528,7 +27535,7 @@ const cl = ({ otherQueryKey: e = [], options: i = {} } = {}) => {
27528
27535
  }
27529
27536
  ]
27530
27537
  });
27531
- }, fl = ({ enabled: e = !0 } = {}) => {
27538
+ }, Ul = ({ enabled: e = !0 } = {}) => {
27532
27539
  const {
27533
27540
  userInfoApi: i,
27534
27541
  userFavoriteGameApi: m,
@@ -28350,7 +28357,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28350
28357
  TRANSFER_IN_GAME: "transfer_in_game",
28351
28358
  CHECK_REQUEST: "CHECK_RREQUEST",
28352
28359
  CASH_REGISTER_LIMIT: "cash_register_limit"
28353
- }, Wt = 3e4, Ul = ({
28360
+ }, Wt = 3e4, yl = ({
28354
28361
  socketUrl: e,
28355
28362
  socketHandlers: i = {},
28356
28363
  options: m = {}
@@ -28450,7 +28457,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28450
28457
  return n;
28451
28458
  }, [e]), m = V(async () => await e.get("/marquees"), [e]);
28452
28459
  return { commonCarouselApi: i, commonMarqueeApi: m };
28453
- }, yl = () => {
28460
+ }, bl = () => {
28454
28461
  const { lng: e } = te(), { commonCarouselApi: i } = fi(), m = ra(e);
28455
28462
  return ie({
28456
28463
  queryKey: ["getCarouselList"],
@@ -28463,7 +28470,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28463
28470
  };
28464
28471
  })
28465
28472
  });
28466
- }, bl = () => {
28473
+ }, Tl = () => {
28467
28474
  const { lng: e } = te(), { commonMarqueeApi: i } = fi(), m = ra(e);
28468
28475
  return ie({
28469
28476
  queryKey: ["getMarqueeList"],
@@ -28473,7 +28480,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28473
28480
  return Ge(s, (f) => f[m] || f["en-US"]);
28474
28481
  }
28475
28482
  });
28476
- }, Tl = ({ options: e } = {}) => {
28483
+ }, Cl = ({ options: e } = {}) => {
28477
28484
  const { rankingGameApi: i } = me();
28478
28485
  return ie({
28479
28486
  queryKey: ["rankingGame"],
@@ -28640,7 +28647,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28640
28647
  extendString: Ei,
28641
28648
  extendUint8Array: Li,
28642
28649
  extendBuiltins: qt
28643
- }, Cl = (e, i) => {
28650
+ }, vl = (e, i) => {
28644
28651
  const { playGameApi: m } = Jt();
28645
28652
  return ie({
28646
28653
  queryKey: ["playGame"],
@@ -28695,7 +28702,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28695
28702
  mutationFn: async (m) => i(m),
28696
28703
  ...e
28697
28704
  });
28698
- }, vl = ({
28705
+ }, hl = ({
28699
28706
  options: e = {
28700
28707
  login: {},
28701
28708
  logout: {},
@@ -28725,7 +28732,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28725
28732
  default:
28726
28733
  return "En";
28727
28734
  }
28728
- }, al = "https://d1h3qe8voog6w4.cloudfront.net", li = "https://d3jx2uvukujuvn.cloudfront.net", ni = "game-icon-ds88", hl = ({ gameData: e = {} } = {}) => {
28735
+ }, al = "https://d1h3qe8voog6w4.cloudfront.net", li = "https://d3jx2uvukujuvn.cloudfront.net", ni = "game-icon-ds88", kl = ({ gameData: e = {} } = {}) => {
28729
28736
  const { lng: i } = te(), m = ti(i), {
28730
28737
  gameCode: n,
28731
28738
  // 遊戲代碼
@@ -28799,7 +28806,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28799
28806
  "HACK",
28800
28807
  "NAGA",
28801
28808
  "RSG"
28802
- ], e) && i ? `${e}_dark` : e, kl = ({ platformData: e, darkMode: i } = {}) => {
28809
+ ], e) && i ? `${e}_dark` : e, Sl = ({ platformData: e, darkMode: i } = {}) => {
28803
28810
  const {
28804
28811
  SubPlatformEnum: m,
28805
28812
  // 子平台枚舉
@@ -28838,7 +28845,7 @@ const Ft = /* @__PURE__ */ ot(wt), K = {
28838
28845
  };
28839
28846
  export {
28840
28847
  si as ApiCtx,
28841
- dl as ApiProvider,
28848
+ cl as ApiProvider,
28842
28849
  ui as GamesInfoCtx,
28843
28850
  Ct as buildMultiTypes,
28844
28851
  pl as buildMultiTypesWithSubTypes,
@@ -28856,6 +28863,7 @@ export {
28856
28863
  di as findSubPlatform,
28857
28864
  ft as flattenAllGames,
28858
28865
  bt as flattenFavoriteGames,
28866
+ dl as formatNumber,
28859
28867
  vt as groupGamesByPlatform,
28860
28868
  ht as groupGamesByPlatformAndSubType,
28861
28869
  dt as groupGamesBySubType,
@@ -28863,20 +28871,20 @@ export {
28863
28871
  kt as processGameInfo,
28864
28872
  gl as processPlatformData,
28865
28873
  te as useApiContext,
28866
- cl as useBalanceGetter,
28867
- Ul as useClientWebSocket,
28868
- hl as useGameConfig,
28874
+ _l as useBalanceGetter,
28875
+ yl as useClientWebSocket,
28876
+ kl as useGameConfig,
28869
28877
  sl as useGameInfoContext,
28870
28878
  Nt as useGamesInfo,
28871
- yl as useGetCarouseList,
28872
- bl as useGetMarquee,
28873
- _l as useGetMemberInfo,
28874
- Tl as useGetRankingGame,
28875
- fl as useInitializeWithToken,
28879
+ bl as useGetCarouseList,
28880
+ Tl as useGetMarquee,
28881
+ fl as useGetMemberInfo,
28882
+ Cl as useGetRankingGame,
28883
+ Ul as useInitializeWithToken,
28876
28884
  Xt as useLogin,
28877
28885
  $t as useLogout,
28878
- kl as usePlatformConfig,
28879
- Cl as usePlayGame,
28886
+ Sl as usePlatformConfig,
28887
+ vl as usePlayGame,
28880
28888
  el as useToggleFavoriteGame,
28881
- vl as useUser
28889
+ hl as useUser
28882
28890
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@obb871001/api-integration-sdk",
3
3
  "private": false,
4
- "version": "1.0.141",
4
+ "version": "1.0.142",
5
5
  "description": "集成API",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",