@stridge/kit 0.1.0-alpha.51 → 0.1.0-alpha.52
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/KitProvider.d.ts +11 -0
- package/dist/KitProvider.js +1 -1
- package/dist/_internal/activity/driver/index.d.ts +3 -0
- package/dist/_internal/activity/driver/index.js +1 -0
- package/dist/_internal/drivers/stridge/index.d.ts +2 -1
- package/dist/_internal/drivers/stridge/index.js +1 -1
- package/dist/_internal/drivers/stridge-mock/index.d.ts +2 -1
- package/dist/_internal/drivers/stridge-mock/index.js +1 -1
- package/dist/activity/compound/index.d.ts +19 -0
- package/dist/activity/compound/index.js +1 -0
- package/dist/activity/dialog/index.d.ts +3 -0
- package/dist/activity/dialog/index.js +1 -0
- package/dist/activity/widgets/index.d.ts +4 -0
- package/dist/activity/widgets/index.js +1 -0
- package/dist/deposit/compound/index.d.ts +9 -9
- package/dist/deposit/widgets/index.d.ts +3 -3
- package/dist/deposit/widgets/index.js +1 -1
- package/dist/drivers/stridge/createStridgeActivityDriver.d.ts +44 -0
- package/dist/drivers/stridge/createStridgeActivityDriver.js +1 -0
- package/dist/drivers/stridge/createStridgeDepositDriver.js +1 -1
- package/dist/drivers/stridge/createStridgeWithdrawDriver.js +1 -1
- package/dist/drivers/stridge-mock/createStridgeMockActivityDriver.d.ts +44 -0
- package/dist/drivers/stridge-mock/createStridgeMockActivityDriver.js +1 -0
- package/dist/drivers/stridge-mock/createStridgeMockDriver.d.ts +0 -2
- package/dist/drivers/stridge-mock/createStridgeMockDriver.js +1 -1
- package/dist/drivers/stridge-mock/createStridgeMockWithdrawDriver.d.ts +1 -2
- package/dist/drivers/stridge-mock/createStridgeMockWithdrawDriver.js +1 -1
- package/dist/drivers/stridge-mock/fixtures.js +1 -1
- package/dist/flows/activity/compound/ActivityFlow.d.ts +46 -0
- package/dist/flows/activity/compound/ActivityFlow.js +1 -0
- package/dist/flows/activity/compound/components/Boundary.d.ts +29 -0
- package/dist/flows/activity/compound/components/Boundary.js +1 -0
- package/dist/flows/activity/compound/components/Steps.d.ts +24 -0
- package/dist/flows/activity/compound/components/Steps.js +1 -0
- package/dist/flows/activity/dialog/ActivityDialog.d.ts +38 -0
- package/dist/flows/activity/dialog/ActivityDialog.js +1 -0
- package/dist/flows/activity/dialog/ActivityFlowBoundary.d.ts +1 -0
- package/dist/flows/activity/dialog/ActivityFlowBoundary.js +1 -0
- package/dist/flows/activity/driver/context.d.ts +38 -0
- package/dist/flows/activity/driver/context.js +1 -0
- package/dist/flows/activity/driver/types.d.ts +58 -0
- package/dist/flows/activity/orchestrator/controller.d.ts +11 -0
- package/dist/flows/activity/orchestrator/controller.js +1 -0
- package/dist/flows/activity/orchestrator/index.d.ts +4 -0
- package/dist/flows/activity/orchestrator/index.js +1 -0
- package/dist/flows/activity/orchestrator/reducer.d.ts +1 -0
- package/dist/flows/activity/orchestrator/reducer.js +1 -0
- package/dist/flows/activity/orchestrator/types.d.ts +71 -0
- package/dist/flows/activity/orchestrator/useActivity.d.ts +94 -0
- package/dist/flows/activity/orchestrator/useActivity.js +1 -0
- package/dist/flows/activity/widgets/ActivityDetail.d.ts +41 -0
- package/dist/flows/activity/widgets/ActivityDetail.js +1 -0
- package/dist/flows/activity/widgets/ActivityList.d.ts +38 -0
- package/dist/flows/activity/widgets/ActivityList.js +1 -0
- package/dist/flows/activity/widgets/useStandaloneActivitySource.js +1 -0
- package/dist/flows/deposit/dialog/DepositBootstrapErrorState.js +1 -1
- package/dist/flows/deposit/dialog/DepositDialog.js +1 -1
- package/dist/flows/deposit/driver/transformers/settlementToPayload.js +1 -1
- package/dist/flows/deposit/driver/types.d.ts +1 -38
- package/dist/flows/deposit/orchestrator/controller.js +1 -1
- package/dist/flows/deposit/orchestrator/reducer.js +1 -1
- package/dist/flows/deposit/orchestrator/types.d.ts +43 -29
- package/dist/flows/deposit/widgets/{activity-history/DepositHistoryDetail.d.ts → activity/DepositActivityDetail.d.ts} +11 -11
- package/dist/flows/deposit/widgets/activity/DepositActivityDetail.js +1 -0
- package/dist/flows/deposit/widgets/activity/DepositActivityList.d.ts +38 -0
- package/dist/flows/deposit/widgets/activity/DepositActivityList.js +1 -0
- package/dist/flows/deposit/widgets/activity/index.d.ts +2 -0
- package/dist/flows/deposit/widgets/activity/index.js +1 -0
- package/dist/flows/deposit/widgets/activity/useDepositActivitySource.js +1 -0
- package/dist/flows/deposit/widgets/amount-entry/AmountEntry.js +1 -1
- package/dist/flows/deposit/widgets/asset-picker/AssetPicker.js +1 -1
- package/dist/flows/deposit/widgets/confirm-deposit/ConfirmDeposit.js +1 -1
- package/dist/flows/deposit/widgets/deposit/Deposit.js +1 -1
- package/dist/flows/deposit/widgets/deposit/compound/components/Header.d.ts +7 -6
- package/dist/flows/deposit/widgets/deposit/compound/components/Header.js +1 -1
- package/dist/flows/deposit/widgets/deposit-status-banner/DepositStatusBanner.js +1 -1
- package/dist/flows/deposit/widgets/error-state/ErrorState.js +1 -1
- package/dist/flows/deposit/widgets/processing-state/ProcessingState.js +1 -1
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Header.d.ts +4 -3
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Header.js +1 -1
- package/dist/flows/withdraw/dialog/WithdrawDialog.js +1 -1
- package/dist/flows/withdraw/driver/types.d.ts +0 -34
- package/dist/flows/withdraw/orchestrator/controller.js +1 -1
- package/dist/flows/withdraw/orchestrator/reducer.js +1 -1
- package/dist/flows/withdraw/orchestrator/types.d.ts +44 -30
- package/dist/flows/withdraw/widgets/{activity-history/WithdrawHistoryDetail.d.ts → activity/WithdrawActivityDetail.d.ts} +11 -11
- package/dist/flows/withdraw/widgets/activity/WithdrawActivityDetail.js +1 -0
- package/dist/flows/withdraw/widgets/activity/WithdrawActivityList.d.ts +36 -0
- package/dist/flows/withdraw/widgets/activity/WithdrawActivityList.js +1 -0
- package/dist/flows/withdraw/widgets/activity/index.d.ts +2 -0
- package/dist/flows/withdraw/widgets/activity/index.js +1 -0
- package/dist/flows/withdraw/widgets/activity/useWithdrawActivitySource.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Body.d.ts +7 -6
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Header.d.ts +4 -4
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Header.js +1 -1
- package/dist/format/index.d.ts +2 -1
- package/dist/format/index.js +1 -1
- package/dist/i18n/locales/ar.js +1 -1
- package/dist/i18n/locales/es.js +1 -1
- package/dist/i18n/locales/source-keys.d.ts +1 -1
- package/dist/icons/index.d.ts +2 -2
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.js +1 -1
- package/dist/package.js +1 -1
- package/dist/shared/format/formatSmartRelative.d.ts +25 -0
- package/dist/shared/format/formatSmartRelative.js +1 -0
- package/dist/shared/format/formatUsd.js +1 -1
- package/dist/shared/icons/{HistoryIcon.d.ts → ActivityIcon.d.ts} +4 -4
- package/dist/shared/icons/{HistoryIcon.js → ActivityIcon.js} +1 -1
- package/dist/shared/orchestrator/activityOpenInput.d.ts +21 -0
- package/dist/shared/orchestrator/createActivityReducers.js +1 -0
- package/dist/shared/orchestrator/index.d.ts +2 -0
- package/dist/shared/orchestrator/index.js +1 -1
- package/dist/shared/orchestrator/resolveActivityEntry.d.ts +1 -0
- package/dist/shared/orchestrator/resolveActivityEntry.js +1 -0
- package/dist/shared/ui/Card/Card.d.ts +12 -9
- package/dist/shared/ui/Card/Card.js +1 -1
- package/dist/shared/ui/Card/Card.styles.js +1 -1
- package/dist/shared/ui/SelectableTile/SelectableTile.d.ts +1 -1
- package/dist/shared/widgets/activity/ActivityTrigger.js +1 -0
- package/dist/shared/widgets/{activity-history → activity}/ActivityTrigger.styles.js +1 -1
- package/dist/shared/widgets/activity/adapters/settlementToWidgetProps.js +1 -0
- package/dist/shared/widgets/activity/compound/Activity.d.ts +95 -0
- package/dist/shared/widgets/activity/compound/Activity.js +1 -0
- package/dist/shared/widgets/activity/compound/Activity.slots.d.ts +22 -0
- package/dist/shared/widgets/activity/compound/Activity.slots.js +1 -0
- package/dist/shared/widgets/activity/compound/Activity.styles.js +1 -0
- package/dist/shared/widgets/{activity-history/compound/ActivityHistoryDetail.d.ts → activity/compound/ActivityDetail.d.ts} +24 -17
- package/dist/shared/widgets/activity/compound/ActivityDetail.js +1 -0
- package/dist/shared/widgets/activity/compound/Row.slots.d.ts +21 -0
- package/dist/shared/widgets/activity/compound/Row.slots.js +1 -0
- package/dist/shared/widgets/activity/compound/Row.styles.js +1 -0
- package/dist/shared/widgets/{activity-history/compound/components/HistoryHeader.d.ts → activity/compound/components/ActivityHeader.d.ts} +8 -8
- package/dist/shared/widgets/activity/compound/components/ActivityHeader.js +1 -0
- package/dist/shared/widgets/{activity-history → activity}/compound/components/Empty.d.ts +3 -3
- package/dist/shared/widgets/activity/compound/components/Empty.js +1 -0
- package/dist/shared/widgets/{activity-history → activity}/compound/components/ErrorView.d.ts +7 -7
- package/dist/shared/widgets/activity/compound/components/ErrorView.js +1 -0
- package/dist/shared/widgets/activity/compound/components/List.d.ts +23 -0
- package/dist/shared/widgets/activity/compound/components/List.js +1 -0
- package/dist/shared/widgets/{activity-history → activity}/compound/components/Row.d.ts +13 -16
- package/dist/shared/widgets/activity/compound/components/Row.js +1 -0
- package/dist/shared/widgets/activity/compound/components/StatusPip.js +1 -0
- package/dist/shared/widgets/activity/compound/context.d.ts +95 -0
- package/dist/shared/widgets/activity/compound/context.js +1 -0
- package/dist/shared/widgets/activity/compound/index.d.ts +8 -0
- package/dist/shared/widgets/activity/compound/index.js +1 -0
- package/dist/shared/widgets/activity/payloads.d.ts +108 -0
- package/dist/shared/widgets/activity/transformers/activityResponseToPayload.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/components/Header.d.ts +1 -1
- package/dist/shared/widgets/amount-entry/compound/types.d.ts +2 -3
- package/dist/shared/widgets/asset-picker/compound/components/Header.d.ts +1 -1
- package/dist/shared/widgets/asset-picker/compound/types.d.ts +2 -2
- package/dist/stridge/StridgeProvider.d.ts +10 -6
- package/dist/stridge/StridgeProvider.js +1 -1
- package/dist/stridge/stubs.js +1 -1
- package/dist/styles/index.css +4 -0
- package/dist/withdraw/compound/index.d.ts +6 -6
- package/dist/withdraw/widgets/index.d.ts +3 -3
- package/dist/withdraw/widgets/index.js +1 -1
- package/package.json +14 -6
- package/dist/activity-history/compound/index.d.ts +0 -9
- package/dist/activity-history/compound/index.js +0 -1
- package/dist/flows/deposit/widgets/activity-history/DepositHistoryDetail.js +0 -1
- package/dist/flows/deposit/widgets/activity-history/DepositHistoryList.d.ts +0 -38
- package/dist/flows/deposit/widgets/activity-history/DepositHistoryList.js +0 -1
- package/dist/flows/deposit/widgets/activity-history/index.d.ts +0 -2
- package/dist/flows/deposit/widgets/activity-history/index.js +0 -1
- package/dist/flows/deposit/widgets/activity-history/useDepositActivityHistorySource.js +0 -1
- package/dist/flows/withdraw/widgets/activity-history/WithdrawHistoryDetail.js +0 -1
- package/dist/flows/withdraw/widgets/activity-history/WithdrawHistoryList.d.ts +0 -36
- package/dist/flows/withdraw/widgets/activity-history/WithdrawHistoryList.js +0 -1
- package/dist/flows/withdraw/widgets/activity-history/index.d.ts +0 -2
- package/dist/flows/withdraw/widgets/activity-history/index.js +0 -1
- package/dist/flows/withdraw/widgets/activity-history/useWithdrawActivityHistorySource.js +0 -1
- package/dist/shared/widgets/activity-history/ActivityTrigger.js +0 -1
- package/dist/shared/widgets/activity-history/adapters/settlementToWidgetProps.js +0 -1
- package/dist/shared/widgets/activity-history/compound/ActivityHistory.d.ts +0 -95
- package/dist/shared/widgets/activity-history/compound/ActivityHistory.js +0 -1
- package/dist/shared/widgets/activity-history/compound/ActivityHistory.slots.d.ts +0 -22
- package/dist/shared/widgets/activity-history/compound/ActivityHistory.slots.js +0 -1
- package/dist/shared/widgets/activity-history/compound/ActivityHistory.styles.js +0 -1
- package/dist/shared/widgets/activity-history/compound/ActivityHistoryDetail.js +0 -1
- package/dist/shared/widgets/activity-history/compound/Row.slots.d.ts +0 -21
- package/dist/shared/widgets/activity-history/compound/Row.slots.js +0 -1
- package/dist/shared/widgets/activity-history/compound/Row.styles.js +0 -1
- package/dist/shared/widgets/activity-history/compound/components/Empty.js +0 -1
- package/dist/shared/widgets/activity-history/compound/components/ErrorView.js +0 -1
- package/dist/shared/widgets/activity-history/compound/components/HistoryHeader.js +0 -1
- package/dist/shared/widgets/activity-history/compound/components/List.d.ts +0 -23
- package/dist/shared/widgets/activity-history/compound/components/List.js +0 -1
- package/dist/shared/widgets/activity-history/compound/components/Row.js +0 -1
- package/dist/shared/widgets/activity-history/compound/components/StatusPip.js +0 -1
- package/dist/shared/widgets/activity-history/compound/context.d.ts +0 -79
- package/dist/shared/widgets/activity-history/compound/context.js +0 -1
- package/dist/shared/widgets/activity-history/payloads.d.ts +0 -81
- package/dist/shared/widgets/activity-history/transformers/historyResponseToPayload.js +0 -1
- /package/dist/shared/widgets/{activity-history → activity}/index.js +0 -0
- /package/dist/shared/widgets/{activity-history → activity}/transformers/resolveDirection.js +0 -0
package/dist/i18n/locales/ar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=JSON.parse(`{"--OGth":["نجح الإيداع"],"-I_tc5":["Max ",["formattedCap"]],"-nuEh_":["الوقت المُقدَّر"],"-tu7Q8":["المزيد عن ",["0"]],"02NghK":["Close this dialog and try again in a moment. If the problem persists, double-check the gateway key on your integration."],"0eg2g7":["جاري تقدير الغاز…"],"0lHlRj":["قيد النقل"],"2Eoi_a":["عرض التفاصيل"],"3dqPLT":["تحويل العملة الرقمية"],"3eKjkO":["الحد الأدنى للإيداع ",["formattedMin"]],"3kg1gB":["اكتمل الإيداع"],"3yd3IL":["The deposit driver failed to load gateway configuration."],"5AApJw":["اتصل بمحفظة للمتابعة"],"5joj8M":["تفاصيل المعاملة"],"60ahSE":["معاملة السحب"],"69Gavs":["Technical details"],"6D8qH6":["أرسل العملة المختارة على الشبكة المختارة إلى هذا العنوان. تظهر الأموال في حسابك بمجرد تأكيد الشبكة للتحويل."],"6RDwJM":["العملات"],"7Bj3x9":["فشل"],"7evBec":["وقت المعالجة: ",["resolvedProcessingTime"]],"88cUW-":["تستلم"],"9JHY2T":["تمت إضافة أموال إيداعك إلى حسابك."],"9XIJb8":["T…"],"9cCjMJ":["إيداع الحد الأقصى من الرصيد"],"< 1 min":["< دقيقة"],"AHyker":["Max ",["0"]],"AO44G_":["عرض الإيصال"],"AOPSKq":["إيداع ",["0"]],"AWtGgd":["احصل على المساعدة"],"AeXO77":["حساب"],"AeZIvT":["ستستلم"],"AikETk":["الحد الأدنى ",["minDeposit"]],"B-4zEC":["
|
|
1
|
+
const e=JSON.parse(`{"--OGth":["نجح الإيداع"],"-I_tc5":["Max ",["formattedCap"]],"-nuEh_":["الوقت المُقدَّر"],"-tu7Q8":["المزيد عن ",["0"]],"02NghK":["Close this dialog and try again in a moment. If the problem persists, double-check the gateway key on your integration."],"0eg2g7":["جاري تقدير الغاز…"],"0lHlRj":["قيد النقل"],"2Eoi_a":["عرض التفاصيل"],"3dqPLT":["تحويل العملة الرقمية"],"3eKjkO":["الحد الأدنى للإيداع ",["formattedMin"]],"3kg1gB":["اكتمل الإيداع"],"3yd3IL":["The deposit driver failed to load gateway configuration."],"5AApJw":["اتصل بمحفظة للمتابعة"],"5joj8M":["تفاصيل المعاملة"],"60ahSE":["معاملة السحب"],"69Gavs":["Technical details"],"6D8qH6":["أرسل العملة المختارة على الشبكة المختارة إلى هذا العنوان. تظهر الأموال في حسابك بمجرد تأكيد الشبكة للتحويل."],"6RDwJM":["العملات"],"6yS5kL":["السحب قيد التنفيذ"],"7Bj3x9":["فشل"],"7evBec":["وقت المعالجة: ",["resolvedProcessingTime"]],"88cUW-":["تستلم"],"9JHY2T":["تمت إضافة أموال إيداعك إلى حسابك."],"9XIJb8":["T…"],"9cCjMJ":["إيداع الحد الأقصى من الرصيد"],"< 1 min":["< دقيقة"],"AHyker":["Max ",["0"]],"AO44G_":["عرض الإيصال"],"AOPSKq":["إيداع ",["0"]],"AWtGgd":["احصل على المساعدة"],"AeXO77":["حساب"],"AeZIvT":["ستستلم"],"AikETk":["الحد الأدنى ",["minDeposit"]],"B-4zEC":["تعذر تحميل النشاط. حاول مرة أخرى."],"BhQhbU":["استخدم عنوان المستلم المقترح"],"BoQOH3":["يلزم وجود محفظة لإجراء الإيداع"],"CK1KXz":["الأقصى"],"Ck1xL4":["ترسل"],"Cs44l6":["الإيداع قيد التنفيذ"],"D79cZK":["فوري"],"DPfwMq":["تم"],"Dd7jP5":["تواجه مشكلات؟"],"DoS2vD":["إخفاء التفاصيل التقنية"],"ELhVSL":["Failed to submit deposit."],"Ej5HL9":["Signature declined. Please try again."],"Enslfm":["الوجهة"],"G-SK3q":["واجهت الواجهة خطأً غير متوقع وتعذَّر إكمال العرض. حاول مرة أخرى، أو أغلق هذا الحوار وأعد المحاولة من التطبيق."],"GX8GKD":["الأصول"],"GZPxmc":["Enter Valid Recipient Address"],"GcuGHR":["تمت الإضافة إلى ",["captionSuffix"]],"GwkmPx":["تبديل المبلغ المعروض"],"IDt4jm":[["0","plural",{"one":["#"," second"],"other":["#"," seconds"]}]," left on quote"],"IRogzB":["تمت إضافة أموال إيداعك إلى ",["brand"],"."],"JYp-ic":["Deposit processing"],"KDw4GX":["حاول مرة أخرى"],"KGoAE6":["تلقائي · ",["value"]],"KTNWsg":["فشل السحب"],"KuqCAK":["~ 2 دقيقة"],"LEbOpR":["مزيد من التفاصيل"],"Ly6geA":["جاري إعادة احتساب عرض السعر…"],"MZ_nQf":["عنوان المستلم"],"N2DUxS":["Insufficient Balance"],"OLF0i7":["Couldn't load deposit options"],"OSBXx5":["الآن"],"Offl0a":["ستُضاف أموال إيداعك إلى حسابك."],"Oi8TiZ":["عرض التقدم"],"OsyKSt":["سحب"],"P9fBwv":["Stack"],"PiH3UR":["تم النسخ!"],"Q12Rrs":["معاملة الإيداع"],"QU2cIs":["لديك أسئلة؟"],"Rm325-":["سحب ",["amount"],"، ",["date"]],"Rxjdjn":["لم يكتمل الإيداع"],"SOVBoe":["نسخ عنوان الإيداع"],"SZRUQ4":["أقصى انزلاق سعري"],"Sjplg3":["عرض في المستكشف"],"SlfejT":["Error"],"TG4WOd":["ستُضاف أموال إيداعك إلى ",["brand"],"."],"TT0aVH":["تم إرسال الطلب"],"Uevt3L":["جاري تقدير العرض"],"UqHbdz":["إغلاق إشعار الإيداع قيد التنفيذ"],"V1fa9u":["عرض المزيد"],"VAZUpd":["فشل الطلب"],"VHOVEJ":["اتصل بالمحفظة"],"WkRH60":["الحد الأدنى ",["0"]],"Wqz0SO":["رصيد منخفض"],"XJOV1Y":["Activity"],"Xzw7uC":["ستظهر إيداعاتك وعمليات السحب هنا."],"Z1WbO6":["الأموال آمنة على شبكة المصدر — تواصل مع الدعم للاسترجاع."],"ZqugiS":["الرصيد: ",["0"]," ",["1"]],"_QZdX-":["تم سحب أموالك بنجاح."],"_girqu":["نجح السحب"],"_kXBrK":["إجمالي الوقت"],"a2WllD":["العملة المستلمة"],"aXFOuf":["لا يوجد نشاط بعد"],"aiEUrg":["إظهار التفاصيل التقنية"],"bOZXx5":["تحديث الطلب"],"bZnukT":["تكلفة الشبكة"],"c3aao_":["View activity"],"c6Bl9M":["Toggle technical details"],"cGYrpE":["تطبَّق الشروط"],"cHPbBJ":["تعذَّر على الجسر تمويل معاملة الوجهة (نفد رصيد الغاز)."],"cxR5Qy":["معاملة التسوية"],"e3xU5E":["تم استلام الإيداع"],"fKSGnu":["الحد الأدنى للمبلغ المطلوب على هذه الشبكة لتغطية رسوم الشبكة والتوجيه."],"fWsBTs":["حدث خطأ. حاول مرة أخرى."],"flMR3h":["تم سحب أموالك بنجاح."],"g2UNkE":["مشغل بواسطة"],"gfh8CC":["الشبكات"],"hBIHD-":["إيداع ",["amount"],"، ",["date"]],"hKMHs1":["الفرق بين الناتج المتوقع للمسار وسعر السوق الأوسط الأساسي."],"he3ygx":["نسخ"],"hehnjM":["المبلغ"],"i-4Fbp":["فشل الإيداع"],"i-EgW-":["التكلفة التقديرية لبث هذه المعاملة على سلسلة الوجهة."],"iH8pgl":["رجوع"],"jKZO-R":["اكتمل السحب"],"junZX6":["تم استلام الإيداع وجاري المعالجة…"],"kH6wUX":["تأثير السعر"],"kR8ayx":["بالنقر على تأكيد الإيداع، فإنك توافق على <0>الشروط</0>."],"kUFhUv":["Withdrawal failed."],"kj3M8S":["إيداع"],"kjrq_8":["مزيد من المعلومات"],"lOEm_1":["تم تنفيذ الطلب"],"ldK3jJ":["Failed to submit withdrawal."],"lxjao1":["مسار السيولة المختار المستخدم لتسوية هذا السحب."],"mF_ucv":["اتصل بمحفظة حتى تتمكن البوابة من توفير عنوان إيداع وتوجيه تحويلك."],"mgLWEL":["تراجعت معاملة الوجهة على السلسلة."],"mvYQx_":["تم الاكتشاف"],"njn4bC":["أكِّد المعاملة في محفظتك"],"nr03QI":["أدخل عنوان المستلم"],"nwtY4N":["حدث خطأ"],"oBNGNc":["The route's expected output drifted while your transaction was pending."],"oFmN8a":["إيداع ",["symbol"]],"oW1G8i":["تم إيداع أموالك بنجاح."],"ob8R_m":["حاول مرة أخرى أو تواصل معنا إذا استمرت المشكلة."],"ogD_nm":["إيداع إلى ",["0"]],"olEUh2":["ناجح"],"pCzTTC":["عنوان الإيداع الخاص بك"],"q32Nt8":["اكتمل السحب"],"qQ5VJt":["We can't reach the gateway right now"],"qj0vvX":["تأكيد الإيداع"],"qtoOYG":["بدون حد"],"rT8e1f":["المسار"],"rZdp61":["معاملة الإكمال"],"sSiLKx":["شبكة الاستلام"],"sb9Y58":["محفظة"],"sbwbC0":["طريقة الدفع"],"srsA0x":["Withdrawal declined."],"uPo3PQ":["عرض أقل"],"vrnnn9":["جاري المعالجة"],"w-2VR9":["جاري السحب…"],"wdxz7K":["المصدر"],"xDAtGP":["Message"],"xGVfLh":["متابعة"],"yH9V_J":["أدخل المبلغ"],"yLEjmm":[["resolvedPriceImpact"],"% price impact"],"yQE2r9":["جارٍ التحميل"],"y_0uwd":["أمس"],"yrvWai":["معاملة المصدر"],"yxnt3y":["حالة التنفيذ"],"yy2rkt":["0x…"],"yz7wBu":["إغلاق"],"zYD5xm":["جاري الإضافة"],"zbtijb":["إيداع ",["0"]," إلى ",["1"]],"znqB4T":["رصيد غير كافٍ"],"{hours} hr":[["hours"]," ساعة"],"{minutes} min":[["minutes"]," دقيقة"],"{n}h":[["n"],"س"],"{n}m":[["n"],"د"],"{n}s":[["n"],"ث"]}`);export{e as messages};
|
package/dist/i18n/locales/es.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=JSON.parse(`{"--OGth":["Depósito exitoso"],"-I_tc5":["Max ",["formattedCap"]],"-nuEh_":["Tiempo estimado"],"-tu7Q8":["Más sobre ",["0"]],"02NghK":["Close this dialog and try again in a moment. If the problem persists, double-check the gateway key on your integration."],"0eg2g7":["Estimando gas…"],"0lHlRj":["En tránsito"],"2Eoi_a":["Ver detalles"],"3dqPLT":["Transferir cripto"],"3eKjkO":["Depósito mínimo de ",["formattedMin"]],"3kg1gB":["Depósito completado"],"3yd3IL":["The deposit driver failed to load gateway configuration."],"5AApJw":["Conecta una billetera para continuar"],"5joj8M":["Desglose de la transacción"],"60ahSE":["Tx del retiro"],"69Gavs":["Technical details"],"6D8qH6":["Envía el token seleccionado en la red elegida a esta dirección. Los fondos aparecerán en tu cuenta cuando la red confirme la transferencia."],"6RDwJM":["Tokens"],"7Bj3x9":["Fallido"],"7evBec":["Tiempo de procesamiento: ",["resolvedProcessingTime"]],"88cUW-":["Recibes"],"9JHY2T":["Tu depósito se acreditó en tu cuenta."],"9XIJb8":["T…"],"9cCjMJ":["Depositar saldo máximo"],"< 1 min":["< 1 min"],"AHyker":["Max ",["0"]],"AO44G_":["Ver recibo"],"AOPSKq":["Depositar ",["0"]],"AWtGgd":["Obtener ayuda"],"AeXO77":["Cuenta"],"AeZIvT":["Recibirás"],"AikETk":["Mín ",["minDeposit"]],"B-4zEC":["
|
|
1
|
+
const e=JSON.parse(`{"--OGth":["Depósito exitoso"],"-I_tc5":["Max ",["formattedCap"]],"-nuEh_":["Tiempo estimado"],"-tu7Q8":["Más sobre ",["0"]],"02NghK":["Close this dialog and try again in a moment. If the problem persists, double-check the gateway key on your integration."],"0eg2g7":["Estimando gas…"],"0lHlRj":["En tránsito"],"2Eoi_a":["Ver detalles"],"3dqPLT":["Transferir cripto"],"3eKjkO":["Depósito mínimo de ",["formattedMin"]],"3kg1gB":["Depósito completado"],"3yd3IL":["The deposit driver failed to load gateway configuration."],"5AApJw":["Conecta una billetera para continuar"],"5joj8M":["Desglose de la transacción"],"60ahSE":["Tx del retiro"],"69Gavs":["Technical details"],"6D8qH6":["Envía el token seleccionado en la red elegida a esta dirección. Los fondos aparecerán en tu cuenta cuando la red confirme la transferencia."],"6RDwJM":["Tokens"],"6yS5kL":["Retiro en curso"],"7Bj3x9":["Fallido"],"7evBec":["Tiempo de procesamiento: ",["resolvedProcessingTime"]],"88cUW-":["Recibes"],"9JHY2T":["Tu depósito se acreditó en tu cuenta."],"9XIJb8":["T…"],"9cCjMJ":["Depositar saldo máximo"],"< 1 min":["< 1 min"],"AHyker":["Max ",["0"]],"AO44G_":["Ver recibo"],"AOPSKq":["Depositar ",["0"]],"AWtGgd":["Obtener ayuda"],"AeXO77":["Cuenta"],"AeZIvT":["Recibirás"],"AikETk":["Mín ",["minDeposit"]],"B-4zEC":["No se pudo cargar la actividad. Inténtalo de nuevo."],"BhQhbU":["Usar la dirección sugerida del destinatario"],"BoQOH3":["Se requiere una billetera para depositar"],"CK1KXz":["Máx"],"Ck1xL4":["Envías"],"Cs44l6":["Depósito en curso"],"D79cZK":["Instantáneo"],"DPfwMq":["Listo"],"Dd7jP5":["¿Tienes problemas?"],"DoS2vD":["Ocultar detalles técnicos"],"ELhVSL":["Failed to submit deposit."],"Ej5HL9":["Signature declined. Please try again."],"Enslfm":["Destino"],"G-SK3q":["El kit encontró un error inesperado y no pudo terminar de renderizar. Vuelve a intentarlo, o cierra este diálogo y reinténtalo desde la aplicación."],"GX8GKD":["Activos"],"GZPxmc":["Enter Valid Recipient Address"],"GcuGHR":["Acreditado a ",["captionSuffix"]],"GwkmPx":["Cambiar el importe mostrado"],"IDt4jm":[["0","plural",{"one":["#"," second"],"other":["#"," seconds"]}]," left on quote"],"IRogzB":["Tu depósito se acreditó a ",["brand"],"."],"JYp-ic":["Deposit processing"],"KDw4GX":["Reintentar"],"KGoAE6":["Auto · ",["value"]],"KTNWsg":["El retiro falló"],"KuqCAK":["~ 2 min"],"LEbOpR":["Más detalles"],"Ly6geA":["Regenerando cotización…"],"MZ_nQf":["Dirección del destinatario"],"N2DUxS":["Insufficient Balance"],"OLF0i7":["Couldn't load deposit options"],"OSBXx5":["Ahora mismo"],"Offl0a":["Tu depósito se acreditará en tu cuenta."],"Oi8TiZ":["Ver progreso"],"OsyKSt":["Retirar"],"P9fBwv":["Stack"],"PiH3UR":["¡Copiado!"],"Q12Rrs":["Tx depósito"],"QU2cIs":["¿Tienes preguntas?"],"Rm325-":["Retiro de ",["amount"],", ",["date"]],"Rxjdjn":["El depósito no se completó"],"SOVBoe":["Copiar dirección de depósito"],"SZRUQ4":["Deslizamiento máximo"],"Sjplg3":["Ver en el explorador"],"SlfejT":["Error"],"TG4WOd":["Tu depósito se acreditará a ",["brand"],"."],"TT0aVH":["Orden enviada"],"Uevt3L":["Estimando cotización"],"UqHbdz":["Descartar aviso de depósito pendiente"],"V1fa9u":["Ver más"],"VAZUpd":["Orden fallida"],"VHOVEJ":["Conectar billetera"],"WkRH60":["Mín ",["0"]],"Wqz0SO":["Saldo bajo"],"XJOV1Y":["Actividad"],"Xzw7uC":["Tus depósitos y retiros aparecerán aquí."],"Z1WbO6":["Los fondos están seguros en la red de origen — contacta a soporte para recuperarlos."],"ZqugiS":["Saldo: ",["0"]," ",["1"]],"_QZdX-":["Tu retiro se completó con éxito."],"_girqu":["Retiro exitoso"],"_kXBrK":["Tiempo total"],"a2WllD":["Token a recibir"],"aXFOuf":["Aún no hay actividad"],"aiEUrg":["Mostrar detalles técnicos"],"bOZXx5":["Actualizar orden"],"bZnukT":["Costo de red"],"c3aao_":["Ver actividad"],"c6Bl9M":["Toggle technical details"],"cGYrpE":["Aplican términos"],"cHPbBJ":["El puente no pudo financiar la transacción de destino (presupuesto de gas agotado)."],"cxR5Qy":["Tx liquidación"],"e3xU5E":["Depósito recibido"],"fKSGnu":["Cantidad mínima requerida para que esta red cubra las tarifas y el enrutamiento."],"fWsBTs":["Algo salió mal. Vuelve a intentarlo."],"flMR3h":["Tus fondos fueron retirados con éxito."],"g2UNkE":["Con tecnología de"],"gfh8CC":["Redes"],"hBIHD-":["Depósito de ",["amount"],", ",["date"]],"hKMHs1":["Diferencia entre el resultado esperado de la ruta y el precio medio de mercado subyacente."],"he3ygx":["Copiar"],"hehnjM":["Monto"],"i-4Fbp":["Depósito fallido"],"i-EgW-":["El costo estimado para emitir esta transacción en la red de destino."],"iH8pgl":["Atrás"],"jKZO-R":["Retiro completado"],"junZX6":["Depósito recibido y procesando…"],"kH6wUX":["Impacto en precio"],"kR8ayx":["Al hacer clic en Confirmar depósito, aceptas nuestros <0>términos</0>."],"kUFhUv":["Withdrawal failed."],"kj3M8S":["Depositar"],"kjrq_8":["Más información"],"lOEm_1":["Orden completada"],"ldK3jJ":["Failed to submit withdrawal."],"lxjao1":["La ruta de liquidez seleccionada para liquidar este retiro."],"mF_ucv":["Conecta una billetera para que el gateway pueda provisionar una dirección de depósito y enrutar tu transferencia."],"mgLWEL":["La transacción del tramo de destino se revirtió en cadena."],"mvYQx_":["Detectado"],"njn4bC":["Confirma la transacción en tu billetera"],"nr03QI":["Ingresa la dirección del destinatario"],"nwtY4N":["Algo salió mal"],"oBNGNc":["The route's expected output drifted while your transaction was pending."],"oFmN8a":["Depositar ",["symbol"]],"oW1G8i":["Tus fondos se depositaron correctamente."],"ob8R_m":["Inténtalo nuevamente o contáctanos si el problema persiste."],"ogD_nm":["Depositar a ",["0"]],"olEUh2":["Exitoso"],"pCzTTC":["Tu dirección de depósito"],"q32Nt8":["Retiro completado"],"qQ5VJt":["We can't reach the gateway right now"],"qj0vvX":["Confirmar depósito"],"qtoOYG":["Sin límite"],"rT8e1f":["Ruta"],"rZdp61":["Tx finalización"],"sSiLKx":["Red a recibir"],"sb9Y58":["Billetera"],"sbwbC0":["Método de pago"],"srsA0x":["Withdrawal declined."],"uPo3PQ":["Ver menos"],"vrnnn9":["Procesando"],"w-2VR9":["Retiro en curso…"],"wdxz7K":["Origen"],"xDAtGP":["Message"],"xGVfLh":["Continuar"],"yH9V_J":["Ingresa el monto"],"yLEjmm":[["resolvedPriceImpact"],"% price impact"],"yQE2r9":["Cargando"],"y_0uwd":["Ayer"],"yrvWai":["Tx origen"],"yxnt3y":["Estado de ejecución"],"yy2rkt":["0x…"],"yz7wBu":["Cerrar"],"zYD5xm":["Acreditando"],"zbtijb":["Depositar ",["0"]," a ",["1"]],"znqB4T":["Saldo insuficiente"],"{hours} hr":[["hours"]," h"],"{minutes} min":[["minutes"]," min"],"{n}h":[["n"],"h"],"{n}m":[["n"],"m"],"{n}s":[["n"],"s"]}`);export{e as messages};
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
* as the typed contract for {@link defineMessages}: callers get autocomplete on every key the
|
|
8
8
|
* kit translates, and unknown keys fail at compile time via excess-property checks.
|
|
9
9
|
*/
|
|
10
|
-
type KitTranslatableKey = "0x…" | "< 1 min" | "A wallet is required to deposit" | "Account" | "Activity" | "
|
|
10
|
+
type KitTranslatableKey = "0x…" | "< 1 min" | "A wallet is required to deposit" | "Account" | "Activity" | "Amount" | "Assets" | "Auto · {value}" | "Back" | "Balance: {0} {1}" | "By clicking Confirm Deposit, you agree to our <0>terms</0>." | "Chains" | "Close" | "Close this dialog and try again in a moment. If the problem persists, double-check the gateway key on your integration." | "Completion tx" | "Confirm Deposit" | "Confirm transaction in your wallet" | "Connect a wallet so the gateway can provision a deposit address and route your transfer." | "Connect a wallet to continue" | "Connect wallet" | "Continue" | "Copied!" | "Copy" | "Copy deposit address" | "Couldn't load activity. Please try again." | "Couldn't load deposit options" | "Credited to {captionSuffix}" | "Crediting" | "Deposit" | "Deposit completed" | "Deposit didn't complete" | "Deposit failed" | "Deposit in progress" | "Deposit max balance" | "Deposit of {amount}, {date}" | "Deposit processing" | "Deposit received" | "Deposit received and processing…" | "Deposit successful" | "Deposit to {0}" | "Deposit tx" | "Deposit {0}" | "Deposit {0} to {1}" | "Deposit {symbol}" | "Destination" | "Detected" | "Difference between the route's expected output and the underlying market mid-price." | "Dismiss pending deposit notice" | "Done" | "Enter Amount" | "Enter Recipient Address" | "Enter Valid Recipient Address" | "Error" | "Estimated time" | "Estimating gas…" | "Estimating quote" | "Experiencing problems?" | "Failed" | "Failed to submit deposit." | "Failed to submit withdrawal." | "Fill status" | "Funds are safe on the source chain — contact support to recover." | "Get help" | "Have questions?" | "Hide technical details" | "In transit" | "Instant" | "Insufficient Balance" | "Insufficient balance" | "Just now" | "Loading" | "Low Balance" | "Max" | "Max slippage" | "Max {0}" | "Max {formattedCap}" | "Message" | "Min {0}" | "Min {minDeposit}" | "More about {0}" | "More details" | "More information" | "Network cost" | "No activity yet" | "No limit" | "Order failed" | "Order filled" | "Order submitted" | "Payment Method" | "Please try again or contact us if the issue persists." | "Powered by" | "Price impact" | "Processing" | "Processing time: {resolvedProcessingTime}" | "Receive chain" | "Receive token" | "Recipient address" | "Regenerating quote…" | "Route" | "See less" | "See more" | "Send the selected token on the selected chain to this address. Funds appear in your account once the network confirms the transfer." | "Settlement tx" | "Show technical details" | "Signature declined. Please try again." | "Something went wrong" | "Something went wrong. Please try again." | "Source" | "Source tx" | "Stack" | "Successful" | "Swap displayed amount" | "Technical details" | "Terms apply" | "The bridge could not fund the destination transaction (gas budget exhausted)." | "The deposit driver failed to load gateway configuration." | "The destination-leg transaction reverted on-chain." | "The estimated cost to broadcast this transaction on the destination chain." | "The kit hit an unexpected error and could not finish rendering. Try again, or close this dialog and retry from the host." | "The minimum amount required for this chain to cover network fees and routing." | "The route's expected output drifted while your transaction was pending." | "The selected liquidity route used to settle this withdrawal." | "Toggle technical details" | "Tokens" | "Total time" | "Transaction breakdown" | "Transfer Crypto" | "Try again" | "T…" | "Update order" | "Use suggested recipient address" | "View activity" | "View details" | "View on Explorer" | "View progress" | "View receipt" | "Wallet" | "We can't reach the gateway right now" | "Withdraw" | "Withdrawal complete" | "Withdrawal completed" | "Withdrawal declined." | "Withdrawal failed" | "Withdrawal failed." | "Withdrawal in progress" | "Withdrawal in progress…" | "Withdrawal of {amount}, {date}" | "Withdrawal successful" | "Withdrawal tx" | "Yesterday" | "You receive" | "You send" | "You will receive" | "Your deposit address" | "Your deposit has been credited to your account." | "Your deposit has been credited to {brand}." | "Your deposit will be credited to your account." | "Your deposit will be credited to {brand}." | "Your deposits and withdrawals will appear here." | "Your funds were successfully deposited." | "Your funds were successfully withdrawn." | "Your withdrawal was completed successfully." | "{0, plural, one {# second} other {# seconds}} left on quote" | "{formattedMin} minimum deposit" | "{hours} hr" | "{minutes} min" | "{n}h" | "{n}m" | "{n}s" | "{resolvedPriceImpact}% price impact" | "~ 2 min";
|
|
11
11
|
//#endregion
|
|
12
12
|
export { KitTranslatableKey };
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ActivityIcon } from "../shared/icons/ActivityIcon.js";
|
|
1
2
|
import { AlertIcon } from "../shared/icons/AlertIcon.js";
|
|
2
3
|
import { ArrowDownIcon } from "../shared/icons/ArrowDownIcon.js";
|
|
3
4
|
import { ArrowRightIcon } from "../shared/icons/ArrowRightIcon.js";
|
|
@@ -17,7 +18,6 @@ import { CoinbaseIcon } from "../shared/icons/exchanges/CoinbaseIcon.js";
|
|
|
17
18
|
import { KrakenIcon } from "../shared/icons/exchanges/KrakenIcon.js";
|
|
18
19
|
import { OkxIcon } from "../shared/icons/exchanges/OkxIcon.js";
|
|
19
20
|
import { RobinhoodIcon } from "../shared/icons/exchanges/RobinhoodIcon.js";
|
|
20
|
-
import { HistoryIcon } from "../shared/icons/HistoryIcon.js";
|
|
21
21
|
import { InfoIcon } from "../shared/icons/InfoIcon.js";
|
|
22
22
|
import { LoaderIcon } from "../shared/icons/LoaderIcon.js";
|
|
23
23
|
import { LogoIcon } from "../shared/icons/LogoIcon.js";
|
|
@@ -26,4 +26,4 @@ import { PackageIcon } from "../shared/icons/PackageIcon.js";
|
|
|
26
26
|
import { QrCodeIcon } from "../shared/icons/QrCodeIcon.js";
|
|
27
27
|
import { WalletIcon } from "../shared/icons/WalletIcon.js";
|
|
28
28
|
import { XIcon } from "../shared/icons/XIcon.js";
|
|
29
|
-
export { AlertIcon, ArrowDownIcon, ArrowRightIcon, ArrowRightLeftIcon, BinanceIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleArrowUpIcon, CircleHelpIcon, ClockIcon, CoinbaseIcon, CopyIcon, ExternalLinkIcon,
|
|
29
|
+
export { ActivityIcon, AlertIcon, ArrowDownIcon, ArrowRightIcon, ArrowRightLeftIcon, BinanceIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleArrowUpIcon, CircleHelpIcon, ClockIcon, CoinbaseIcon, CopyIcon, ExternalLinkIcon, InfoIcon, KrakenIcon, LoaderIcon, LogoIcon, MailIcon, OkxIcon, PackageIcon, QrCodeIcon, RobinhoodIcon, WalletIcon, XIcon };
|
package/dist/icons/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ActivityIcon as e}from"../shared/icons/ActivityIcon.js";import{AlertIcon as t}from"../shared/icons/AlertIcon.js";import{ArrowDownIcon as n}from"../shared/icons/ArrowDownIcon.js";import{ArrowRightIcon as r}from"../shared/icons/ArrowRightIcon.js";import{ArrowRightLeftIcon as i}from"../shared/icons/ArrowRightLeftIcon.js";import{CheckIcon as a}from"../shared/icons/CheckIcon.js";import{ChevronDownIcon as o}from"../shared/icons/ChevronDownIcon.js";import{ChevronLeftIcon as s}from"../shared/icons/ChevronLeftIcon.js";import{ChevronRightIcon as c}from"../shared/icons/ChevronRightIcon.js";import{ChevronUpIcon as l}from"../shared/icons/ChevronUpIcon.js";import{CircleArrowUpIcon as u}from"../shared/icons/CircleArrowUpIcon.js";import{CircleHelpIcon as d}from"../shared/icons/CircleHelpIcon.js";import{ClockIcon as f}from"../shared/icons/ClockIcon.js";import{CopyIcon as p}from"../shared/icons/CopyIcon.js";import{ExternalLinkIcon as m}from"../shared/icons/ExternalLinkIcon.js";import{BinanceIcon as h}from"../shared/icons/exchanges/BinanceIcon.js";import{CoinbaseIcon as g}from"../shared/icons/exchanges/CoinbaseIcon.js";import{KrakenIcon as _}from"../shared/icons/exchanges/KrakenIcon.js";import{OkxIcon as v}from"../shared/icons/exchanges/OkxIcon.js";import{RobinhoodIcon as y}from"../shared/icons/exchanges/RobinhoodIcon.js";import"../shared/icons/exchanges/index.js";import{InfoIcon as b}from"../shared/icons/InfoIcon.js";import{LoaderIcon as x}from"../shared/icons/LoaderIcon.js";import{LogoIcon as S}from"../shared/icons/LogoIcon.js";import{MailIcon as C}from"../shared/icons/MailIcon.js";import{PackageIcon as w}from"../shared/icons/PackageIcon.js";import{QrCodeIcon as T}from"../shared/icons/QrCodeIcon.js";import{WalletIcon as E}from"../shared/icons/WalletIcon.js";import{XIcon as D}from"../shared/icons/XIcon.js";export{e as ActivityIcon,t as AlertIcon,n as ArrowDownIcon,r as ArrowRightIcon,i as ArrowRightLeftIcon,h as BinanceIcon,a as CheckIcon,o as ChevronDownIcon,s as ChevronLeftIcon,c as ChevronRightIcon,l as ChevronUpIcon,u as CircleArrowUpIcon,d as CircleHelpIcon,f as ClockIcon,g as CoinbaseIcon,p as CopyIcon,m as ExternalLinkIcon,b as InfoIcon,_ as KrakenIcon,x as LoaderIcon,S as LogoIcon,C as MailIcon,v as OkxIcon,w as PackageIcon,T as QrCodeIcon,y as RobinhoodIcon,E as WalletIcon,D as XIcon};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { TxRef } from "./shared/driver/types.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ActivityAmount, ActivityDirection, ActivityPayload, ActivityRowPayload, ActivityStatus, ActivityStatusType } from "./shared/widgets/activity/payloads.js";
|
|
3
|
+
import { ActivityDriver, ActivitySnapshot } from "./flows/activity/driver/types.js";
|
|
3
4
|
import { DepositSnapshot } from "./flows/deposit/driver/types.js";
|
|
4
5
|
import { useDepositSnapshot } from "./flows/deposit/driver/context.js";
|
|
6
|
+
import { ActivityOpenInput } from "./shared/orchestrator/activityOpenInput.js";
|
|
5
7
|
import { FailureInfo } from "./shared/orchestrator/types.js";
|
|
6
8
|
import { DepositActions, DepositController, DepositMethod, DepositMethodConfig, DepositMethodsConfig, DepositState, DepositStateName, OpenInput } from "./flows/deposit/orchestrator/types.js";
|
|
7
9
|
import { ChainType, isValidAddressForChainType, isValidEvmAddress, isValidTronAddress, toChainType } from "./shared/chains/index.js";
|
|
@@ -15,6 +17,7 @@ import { TermsConfig, TermsSelectContext } from "./shared/terms/types.js";
|
|
|
15
17
|
import { createLocalStorageAdapter, createMemoryStorageAdapter, createSessionStorageAdapter, resolveStorageAdapter } from "./storage/adapters.js";
|
|
16
18
|
import { createKitStorage } from "./storage/createKitStorage.js";
|
|
17
19
|
import { DEFAULT_KIT_STORAGE_NAMESPACE, KitStorageProvider, useKitStorage, useKitStorageValue } from "./storage/context.js";
|
|
20
|
+
import { useActivitySnapshot } from "./flows/activity/driver/context.js";
|
|
18
21
|
import { StridgeEnvironment } from "./drivers/stridge/types.js";
|
|
19
22
|
import { FlowIdKey } from "./events/bus/flowIdRegistry.js";
|
|
20
23
|
import { useCurrentFlowId } from "./events/hooks/useCurrentFlowId.js";
|
|
@@ -25,6 +28,9 @@ import { PublicStridgeEventBus, useStridgeEventBus } from "./events/hooks/useStr
|
|
|
25
28
|
import { useStridgeEvents } from "./events/hooks/useStridgeEvents.js";
|
|
26
29
|
import { useStridgeFlowEvent } from "./events/hooks/useStridgeFlowEvent.js";
|
|
27
30
|
import { useStridgeFlowEvents } from "./events/hooks/useStridgeFlowEvents.js";
|
|
31
|
+
import { ActivityActions, ActivityController, ActivityState, ActivityStateName } from "./flows/activity/orchestrator/types.js";
|
|
32
|
+
import { useActivityState } from "./flows/activity/orchestrator/controller.js";
|
|
33
|
+
import { useActivity, useOptionalActivity, useOptionalPrefetchActivity, usePrefetchActivity } from "./flows/activity/orchestrator/useActivity.js";
|
|
28
34
|
import { WithdrawBalanceInput, WithdrawBindings, WithdrawSuggestedRecipient, useWithdrawBindings } from "./flows/withdraw/bindings/WithdrawBindings.js";
|
|
29
35
|
import { ChainLogoMeta } from "./shared/utils/logos/chains.js";
|
|
30
36
|
import { ChainLogoInput, TokenLogoInput } from "./shared/utils/logos/types.js";
|
|
@@ -36,4 +42,4 @@ import { useWithdrawState } from "./flows/withdraw/orchestrator/controller.js";
|
|
|
36
42
|
import { useOptionalWithdraw, usePrefetchWithdraw, useWithdraw } from "./flows/withdraw/orchestrator/useWithdraw.js";
|
|
37
43
|
import { ConnectWalletConfig } from "./shared/wallet/ConnectWalletContext.js";
|
|
38
44
|
import { StridgeAppearance, StridgeAsset, StridgeDepositDestination, StridgeDepositFlowConfig, StridgeDepositMethodConfig, StridgeDepositMethodsConfig, StridgeFlowOwner, StridgePrefetchConfig, StridgeProvider, StridgeStorageConfig, StridgeWithdrawFlowConfig } from "./stridge/StridgeProvider.js";
|
|
39
|
-
export { type
|
|
45
|
+
export { type ActivityActions, type ActivityAmount, type ActivityController, type ActivityDirection, type ActivityDriver, type ActivityOpenInput, type ActivityPayload, type ActivityRowPayload, type ActivitySnapshot, type ActivityState, type ActivityStateName, type ActivityStatus, type ActivityStatusType, type BannerAckBucket, type ChainLogoInput, type ChainLogoMeta, type ChainType, type ConnectWalletConfig, DEFAULT_KIT_STORAGE_NAMESPACE, type DepositActions, type DepositController, type DepositMethod, type DepositMethodConfig, type DepositMethodsConfig, type OpenInput as DepositOpenInput, type DepositSnapshot, type DepositState, type DepositStateName, type FailureInfo, type FlowEvent, type FlowIdKey, type IntercomMerchantContext, KitPortalScope, KitStorageProvider, type LogosNamespace, type PublicStridgeEventBus, type StridgeAppearance, type StridgeAsset, type StridgeDepositDestination, type StridgeDepositFlowConfig, type StridgeDepositMethodConfig, type StridgeDepositMethodsConfig, type StridgeEnvironment, type StridgeEvent, type StridgeFlowOwner, type StridgePrefetchConfig, StridgeProvider, type StridgeStorageConfig, type StridgeWithdrawFlowConfig, type SupportConfig, type SupportOpenContext, type TermsConfig, type TermsSelectContext, type TokenLogoInput, type TxRef, type UiEvent, type WithdrawActions, type WithdrawBalanceInput, type WithdrawBindings, type WithdrawController, type WithdrawSnapshot, type WithdrawState, type WithdrawStateName, type WithdrawSubmitActions, type WithdrawSubmitCallback, type WithdrawSubmitInput, type WithdrawSuggestedRecipient, type WithdrawalFormSnapshot, bannerAckStorageKey, bucketFromSettlement, createKitStorage, createLocalStorageAdapter, createMemoryStorageAdapter, createSessionStorageAdapter, isValidAddressForChainType, isValidEvmAddress, isValidTronAddress, logos, resolveStorageAdapter, toChainType, useActivity, useActivitySnapshot, useActivityState, useBannerAck, useBannerAckForSettlement, useCurrentFlowId, useDeposit, useDepositSnapshot, useDepositState, useKitConfig, useKitStorage, useKitStorageValue, useOptionalActivity, useOptionalDeposit, useOptionalPrefetchActivity, useOptionalWithdraw, usePrefetchActivity, usePrefetchDeposit, usePrefetchWithdraw, useStridgeEvent, useStridgeEventBus, useStridgeEvents, useStridgeFlowEvent, useStridgeFlowEvents, useWithdraw, useWithdrawBindings, useWithdrawSnapshot, useWithdrawState };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isValidAddressForChainType as e,isValidEvmAddress as t,isValidTronAddress as n,toChainType as r}from"./shared/chains/index.js";import{logos as i}from"./shared/utils/logos/api.js";import"./shared/utils/logos/index.js";import{createLocalStorageAdapter as a,createMemoryStorageAdapter as o,createSessionStorageAdapter as s,resolveStorageAdapter as c}from"./storage/adapters.js";import{createKitStorage as l}from"./storage/createKitStorage.js";import{DEFAULT_KIT_STORAGE_NAMESPACE as u,KitStorageProvider as d,useKitStorage as f,useKitStorageValue as p}from"./storage/context.js";import"./storage/index.js";import{bannerAckStorageKey as m,bucketFromSettlement as h,useBannerAck as g,useBannerAckForSettlement as _}from"./banners/useBannerAck.js";import"./banners/index.js";import{useCurrentFlowId as v}from"./events/hooks/useCurrentFlowId.js";import{useStridgeEvent as y}from"./events/hooks/useStridgeEvent.js";import{useStridgeEventBus as b}from"./events/hooks/useStridgeEventBus.js";import{useStridgeEvents as x}from"./events/hooks/useStridgeEvents.js";import{useStridgeFlowEvent as S}from"./events/hooks/useStridgeFlowEvent.js";import{useStridgeFlowEvents as C}from"./events/hooks/useStridgeFlowEvents.js";import"./events/index.js";import{
|
|
1
|
+
import{isValidAddressForChainType as e,isValidEvmAddress as t,isValidTronAddress as n,toChainType as r}from"./shared/chains/index.js";import{logos as i}from"./shared/utils/logos/api.js";import"./shared/utils/logos/index.js";import{createLocalStorageAdapter as a,createMemoryStorageAdapter as o,createSessionStorageAdapter as s,resolveStorageAdapter as c}from"./storage/adapters.js";import{createKitStorage as l}from"./storage/createKitStorage.js";import{DEFAULT_KIT_STORAGE_NAMESPACE as u,KitStorageProvider as d,useKitStorage as f,useKitStorageValue as p}from"./storage/context.js";import"./storage/index.js";import{bannerAckStorageKey as m,bucketFromSettlement as h,useBannerAck as g,useBannerAckForSettlement as _}from"./banners/useBannerAck.js";import"./banners/index.js";import{useCurrentFlowId as v}from"./events/hooks/useCurrentFlowId.js";import{useStridgeEvent as y}from"./events/hooks/useStridgeEvent.js";import{useStridgeEventBus as b}from"./events/hooks/useStridgeEventBus.js";import{useStridgeEvents as x}from"./events/hooks/useStridgeEvents.js";import{useStridgeFlowEvent as S}from"./events/hooks/useStridgeFlowEvent.js";import{useStridgeFlowEvents as C}from"./events/hooks/useStridgeFlowEvents.js";import"./events/index.js";import{useActivitySnapshot as w}from"./flows/activity/driver/context.js";import{useActivityState as T}from"./flows/activity/orchestrator/controller.js";import{useActivity as E,useOptionalActivity as D,useOptionalPrefetchActivity as O,usePrefetchActivity as k}from"./flows/activity/orchestrator/useActivity.js";import"./flows/activity/orchestrator/index.js";import{useDepositSnapshot as A}from"./flows/deposit/driver/context.js";import{useDepositState as j}from"./flows/deposit/orchestrator/controller.js";import{useDeposit as M,useOptionalDeposit as N,usePrefetchDeposit as P}from"./flows/deposit/orchestrator/useDeposit.js";import{useWithdrawBindings as F}from"./flows/withdraw/bindings/WithdrawBindings.js";import"./flows/withdraw/bindings/index.js";import{useWithdrawSnapshot as I}from"./flows/withdraw/driver/context.js";import{useWithdrawState as L}from"./flows/withdraw/orchestrator/controller.js";import{useOptionalWithdraw as R,usePrefetchWithdraw as z,useWithdraw as B}from"./flows/withdraw/orchestrator/useWithdraw.js";import"./flows/withdraw/orchestrator/index.js";import{useKitConfig as V}from"./scope/context.js";import{KitPortalScope as H}from"./scope/KitPortalScope.js";import{StridgeProvider as U}from"./stridge/StridgeProvider.js";export{u as DEFAULT_KIT_STORAGE_NAMESPACE,H as KitPortalScope,d as KitStorageProvider,U as StridgeProvider,m as bannerAckStorageKey,h as bucketFromSettlement,l as createKitStorage,a as createLocalStorageAdapter,o as createMemoryStorageAdapter,s as createSessionStorageAdapter,e as isValidAddressForChainType,t as isValidEvmAddress,n as isValidTronAddress,i as logos,c as resolveStorageAdapter,r as toChainType,E as useActivity,w as useActivitySnapshot,T as useActivityState,g as useBannerAck,_ as useBannerAckForSettlement,v as useCurrentFlowId,M as useDeposit,A as useDepositSnapshot,j as useDepositState,V as useKitConfig,f as useKitStorage,p as useKitStorageValue,D as useOptionalActivity,N as useOptionalDeposit,O as useOptionalPrefetchActivity,R as useOptionalWithdraw,k as usePrefetchActivity,P as usePrefetchDeposit,z as usePrefetchWithdraw,y as useStridgeEvent,b as useStridgeEventBus,x as useStridgeEvents,S as useStridgeFlowEvent,C as useStridgeFlowEvents,B as useWithdraw,F as useWithdrawBindings,I as useWithdrawSnapshot,L as useWithdrawState};
|
package/dist/package.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=`0.1.0-alpha.
|
|
1
|
+
var e=`0.1.0-alpha.52`;export{e as version};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { I18n } from "@lingui/core";
|
|
2
|
+
|
|
3
|
+
//#region src/shared/format/formatSmartRelative.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Smart-relative date formatter. Renders a unix-millisecond timestamp as a locale-aware string,
|
|
6
|
+
* cascading through five buckets:
|
|
7
|
+
*
|
|
8
|
+
* - `< 1 min`: `"Just now"` — avoids a noisy `"0 minutes ago"` reading on
|
|
9
|
+
* stale-while-revalidate refreshes that land microseconds after the wire stamp.
|
|
10
|
+
* - `< 1 hr`: `"5 minutes ago"` via `Intl.RelativeTimeFormat`.
|
|
11
|
+
* - `< 1 day`: `"3 hours ago"` via `Intl.RelativeTimeFormat`.
|
|
12
|
+
* - 1 day exact: `"Yesterday"`.
|
|
13
|
+
* - 2–6 days: `"3 days ago"` via `Intl.RelativeTimeFormat`.
|
|
14
|
+
* - `>= 7 days`: absolute date via {@link formatTimestamp}.
|
|
15
|
+
*
|
|
16
|
+
* `Intl.RelativeTimeFormat` produces locale-aware strings (e.g. `"hace 5 minutos"`,
|
|
17
|
+
* `"il y a 5 minutes"`, `"منذ ٥ دقائق"`) so plural-aware copy and RTL come for free.
|
|
18
|
+
*
|
|
19
|
+
* @param epochMs - The timestamp to render.
|
|
20
|
+
* @param now - The wall-clock anchor; pass `Date.now()` in components or a pinned value in tests.
|
|
21
|
+
* @param i18n - The active Lingui {@link I18n} instance — `i18n.locale` drives every formatter.
|
|
22
|
+
*/
|
|
23
|
+
declare function formatSmartRelative(epochMs: number, now: number, i18n: I18n): string;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { formatSmartRelative };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{formatTimestamp as e}from"./formatTimestamp.js";const t=6e4,n=36e5,r=864e5,i={id:`OSBXx5`,message:`Just now`},a={id:`y_0uwd`,message:`Yesterday`};function o(o,s,c){let l=s-o;if(l<t)return c._(i);let u=new Intl.RelativeTimeFormat(c.locale,{numeric:`auto`});if(l<n){let e=Math.floor(l/t);return u.format(-e,`minute`)}if(l<r){let e=Math.floor(l/n);return u.format(-e,`hour`)}let d=Math.floor(l/r);return d===1?c._(a):d<7?u.format(-d,`day`):e(o,c)}export{o as formatSmartRelative};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={
|
|
1
|
+
const e={minimumFractionDigits:2,maximumFractionDigits:2};function t(t,r,i={}){let a=n(i.intlOptions??e),o=i.showSmallValueClamp??!0,s=new Intl.NumberFormat(r.locale,a);return o&&t>0&&t<.01?`< $${s.format(.01)}`:`$${s.format(t)}`}function n(e){let{style:t,currency:n,currencyDisplay:r,currencySign:i,...a}=e;return a}export{t as formatUsd};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SVGProps } from "react";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
|
-
//#region src/shared/icons/
|
|
4
|
+
//#region src/shared/icons/ActivityIcon.d.ts
|
|
5
5
|
/**
|
|
6
|
-
* Activity
|
|
6
|
+
* Activity glyph — clock-arrow combo. Used as the header trigger on `<DepositDialog>`
|
|
7
7
|
* and `<WithdrawDialog>` to open the cross-flow activity surface. Matches the kit's icon
|
|
8
8
|
* convention (24×24 viewBox, `currentColor` stroke, 2px stroke width).
|
|
9
9
|
*/
|
|
10
|
-
declare function
|
|
10
|
+
declare function ActivityIcon(props: SVGProps<SVGSVGElement>): _$react_jsx_runtime0.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
|
-
export {
|
|
12
|
+
export { ActivityIcon };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";function n(n){return t(`svg`,{fill:`none`,height:`24`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,viewBox:`0 0 24 24`,width:`24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[e(`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}),e(`path`,{d:`M3 3v5h5`}),e(`path`,{d:`M12 7v5l4 2`})]})}export{n as
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";function n(n){return t(`svg`,{fill:`none`,height:`24`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,viewBox:`0 0 24 24`,width:`24`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[e(`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}),e(`path`,{d:`M3 3v5h5`}),e(`path`,{d:`M12 7v5l4 2`})]})}export{n as ActivityIcon};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/shared/orchestrator/activityOpenInput.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Public open-input for the standalone activity flow (`useActivity().open(input)`). The shape is
|
|
4
|
+
* intentionally narrow because the dedicated `useActivity()` hook already carries the
|
|
5
|
+
* "I want activity" intent in the call site — there is no `{ surface: … }` discriminator to
|
|
6
|
+
* coexist with `useDeposit()` / `useWithdraw()`.
|
|
7
|
+
*
|
|
8
|
+
* - `undefined` — land on `activityList`.
|
|
9
|
+
* - `{ settlementId }` — land on `activityDetail` for that Stridge settlement id. Falls through
|
|
10
|
+
* to `activityList` when the id does not resolve against the kit's owner-scoped `activity`
|
|
11
|
+
* entity, mirroring the deposit-side `{ method: "wallet", assetId }` fall-through.
|
|
12
|
+
* - `{ txHash }` — land on `activityDetail` for the settlement whose source-chain tx hash
|
|
13
|
+
* matches. Falls through to `activityList` on miss.
|
|
14
|
+
*/
|
|
15
|
+
type ActivityOpenInput = undefined | {
|
|
16
|
+
settlementId: string;
|
|
17
|
+
} | {
|
|
18
|
+
txHash: string;
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { ActivityOpenInput };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return{reduceFromActivityList(t,n){switch(n.type){case`SELECT_SETTLEMENT`:return e.activityDetail(n.settlementId,t.ctx.backTarget,!0);case`BACK`:return e.restoreFromBackTarget(t.ctx.backTarget);case`CLOSE`:return e.closed();default:return t}},reduceFromActivityDetail(t,n){switch(n.type){case`BACK`:return t.ctx.viaList?e.activityList(t.ctx.backTarget):e.restoreFromBackTarget(t.ctx.backTarget);case`CLOSE`:return e.closed();default:return t}}}}export{e as createActivityReducers};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./failureReason.js";import"./toFailure.js";import"./useDialogLifecycle.js";import"./useDriverSettlementListener.js";import"./useEffectiveState.js";import"./userRejection.js";import"./useSettlementWatcher.js";
|
|
1
|
+
import"./createActivityReducers.js";import"./failureReason.js";import"./resolveActivityEntry.js";import"./toFailure.js";import"./useDialogLifecycle.js";import"./useDriverSettlementListener.js";import"./useEffectiveState.js";import"./userRejection.js";import"./useSettlementWatcher.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { GatewayPollResponse, GatewayUdaDto } from "@stridge/sdk";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t){if(!t||e.status!==`ready`&&e.status!==`stale`)return{kind:`list`};if(`settlementId`in t){let n=e.payload.rows.find(e=>e.id===t.settlementId);return n?{kind:`detail`,settlementId:n.id}:{kind:`list`}}for(let n of e.raw)for(let e of n.settlements)if(e.from.tx_id===t.txHash)return{kind:`detail`,settlementId:e.id};return{kind:`list`}}export{e as resolveActivityEntry};
|
|
@@ -51,16 +51,19 @@ declare function CardHeader({
|
|
|
51
51
|
...props
|
|
52
52
|
}: Card.HeaderProps): _$react_jsx_runtime0.JSX.Element;
|
|
53
53
|
/**
|
|
54
|
-
* Body slot for a `frame`-variant {@link Card}.
|
|
54
|
+
* Body slot for a `frame`-variant {@link Card}. Wraps children in the kit's overlay {@link ScrollArea} so any consumer
|
|
55
|
+
* that caps the body's block size (e.g. {@link Card.Body} mounted inside `Dialog.Content`, which absorbs leftover
|
|
56
|
+
* dialog height; or a widget mounted in canvas mode that sets its own `max-block-size`) gets the same scrollbar UX.
|
|
55
57
|
*
|
|
56
|
-
*
|
|
57
|
-
* flex
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
58
|
+
* The body wrapper is a flex column with `flex: 1 1 auto` + `min-height: 0` so that, when the parent participates in a
|
|
59
|
+
* flex chain (the dialog content panel), the body absorbs leftover height. Sizing the inner `ScrollArea` via flex
|
|
60
|
+
* (rather than a percentage height) makes the chain resolve reliably: the scroll-area's intrinsic content size carries
|
|
61
|
+
* back through the body so flex shrink can compress the body to its allocated space, and once sized, flex distributes
|
|
62
|
+
* that space to the scroll-area instead of having its `height: 100%` fall through an indefinite parent and balloon. The
|
|
63
|
+
* flex-column rhythm lives inside the viewport so widget children that depend on a flex-column parent
|
|
64
|
+
* (`alignSelf: stretch` on the `ConfirmDeposit` CTA, for instance) keep working unchanged. When the parent doesn't
|
|
65
|
+
* impose a height, the chain collapses to `auto` and the scroll-area only becomes interactive once a consumer's
|
|
66
|
+
* `max-block-size` actually bites — the overlay scrollbar stays invisible otherwise.
|
|
64
67
|
*/
|
|
65
68
|
declare function CardBody({
|
|
66
69
|
className,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{joinClassNames as e}from"../../utils/joinClassNames.js";import{ScrollArea as t}from"../ScrollArea/ScrollArea.js";import"../ScrollArea/index.js";import{
|
|
1
|
+
"use client";import{joinClassNames as e}from"../../utils/joinClassNames.js";import{ScrollArea as t}from"../ScrollArea/ScrollArea.js";import"../ScrollArea/index.js";import{CARD_SLOTS as n}from"./Card.slots.js";import{bodyStyles as r,footerStyles as i,headerStyles as a,styles as o,variantStyles as s}from"./Card.styles.js";import{jsx as c,jsxs as l}from"react/jsx-runtime";import*as u from"@stylexjs/stylex";function d({variant:t=`default`,className:r,style:i,children:a,...l}){let d=u.props(o.root,s[t]);return c(`div`,{"data-stridge-slot":n.root,"data-variant":t,...l,className:e(d.className,r),style:{...d.style,...i},children:a})}function f({className:t,style:r,children:i,...o}){let s=u.props(a.root);return c(`div`,{"data-stridge-slot":n.header,...o,className:e(s.className,t),style:{...s.style,...r},children:i})}function p({className:i,style:a,children:o,...s}){let d=u.props(r.scroll),f=u.props(r.scrollArea),p=u.props(r.scrollViewport),m=u.props(r.root);return c(`div`,{"data-stridge-slot":n.body,className:d.className,style:d.style,children:l(t,{className:f.className,style:f.style,children:[c(t.Viewport,{...s,className:e(p.className,i),style:{...p.style,...a},children:c(`div`,{className:m.className,style:m.style,children:o})}),c(t.Scrollbar,{orientation:`vertical`,children:c(t.Thumb,{})})]})})}function m({className:t,style:r,children:a,...o}){let s=u.props(i.root);return c(`div`,{"data-stridge-slot":n.footer,...o,className:e(s.className,t),style:{...s.style,...r},children:a})}d.Header=f,d.Body=p,d.Footer=m;export{d as Card};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={root:{"Card__styles.root":`Card__styles.root`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"borderStyle-ksu8eU":`x1y0btm7`,"borderWidth-kMzoRj":`xmkeg23`,"overflow-kVQacm":`x7giv3`,$$css:`@stridge/kit:src/shared/ui/Card/Card.styles.ts:4`}},t={default:{"Card__variantStyles.default":`Card__variantStyles.default`,"backgroundColor-kWkggS":`x12obg9s`,"borderColor-kVAM5u":`x1bue7yx`,"borderRadius-kaIpWk":`x5bw3pk`,$$css:`@stridge/kit:src/shared/ui/Card/Card.styles.ts:13`},subdued:{"Card__variantStyles.subdued":`Card__variantStyles.subdued`,"backgroundColor-kWkggS":`x407w7c`,"borderColor-kVAM5u":`x1bue7yx`,"borderRadius-kaIpWk":`x5bw3pk`,$$css:`@stridge/kit:src/shared/ui/Card/Card.styles.ts:18`},frame:{"Card__variantStyles.frame":`Card__variantStyles.frame`,"backgroundColor-kWkggS":`x3cgcfv`,"borderColor-kVAM5u":`x1aqcfi1`,"borderRadius-kaIpWk":`x1c2egtx`,"boxShadow-kGVxlE":`xa2vu2y`,"color-kMwMTN":`xzn0pkc`,"fontFamily-kMv6JI":`xlaww2m`,$$css:`@stridge/kit:src/shared/ui/Card/Card.styles.ts:23`}},n={root:{"Card__headerStyles.root":`Card__headerStyles.root`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"flexShrink-kmuXW":`x2lah0s`,"paddingTop-kLKAdn":`x1cnzs8`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1hhzuzn`,"paddingInlineStart-kZCmMZ":`xz7312c`,"borderBottomWidth-kt9PQ7":`xso031l`,"borderBottomStyle-kfdmCh":`x1q0q8m5`,"borderBottomColor-kL6WhQ":`x188r5k3`,$$css:`@stridge/kit:src/shared/ui/Card/Card.styles.ts:39`}},r={root:{"Card__footerStyles.root":`Card__footerStyles.root`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"flexShrink-kmuXW":`x2lah0s`,"borderTopWidth-kEafiO":`x178xt8z`,"borderTopStyle-kPef9Z":`x13fuv20`,"borderTopColor-kLZC3w":`x1wc9ssx`,$$css:`@stridge/kit:src/shared/ui/Card/Card.styles.ts:54`}},i={root:{"Card__bodyStyles.root":`Card__bodyStyles.root`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,$$css:`@stridge/kit:src/shared/ui/Card/Card.styles.ts:
|
|
1
|
+
const e={root:{"Card__styles.root":`Card__styles.root`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"borderStyle-ksu8eU":`x1y0btm7`,"borderWidth-kMzoRj":`xmkeg23`,"overflow-kVQacm":`x7giv3`,$$css:`@stridge/kit:src/shared/ui/Card/Card.styles.ts:4`}},t={default:{"Card__variantStyles.default":`Card__variantStyles.default`,"backgroundColor-kWkggS":`x12obg9s`,"borderColor-kVAM5u":`x1bue7yx`,"borderRadius-kaIpWk":`x5bw3pk`,$$css:`@stridge/kit:src/shared/ui/Card/Card.styles.ts:13`},subdued:{"Card__variantStyles.subdued":`Card__variantStyles.subdued`,"backgroundColor-kWkggS":`x407w7c`,"borderColor-kVAM5u":`x1bue7yx`,"borderRadius-kaIpWk":`x5bw3pk`,$$css:`@stridge/kit:src/shared/ui/Card/Card.styles.ts:18`},frame:{"Card__variantStyles.frame":`Card__variantStyles.frame`,"backgroundColor-kWkggS":`x3cgcfv`,"borderColor-kVAM5u":`x1aqcfi1`,"borderRadius-kaIpWk":`x1c2egtx`,"boxShadow-kGVxlE":`xa2vu2y`,"color-kMwMTN":`xzn0pkc`,"fontFamily-kMv6JI":`xlaww2m`,$$css:`@stridge/kit:src/shared/ui/Card/Card.styles.ts:23`}},n={root:{"Card__headerStyles.root":`Card__headerStyles.root`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"flexShrink-kmuXW":`x2lah0s`,"paddingTop-kLKAdn":`x1cnzs8`,"paddingInlineEnd-kwRFfy":`x1o5r3ls`,"paddingBottom-kGO01o":`x1hhzuzn`,"paddingInlineStart-kZCmMZ":`xz7312c`,"borderBottomWidth-kt9PQ7":`xso031l`,"borderBottomStyle-kfdmCh":`x1q0q8m5`,"borderBottomColor-kL6WhQ":`x188r5k3`,$$css:`@stridge/kit:src/shared/ui/Card/Card.styles.ts:39`}},r={root:{"Card__footerStyles.root":`Card__footerStyles.root`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"flexShrink-kmuXW":`x2lah0s`,"borderTopWidth-kEafiO":`x178xt8z`,"borderTopStyle-kPef9Z":`x13fuv20`,"borderTopColor-kLZC3w":`x1wc9ssx`,$$css:`@stridge/kit:src/shared/ui/Card/Card.styles.ts:54`}},i={root:{"Card__bodyStyles.root":`Card__bodyStyles.root`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,$$css:`@stridge/kit:src/shared/ui/Card/Card.styles.ts:70`},scroll:{"Card__bodyStyles.scroll":`Card__bodyStyles.scroll`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"flex-kUk6DE":`x12lumcd`,"minHeight-kAzted":`x2lwn1j`,$$css:`@stridge/kit:src/shared/ui/Card/Card.styles.ts:82`},scrollArea:{"Card__bodyStyles.scrollArea":`Card__bodyStyles.scrollArea`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`xdt5ytf`,"flex-kUk6DE":`x12lumcd`,"minHeight-kAzted":`x2lwn1j`,$$css:`@stridge/kit:src/shared/ui/Card/Card.styles.ts:97`},scrollViewport:{"Card__bodyStyles.scrollViewport":`Card__bodyStyles.scrollViewport`,"flex-kUk6DE":`x845mor`,"minHeight-kAzted":`x2lwn1j`,"width-kzqmXN":`xh8yej3`,"maxWidth-ks0D6T":`x193iq5w`,"height-kZKoxP":`xt7dq6l`,"maxHeight-kskxy":`xmz0i5r`,"overflowX-kXHlph":`x6ikm8r`,"overflowY-kORKVm":`x1odjw0f`,$$css:`@stridge/kit:src/shared/ui/Card/Card.styles.ts:103`}};export{i as bodyStyles,r as footerStyles,n as headerStyles,e as styles,t as variantStyles};
|
|
@@ -16,7 +16,7 @@ type SelectableTileShape = "card" | "pill";
|
|
|
16
16
|
* visual state via `selected` and the click via `onClick`.
|
|
17
17
|
*
|
|
18
18
|
* Pass `interactive="navigation"` for rows that route to a new view rather
|
|
19
|
-
* than toggle a selection — e.g. activity
|
|
19
|
+
* than toggle a selection — e.g. activity rows. The navigation
|
|
20
20
|
* branch renders a plain `<button type="button">` with the same surface
|
|
21
21
|
* chrome and hover/focus treatment (different ARIA, same look), so
|
|
22
22
|
* navigation rows match toggle rows visually while staying semantically
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useLingui as e}from"../../i18n/useLingui.js";import"../../../i18n/index.js";import{ActivityIcon as t}from"../../icons/ActivityIcon.js";import"../../../icons/index.js";import{IconButton as n}from"../../ui/IconButton/IconButton.js";import"../../../ui/index.js";import{styles as r}from"./ActivityTrigger.styles.js";import{jsx as i}from"react/jsx-runtime";import*as a from"@stylexjs/stylex";function o({onOpen:o}){let{_:s}=e();return i(n,{"aria-label":s({id:`c3aao_`,message:`View activity`}),onClick:o,children:i(t,{"aria-hidden":!0,...a.props(r.icon)})})}export{o as ActivityTrigger};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={icon:{"ActivityTrigger__styles.icon":`ActivityTrigger__styles.icon`,"width-kzqmXN":`x1xp8n7a`,"height-kZKoxP":`xmix8c7`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x15rks2t`,"strokeWidth-kfJifR":`xhxwl1`,$$css:`@stridge/kit:src/shared/widgets/activity
|
|
1
|
+
const e={icon:{"ActivityTrigger__styles.icon":`ActivityTrigger__styles.icon`,"width-kzqmXN":`x1xp8n7a`,"height-kZKoxP":`xmix8c7`,"flexShrink-kmuXW":`x2lah0s`,"color-kMwMTN":`x15rks2t`,"strokeWidth-kfJifR":`xhxwl1`,$$css:`@stridge/kit:src/shared/widgets/activity/ActivityTrigger.styles.ts:3`}};export{e as styles};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{resolveDirection as e}from"../transformers/resolveDirection.js";import{settlementToPayload as t}from"../../../../flows/deposit/driver/transformers/settlementToPayload.js";function n(n,r,i){let a=i.sourceWallet.address.toLowerCase();for(let o of n)for(let n of o.settlements)if(n.id===r){let r=e(o,a);return{payload:t(n,o,r===`withdraw`&&i.brandName!==void 0?{...i,brandName:void 0}:i),uda:o,direction:r}}return null}export{n as settlementToWidgetProps};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { ActivityHeader, ActivityListHeader } from "./components/ActivityHeader.js";
|
|
2
|
+
import { ActivityEmpty } from "./components/Empty.js";
|
|
3
|
+
import { ActivityErrorView } from "./components/ErrorView.js";
|
|
4
|
+
import { ActivityList } from "./components/List.js";
|
|
5
|
+
import { ActivityRow } from "./components/Row.js";
|
|
6
|
+
import { ComponentProps, ReactNode } from "react";
|
|
7
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
8
|
+
|
|
9
|
+
//#region src/shared/widgets/activity/compound/Activity.d.ts
|
|
10
|
+
interface ActivityOwnProps {
|
|
11
|
+
/**
|
|
12
|
+
* Optional custom composition. Defaults to `<Header /> + <List />`. Pass children to
|
|
13
|
+
* interleave host-supplied elements between compound parts.
|
|
14
|
+
*/
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Root of the `<Activity>` list compound. Flow-agnostic — every flow-specific concern
|
|
19
|
+
* (snapshot read, action dispatch, owner address derivation) is encapsulated in the
|
|
20
|
+
* `<ActivitySourceProvider>` value the dialog mounts above. The same JSX renders from
|
|
21
|
+
* both `<DepositDialog>` and `<WithdrawDialog>` without imports across the flow boundary.
|
|
22
|
+
*
|
|
23
|
+
* Mounted by the dialog's `activityList` step. The peer compound {@link ActivityDetail}
|
|
24
|
+
* handles the per-settlement detail step; the kit's `Steps` primitive routes between them via
|
|
25
|
+
* the FSM state name, so the slide+blur step transition is supplied automatically.
|
|
26
|
+
*
|
|
27
|
+
* Compound parts:
|
|
28
|
+
* - {@link Activity.Header} — back chevron + title + close X.
|
|
29
|
+
* - {@link Activity.ListHeader} — underlying header primitive that accepts explicit
|
|
30
|
+
* `title` + `onBack` props. Public because the detail compound's per-kind parts mount it
|
|
31
|
+
* inside their delegated success / error / processing composition.
|
|
32
|
+
* - {@link Activity.List} — list body (skeleton / empty / error / rows). Pure reader
|
|
33
|
+
* of the `activity` entity; recurring updates land via the controller-mounted `watchActivity`
|
|
34
|
+
* watcher with adaptive cadence.
|
|
35
|
+
* - {@link Activity.Row} — single row primitive (button-semantic).
|
|
36
|
+
* - {@link Activity.Empty} — empty-state body.
|
|
37
|
+
* - {@link Activity.ErrorView} — initial-error body with retry.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```tsx
|
|
41
|
+
* <ActivitySourceProvider value={sourceValue}>
|
|
42
|
+
* <Activity />
|
|
43
|
+
* </ActivitySourceProvider>
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @example Custom composition — interleave between parts
|
|
47
|
+
* ```tsx
|
|
48
|
+
* <ActivitySourceProvider value={sourceValue}>
|
|
49
|
+
* <Activity>
|
|
50
|
+
* <Activity.Header />
|
|
51
|
+
* <Activity.List />
|
|
52
|
+
* </Activity>
|
|
53
|
+
* </ActivitySourceProvider>
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
declare function Activity({
|
|
57
|
+
children,
|
|
58
|
+
...props
|
|
59
|
+
}: ComponentProps<"div"> & ActivityOwnProps): _$react_jsx_runtime0.JSX.Element;
|
|
60
|
+
declare namespace Activity {
|
|
61
|
+
type Props = ComponentProps<"div"> & ActivityOwnProps;
|
|
62
|
+
/**
|
|
63
|
+
* Card header — back chevron + title + close X. Mounted by the default composition above
|
|
64
|
+
* the list body. The peer detail compound supplies its own header inside the
|
|
65
|
+
* SuccessState / ErrorState / ProcessingState composition.
|
|
66
|
+
*/
|
|
67
|
+
const Header: typeof ActivityHeader;
|
|
68
|
+
/**
|
|
69
|
+
* Underlying list-view header primitive — accepts explicit `title` and `onBack` props
|
|
70
|
+
* and renders unconditionally. The detail compound's per-kind parts mount this inside
|
|
71
|
+
* their delegated state composition to keep the back chevron + title affordance
|
|
72
|
+
* consistent across the surface.
|
|
73
|
+
*/
|
|
74
|
+
const ListHeader: typeof ActivityListHeader;
|
|
75
|
+
/**
|
|
76
|
+
* List body — skeleton / empty / error / rows. Pure reader; the controller-mounted
|
|
77
|
+
* `watchActivity` watcher drives recurring updates.
|
|
78
|
+
*/
|
|
79
|
+
const List: typeof ActivityList;
|
|
80
|
+
/**
|
|
81
|
+
* Single row primitive. Hosts that want a fully-headless surface can mount Row directly
|
|
82
|
+
* with their own payload assembly.
|
|
83
|
+
*/
|
|
84
|
+
const Row: typeof ActivityRow;
|
|
85
|
+
/**
|
|
86
|
+
* Empty-state body — centered icon + headline + subline.
|
|
87
|
+
*/
|
|
88
|
+
const Empty: typeof ActivityEmpty;
|
|
89
|
+
/**
|
|
90
|
+
* Initial-error body — `Alert` + retry button.
|
|
91
|
+
*/
|
|
92
|
+
const ErrorView: typeof ActivityErrorView;
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
export { Activity };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{Frame as e}from"../../../dialog/Frame.js";import{ACTIVITY_SLOTS as t}from"./Activity.slots.js";import{styles as n}from"./Activity.styles.js";import{ActivityHeader as r,ActivityListHeader as i}from"./components/ActivityHeader.js";import{ActivityEmpty as a}from"./components/Empty.js";import{ActivityErrorView as o}from"./components/ErrorView.js";import{ActivityRow as s}from"./components/Row.js";import{ActivityList as c}from"./components/List.js";import{Fragment as l,jsx as u,jsxs as d}from"react/jsx-runtime";import*as f from"@stylexjs/stylex";const p=d(l,{children:[u(r,{}),u(c,{})]});function m({children:r,...i}){return u(e,{"data-stridge-slot":t.root,...f.props(n.root),...i,children:r??p})}(function(e){e.Header=r,e.ListHeader=i,e.List=c,e.Row=s,e.Empty=a,e.ErrorView=o})(m||={});export{m as Activity};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/shared/widgets/activity/compound/Activity.slots.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Slot vocabulary for `<Activity>`. Each meaningful element carries
|
|
4
|
+
* `data-stridge-slot={ACTIVITY_SLOTS.<part>}` so hosts can target a sub-part with
|
|
5
|
+
* `[data-stridge-slot="activity-row"]` without forking the kit. Slots are public API —
|
|
6
|
+
* renames are breaking changes.
|
|
7
|
+
*/
|
|
8
|
+
declare const ACTIVITY_SLOTS: {
|
|
9
|
+
readonly root: "activity";
|
|
10
|
+
readonly header: "activity-header";
|
|
11
|
+
readonly body: "activity-body";
|
|
12
|
+
readonly list: "activity-list";
|
|
13
|
+
readonly empty: "activity-empty";
|
|
14
|
+
readonly emptyIcon: "activity-empty-icon";
|
|
15
|
+
readonly error: "activity-error";
|
|
16
|
+
readonly retry: "activity-retry";
|
|
17
|
+
readonly skeleton: "activity-skeleton";
|
|
18
|
+
readonly skeletonRow: "activity-skeleton-row";
|
|
19
|
+
};
|
|
20
|
+
type ActivitySlot = (typeof ACTIVITY_SLOTS)[keyof typeof ACTIVITY_SLOTS];
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ACTIVITY_SLOTS, ActivitySlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:`activity`,header:`activity-header`,body:`activity-body`,list:`activity-list`,empty:`activity-empty`,emptyIcon:`activity-empty-icon`,error:`activity-error`,retry:`activity-retry`,skeleton:`activity-skeleton`,skeletonRow:`activity-skeleton-row`};export{e as ACTIVITY_SLOTS};
|