@cfxjs/sirius-next-common 0.1.35 → 0.1.36
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/chunk-2KIA7SM5.js +283 -0
- package/dist/chunk-2KIA7SM5.js.map +1 -0
- package/dist/chunk-2MVOPDKC.js +293 -0
- package/dist/chunk-2MVOPDKC.js.map +1 -0
- package/dist/chunk-2SD7XVS3.js +63 -0
- package/dist/chunk-2SD7XVS3.js.map +1 -0
- package/dist/chunk-2XYHVY3K.js +63 -0
- package/dist/chunk-2XYHVY3K.js.map +1 -0
- package/dist/chunk-2YI45EVS.js +141 -0
- package/dist/chunk-2YI45EVS.js.map +1 -0
- package/dist/chunk-353FBQGP.js +108 -0
- package/dist/chunk-353FBQGP.js.map +1 -0
- package/dist/chunk-36HGUBTU.js +127 -0
- package/dist/chunk-36HGUBTU.js.map +1 -0
- package/dist/chunk-376CSTQC.js +63 -0
- package/dist/chunk-376CSTQC.js.map +1 -0
- package/dist/chunk-3H2ZBKI3.js +212 -0
- package/dist/chunk-3H2ZBKI3.js.map +1 -0
- package/dist/chunk-3NQG7C6E.js +108 -0
- package/dist/chunk-3NQG7C6E.js.map +1 -0
- package/dist/chunk-4AL3F7NV.js +63 -0
- package/dist/chunk-4AL3F7NV.js.map +1 -0
- package/dist/chunk-4FBZ7HWS.js +63 -0
- package/dist/chunk-4FBZ7HWS.js.map +1 -0
- package/dist/chunk-4FKVBLAY.js +108 -0
- package/dist/chunk-4FKVBLAY.js.map +1 -0
- package/dist/chunk-4NDMEQGR.js +63 -0
- package/dist/chunk-4NDMEQGR.js.map +1 -0
- package/dist/chunk-4QJEGIPC.js +796 -0
- package/dist/chunk-4QJEGIPC.js.map +1 -0
- package/dist/chunk-4YTMW6GI.js +108 -0
- package/dist/chunk-4YTMW6GI.js.map +1 -0
- package/dist/chunk-574XKMZK.js +127 -0
- package/dist/chunk-574XKMZK.js.map +1 -0
- package/dist/chunk-5CQLUTBV.js +49 -0
- package/dist/chunk-5CQLUTBV.js.map +1 -0
- package/dist/chunk-5K7UO3LW.js +108 -0
- package/dist/chunk-5K7UO3LW.js.map +1 -0
- package/dist/chunk-5RPFJLOI.js +141 -0
- package/dist/chunk-5RPFJLOI.js.map +1 -0
- package/dist/chunk-5TAPU2ZE.js +291 -0
- package/dist/chunk-5TAPU2ZE.js.map +1 -0
- package/dist/chunk-6JS5W55K.js +127 -0
- package/dist/chunk-6JS5W55K.js.map +1 -0
- package/dist/chunk-6KNLHBN5.js +141 -0
- package/dist/chunk-6KNLHBN5.js.map +1 -0
- package/dist/chunk-6NX4BHDJ.js +141 -0
- package/dist/chunk-6NX4BHDJ.js.map +1 -0
- package/dist/chunk-6OAV4IVF.js +284 -0
- package/dist/chunk-6OAV4IVF.js.map +1 -0
- package/dist/chunk-72AV4UB3.js +290 -0
- package/dist/chunk-72AV4UB3.js.map +1 -0
- package/dist/chunk-7423KPGQ.js +63 -0
- package/dist/chunk-7423KPGQ.js.map +1 -0
- package/dist/chunk-7AOOJUYX.js +212 -0
- package/dist/chunk-7AOOJUYX.js.map +1 -0
- package/dist/chunk-7L2RA5IK.js +49 -0
- package/dist/chunk-7L2RA5IK.js.map +1 -0
- package/dist/chunk-7LQB5JCP.js +108 -0
- package/dist/chunk-7LQB5JCP.js.map +1 -0
- package/dist/chunk-7M7VEA5B.js +284 -0
- package/dist/chunk-7M7VEA5B.js.map +1 -0
- package/dist/chunk-A3657UZ7.js +108 -0
- package/dist/chunk-A3657UZ7.js.map +1 -0
- package/dist/chunk-A6P2YHYB.js +108 -0
- package/dist/chunk-A6P2YHYB.js.map +1 -0
- package/dist/chunk-A7K6NGFZ.js +150 -0
- package/dist/chunk-A7K6NGFZ.js.map +1 -0
- package/dist/chunk-ADJVLOE4.js +295 -0
- package/dist/chunk-ADJVLOE4.js.map +1 -0
- package/dist/chunk-AIQ2UBC2.js +284 -0
- package/dist/chunk-AIQ2UBC2.js.map +1 -0
- package/dist/chunk-ALLKEYU2.js +63 -0
- package/dist/chunk-ALLKEYU2.js.map +1 -0
- package/dist/chunk-AUTSZO6X.js +290 -0
- package/dist/chunk-AUTSZO6X.js.map +1 -0
- package/dist/chunk-AUWJGZPI.js +127 -0
- package/dist/chunk-AUWJGZPI.js.map +1 -0
- package/dist/chunk-AYD3HJZF.js +796 -0
- package/dist/chunk-AYD3HJZF.js.map +1 -0
- package/dist/chunk-B45UNRU2.js +127 -0
- package/dist/chunk-B45UNRU2.js.map +1 -0
- package/dist/chunk-B527FZFT.js +108 -0
- package/dist/chunk-B527FZFT.js.map +1 -0
- package/dist/chunk-BEPCRPPI.js +45 -0
- package/dist/chunk-BEPCRPPI.js.map +1 -0
- package/dist/chunk-BHHZCWKJ.js +141 -0
- package/dist/chunk-BHHZCWKJ.js.map +1 -0
- package/dist/chunk-BIZKI7IP.js +150 -0
- package/dist/chunk-BIZKI7IP.js.map +1 -0
- package/dist/chunk-BVIUV7LQ.js +290 -0
- package/dist/chunk-BVIUV7LQ.js.map +1 -0
- package/dist/chunk-BXR4FLVL.js +212 -0
- package/dist/chunk-BXR4FLVL.js.map +1 -0
- package/dist/chunk-BY3YF547.js +284 -0
- package/dist/chunk-BY3YF547.js.map +1 -0
- package/dist/chunk-C4MRUKWN.js +127 -0
- package/dist/chunk-C4MRUKWN.js.map +1 -0
- package/dist/chunk-CBJDT2JH.js +127 -0
- package/dist/chunk-CBJDT2JH.js.map +1 -0
- package/dist/chunk-CMF5AYGR.js +290 -0
- package/dist/chunk-CMF5AYGR.js.map +1 -0
- package/dist/chunk-CU4VIKEL.js +212 -0
- package/dist/chunk-CU4VIKEL.js.map +1 -0
- package/dist/chunk-CYFX26GP.js +3629 -0
- package/dist/chunk-CYFX26GP.js.map +1 -0
- package/dist/chunk-D7NNOVQY.js +127 -0
- package/dist/chunk-D7NNOVQY.js.map +1 -0
- package/dist/chunk-DA364DMG.js +141 -0
- package/dist/chunk-DA364DMG.js.map +1 -0
- package/dist/chunk-DR6NL7ET.js +130 -0
- package/dist/chunk-DR6NL7ET.js.map +1 -0
- package/dist/chunk-E6N6EFFW.js +141 -0
- package/dist/chunk-E6N6EFFW.js.map +1 -0
- package/dist/chunk-E7SUIRVI.js +63 -0
- package/dist/chunk-E7SUIRVI.js.map +1 -0
- package/dist/chunk-EY6NBWLM.js +108 -0
- package/dist/chunk-EY6NBWLM.js.map +1 -0
- package/dist/chunk-F2EPCZWK.js +63 -0
- package/dist/chunk-F2EPCZWK.js.map +1 -0
- package/dist/chunk-F4PFUG36.js +212 -0
- package/dist/chunk-F4PFUG36.js.map +1 -0
- package/dist/chunk-F6GBGTNG.js +63 -0
- package/dist/chunk-F6GBGTNG.js.map +1 -0
- package/dist/chunk-FOX4XRLH.js +127 -0
- package/dist/chunk-FOX4XRLH.js.map +1 -0
- package/dist/chunk-FVFHHX7P.js +130 -0
- package/dist/chunk-FVFHHX7P.js.map +1 -0
- package/dist/chunk-G5LRQOH6.js +141 -0
- package/dist/chunk-G5LRQOH6.js.map +1 -0
- package/dist/chunk-GC3CBRNH.js +63 -0
- package/dist/chunk-GC3CBRNH.js.map +1 -0
- package/dist/chunk-GSQTH7WW.js +108 -0
- package/dist/chunk-GSQTH7WW.js.map +1 -0
- package/dist/chunk-GX5FHBTN.js +141 -0
- package/dist/chunk-GX5FHBTN.js.map +1 -0
- package/dist/chunk-HLJJOOGU.js +63 -0
- package/dist/chunk-HLJJOOGU.js.map +1 -0
- package/dist/chunk-HNVXPCV4.js +63 -0
- package/dist/chunk-HNVXPCV4.js.map +1 -0
- package/dist/chunk-HW27DN22.js +49 -0
- package/dist/chunk-HW27DN22.js.map +1 -0
- package/dist/chunk-HYUTXKYU.js +3629 -0
- package/dist/chunk-HYUTXKYU.js.map +1 -0
- package/dist/chunk-I7HRM722.js +212 -0
- package/dist/chunk-I7HRM722.js.map +1 -0
- package/dist/chunk-IA25UNZZ.js +141 -0
- package/dist/chunk-IA25UNZZ.js.map +1 -0
- package/dist/chunk-IBMP5SCX.js +141 -0
- package/dist/chunk-IBMP5SCX.js.map +1 -0
- package/dist/chunk-IFMYLJEP.js +127 -0
- package/dist/chunk-IFMYLJEP.js.map +1 -0
- package/dist/chunk-IHGBU43N.js +63 -0
- package/dist/chunk-IHGBU43N.js.map +1 -0
- package/dist/chunk-ILC4RRWU.js +212 -0
- package/dist/chunk-ILC4RRWU.js.map +1 -0
- package/dist/chunk-ITAVTA3W.js +130 -0
- package/dist/chunk-ITAVTA3W.js.map +1 -0
- package/dist/chunk-JI6VGCU4.js +108 -0
- package/dist/chunk-JI6VGCU4.js.map +1 -0
- package/dist/chunk-JIVR34UF.js +108 -0
- package/dist/chunk-JIVR34UF.js.map +1 -0
- package/dist/chunk-JJ4K6ZJO.js +108 -0
- package/dist/chunk-JJ4K6ZJO.js.map +1 -0
- package/dist/chunk-JJGSIAZJ.js +127 -0
- package/dist/chunk-JJGSIAZJ.js.map +1 -0
- package/dist/chunk-JK54QGX5.js +63 -0
- package/dist/chunk-JK54QGX5.js.map +1 -0
- package/dist/chunk-JUV5BY6S.js +212 -0
- package/dist/chunk-JUV5BY6S.js.map +1 -0
- package/dist/chunk-JVDOTIWK.js +63 -0
- package/dist/chunk-JVDOTIWK.js.map +1 -0
- package/dist/chunk-JWEGZT6Y.js +127 -0
- package/dist/chunk-JWEGZT6Y.js.map +1 -0
- package/dist/chunk-KGIYTDWO.js +212 -0
- package/dist/chunk-KGIYTDWO.js.map +1 -0
- package/dist/chunk-KKXM6DVT.js +292 -0
- package/dist/chunk-KKXM6DVT.js.map +1 -0
- package/dist/chunk-KOD3PEV3.js +212 -0
- package/dist/chunk-KOD3PEV3.js.map +1 -0
- package/dist/chunk-KQUGFRVE.js +796 -0
- package/dist/chunk-KQUGFRVE.js.map +1 -0
- package/dist/chunk-KWJ73Y2D.js +294 -0
- package/dist/chunk-KWJ73Y2D.js.map +1 -0
- package/dist/chunk-L6BFE632.js +127 -0
- package/dist/chunk-L6BFE632.js.map +1 -0
- package/dist/chunk-LVNT62YR.js +292 -0
- package/dist/chunk-LVNT62YR.js.map +1 -0
- package/dist/chunk-LWMEGN6S.js +294 -0
- package/dist/chunk-LWMEGN6S.js.map +1 -0
- package/dist/chunk-LZZ7NIR4.js +293 -0
- package/dist/chunk-LZZ7NIR4.js.map +1 -0
- package/dist/chunk-MCP23ZPY.js +285 -0
- package/dist/chunk-MCP23ZPY.js.map +1 -0
- package/dist/chunk-MGLRAR2D.js +212 -0
- package/dist/chunk-MGLRAR2D.js.map +1 -0
- package/dist/chunk-MJZVUA2T.js +212 -0
- package/dist/chunk-MJZVUA2T.js.map +1 -0
- package/dist/chunk-MK27NKQR.js +2324 -0
- package/dist/chunk-MK27NKQR.js.map +1 -0
- package/dist/chunk-MNVZLYD2.js +108 -0
- package/dist/chunk-MNVZLYD2.js.map +1 -0
- package/dist/chunk-MPKSCMSQ.js +127 -0
- package/dist/chunk-MPKSCMSQ.js.map +1 -0
- package/dist/chunk-MZ6URSWK.js +108 -0
- package/dist/chunk-MZ6URSWK.js.map +1 -0
- package/dist/chunk-MZTA3L4X.js +150 -0
- package/dist/chunk-MZTA3L4X.js.map +1 -0
- package/dist/chunk-ND2CSITG.js +127 -0
- package/dist/chunk-ND2CSITG.js.map +1 -0
- package/dist/chunk-NEYIY22U.js +284 -0
- package/dist/chunk-NEYIY22U.js.map +1 -0
- package/dist/chunk-NFOLFLWA.js +150 -0
- package/dist/chunk-NFOLFLWA.js.map +1 -0
- package/dist/chunk-NFS5YLSJ.js +108 -0
- package/dist/chunk-NFS5YLSJ.js.map +1 -0
- package/dist/chunk-NIUVCEJO.js +212 -0
- package/dist/chunk-NIUVCEJO.js.map +1 -0
- package/dist/chunk-NKKWDQOM.js +2324 -0
- package/dist/chunk-NKKWDQOM.js.map +1 -0
- package/dist/chunk-NNHMECSG.js +141 -0
- package/dist/chunk-NNHMECSG.js.map +1 -0
- package/dist/chunk-NPV3ZP6T.js +141 -0
- package/dist/chunk-NPV3ZP6T.js.map +1 -0
- package/dist/chunk-NQTJEBIJ.js +290 -0
- package/dist/chunk-NQTJEBIJ.js.map +1 -0
- package/dist/chunk-NTOFGIYH.js +108 -0
- package/dist/chunk-NTOFGIYH.js.map +1 -0
- package/dist/chunk-NXBI6ED2.js +212 -0
- package/dist/chunk-NXBI6ED2.js.map +1 -0
- package/dist/chunk-OHN4J5DW.js +141 -0
- package/dist/chunk-OHN4J5DW.js.map +1 -0
- package/dist/chunk-ON6XCYGT.js +283 -0
- package/dist/chunk-ON6XCYGT.js.map +1 -0
- package/dist/chunk-ONMNA33N.js +45 -0
- package/dist/chunk-ONMNA33N.js.map +1 -0
- package/dist/chunk-ONSETHR4.js +105 -0
- package/dist/chunk-ONSETHR4.js.map +1 -0
- package/dist/chunk-OWAB7CCQ.js +127 -0
- package/dist/chunk-OWAB7CCQ.js.map +1 -0
- package/dist/chunk-P2CMBBPI.js +289 -0
- package/dist/chunk-P2CMBBPI.js.map +1 -0
- package/dist/chunk-P2UEWOEU.js +127 -0
- package/dist/chunk-P2UEWOEU.js.map +1 -0
- package/dist/chunk-P3DMJU7D.js +141 -0
- package/dist/chunk-P3DMJU7D.js.map +1 -0
- package/dist/chunk-PFGTCJPQ.js +141 -0
- package/dist/chunk-PFGTCJPQ.js.map +1 -0
- package/dist/chunk-PFSXXJYL.js +108 -0
- package/dist/chunk-PFSXXJYL.js.map +1 -0
- package/dist/chunk-PK7M6K76.js +212 -0
- package/dist/chunk-PK7M6K76.js.map +1 -0
- package/dist/chunk-PSTNJU66.js +288 -0
- package/dist/chunk-PSTNJU66.js.map +1 -0
- package/dist/chunk-PVIOYLIT.js +108 -0
- package/dist/chunk-PVIOYLIT.js.map +1 -0
- package/dist/chunk-PXSXWN7G.js +63 -0
- package/dist/chunk-PXSXWN7G.js.map +1 -0
- package/dist/chunk-Q6GDS4KG.js +141 -0
- package/dist/chunk-Q6GDS4KG.js.map +1 -0
- package/dist/chunk-QBLVQYVY.js +212 -0
- package/dist/chunk-QBLVQYVY.js.map +1 -0
- package/dist/chunk-QBV2D5NU.js +284 -0
- package/dist/chunk-QBV2D5NU.js.map +1 -0
- package/dist/chunk-QDUOI6ZD.js +212 -0
- package/dist/chunk-QDUOI6ZD.js.map +1 -0
- package/dist/chunk-QJH74FQI.js +108 -0
- package/dist/chunk-QJH74FQI.js.map +1 -0
- package/dist/chunk-QJXSCYDA.js +212 -0
- package/dist/chunk-QJXSCYDA.js.map +1 -0
- package/dist/chunk-QJYLL4XT.js +3629 -0
- package/dist/chunk-QJYLL4XT.js.map +1 -0
- package/dist/chunk-QOKNGZ72.js +141 -0
- package/dist/chunk-QOKNGZ72.js.map +1 -0
- package/dist/chunk-QONMQY4Z.js +63 -0
- package/dist/chunk-QONMQY4Z.js.map +1 -0
- package/dist/chunk-QPRZL6LO.js +49 -0
- package/dist/chunk-QPRZL6LO.js.map +1 -0
- package/dist/chunk-QQXDVN7O.js +105 -0
- package/dist/chunk-QQXDVN7O.js.map +1 -0
- package/dist/chunk-QXMEJLR4.js +290 -0
- package/dist/chunk-QXMEJLR4.js.map +1 -0
- package/dist/chunk-R2DOYAW4.js +141 -0
- package/dist/chunk-R2DOYAW4.js.map +1 -0
- package/dist/chunk-R65VACGY.js +212 -0
- package/dist/chunk-R65VACGY.js.map +1 -0
- package/dist/chunk-RDDTVGAP.js +108 -0
- package/dist/chunk-RDDTVGAP.js.map +1 -0
- package/dist/chunk-RKEZGAXK.js +63 -0
- package/dist/chunk-RKEZGAXK.js.map +1 -0
- package/dist/chunk-RKSFAP6Z.js +141 -0
- package/dist/chunk-RKSFAP6Z.js.map +1 -0
- package/dist/chunk-RSUVHVRY.js +108 -0
- package/dist/chunk-RSUVHVRY.js.map +1 -0
- package/dist/chunk-S24ORVD5.js +294 -0
- package/dist/chunk-S24ORVD5.js.map +1 -0
- package/dist/chunk-SCSMAKMH.js +63 -0
- package/dist/chunk-SCSMAKMH.js.map +1 -0
- package/dist/chunk-SDDB2F2F.js +108 -0
- package/dist/chunk-SDDB2F2F.js.map +1 -0
- package/dist/chunk-SJCQAQX4.js +796 -0
- package/dist/chunk-SJCQAQX4.js.map +1 -0
- package/dist/chunk-STZGQGGZ.js +212 -0
- package/dist/chunk-STZGQGGZ.js.map +1 -0
- package/dist/chunk-T43YVODW.js +277 -0
- package/dist/chunk-T43YVODW.js.map +1 -0
- package/dist/chunk-T53TBWIB.js +212 -0
- package/dist/chunk-T53TBWIB.js.map +1 -0
- package/dist/chunk-T5UZYLJ5.js +212 -0
- package/dist/chunk-T5UZYLJ5.js.map +1 -0
- package/dist/chunk-T7N6FTNW.js +127 -0
- package/dist/chunk-T7N6FTNW.js.map +1 -0
- package/dist/chunk-TFZDMOYM.js +105 -0
- package/dist/chunk-TFZDMOYM.js.map +1 -0
- package/dist/chunk-TWWB7FGO.js +141 -0
- package/dist/chunk-TWWB7FGO.js.map +1 -0
- package/dist/chunk-U5JCZGW6.js +130 -0
- package/dist/chunk-U5JCZGW6.js.map +1 -0
- package/dist/chunk-UAFLNWEA.js +212 -0
- package/dist/chunk-UAFLNWEA.js.map +1 -0
- package/dist/chunk-UE2UX7T6.js +212 -0
- package/dist/chunk-UE2UX7T6.js.map +1 -0
- package/dist/chunk-UENBCJ2Z.js +108 -0
- package/dist/chunk-UENBCJ2Z.js.map +1 -0
- package/dist/chunk-UII32QDY.js +108 -0
- package/dist/chunk-UII32QDY.js.map +1 -0
- package/dist/chunk-ULWSG4PL.js +127 -0
- package/dist/chunk-ULWSG4PL.js.map +1 -0
- package/dist/chunk-UR2UYNPF.js +286 -0
- package/dist/chunk-UR2UYNPF.js.map +1 -0
- package/dist/chunk-V3HJ66PP.js +105 -0
- package/dist/chunk-V3HJ66PP.js.map +1 -0
- package/dist/chunk-VFBMMG3M.js +141 -0
- package/dist/chunk-VFBMMG3M.js.map +1 -0
- package/dist/chunk-VOIYIVZF.js +2324 -0
- package/dist/chunk-VOIYIVZF.js.map +1 -0
- package/dist/chunk-VUEVN22O.js +212 -0
- package/dist/chunk-VUEVN22O.js.map +1 -0
- package/dist/chunk-W74PEWES.js +108 -0
- package/dist/chunk-W74PEWES.js.map +1 -0
- package/dist/chunk-WKADYA3X.js +141 -0
- package/dist/chunk-WKADYA3X.js.map +1 -0
- package/dist/chunk-WT6J7YEJ.js +127 -0
- package/dist/chunk-WT6J7YEJ.js.map +1 -0
- package/dist/chunk-WW2QYYHP.js +289 -0
- package/dist/chunk-WW2QYYHP.js.map +1 -0
- package/dist/chunk-XAQTA6XL.js +108 -0
- package/dist/chunk-XAQTA6XL.js.map +1 -0
- package/dist/chunk-XC4PADOS.js +212 -0
- package/dist/chunk-XC4PADOS.js.map +1 -0
- package/dist/chunk-XCR37CPQ.js +63 -0
- package/dist/chunk-XCR37CPQ.js.map +1 -0
- package/dist/chunk-XFQNDZFW.js +292 -0
- package/dist/chunk-XFQNDZFW.js.map +1 -0
- package/dist/chunk-XGRJYI4P.js +63 -0
- package/dist/chunk-XGRJYI4P.js.map +1 -0
- package/dist/chunk-XHBEHDIK.js +63 -0
- package/dist/chunk-XHBEHDIK.js.map +1 -0
- package/dist/chunk-XKWXQVAQ.js +63 -0
- package/dist/chunk-XKWXQVAQ.js.map +1 -0
- package/dist/chunk-XMV22YIZ.js +63 -0
- package/dist/chunk-XMV22YIZ.js.map +1 -0
- package/dist/chunk-XOK7DPQQ.js +127 -0
- package/dist/chunk-XOK7DPQQ.js.map +1 -0
- package/dist/chunk-XQ4MCRX6.js +127 -0
- package/dist/chunk-XQ4MCRX6.js.map +1 -0
- package/dist/chunk-XVT7XSTZ.js +141 -0
- package/dist/chunk-XVT7XSTZ.js.map +1 -0
- package/dist/chunk-YAUITW33.js +141 -0
- package/dist/chunk-YAUITW33.js.map +1 -0
- package/dist/chunk-YEUH2K6Z.js +56 -0
- package/dist/chunk-YEUH2K6Z.js.map +1 -0
- package/dist/chunk-YGPVJ5XR.js +212 -0
- package/dist/chunk-YGPVJ5XR.js.map +1 -0
- package/dist/chunk-YJX5YXE3.js +2324 -0
- package/dist/chunk-YJX5YXE3.js.map +1 -0
- package/dist/chunk-YPGJQF7B.js +212 -0
- package/dist/chunk-YPGJQF7B.js.map +1 -0
- package/dist/chunk-ZHQRGXFP.js +141 -0
- package/dist/chunk-ZHQRGXFP.js.map +1 -0
- package/dist/chunk-ZJIBJEEY.js +127 -0
- package/dist/chunk-ZJIBJEEY.js.map +1 -0
- package/dist/chunk-ZL2SUXFQ.js +127 -0
- package/dist/chunk-ZL2SUXFQ.js.map +1 -0
- package/dist/chunk-ZN5L7CIN.js +3629 -0
- package/dist/chunk-ZN5L7CIN.js.map +1 -0
- package/dist/chunk-ZS5PA2VF.js +141 -0
- package/dist/chunk-ZS5PA2VF.js.map +1 -0
- package/dist/chunk-ZVEEIEJJ.js +141 -0
- package/dist/chunk-ZVEEIEJJ.js.map +1 -0
- package/dist/chunk-ZZPL5FV7.js +45 -0
- package/dist/chunk-ZZPL5FV7.js.map +1 -0
- package/dist/components/AddressContainer/CoreAddressContainer.js +11 -10
- package/dist/components/AddressContainer/EVMAddressContainer.js +10 -9
- package/dist/components/AddressContainer/addressSwitcher.js +8 -7
- package/dist/components/AddressContainer/addressView.js +7 -6
- package/dist/components/AddressContainer/label.js +5 -4
- package/dist/components/Age/index.js +5 -4
- package/dist/components/Age/index.js.map +1 -1
- package/dist/components/Charts/PreviewChartTemplate.js +2 -1
- package/dist/components/Charts/PreviewChartTemplate.js.map +1 -1
- package/dist/components/Charts/StockChartTemplate.js +2 -1
- package/dist/components/Charts/StockChartTemplate.js.map +1 -1
- package/dist/components/CopyButton/index.js +4 -3
- package/dist/components/CopyButton/index.js.map +1 -1
- package/dist/components/DownloadCSV/index.js +5 -4
- package/dist/components/DownloadCSV/index.js.map +1 -1
- package/dist/components/EOACodeIcon/index.d.ts +2 -0
- package/dist/components/EOACodeIcon/index.js +1 -0
- package/dist/components/EOACodeIcon/index.js.map +1 -0
- package/dist/components/GasPriceDropdown/index.js +4 -3
- package/dist/components/GasPriceDropdown/index.js.map +1 -1
- package/dist/components/IncreasePercent/index.js +3 -2
- package/dist/components/IncreasePercent/index.js.map +1 -1
- package/dist/components/InfoIconWithTooltip/index.js +4 -3
- package/dist/components/InfoIconWithTooltip/index.js.map +1 -1
- package/dist/components/Modal/index.js +4 -3
- package/dist/components/NetworkIcon/index.js +3 -2
- package/dist/components/NetworkIcon/index.js.map +1 -1
- package/dist/components/PhishingAddressContainer/index.js +5 -4
- package/dist/components/PhishingAddressContainer/index.js.map +1 -1
- package/dist/components/Price/index.js +4 -3
- package/dist/components/Price/index.js.map +1 -1
- package/dist/components/Radio/index.js +3 -2
- package/dist/components/Radio/index.js.map +1 -1
- package/dist/components/Select/index.js +4 -3
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/Select/select.js +4 -3
- package/dist/components/SkeletonContainer/index.js +1 -1
- package/dist/components/Text/index.js +5 -4
- package/dist/components/Tooltip/index.js +4 -3
- package/dist/components/TransactionAction/coreTransactionAction.js +11 -10
- package/dist/components/TransactionAction/coreTransactionAction.js.map +1 -1
- package/dist/components/TransactionAction/evmTransactionAction.js +10 -9
- package/dist/components/TransactionAction/evmTransactionAction.js.map +1 -1
- package/dist/utils/address.d.ts +2 -1
- package/dist/utils/address.js +5 -2
- package/dist/utils/cache.js +3 -52
- package/dist/utils/cache.js.map +1 -1
- package/dist/utils/contractManagerTool.js +3 -2
- package/dist/utils/contractManagerTool.js.map +1 -1
- package/dist/utils/hooks/useENS.js +4 -3
- package/dist/utils/index.js +3 -2
- package/dist/utils/request.js +2 -1
- package/dist/utils/request.types.d.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import {
|
|
2
|
+
publishRequestError
|
|
3
|
+
} from "./chunk-J2I22Q2M.js";
|
|
4
|
+
import {
|
|
5
|
+
fetchWithCache
|
|
6
|
+
} from "./chunk-YEUH2K6Z.js";
|
|
7
|
+
import {
|
|
8
|
+
getEnvConfig
|
|
9
|
+
} from "./chunk-DQGLZCIG.js";
|
|
10
|
+
|
|
11
|
+
// src/utils/request.ts
|
|
12
|
+
import qs from "query-string";
|
|
13
|
+
import useSWR from "swr";
|
|
14
|
+
var TIMEOUT_TIMESTAMP = 6e4;
|
|
15
|
+
var checkStatus = (response) => {
|
|
16
|
+
if (response.status >= 200 && response.status < 300 || response.status === 600) {
|
|
17
|
+
return response;
|
|
18
|
+
} else {
|
|
19
|
+
const error = new Error(response.statusText);
|
|
20
|
+
error.name = "HttpError";
|
|
21
|
+
error.status = response.status;
|
|
22
|
+
error.response = response;
|
|
23
|
+
throw error;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
var parseJSON = async (response) => {
|
|
27
|
+
const contentType = response.headers.get("content-type");
|
|
28
|
+
try {
|
|
29
|
+
if (contentType?.includes("application/json")) {
|
|
30
|
+
return { data: await response.json(), response };
|
|
31
|
+
} else if (contentType?.includes("text/html")) {
|
|
32
|
+
return { data: await response.text(), response };
|
|
33
|
+
} else {
|
|
34
|
+
return { data: response, response };
|
|
35
|
+
}
|
|
36
|
+
} catch (error) {
|
|
37
|
+
if (error.name === "AbortError") {
|
|
38
|
+
return { data: response, response };
|
|
39
|
+
}
|
|
40
|
+
publishRequestError({ url: response.url, code: 20001 }, "http");
|
|
41
|
+
error.response = response;
|
|
42
|
+
throw error;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
var checkResponse = function(url, {
|
|
46
|
+
data,
|
|
47
|
+
response
|
|
48
|
+
}, opts) {
|
|
49
|
+
if (response.status === 200 && (data.status === "1" || data.code === 0)) {
|
|
50
|
+
return data.result || data.data;
|
|
51
|
+
} else if (/HEAD/i.test(opts?.method || "")) {
|
|
52
|
+
return response;
|
|
53
|
+
} else {
|
|
54
|
+
const code = Number(data.status ?? data.code);
|
|
55
|
+
publishRequestError({ url, code, message: data.message }, "http");
|
|
56
|
+
const error = new Error(data.message);
|
|
57
|
+
error.response = data;
|
|
58
|
+
throw error;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
var fetchWithAbort = (url, options = {}) => {
|
|
62
|
+
const controller = new AbortController();
|
|
63
|
+
const opts = { ...options, signal: controller.signal };
|
|
64
|
+
const timeout = options.timeout || TIMEOUT_TIMESTAMP;
|
|
65
|
+
let timeoutId;
|
|
66
|
+
const promise = new Promise((resolve, reject) => {
|
|
67
|
+
timeoutId = setTimeout(() => {
|
|
68
|
+
controller.abort();
|
|
69
|
+
publishRequestError(
|
|
70
|
+
{ url, code: 20002, message: "Request timeout" },
|
|
71
|
+
"http"
|
|
72
|
+
);
|
|
73
|
+
reject(new Error("Request timeout"));
|
|
74
|
+
}, timeout);
|
|
75
|
+
window.fetch(url, opts).then(checkStatus).then(parseJSON).then((...args) => checkResponse(url, ...args, opts)).then((data) => resolve(data)).catch((error) => {
|
|
76
|
+
if (/HEAD/i.test(opts?.method || "")) {
|
|
77
|
+
return {};
|
|
78
|
+
}
|
|
79
|
+
if (error.name === "TypeError") {
|
|
80
|
+
publishRequestError({ url, code: 20004 }, "http");
|
|
81
|
+
reject(new Error("Network error"));
|
|
82
|
+
} else if (error.name === "AbortError") {
|
|
83
|
+
publishRequestError(
|
|
84
|
+
{ url, code: 20003, message: "Fetch aborted" },
|
|
85
|
+
"http"
|
|
86
|
+
);
|
|
87
|
+
reject(new Error("Fetch aborted"));
|
|
88
|
+
} else {
|
|
89
|
+
publishRequestError(
|
|
90
|
+
{ url, code: error.status, message: error.message },
|
|
91
|
+
"http"
|
|
92
|
+
);
|
|
93
|
+
reject(error);
|
|
94
|
+
}
|
|
95
|
+
}).finally(() => clearTimeout(timeoutId));
|
|
96
|
+
});
|
|
97
|
+
return {
|
|
98
|
+
promise,
|
|
99
|
+
abort: () => {
|
|
100
|
+
clearTimeout(timeoutId);
|
|
101
|
+
controller.abort();
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
var fetch = (url, options = {}) => {
|
|
106
|
+
const { promise } = fetchWithAbort(url, options);
|
|
107
|
+
return promise;
|
|
108
|
+
};
|
|
109
|
+
var appendApiPrefix = (url) => {
|
|
110
|
+
if (url.startsWith("/stat/")) {
|
|
111
|
+
return url;
|
|
112
|
+
}
|
|
113
|
+
if (url.startsWith("http")) {
|
|
114
|
+
return url;
|
|
115
|
+
}
|
|
116
|
+
return `/v1${url.startsWith("/") ? url : "/" + url}`;
|
|
117
|
+
};
|
|
118
|
+
var fetchWithPrefix = (url, opts) => {
|
|
119
|
+
return fetch(appendApiPrefix(url), opts);
|
|
120
|
+
};
|
|
121
|
+
var fetchWithOpenApi = (url, opts) => {
|
|
122
|
+
const ENV_CONFIG = getEnvConfig();
|
|
123
|
+
if (!ENV_CONFIG.ENV_OPEN_API_HOST) {
|
|
124
|
+
throw new Error("ENV_OPEN_API_HOST is not set");
|
|
125
|
+
}
|
|
126
|
+
return fetch(
|
|
127
|
+
`${ENV_CONFIG.ENV_OPEN_API_HOST}${url.startsWith("/") ? url : "/" + url}`,
|
|
128
|
+
opts
|
|
129
|
+
);
|
|
130
|
+
};
|
|
131
|
+
var simpleGetFetcher = async (...args) => {
|
|
132
|
+
let [url, query] = args;
|
|
133
|
+
if (query) {
|
|
134
|
+
url = qs.stringifyUrl({ url, query });
|
|
135
|
+
}
|
|
136
|
+
return await fetchWithPrefix(url, {
|
|
137
|
+
method: "get"
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
var useSWRWithGetFetcher = (key, swrOpts = {}) => {
|
|
141
|
+
const isTransferReq = typeof key === "string" && key.startsWith("/transfer") || Array.isArray(key) && typeof key[0] === "string" && key[0].startsWith("/transfer");
|
|
142
|
+
const { data, error, mutate } = useSWR(key, simpleGetFetcher, {
|
|
143
|
+
...swrOpts
|
|
144
|
+
});
|
|
145
|
+
let tokenAddress = "";
|
|
146
|
+
if (isTransferReq && data && data.list) {
|
|
147
|
+
tokenAddress = data.list.reduce(
|
|
148
|
+
(acc, trans) => {
|
|
149
|
+
if (trans.address && !acc.includes(trans.address))
|
|
150
|
+
acc.push(trans.address);
|
|
151
|
+
return acc;
|
|
152
|
+
},
|
|
153
|
+
[]
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
const { data: tokenData } = useSWR(
|
|
157
|
+
tokenAddress ? qs.stringifyUrl({
|
|
158
|
+
url: "/token",
|
|
159
|
+
query: { addressArray: tokenAddress, fields: "iconUrl" }
|
|
160
|
+
}) : null,
|
|
161
|
+
simpleGetFetcher
|
|
162
|
+
);
|
|
163
|
+
if (tokenData && tokenData.list) {
|
|
164
|
+
const newTransferList = data.list.map((trans) => {
|
|
165
|
+
if (tokenAddress.includes(trans.address)) {
|
|
166
|
+
const tokenInfo = tokenData.list.find(
|
|
167
|
+
(t) => t.address === trans.address
|
|
168
|
+
);
|
|
169
|
+
if (tokenInfo)
|
|
170
|
+
return { ...trans, token: { ...tokenInfo } };
|
|
171
|
+
}
|
|
172
|
+
return trans;
|
|
173
|
+
});
|
|
174
|
+
return {
|
|
175
|
+
data: {
|
|
176
|
+
...data,
|
|
177
|
+
list: newTransferList
|
|
178
|
+
},
|
|
179
|
+
error,
|
|
180
|
+
mutate
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
return { data, error, mutate };
|
|
184
|
+
};
|
|
185
|
+
var queryAddress = (address) => {
|
|
186
|
+
return address.reduce((prev, curr, index) => {
|
|
187
|
+
return !index ? `address=${curr}` : `${prev}&address=${curr}`;
|
|
188
|
+
}, "");
|
|
189
|
+
};
|
|
190
|
+
var sendRequestChart = async (config) => {
|
|
191
|
+
try {
|
|
192
|
+
const res = await fetch(
|
|
193
|
+
qs.stringifyUrl({ url: config.url, query: config.query }),
|
|
194
|
+
{
|
|
195
|
+
method: config.type || "GET",
|
|
196
|
+
body: config.body,
|
|
197
|
+
headers: config.headers,
|
|
198
|
+
signal: config.signal
|
|
199
|
+
}
|
|
200
|
+
);
|
|
201
|
+
const data = res;
|
|
202
|
+
data.list = [...data.list || []].reverse();
|
|
203
|
+
return data;
|
|
204
|
+
} catch (error) {
|
|
205
|
+
console.error("Request failed", error);
|
|
206
|
+
throw error;
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
var sendRequestENSInfo = async (url) => {
|
|
210
|
+
if (!url)
|
|
211
|
+
return {};
|
|
212
|
+
try {
|
|
213
|
+
const res = await fetch(url, {
|
|
214
|
+
method: "GET"
|
|
215
|
+
});
|
|
216
|
+
return res?.map;
|
|
217
|
+
} catch (error) {
|
|
218
|
+
console.error("Request failed", error);
|
|
219
|
+
throw error;
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
var sendRequestGasPrice = async () => {
|
|
223
|
+
try {
|
|
224
|
+
const res = await fetch(`/stat/gasprice/tracker`, {
|
|
225
|
+
method: "GET"
|
|
226
|
+
});
|
|
227
|
+
return res;
|
|
228
|
+
} catch (error) {
|
|
229
|
+
console.error("Request failed", error);
|
|
230
|
+
throw error;
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
var reqNametag = async (address) => {
|
|
234
|
+
const query = queryAddress(address);
|
|
235
|
+
const res = await fetch(`/v1/nametag?${query}`, {
|
|
236
|
+
method: "GET"
|
|
237
|
+
});
|
|
238
|
+
return res?.map;
|
|
239
|
+
};
|
|
240
|
+
var reqContractAndToken = async (address) => {
|
|
241
|
+
const query = queryAddress(address);
|
|
242
|
+
const res = await fetch(`/v1/contract-and-token?${query}`, {
|
|
243
|
+
method: "GET"
|
|
244
|
+
});
|
|
245
|
+
return res?.map;
|
|
246
|
+
};
|
|
247
|
+
var getContractDetail = (contractAddress, fields = []) => {
|
|
248
|
+
const url = qs.stringifyUrl({
|
|
249
|
+
url: `/v1/contract/${contractAddress}`,
|
|
250
|
+
query: { fields }
|
|
251
|
+
});
|
|
252
|
+
return fetch(url, {
|
|
253
|
+
method: "GET"
|
|
254
|
+
});
|
|
255
|
+
};
|
|
256
|
+
var detectAccountType = fetchWithCache((address) => {
|
|
257
|
+
return fetchWithOpenApi(
|
|
258
|
+
`/util/detectAccountType?hex=${address}`,
|
|
259
|
+
{
|
|
260
|
+
method: "GET"
|
|
261
|
+
}
|
|
262
|
+
);
|
|
263
|
+
}, {
|
|
264
|
+
// 1 minute
|
|
265
|
+
maxAge: 1e3 * 60
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
export {
|
|
269
|
+
fetch,
|
|
270
|
+
appendApiPrefix,
|
|
271
|
+
fetchWithPrefix,
|
|
272
|
+
fetchWithOpenApi,
|
|
273
|
+
simpleGetFetcher,
|
|
274
|
+
useSWRWithGetFetcher,
|
|
275
|
+
sendRequestChart,
|
|
276
|
+
sendRequestENSInfo,
|
|
277
|
+
sendRequestGasPrice,
|
|
278
|
+
reqNametag,
|
|
279
|
+
reqContractAndToken,
|
|
280
|
+
getContractDetail,
|
|
281
|
+
detectAccountType
|
|
282
|
+
};
|
|
283
|
+
//# sourceMappingURL=chunk-ON6XCYGT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils/request.ts"],"sourcesContent":["import qs from 'query-string';\nimport { publishRequestError } from './pubsub';\nimport useSWR from 'swr';\nimport { BaseContractInfo, DetectAccountTypeResponse } from './request.types';\nimport { getEnvConfig } from '../store';\nimport { fetchWithCache } from './cache';\ninterface FetchWithAbortType<T> {\n promise: Promise<T>;\n abort: () => void;\n}\n\ninterface FetchOptions extends RequestInit {\n timeout?: number;\n}\n\nconst TIMEOUT_TIMESTAMP = 60000;\n\nconst checkStatus = (response: Response) => {\n if (\n (response.status >= 200 && response.status < 300) ||\n response.status === 600\n ) {\n return response;\n } else {\n const error = new Error(response.statusText);\n error.name = 'HttpError';\n (error as any).status = response.status;\n (error as any).response = response;\n throw error;\n }\n};\n\n// 格式化 response data\nconst parseJSON = async (response: Response) => {\n const contentType = response.headers.get('content-type');\n try {\n if (contentType?.includes('application/json')) {\n return { data: await response.json(), response };\n } else if (contentType?.includes('text/html')) {\n return { data: await response.text(), response };\n } else {\n // contentType 还有其他类型,目前项目中用不到\n // 不能简单的报错,比如 image/x-icon 是 favicon 请求\n // 此处直接返回 response,由业务代码处理其他类型的数据\n return { data: response, response };\n }\n } catch (error) {\n if ((error as any).name === 'AbortError') {\n return { data: response, response };\n }\n publishRequestError({ url: response.url, code: 20001 }, 'http');\n (error as any).response = response;\n throw error;\n }\n};\n\n// 检查返回值中是否包含错误\nconst checkResponse = function (\n url: string,\n {\n data,\n response,\n }: {\n data: any;\n response: Response;\n },\n opts: any,\n) {\n // 兼容 data.code 和 data.data, 是关于 core space 的数据结构\n if (response.status === 200 && (data.status === '1' || data.code === 0)) {\n return data.result || data.data;\n } else if (/HEAD/i.test(opts?.method || '')) {\n // handle of HEAD method\n return response;\n } else {\n const code = Number(data.status ?? data.code);\n publishRequestError({ url, code, message: data.message }, 'http');\n const error: Partial<ErrorEvent> & {\n response?: ResponseType;\n } = new Error(data.message);\n error.response = data;\n throw error;\n }\n};\n\nconst fetchWithAbort = <T>(\n url: string,\n options: FetchOptions = {},\n): FetchWithAbortType<T> => {\n const controller = new AbortController();\n const opts: FetchOptions = { ...options, signal: controller.signal };\n const timeout = options.timeout || TIMEOUT_TIMESTAMP;\n\n let timeoutId: ReturnType<typeof setTimeout>;\n const promise: Promise<T> = new Promise((resolve, reject) => {\n timeoutId = setTimeout(() => {\n controller.abort();\n publishRequestError(\n { url, code: 20002, message: 'Request timeout' },\n 'http',\n );\n reject(new Error('Request timeout'));\n }, timeout);\n\n window\n .fetch(url, opts)\n .then(checkStatus)\n .then(parseJSON)\n .then((...args) => checkResponse(url, ...args, opts))\n .then(data => resolve(data as T))\n .catch(error => {\n if (/HEAD/i.test(opts?.method || '')) {\n return {};\n }\n\n // A fetch() promise will reject with a TypeError when a network error is encountered or CORS is misconfigured on the server-side,\n // although this usually means permission issues or similar — a 404 does not constitute a network error, for example.\n // For detail: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch\n if (error.name === 'TypeError') {\n publishRequestError({ url, code: 20004 }, 'http');\n reject(new Error('Network error'));\n } else if (error.name === 'AbortError') {\n publishRequestError(\n { url, code: 20003, message: 'Fetch aborted' },\n 'http',\n );\n reject(new Error('Fetch aborted'));\n } else {\n publishRequestError(\n { url, code: (error as any).status, message: error.message },\n 'http',\n );\n reject(error);\n }\n })\n .finally(() => clearTimeout(timeoutId));\n });\n\n return {\n promise,\n abort: () => {\n clearTimeout(timeoutId);\n controller.abort();\n },\n };\n};\n\nexport const fetch = <T>(\n url: string,\n options: FetchOptions = {},\n): Promise<T> => {\n const { promise } = fetchWithAbort<T>(url, options);\n return promise;\n};\n\nexport const appendApiPrefix = (url: string) => {\n // for cfx top N\n if (url.startsWith('/stat/')) {\n return url;\n }\n if (url.startsWith('http')) {\n return url;\n }\n return `/v1${url.startsWith('/') ? url : '/' + url}`;\n};\n\nexport const fetchWithPrefix = <T>(url: string, opts?: FetchOptions) => {\n return fetch<T>(appendApiPrefix(url), opts);\n};\n\nexport const fetchWithOpenApi = <T>(url: string, opts?: FetchOptions) => {\n const ENV_CONFIG = getEnvConfig();\n if (!ENV_CONFIG.ENV_OPEN_API_HOST) {\n throw new Error('ENV_OPEN_API_HOST is not set');\n }\n return fetch<T>(\n `${ENV_CONFIG.ENV_OPEN_API_HOST}${url.startsWith('/') ? url : '/' + url}`,\n opts,\n );\n};\n\nexport const simpleGetFetcher = async <T>(...args: any[]) => {\n let [url, query] = args;\n if (query) {\n url = qs.stringifyUrl({ url, query });\n }\n return await fetchWithPrefix<T>(url, {\n method: 'get',\n });\n};\n\nexport const useSWRWithGetFetcher = (\n key: string | string[] | null,\n swrOpts = {},\n) => {\n const isTransferReq =\n (typeof key === 'string' && key.startsWith('/transfer')) ||\n (Array.isArray(key) &&\n typeof key[0] === 'string' &&\n key[0].startsWith('/transfer'));\n\n const { data, error, mutate }: any = useSWR(key, simpleGetFetcher, {\n ...swrOpts,\n });\n\n let tokenAddress: string | string[] = '';\n\n // deal with token info\n if (isTransferReq && data && data.list) {\n tokenAddress = data.list.reduce(\n (acc: string[], trans: { address: string }) => {\n if (trans.address && !acc.includes(trans.address))\n acc.push(trans.address);\n return acc;\n },\n [],\n );\n }\n\n const { data: tokenData }: any = useSWR(\n tokenAddress\n ? qs.stringifyUrl({\n url: '/token',\n query: { addressArray: tokenAddress, fields: 'iconUrl' },\n })\n : null,\n simpleGetFetcher,\n );\n\n if (tokenData && tokenData.list) {\n const newTransferList = data.list.map((trans: { address: string }) => {\n if (tokenAddress.includes(trans.address)) {\n const tokenInfo = tokenData.list.find(\n (t: { address: string }) => t.address === trans.address,\n );\n if (tokenInfo) return { ...trans, token: { ...tokenInfo } };\n }\n\n return trans;\n });\n\n return {\n data: {\n ...data,\n list: newTransferList,\n },\n error,\n mutate,\n };\n }\n\n return { data, error, mutate };\n};\n\ntype RequestMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD';\ninterface QueryParams {\n [key: string]: string;\n}\ninterface Config {\n url: string;\n query: QueryParams;\n type?: RequestMethod;\n body?: any;\n headers?: Headers;\n signal?: AbortSignal;\n}\n\nconst queryAddress = (address: string[]) => {\n return address.reduce((prev, curr, index) => {\n return !index ? `address=${curr}` : `${prev}&address=${curr}`;\n }, '');\n};\n\nexport const sendRequestChart = async (config: Config) => {\n try {\n const res: any = await fetch(\n qs.stringifyUrl({ url: config.url, query: config.query }),\n {\n method: config.type || 'GET',\n body: config.body,\n headers: config.headers,\n signal: config.signal,\n },\n );\n const data = res;\n data.list = [...(data.list || [])].reverse();\n return data;\n } catch (error) {\n console.error('Request failed', error);\n throw error;\n }\n};\n\nexport const sendRequestENSInfo = async (url?: string | null) => {\n if (!url) return {};\n try {\n const res: any = await fetch(url, {\n method: 'GET',\n });\n\n return res?.map;\n } catch (error) {\n console.error('Request failed', error);\n throw error;\n }\n};\n\nexport const sendRequestGasPrice = async () => {\n try {\n const res: any = await fetch(`/stat/gasprice/tracker`, {\n method: 'GET',\n });\n return res;\n } catch (error) {\n console.error('Request failed', error);\n throw error;\n }\n};\n\nexport const reqNametag = async (address: string[]) => {\n const query = queryAddress(address);\n\n const res: any = await fetch(`/v1/nametag?${query}`, {\n method: 'GET',\n });\n return res?.map;\n};\n\nexport const reqContractAndToken = async (address: string[]) => {\n const query = queryAddress(address);\n\n const res: any = await fetch(`/v1/contract-and-token?${query}`, {\n method: 'GET',\n });\n return res?.map;\n};\n\nexport const getContractDetail = <T extends string>(\n contractAddress?: string,\n fields: T[] = [],\n) => {\n const url = qs.stringifyUrl({\n url: `/v1/contract/${contractAddress}`,\n query: { fields },\n });\n\n return fetch<BaseContractInfo & Record<T, unknown>>(url, {\n method: 'GET',\n });\n};\n\nexport const detectAccountType = fetchWithCache((address: string) => {\n return fetchWithOpenApi<DetectAccountTypeResponse>(\n `/util/detectAccountType?hex=${address}`,\n {\n method: 'GET',\n },\n );\n}, {\n // 1 minute\n maxAge: 1000 * 60,\n});\n"],"mappings":";;;;;;;;;;;AAAA,OAAO,QAAQ;AAEf,OAAO,YAAY;AAanB,IAAM,oBAAoB;AAE1B,IAAM,cAAc,CAAC,aAAuB;AAC1C,MACG,SAAS,UAAU,OAAO,SAAS,SAAS,OAC7C,SAAS,WAAW,KACpB;AACA,WAAO;AAAA,EACT,OAAO;AACL,UAAM,QAAQ,IAAI,MAAM,SAAS,UAAU;AAC3C,UAAM,OAAO;AACb,IAAC,MAAc,SAAS,SAAS;AACjC,IAAC,MAAc,WAAW;AAC1B,UAAM;AAAA,EACR;AACF;AAGA,IAAM,YAAY,OAAO,aAAuB;AAC9C,QAAM,cAAc,SAAS,QAAQ,IAAI,cAAc;AACvD,MAAI;AACF,QAAI,aAAa,SAAS,kBAAkB,GAAG;AAC7C,aAAO,EAAE,MAAM,MAAM,SAAS,KAAK,GAAG,SAAS;AAAA,IACjD,WAAW,aAAa,SAAS,WAAW,GAAG;AAC7C,aAAO,EAAE,MAAM,MAAM,SAAS,KAAK,GAAG,SAAS;AAAA,IACjD,OAAO;AAIL,aAAO,EAAE,MAAM,UAAU,SAAS;AAAA,IACpC;AAAA,EACF,SAAS,OAAP;AACA,QAAK,MAAc,SAAS,cAAc;AACxC,aAAO,EAAE,MAAM,UAAU,SAAS;AAAA,IACpC;AACA,wBAAoB,EAAE,KAAK,SAAS,KAAK,MAA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YAAQ,MAAM,kBAAkB,KAAK;AACrC,UAAM;AAAA,EACR;AACF;AAEO,IAAM,aAAa,OAAO,YAAsB;AACrD,QAAM,QAAQ,aAAa,OAAO;AAElC,QAAM,MAAW,MAAM,MAAM,eAAe,SAAS;AAAA,IACnD,QAAQ;AAAA,EACV,CAAC;AACD,SAAO,KAAK;AACd;AAEO,IAAM,sBAAsB,OAAO,YAAsB;AAC9D,QAAM,QAAQ,aAAa,OAAO;AAElC,QAAM,MAAW,MAAM,MAAM,0BAA0B,SAAS;AAAA,IAC9D,QAAQ;AAAA,EACV,CAAC;AACD,SAAO,KAAK;AACd;AAEO,IAAM,oBAAoB,CAC/B,iBACA,SAAc,CAAC,MACZ;AACH,QAAM,MAAM,GAAG,aAAa;AAAA,IAC1B,KAAK,gBAAgB;AAAA,IACrB,OAAO,EAAE,OAAO;AAAA,EAClB,CAAC;AAED,SAAO,MAA6C,KAAK;AAAA,IACvD,QAAQ;AAAA,EACV,CAAC;AACH;AAEO,IAAM,oBAAoB,eAAe,CAAC,YAAoB;AACnE,SAAO;AAAA,IACL,+BAA+B;AAAA,IAC/B;AAAA,MACE,QAAQ;AAAA,IACV;AAAA,EACF;AACF,GAAG;AAAA;AAAA,EAED,QAAQ,MAAO;AACjB,CAAC;","names":[]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
publishRequestError
|
|
3
|
+
} from "./chunk-J2I22Q2M.js";
|
|
4
|
+
|
|
5
|
+
// src/utils/rpcRequest.ts
|
|
6
|
+
var request = async (method, ...args) => {
|
|
7
|
+
const CFX = window.CFX;
|
|
8
|
+
try {
|
|
9
|
+
const [namespace, m] = method.split("_");
|
|
10
|
+
if (namespace && m && typeof CFX[namespace][m] === "function") {
|
|
11
|
+
return await CFX[namespace][m](...args);
|
|
12
|
+
} else {
|
|
13
|
+
throw new Error(
|
|
14
|
+
`Method ${m} is not a function in namespace ${namespace}`
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
} catch (e) {
|
|
18
|
+
if (e instanceof Error) {
|
|
19
|
+
publishRequestError(e, "rpc");
|
|
20
|
+
} else {
|
|
21
|
+
console.error("Unexpected error", e);
|
|
22
|
+
}
|
|
23
|
+
throw e;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
var getAccount = async (...args) => {
|
|
27
|
+
try {
|
|
28
|
+
return request("cfx_getAccount", ...args);
|
|
29
|
+
} catch (e) {
|
|
30
|
+
throw e;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
var getAddressCode = async (address, ...args) => {
|
|
34
|
+
try {
|
|
35
|
+
return request("cfx_getCode", address, ...args);
|
|
36
|
+
} catch (e) {
|
|
37
|
+
throw e;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
getAccount,
|
|
43
|
+
getAddressCode
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=chunk-ONMNA33N.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils/rpcRequest.ts"],"sourcesContent":["import { publishRequestError } from './pubsub';\n\nconst request = async <T>(method: string, ...args: any[]): Promise<T> => {\n const CFX = (window as any).CFX;\n\n try {\n const [namespace, m] = method.split('_');\n // 断言 CFX[namespace][m] 为一个函数,并调用它\n if (namespace && m && typeof CFX[namespace][m] === 'function') {\n return await CFX[namespace][m](...args);\n } else {\n throw new Error(\n `Method ${m} is not a function in namespace ${namespace}`,\n );\n }\n } catch (e: unknown) {\n if (e instanceof Error) {\n publishRequestError(e, 'rpc');\n } else {\n console.error('Unexpected error', e);\n }\n throw e;\n }\n};\n\nexport const getAccount = async (...args: unknown[]) => {\n try {\n return request('cfx_getAccount', ...args);\n } catch (e) {\n throw e;\n }\n};\n\nexport const getAddressCode = async (address: string, ...args: unknown[]) => {\n try {\n return request<`0x${string}` | null>('cfx_getCode', address, ...args);\n } catch (e) {\n throw e;\n }\n};\n"],"mappings":";;;;;AAEA,IAAM,UAAU,OAAU,WAAmB,SAA4B;AACvE,QAAM,MAAO,OAAe;AAE5B,MAAI;AACF,UAAM,CAAC,WAAW,CAAC,IAAI,OAAO,MAAM,GAAG;AAEvC,QAAI,aAAa,KAAK,OAAO,IAAI,SAAS,EAAE,CAAC,MAAM,YAAY;AAC7D,aAAO,MAAM,IAAI,SAAS,EAAE,CAAC,EAAE,GAAG,IAAI;AAAA,IACxC,OAAO;AACL,YAAM,IAAI;AAAA,QACR,UAAU,oCAAoC;AAAA,MAChD;AAAA,IACF;AAAA,EACF,SAAS,GAAP;AACA,QAAI,aAAa,OAAO;AACtB,0BAAoB,GAAG,KAAK;AAAA,IAC9B,OAAO;AACL,cAAQ,MAAM,oBAAoB,CAAC;AAAA,IACrC;AACA,UAAM;AAAA,EACR;AACF;AAEO,IAAM,aAAa,UAAU,SAAoB;AACtD,MAAI;AACF,WAAO,QAAQ,kBAAkB,GAAG,IAAI;AAAA,EAC1C,SAAS,GAAP;AACA,UAAM;AAAA,EACR;AACF;AAEO,IAAM,iBAAiB,OAAO,YAAoB,SAAoB;AAC3E,MAAI;AACF,WAAO,QAA8B,eAAe,SAAS,GAAG,IAAI;AAAA,EACtE,SAAS,GAAP;AACA,UAAM;AAAA,EACR;AACF;","names":[]}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useBreakpoint
|
|
3
|
+
} from "./chunk-TOKKKTFG.js";
|
|
4
|
+
import {
|
|
5
|
+
Tooltip
|
|
6
|
+
} from "./chunk-NKKWDQOM.js";
|
|
7
|
+
import {
|
|
8
|
+
selectText
|
|
9
|
+
} from "./chunk-4QJEGIPC.js";
|
|
10
|
+
|
|
11
|
+
// src/components/Text/index.tsx
|
|
12
|
+
import React from "react";
|
|
13
|
+
import clsx from "clsx";
|
|
14
|
+
import { jsx } from "react/jsx-runtime";
|
|
15
|
+
var getTypeColor = (type) => {
|
|
16
|
+
const colors = {
|
|
17
|
+
default: "inherit",
|
|
18
|
+
primary: "#7cd77b",
|
|
19
|
+
secondary: "#666",
|
|
20
|
+
success: "#7cd77b",
|
|
21
|
+
warning: "#ffc438",
|
|
22
|
+
error: "#e15c56"
|
|
23
|
+
};
|
|
24
|
+
return colors[type] || colors.default;
|
|
25
|
+
};
|
|
26
|
+
var Text = React.memo(
|
|
27
|
+
({
|
|
28
|
+
className,
|
|
29
|
+
children,
|
|
30
|
+
maxWidth: _maxWidth,
|
|
31
|
+
mobileMaxWidth = _maxWidth,
|
|
32
|
+
maxCount: _maxCount,
|
|
33
|
+
mobileMaxCount = _maxCount,
|
|
34
|
+
hoverValue,
|
|
35
|
+
hoverValueMaxCount: outerHoverValueMaxCount,
|
|
36
|
+
tag = "p",
|
|
37
|
+
type = "default",
|
|
38
|
+
hideTooltip = false,
|
|
39
|
+
...props
|
|
40
|
+
}) => {
|
|
41
|
+
const Component = tag;
|
|
42
|
+
const bp = useBreakpoint();
|
|
43
|
+
let child = children;
|
|
44
|
+
const maxCount = bp === "s" ? mobileMaxCount : _maxCount;
|
|
45
|
+
const maxWidth = bp === "s" ? mobileMaxWidth : _maxWidth;
|
|
46
|
+
if (maxWidth === void 0 && maxCount && typeof children === "string" && children.length > maxCount) {
|
|
47
|
+
child = String.prototype.substr.call(children, 0, maxCount) + "...";
|
|
48
|
+
}
|
|
49
|
+
let textContent = hoverValue || children;
|
|
50
|
+
if (bp === "s" && typeof textContent === "string") {
|
|
51
|
+
const hoverValueMaxCount = outerHoverValueMaxCount || 34;
|
|
52
|
+
let textContentCopy = textContent;
|
|
53
|
+
let newTextContent = [];
|
|
54
|
+
let count = 0;
|
|
55
|
+
while (textContentCopy.length > hoverValueMaxCount) {
|
|
56
|
+
newTextContent.push(
|
|
57
|
+
/* @__PURE__ */ jsx("span", { children: textContentCopy.substr(0, hoverValueMaxCount) }, count)
|
|
58
|
+
);
|
|
59
|
+
newTextContent.push(/* @__PURE__ */ jsx("br", {}, `br${count}`));
|
|
60
|
+
textContentCopy = textContentCopy.substr(hoverValueMaxCount);
|
|
61
|
+
if (count > 3) {
|
|
62
|
+
textContentCopy = textContentCopy.substr(0, hoverValueMaxCount - 3) + "...";
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
newTextContent.push(/* @__PURE__ */ jsx("span", { children: textContentCopy }, ++count));
|
|
66
|
+
textContent = newTextContent;
|
|
67
|
+
}
|
|
68
|
+
const tooltipText = !hideTooltip && React.createElement(
|
|
69
|
+
"div",
|
|
70
|
+
{
|
|
71
|
+
onClick: (e) => {
|
|
72
|
+
e.preventDefault();
|
|
73
|
+
e.stopPropagation();
|
|
74
|
+
selectText(e.currentTarget);
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
textContent
|
|
78
|
+
);
|
|
79
|
+
const p = { title: tooltipText };
|
|
80
|
+
return React.createElement(Tooltip, p, [
|
|
81
|
+
/* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
|
|
82
|
+
Component,
|
|
83
|
+
{
|
|
84
|
+
className: clsx(
|
|
85
|
+
"sirius-text truncate vertical-bottom",
|
|
86
|
+
"all-[a]:truncate all-[a]:vertical-bottom all-[a]:cursor-pointer all-[a:hover]:text-#0626ae",
|
|
87
|
+
className
|
|
88
|
+
),
|
|
89
|
+
style: {
|
|
90
|
+
maxWidth,
|
|
91
|
+
display: maxWidth === void 0 ? "inherit" : "inline-block",
|
|
92
|
+
color: getTypeColor(type)
|
|
93
|
+
},
|
|
94
|
+
...props,
|
|
95
|
+
children: child
|
|
96
|
+
}
|
|
97
|
+
) }, "text")
|
|
98
|
+
]);
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
export {
|
|
103
|
+
Text
|
|
104
|
+
};
|
|
105
|
+
//# sourceMappingURL=chunk-ONSETHR4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Text/index.tsx"],"sourcesContent":["import React from 'react';\nimport clsx from 'clsx';\nimport { Tooltip } from '../Tooltip';\nimport { selectText } from '../../utils';\nimport { useBreakpoint } from '../../utils/media';\n\ntype NormalTypes =\n | 'default'\n | 'secondary'\n | 'success'\n | 'warning'\n | 'error'\n | 'primary';\n\ntype TextProps = {\n children?: React.ReactNode;\n maxWidth?: string;\n mobileMaxWidth?: string;\n maxCount?: number;\n mobileMaxCount?: number;\n hoverValue?: React.ReactNode;\n hoverValueMaxCount?: number;\n tag?: 'p' | 'span';\n type?: NormalTypes;\n hideTooltip?: boolean;\n};\ntype NativeAttrs = Omit<React.HTMLAttributes<any>, keyof TextProps>;\n\nconst getTypeColor = (type: NormalTypes) => {\n const colors: { [key in NormalTypes]: string } = {\n default: 'inherit',\n primary: '#7cd77b',\n secondary: '#666',\n success: '#7cd77b',\n warning: '#ffc438',\n error: '#e15c56',\n };\n\n return colors[type] || colors.default;\n};\n\n// note:\n// 1. maxWidth priority is higher than maxCount\n// 2. maxCount only apply to string\n// 3. if hoverValue is provided, use hoverValue as Tooltip text, otherwise use children\n// if text of prop tooltip is provided, use as Tooltip text\nexport const Text = React.memo(\n ({\n className,\n children,\n maxWidth: _maxWidth,\n mobileMaxWidth = _maxWidth,\n maxCount: _maxCount,\n mobileMaxCount = _maxCount,\n hoverValue,\n hoverValueMaxCount: outerHoverValueMaxCount,\n tag = 'p',\n type = 'default',\n hideTooltip = false,\n ...props\n }: NativeAttrs & TextProps) => {\n const Component = tag;\n const bp = useBreakpoint();\n let child: React.ReactNode = children;\n const maxCount = bp === 's' ? mobileMaxCount : _maxCount;\n const maxWidth = bp === 's' ? mobileMaxWidth : _maxWidth;\n if (\n maxWidth === undefined &&\n maxCount &&\n typeof children === 'string' &&\n children.length > maxCount\n ) {\n child = String.prototype.substr.call(children, 0, maxCount) + '...';\n }\n\n let textContent = hoverValue || children;\n // 控制移动端字符串类型 tooltip 的长度\n // 这里有个问题,就是截断的位置可能是一个完整的单词,暂时没有办法处理,如果为了避免这种情况,需要由外面传入前对内容进行处理,比如设置固定宽度小于 24rem\n // @todo 后续可以试下读取文本长度,动态设置容器宽度值的方式,可以避免截断位置的问题\n if (bp === 's' && typeof textContent === 'string') {\n const hoverValueMaxCount = outerHoverValueMaxCount || 34; // default text count is 36\n let textContentCopy: string = textContent;\n let newTextContent: Array<React.ReactNode> = [];\n let count = 0;\n while (textContentCopy.length > hoverValueMaxCount) {\n newTextContent.push(\n <span key={count}>\n {textContentCopy.substr(0, hoverValueMaxCount)}\n </span>,\n );\n newTextContent.push(<br key={`br${count}`} />);\n textContentCopy = textContentCopy.substr(hoverValueMaxCount);\n // 防止文本过长的情况\n if (count > 3) {\n textContentCopy =\n textContentCopy.substr(0, hoverValueMaxCount - 3) + '...';\n }\n }\n newTextContent.push(<span key={++count}>{textContentCopy}</span>);\n textContent = newTextContent;\n }\n const tooltipText =\n !hideTooltip &&\n React.createElement(\n 'div',\n {\n onClick: e => {\n e.preventDefault();\n e.stopPropagation();\n selectText(e.currentTarget);\n },\n },\n textContent,\n );\n\n const p = { title: tooltipText };\n return React.createElement(Tooltip, p, [\n <span key=\"text\">\n <Component\n className={clsx(\n 'sirius-text truncate vertical-bottom',\n 'all-[a]:truncate all-[a]:vertical-bottom all-[a]:cursor-pointer all-[a:hover]:text-#0626ae',\n className,\n )}\n style={{\n maxWidth,\n display: maxWidth === undefined ? 'inherit' : 'inline-block',\n color: getTypeColor(type),\n }}\n {...props}\n >\n {child}\n </Component>\n </span>,\n ]);\n },\n);\n"],"mappings":";;;;;;;;;;;AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AAqFP;AA1DV,IAAM,eAAe,CAAC,SAAsB;AAC1C,QAAM,SAA2C;AAAA,IAC/C,SAAS;AAAA,IACT,SAAS;AAAA,IACT,WAAW;AAAA,IACX,SAAS;AAAA,IACT,SAAS;AAAA,IACT,OAAO;AAAA,EACT;AAEA,SAAO,OAAO,IAAI,KAAK,OAAO;AAChC;AAOO,IAAM,OAAO,MAAM;AAAA,EACxB,CAAC;AAAA,IACC;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV,iBAAiB;AAAA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MAAM,cAAc,SAAS,GAAG;AAAA,MACrC,oBAAC,UACC;AAAA,QAAC;AAAA;AAAA,UACC,WAAW;AAAA,YACT;AAAA,YACA;AAAA,YACA;AAAA,UACF;AAAA,UACA,OAAO;AAAA,YACL;AAAA,YACA,SAAS,aAAa,SAAY,YAAY;AAAA,YAC9C,OAAO,aAAa,IAAI;AAAA,UAC1B;AAAA,UACC,GAAG;AAAA,UAEH;AAAA;AAAA,MACH,KAfQ,MAgBV;AAAA,IACF,CAAC;AAAA,EACH;AACF;","names":[]}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import {
|
|
2
|
+
convertCheckSum
|
|
3
|
+
} from "./chunk-S24ORVD5.js";
|
|
4
|
+
import {
|
|
5
|
+
Text
|
|
6
|
+
} from "./chunk-QQXDVN7O.js";
|
|
7
|
+
import {
|
|
8
|
+
getTranslations
|
|
9
|
+
} from "./chunk-DQGLZCIG.js";
|
|
10
|
+
|
|
11
|
+
// src/components/AddressContainer/addressView.tsx
|
|
12
|
+
import { Translation } from "react-i18next";
|
|
13
|
+
import { shortenAddress } from "@cfx-kit/dapp-utils/dist/address";
|
|
14
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
var defaultPCMaxWidth = 138;
|
|
16
|
+
var renderTooltipContent = (tooltipContent) => {
|
|
17
|
+
return Object.entries(tooltipContent).map(([key, { label, value, hideLabel }]) => {
|
|
18
|
+
if (value) {
|
|
19
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
20
|
+
!hideLabel && /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(Translation, { children: (t) => t(label) }) }),
|
|
21
|
+
value
|
|
22
|
+
] }, key);
|
|
23
|
+
}
|
|
24
|
+
return null;
|
|
25
|
+
}).filter(Boolean);
|
|
26
|
+
};
|
|
27
|
+
var convertLink = ({
|
|
28
|
+
link,
|
|
29
|
+
type,
|
|
30
|
+
hrefAddress,
|
|
31
|
+
cfxAddress
|
|
32
|
+
}) => {
|
|
33
|
+
if (typeof link === "string") {
|
|
34
|
+
return link;
|
|
35
|
+
}
|
|
36
|
+
const address = hrefAddress || cfxAddress;
|
|
37
|
+
if (address && typeof address === "string") {
|
|
38
|
+
const pathname = window.location.pathname.toLowerCase();
|
|
39
|
+
const addressLower = address.toLowerCase();
|
|
40
|
+
if (pathname.includes("/address/" + addressLower)) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
if (type === "pow") {
|
|
44
|
+
return `/address/${address}`;
|
|
45
|
+
}
|
|
46
|
+
if (type === "pos") {
|
|
47
|
+
return `/pos/accounts/${address}`;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return false;
|
|
51
|
+
};
|
|
52
|
+
var RenderAddress = ({
|
|
53
|
+
cfxAddress,
|
|
54
|
+
alias,
|
|
55
|
+
hoverValue,
|
|
56
|
+
hrefAddress,
|
|
57
|
+
content,
|
|
58
|
+
link = "",
|
|
59
|
+
isFull = false,
|
|
60
|
+
isFullNameTag = false,
|
|
61
|
+
style = {},
|
|
62
|
+
maxWidth,
|
|
63
|
+
prefix = null,
|
|
64
|
+
suffix = null,
|
|
65
|
+
type = "pow",
|
|
66
|
+
addressLabel = "",
|
|
67
|
+
ENSLabel = "",
|
|
68
|
+
nametag = "",
|
|
69
|
+
hideAliasPrefixInHover = false
|
|
70
|
+
}) => {
|
|
71
|
+
const translations = getTranslations();
|
|
72
|
+
const name = content || ENSLabel || nametag || addressLabel || alias;
|
|
73
|
+
const defaultStyle = {
|
|
74
|
+
maxWidth: `${name && isFullNameTag || isFull ? "auto" : (maxWidth || defaultPCMaxWidth) + "px"}`
|
|
75
|
+
};
|
|
76
|
+
const href = convertLink({ link, type, hrefAddress, cfxAddress });
|
|
77
|
+
const Wrapper = href ? "a" : "div";
|
|
78
|
+
const tooltipContent = {
|
|
79
|
+
ENSLabel: {
|
|
80
|
+
label: translations?.ens?.tip,
|
|
81
|
+
value: ENSLabel
|
|
82
|
+
},
|
|
83
|
+
nametag: {
|
|
84
|
+
label: translations?.nametag?.tip,
|
|
85
|
+
value: nametag
|
|
86
|
+
},
|
|
87
|
+
addressLabel: {
|
|
88
|
+
label: translations?.profile.address.myNameTag,
|
|
89
|
+
value: addressLabel
|
|
90
|
+
},
|
|
91
|
+
alias: {
|
|
92
|
+
label: translations?.profile.address.publicNameTag,
|
|
93
|
+
value: alias,
|
|
94
|
+
hideLabel: hideAliasPrefixInHover
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
const checksumAddress = convertCheckSum(cfxAddress);
|
|
98
|
+
const cfxAddressLabel = typeof cfxAddress === "string" && !isFull ? shortenAddress(checksumAddress) : checksumAddress;
|
|
99
|
+
return /* @__PURE__ */ jsxs("div", { className: "inline-flex", children: [
|
|
100
|
+
prefix,
|
|
101
|
+
/* @__PURE__ */ jsx(
|
|
102
|
+
Text,
|
|
103
|
+
{
|
|
104
|
+
tag: "span",
|
|
105
|
+
hoverValue: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
106
|
+
renderTooltipContent(tooltipContent),
|
|
107
|
+
/* @__PURE__ */ jsx("div", { children: hoverValue || checksumAddress })
|
|
108
|
+
] }),
|
|
109
|
+
children: /* @__PURE__ */ jsx(
|
|
110
|
+
Wrapper,
|
|
111
|
+
{
|
|
112
|
+
className: "block relative align-bottom cursor-default truncate",
|
|
113
|
+
style: { ...defaultStyle, ...style },
|
|
114
|
+
...href ? { href: String(href) } : {},
|
|
115
|
+
children: name || cfxAddressLabel
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
suffix
|
|
121
|
+
] });
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export {
|
|
125
|
+
RenderAddress
|
|
126
|
+
};
|
|
127
|
+
//# sourceMappingURL=chunk-OWAB7CCQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/AddressContainer/addressView.tsx"],"sourcesContent":["import { Translation } from 'react-i18next';\nimport { Text } from '../Text';\nimport { convertCheckSum } from '../../utils/address';\nimport { getTranslations } from '../../store';\nimport { TooltipContent, RenderAddressProps } from './types';\nimport { shortenAddress } from '@cfx-kit/dapp-utils/dist/address';\n\nconst defaultPCMaxWidth = 138;\n\n// common\nconst renderTooltipContent = (tooltipContent: TooltipContent) => {\n return Object.entries(tooltipContent)\n .map(([key, { label, value, hideLabel }]) => {\n if (value) {\n return (\n <div key={key}>\n {!hideLabel && (\n <span>\n <Translation>{t => t(label)}</Translation>\n </span>\n )}\n {value}\n </div>\n );\n }\n return null;\n })\n .filter(Boolean);\n};\n\n// common\nconst convertLink = ({\n link,\n type,\n hrefAddress,\n cfxAddress,\n}: RenderAddressProps) => {\n if (typeof link === 'string') {\n return link;\n }\n\n const address = hrefAddress || cfxAddress;\n\n if (address && typeof address === 'string') {\n const pathname = window.location.pathname.toLowerCase();\n const addressLower = address.toLowerCase();\n if (pathname.includes('/address/' + addressLower)) {\n return false;\n }\n\n if (type === 'pow') {\n return `/address/${address}`;\n }\n\n if (type === 'pos') {\n return `/pos/accounts/${address}`;\n }\n }\n\n return false;\n};\n\n// common\nexport const RenderAddress = ({\n cfxAddress,\n alias,\n hoverValue,\n hrefAddress,\n content,\n link = '',\n isFull = false,\n isFullNameTag = false,\n style = {},\n maxWidth,\n prefix = null,\n suffix = null,\n type = 'pow',\n addressLabel = '',\n ENSLabel = '',\n nametag = '',\n hideAliasPrefixInHover = false,\n}: RenderAddressProps) => {\n const translations = getTranslations();\n\n const name = content || ENSLabel || nametag || addressLabel || alias;\n\n const defaultStyle = {\n maxWidth: `${(name && isFullNameTag) || isFull ? 'auto' : (maxWidth || defaultPCMaxWidth) + 'px'}`,\n };\n\n const href = convertLink({ link, type, hrefAddress, cfxAddress });\n\n const Wrapper = href ? 'a' : 'div';\n\n const tooltipContent: TooltipContent = {\n ENSLabel: {\n label: (translations as any)?.ens?.tip,\n value: ENSLabel,\n },\n nametag: {\n label: translations?.nametag?.tip,\n value: nametag,\n },\n addressLabel: {\n label: translations?.profile.address.myNameTag,\n value: addressLabel,\n },\n alias: {\n label: translations?.profile.address.publicNameTag,\n value: alias,\n hideLabel: hideAliasPrefixInHover,\n },\n };\n\n const checksumAddress = convertCheckSum(cfxAddress);\n\n const cfxAddressLabel =\n typeof cfxAddress === 'string' && !isFull\n ? shortenAddress(checksumAddress!)\n : checksumAddress;\n\n return (\n <div className=\"inline-flex\">\n {prefix}\n <Text\n tag=\"span\"\n hoverValue={\n <>\n {renderTooltipContent(tooltipContent)}\n <div>{hoverValue || checksumAddress}</div>\n </>\n }\n >\n <Wrapper\n className=\"block relative align-bottom cursor-default truncate\"\n style={{ ...defaultStyle, ...style }}\n {...(href ? { href: String(href) } : {})}\n >\n {name || cfxAddressLabel}\n </Wrapper>\n </Text>\n {suffix}\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;AAAA,SAAS,mBAAmB;AAK5B,SAAS,sBAAsB;AAUrB,SAgHA,UA7GM,KAHN;AARV,IAAM,oBAAoB;AAG1B,IAAM,uBAAuB,CAAC,mBAAmC;AAC/D,SAAO,OAAO,QAAQ,cAAc,EACjC,IAAI,CAAC,CAAC,KAAK,EAAE,OAAO,OAAO,UAAU,CAAC,MAAM;AAC3C,QAAI,OAAO;AACT,aACE,qBAAC,SACE;AAAA,SAAC,aACA,oBAAC,UACC,8BAAC,eAAa,iBAAK,EAAE,KAAK,GAAE,GAC9B;AAAA,QAED;AAAA,WANO,GAOV;AAAA,IAEJ;AACA,WAAO;AAAA,EACT,CAAC,EACA,OAAO,OAAO;AACnB;AAGA,IAAM,cAAc,CAAC;AAAA,EACnB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAA0B;AACxB,MAAI,OAAO,SAAS,UAAU;AAC5B,WAAO;AAAA,EACT;AAEA,QAAM,UAAU,eAAe;AAE/B,MAAI,WAAW,OAAO,YAAY,UAAU;AAC1C,UAAM,WAAW,OAAO,SAAS,SAAS,YAAY;AACtD,UAAM,eAAe,QAA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