@stridge/kit 0.1.0-alpha.6 → 0.1.0-alpha.60
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/README.md +22 -6
- package/dist/KitProvider.d.ts +61 -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/deposit/driver/index.d.ts +2 -2
- package/dist/_internal/drivers/stridge/index.d.ts +4 -2
- 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/_internal/withdraw/driver/index.d.ts +2 -2
- package/dist/activity/compound/index.d.ts +19 -0
- package/dist/activity/compound/index.js +1 -0
- package/dist/activity/dialog/index.d.ts +4 -0
- package/dist/activity/dialog/index.js +1 -0
- package/dist/activity/widgets/index.d.ts +5 -0
- package/dist/activity/widgets/index.js +1 -0
- package/dist/deposit/compound/index.d.ts +22 -15
- package/dist/deposit/compound/index.js +1 -1
- package/dist/deposit/dialog/index.d.ts +2 -1
- package/dist/deposit/widgets/index.d.ts +16 -0
- package/dist/deposit/widgets/index.js +1 -0
- package/dist/drivers/stridge/catalog.d.ts +54 -0
- package/dist/drivers/stridge/catalog.js +1 -0
- package/dist/drivers/stridge/createStridgeActivityDriver.d.ts +44 -0
- package/dist/drivers/stridge/createStridgeActivityDriver.js +1 -0
- package/dist/drivers/stridge/createStridgeDepositDriver.d.ts +10 -1
- package/dist/drivers/stridge/createStridgeDepositDriver.js +1 -1
- package/dist/drivers/stridge/createStridgeWithdrawDriver.d.ts +37 -14
- package/dist/drivers/stridge/createStridgeWithdrawDriver.js +1 -1
- package/dist/drivers/stridge/internal/ensureWalletChain.js +1 -0
- package/dist/drivers/stridge/internal/pollOnce.js +1 -1
- package/dist/drivers/stridge/internal/resolveAddEthereumChain.js +1 -0
- package/dist/drivers/stridge/internal/retry.js +1 -0
- package/dist/drivers/stridge/internal/supportedChains.js +1 -0
- package/dist/drivers/stridge/types.d.ts +20 -14
- package/dist/drivers/stridge/types.js +1 -1
- package/dist/drivers/stridge/wagmiSigner.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 +2 -2
- package/dist/drivers/stridge-mock/createStridgeMockDriver.js +1 -1
- package/dist/drivers/stridge-mock/createStridgeMockWithdrawDriver.d.ts +15 -3
- package/dist/drivers/stridge-mock/createStridgeMockWithdrawDriver.js +1 -1
- package/dist/drivers/stridge-mock/fixtures.d.ts +14 -12
- package/dist/drivers/stridge-mock/fixtures.js +1 -1
- package/dist/events/bus/createBus.d.ts +26 -0
- package/dist/events/bus/createBus.js +1 -0
- package/dist/events/bus/flowIdRegistry.d.ts +17 -0
- package/dist/events/bus/flowIdRegistry.js +1 -0
- package/dist/events/bus/index.js +1 -0
- package/dist/events/bus/metadata.js +1 -0
- package/dist/events/context.js +1 -0
- package/dist/events/emit/index.js +1 -0
- package/dist/events/emit/mapFailure.js +1 -0
- package/dist/events/emit/useActivityEmissions.js +1 -0
- package/dist/events/emit/useDepositEmissions.js +1 -0
- package/dist/events/emit/useKitEmitter.js +1 -0
- package/dist/events/emit/useWithdrawEmissions.js +1 -0
- package/dist/events/hooks/index.d.ts +6 -0
- package/dist/events/hooks/index.js +1 -0
- package/dist/events/hooks/useCurrentFlowId.d.ts +6 -0
- package/dist/events/hooks/useCurrentFlowId.js +1 -0
- package/dist/events/hooks/useStableHandler.js +1 -0
- package/dist/events/hooks/useStridgeEvent.d.ts +9 -0
- package/dist/events/hooks/useStridgeEvent.js +1 -0
- package/dist/events/hooks/useStridgeEventBus.d.ts +34 -0
- package/dist/events/hooks/useStridgeEventBus.js +1 -0
- package/dist/events/hooks/useStridgeEvents.d.ts +7 -0
- package/dist/events/hooks/useStridgeEvents.js +1 -0
- package/dist/events/hooks/useStridgeFlowEvent.d.ts +8 -0
- package/dist/events/hooks/useStridgeFlowEvent.js +1 -0
- package/dist/events/hooks/useStridgeFlowEvents.d.ts +6 -0
- package/dist/events/hooks/useStridgeFlowEvents.js +1 -0
- package/dist/events/index.d.ts +17 -0
- package/dist/events/index.js +1 -0
- package/dist/events/publish.js +1 -0
- package/dist/events/redact.d.ts +34 -0
- package/dist/events/redact.js +1 -0
- package/dist/events/types/activity.d.ts +53 -0
- package/dist/events/types/deposit.d.ts +235 -0
- package/dist/events/types/envelope.d.ts +145 -0
- package/dist/events/types/index.d.ts +32 -0
- package/dist/events/types/kit.d.ts +23 -0
- package/dist/events/types/withdraw.d.ts +150 -0
- 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 +55 -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/bindings/DepositBindings.d.ts +87 -0
- package/dist/flows/deposit/bindings/DepositBindings.js +1 -0
- package/dist/flows/deposit/bindings/index.d.ts +1 -0
- package/dist/flows/deposit/bindings/index.js +1 -0
- package/dist/flows/deposit/dialog/DepositBootstrapErrorState.js +1 -1
- package/dist/flows/deposit/dialog/DepositDialog.d.ts +26 -79
- package/dist/flows/deposit/dialog/DepositDialog.js +1 -1
- package/dist/flows/deposit/dialog/WalletRequiredState.js +1 -0
- package/dist/flows/deposit/dialog/WalletRequiredState.styles.js +1 -0
- package/dist/flows/deposit/driver/payloads.d.ts +52 -5
- package/dist/flows/deposit/driver/transformers/balanceToBalancesPayload.d.ts +2 -0
- package/dist/flows/deposit/driver/transformers/balanceToBalancesPayload.js +1 -1
- package/dist/flows/deposit/driver/transformers/index.d.ts +1 -0
- package/dist/flows/deposit/driver/transformers/quoteToPayload.d.ts +2 -0
- package/dist/flows/deposit/driver/transformers/settlementToPayload.d.ts +25 -0
- package/dist/flows/deposit/driver/transformers/settlementToPayload.js +1 -1
- package/dist/flows/deposit/driver/transformers/startToAddressesPayload.d.ts +2 -0
- package/dist/flows/deposit/driver/transformers/startToAddressesPayload.js +1 -1
- package/dist/flows/deposit/driver/transformers/startToBrandPayload.d.ts +1 -0
- package/dist/flows/deposit/driver/transformers/startToTargetPayload.d.ts +2 -0
- package/dist/flows/deposit/driver/transformers/startToTargetPayload.js +1 -1
- package/dist/flows/deposit/driver/transformers/walletAddressToWalletPayload.d.ts +1 -0
- package/dist/flows/deposit/driver/types.d.ts +37 -4
- package/dist/flows/deposit/orchestrator/controller.js +1 -1
- package/dist/flows/deposit/orchestrator/index.d.ts +5 -0
- package/dist/flows/deposit/orchestrator/reducer.d.ts +1 -0
- package/dist/flows/deposit/orchestrator/reducer.js +1 -1
- package/dist/flows/deposit/orchestrator/types.d.ts +228 -7
- package/dist/flows/deposit/orchestrator/useDeposit.d.ts +45 -1
- package/dist/flows/deposit/orchestrator/useDeposit.js +1 -1
- package/dist/flows/deposit/shared/cash.d.ts +20 -0
- package/dist/flows/deposit/shared/cash.js +1 -0
- package/dist/flows/deposit/widgets/activity/DepositActivityDetail.d.ts +40 -0
- 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.d.ts +32 -5
- package/dist/flows/deposit/widgets/amount-entry/AmountEntry.js +1 -1
- package/dist/flows/deposit/widgets/amount-entry/footerIntent.js +1 -0
- package/dist/flows/deposit/widgets/asset-picker/AssetPicker.d.ts +24 -4
- package/dist/flows/deposit/widgets/asset-picker/AssetPicker.js +1 -1
- package/dist/flows/deposit/widgets/cash-amount-entry/CashAmountEntry.d.ts +71 -0
- package/dist/flows/deposit/widgets/cash-amount-entry/CashAmountEntry.js +1 -0
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/CashAmountEntry.d.ts +69 -0
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/CashAmountEntry.js +1 -0
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/CashAmountEntry.slots.d.ts +16 -0
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/CashAmountEntry.slots.js +1 -0
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/CashAmountEntry.styles.js +1 -0
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/components/HeroLabel.d.ts +13 -0
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/components/HeroLabel.js +1 -0
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/components/MethodChip.d.ts +18 -0
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/components/MethodChip.js +1 -0
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/components/ReceiveChip.d.ts +14 -0
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/components/ReceiveChip.js +1 -0
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/context.js +1 -0
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/index.d.ts +3 -0
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/index.js +1 -0
- package/dist/flows/deposit/widgets/cash-amount-entry/compound/types.d.ts +42 -0
- package/dist/flows/deposit/widgets/cash-amount-entry/index.d.ts +1 -0
- package/dist/flows/deposit/widgets/cash-amount-entry/index.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/CashConfirm.d.ts +63 -0
- package/dist/flows/deposit/widgets/cash-confirm/CashConfirm.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/CashConfirm.d.ts +54 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/CashConfirm.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/CashConfirm.slots.d.ts +33 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/CashConfirm.slots.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/CashConfirm.styles.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/cashConfirmDimensions.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/ApplePayBody.d.ts +15 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/ApplePayBody.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/Body.d.ts +22 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/Body.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/BodyLabel.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardBody.d.ts +16 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardBody.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardInputRow.icons.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardInputRow.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardInputRow.keys.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardInputRow.state.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/CardInputRow.styles.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/GooglePayBody.d.ts +16 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/GooglePayBody.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/Header.d.ts +21 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/Header.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/Summary.d.ts +17 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/Summary.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/components/cardFormat.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/context.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/index.d.ts +3 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/index.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/compound/types.d.ts +66 -0
- package/dist/flows/deposit/widgets/cash-confirm/index.d.ts +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/index.js +1 -0
- package/dist/flows/deposit/widgets/cash-confirm/mocks.js +1 -0
- package/dist/flows/deposit/widgets/confirm-deposit/ConfirmDeposit.d.ts +37 -4
- package/dist/flows/deposit/widgets/confirm-deposit/ConfirmDeposit.js +1 -1
- package/dist/flows/deposit/widgets/deposit/Deposit.d.ts +39 -4
- package/dist/flows/deposit/widgets/deposit/Deposit.js +1 -1
- package/dist/flows/deposit/widgets/deposit/compound/Deposit.d.ts +58 -1
- package/dist/flows/deposit/widgets/deposit/compound/Deposit.js +1 -1
- package/dist/flows/deposit/widgets/deposit/compound/Deposit.slots.d.ts +6 -0
- package/dist/flows/deposit/widgets/deposit/compound/Deposit.slots.js +1 -1
- package/dist/flows/deposit/widgets/deposit/compound/Deposit.styles.js +1 -1
- package/dist/flows/deposit/widgets/deposit/compound/components/Boundary.d.ts +29 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/Boundary.js +1 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/Guards.d.ts +28 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/Guards.js +1 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/Header.d.ts +11 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/Header.js +1 -1
- package/dist/flows/deposit/widgets/deposit/compound/components/Method.d.ts +7 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/Method.js +1 -1
- package/dist/flows/deposit/widgets/deposit/compound/components/MethodSection.d.ts +40 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/MethodSection.js +1 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/Methods.d.ts +16 -9
- package/dist/flows/deposit/widgets/deposit/compound/components/Methods.js +1 -1
- package/dist/flows/deposit/widgets/deposit/compound/components/Rail.d.ts +18 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/Rail.js +1 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/RailPicker.d.ts +43 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/RailPicker.js +1 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/Steps.d.ts +24 -0
- package/dist/flows/deposit/widgets/deposit/compound/components/Steps.js +1 -0
- package/dist/flows/deposit/widgets/deposit/compound/index.d.ts +2 -1
- package/dist/flows/deposit/widgets/deposit/compound/types.d.ts +106 -4
- package/dist/flows/deposit/widgets/deposit-status-banner/DepositStatusBanner.d.ts +41 -1
- package/dist/flows/deposit/widgets/deposit-status-banner/DepositStatusBanner.js +1 -1
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.js +1 -1
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Hero.js +1 -1
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/PrimaryAction.js +1 -1
- package/dist/flows/deposit/widgets/deposit-status-banner/compound/types.d.ts +5 -5
- package/dist/flows/deposit/widgets/error-state/ErrorState.d.ts +39 -4
- package/dist/flows/deposit/widgets/error-state/ErrorState.js +1 -1
- package/dist/flows/deposit/widgets/processing-state/ProcessingState.d.ts +30 -4
- package/dist/flows/deposit/widgets/processing-state/ProcessingState.js +1 -1
- package/dist/flows/deposit/widgets/success-state/SuccessState.d.ts +38 -4
- package/dist/flows/deposit/widgets/success-state/SuccessState.js +1 -1
- package/dist/flows/deposit/widgets/transfer-crypto/TransferCrypto.d.ts +34 -3
- package/dist/flows/deposit/widgets/transfer-crypto/TransferCrypto.js +1 -1
- package/dist/flows/deposit/widgets/transfer-crypto/compound/TransferCrypto.d.ts +1 -1
- package/dist/flows/deposit/widgets/transfer-crypto/compound/TransferCrypto.styles.js +1 -1
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Address.js +1 -1
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Disclosure.d.ts +5 -2
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Disclosure.js +1 -1
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Header.d.ts +6 -0
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Header.js +1 -1
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/QrCode.d.ts +4 -10
- package/dist/flows/deposit/widgets/transfer-crypto/compound/components/QrCode.js +1 -1
- package/dist/flows/deposit/widgets/transfer-crypto/compound/types.d.ts +16 -2
- package/dist/flows/shared/transformers/computeQuoteAttrs.d.ts +1 -0
- package/dist/flows/shared/transformers/index.d.ts +1 -0
- package/dist/flows/shared/transformers/pickRelevantSettlement.d.ts +1 -0
- package/dist/flows/shared/transformers/pickRelevantSettlement.js +1 -1
- package/dist/flows/shared/transformers/testnets.js +1 -0
- package/dist/flows/withdraw/bindings/WithdrawBindings.d.ts +92 -0
- package/dist/flows/withdraw/bindings/WithdrawBindings.js +1 -0
- package/dist/flows/withdraw/bindings/index.d.ts +1 -0
- package/dist/flows/withdraw/bindings/index.js +1 -0
- package/dist/flows/withdraw/dialog/WithdrawDialog.d.ts +44 -71
- package/dist/flows/withdraw/dialog/WithdrawDialog.js +1 -1
- package/dist/flows/withdraw/driver/dto.d.ts +8 -7
- package/dist/flows/withdraw/driver/payloads.d.ts +16 -1
- package/dist/flows/withdraw/driver/transformers/settlementToWithdrawalPayload.js +1 -1
- package/dist/flows/withdraw/driver/transformers/supportedAssetsToReceiveOptionsPayload.js +1 -1
- package/dist/flows/withdraw/driver/types.d.ts +77 -14
- package/dist/flows/withdraw/orchestrator/controller.js +1 -1
- package/dist/flows/withdraw/orchestrator/index.d.ts +1 -1
- package/dist/flows/withdraw/orchestrator/reducer.js +1 -1
- package/dist/flows/withdraw/orchestrator/types.d.ts +218 -35
- package/dist/flows/withdraw/orchestrator/useWithdraw.d.ts +36 -1
- package/dist/flows/withdraw/orchestrator/useWithdraw.js +1 -1
- package/dist/flows/withdraw/widgets/activity/WithdrawActivityDetail.d.ts +39 -0
- 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/compound/Withdraw.d.ts +60 -0
- package/dist/flows/withdraw/widgets/withdraw/compound/Withdraw.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw/compound/Withdraw.slots.d.ts +13 -0
- package/dist/flows/withdraw/widgets/withdraw/compound/Withdraw.slots.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw/compound/components/Boundary.d.ts +29 -0
- package/dist/flows/withdraw/widgets/withdraw/compound/components/Boundary.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw/compound/components/Guards.d.ts +25 -0
- package/dist/flows/withdraw/widgets/withdraw/compound/components/Guards.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw/compound/components/Steps.d.ts +27 -0
- package/dist/flows/withdraw/widgets/withdraw/compound/components/Steps.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw/compound/index.d.ts +3 -0
- package/dist/flows/withdraw/widgets/withdraw/compound/index.js +1 -0
- package/dist/flows/withdraw/widgets/withdraw-error/WithdrawError.d.ts +45 -2
- package/dist/flows/withdraw/widgets/withdraw-error/WithdrawError.js +1 -1
- package/dist/flows/withdraw/widgets/withdraw-form/WithdrawForm.d.ts +32 -12
- package/dist/flows/withdraw/widgets/withdraw-form/WithdrawForm.js +1 -1
- package/dist/flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.js +1 -1
- 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 +6 -1
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/Header.js +1 -1
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/RecipientField.d.ts +7 -5
- package/dist/flows/withdraw/widgets/withdraw-form/compound/components/RecipientField.js +1 -1
- package/dist/flows/withdraw/widgets/withdraw-form/compound/types.d.ts +15 -5
- package/dist/flows/withdraw/widgets/withdraw-form/validation.js +1 -1
- package/dist/flows/withdraw/widgets/withdraw-in-progress/WithdrawInProgress.d.ts +39 -3
- package/dist/flows/withdraw/widgets/withdraw-in-progress/WithdrawInProgress.js +1 -1
- package/dist/flows/withdraw/widgets/withdraw-success/WithdrawSuccess.d.ts +46 -2
- package/dist/flows/withdraw/widgets/withdraw-success/WithdrawSuccess.js +1 -1
- package/dist/format/index.d.ts +2 -1
- package/dist/format/index.js +1 -1
- package/dist/i18n/index.d.ts +5 -4
- package/dist/i18n/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 +12 -0
- package/dist/i18n/locales/source-keys.js +0 -0
- package/dist/icons/index.d.ts +12 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +36 -11
- package/dist/index.js +1 -1
- package/dist/package.js +1 -1
- package/dist/scope/KitPortalScope.js +1 -1
- package/dist/scope/KitScope.d.ts +27 -1
- package/dist/scope/KitScope.js +1 -1
- package/dist/scope/context.d.ts +24 -1
- package/dist/scope/index.d.ts +1 -1
- package/dist/shared/attribution/Attribution.js +1 -0
- package/dist/shared/attribution/Attribution.slots.js +1 -0
- package/dist/shared/attribution/Attribution.styles.js +1 -0
- package/dist/shared/attribution/index.js +1 -0
- package/dist/shared/chains/index.d.ts +48 -29
- package/dist/shared/chains/index.js +1 -1
- package/dist/shared/constants/brand-intercom.js +1 -0
- package/dist/shared/cuer/Cuer.js +1 -1
- package/dist/shared/dialog/DialogShell.d.ts +21 -6
- package/dist/shared/dialog/DialogShell.js +1 -1
- package/dist/shared/dialog/Frame.js +1 -1
- package/dist/shared/dialog/LoadingState.js +1 -0
- package/dist/shared/dialog/LoadingState.styles.js +1 -0
- package/dist/shared/dialog/StepTransition.js +1 -1
- package/dist/shared/dialog/useDirectionalChevronTransform.js +1 -1
- package/dist/shared/driver/types.d.ts +4 -3
- 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/i18n/KitI18nProvider.d.ts +11 -8
- package/dist/shared/i18n/KitI18nProvider.js +1 -1
- package/dist/shared/i18n/createKitI18n.d.ts +79 -16
- package/dist/shared/i18n/createKitI18n.js +1 -1
- package/dist/shared/i18n/useLingui.d.ts +11 -3
- package/dist/shared/icons/ActivityIcon.d.ts +12 -0
- package/dist/shared/icons/ActivityIcon.js +1 -0
- package/dist/shared/icons/AmexIcon.d.ts +14 -0
- package/dist/shared/icons/AmexIcon.js +1 -0
- package/dist/shared/icons/ApplePayIcon.d.ts +15 -0
- package/dist/shared/icons/ApplePayIcon.js +1 -0
- package/dist/shared/icons/BitcoinIcon.d.ts +17 -0
- package/dist/shared/icons/BitcoinIcon.js +1 -0
- package/dist/shared/icons/CardIcon.d.ts +16 -0
- package/dist/shared/icons/CardIcon.js +1 -0
- package/dist/shared/icons/CashIcon.d.ts +16 -0
- package/dist/shared/icons/CashIcon.js +1 -0
- package/dist/shared/icons/DiscoverIcon.d.ts +14 -0
- package/dist/shared/icons/DiscoverIcon.js +1 -0
- package/dist/shared/icons/GooglePayIcon.d.ts +15 -0
- package/dist/shared/icons/GooglePayIcon.js +1 -0
- package/dist/shared/icons/LogoIcon.d.ts +13 -0
- package/dist/shared/icons/LogoIcon.js +1 -0
- package/dist/shared/icons/MastercardIcon.d.ts +16 -0
- package/dist/shared/icons/MastercardIcon.js +1 -0
- package/dist/shared/icons/VisaIcon.d.ts +15 -0
- package/dist/shared/icons/VisaIcon.js +1 -0
- package/dist/shared/merchant-link/MerchantLink.d.ts +1 -0
- package/dist/shared/merchant-link/MerchantLink.js +1 -0
- package/dist/shared/merchant-link/MerchantLinkButton.d.ts +1 -0
- package/dist/shared/merchant-link/MerchantLinkButton.js +1 -0
- package/dist/shared/merchant-link/index.d.ts +1 -0
- package/dist/shared/merchant-link/index.js +1 -0
- package/dist/shared/merchant-link/resolveMerchantLink.js +1 -0
- 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/orchestrator/toFailure.js +1 -1
- package/dist/shared/orchestrator/types.d.ts +8 -0
- package/dist/shared/orchestrator/useSettlementWatcher.js +1 -1
- package/dist/shared/presentation/index.js +1 -0
- package/dist/shared/presentation/types.d.ts +30 -0
- package/dist/shared/presentation/types.js +1 -0
- package/dist/shared/presentation/useResolvedSurfaceKind.js +1 -0
- package/dist/shared/primitives/TxHashValue/TxHashValue.js +1 -1
- package/dist/shared/support/SupportConfigContext.d.ts +1 -0
- package/dist/shared/support/SupportConfigContext.js +1 -0
- package/dist/shared/support/SupportLink.d.ts +1 -0
- package/dist/shared/support/SupportLink.js +1 -0
- package/dist/shared/support/SupportSpinner.d.ts +1 -0
- package/dist/shared/support/SupportSpinner.js +1 -0
- package/dist/shared/support/index.d.ts +2 -0
- package/dist/shared/support/index.js +1 -0
- package/dist/shared/support/intercom-loader.d.ts +17 -0
- package/dist/shared/support/intercom-loader.js +1 -0
- package/dist/shared/support/types.d.ts +43 -0
- package/dist/shared/support/useIntercomMerchantContext.d.ts +27 -0
- package/dist/shared/support/useIntercomMerchantContext.js +1 -0
- package/dist/shared/support/useIntercomShutdownOnUnmount.js +1 -0
- package/dist/shared/support/useMerchantContext.d.ts +1 -0
- package/dist/shared/support/useMerchantContext.js +1 -0
- package/dist/shared/support/useSupportTrigger.js +1 -0
- package/dist/shared/terms/TermsConfigContext.d.ts +1 -0
- package/dist/shared/terms/TermsConfigContext.js +1 -0
- package/dist/shared/terms/TermsLink.d.ts +1 -0
- package/dist/shared/terms/TermsLink.js +1 -0
- package/dist/shared/terms/index.d.ts +1 -0
- package/dist/shared/terms/index.js +1 -0
- package/dist/shared/terms/types.d.ts +43 -0
- package/dist/shared/ui/AdaptiveSurface/AdaptiveSurface.d.ts +52 -0
- package/dist/shared/ui/AdaptiveSurface/AdaptiveSurface.js +1 -0
- package/dist/shared/ui/AdaptiveSurface/index.d.ts +2 -0
- package/dist/shared/ui/AdaptiveSurface/index.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/Details/Details.d.ts +9 -1
- package/dist/shared/ui/Details/Details.styles.js +1 -1
- package/dist/shared/ui/Dialog/Dialog.d.ts +10 -8
- package/dist/shared/ui/Dialog/Dialog.js +1 -1
- package/dist/shared/ui/Dialog/Dialog.styles.js +1 -1
- package/dist/shared/ui/Drawer/Drawer.d.ts +135 -0
- package/dist/shared/ui/Drawer/Drawer.js +1 -0
- package/dist/shared/ui/Drawer/Drawer.slots.d.ts +19 -0
- package/dist/shared/ui/Drawer/Drawer.slots.js +1 -0
- package/dist/shared/ui/Drawer/Drawer.styles.js +1 -0
- package/dist/shared/ui/Drawer/index.d.ts +2 -0
- package/dist/shared/ui/Drawer/index.js +1 -0
- package/dist/shared/ui/Select/Select.js +1 -1
- package/dist/shared/ui/SelectableTile/SelectableTile.d.ts +21 -8
- package/dist/shared/ui/SelectableTile/SelectableTile.js +1 -1
- package/dist/shared/ui/Steps/Steps.d.ts +52 -0
- package/dist/shared/ui/Steps/Steps.js +1 -0
- package/dist/shared/ui/Steps/Steps.slots.d.ts +7 -0
- package/dist/shared/ui/Steps/Steps.slots.js +1 -0
- package/dist/shared/ui/Steps/Steps.styles.js +1 -0
- package/dist/shared/ui/Steps/index.d.ts +2 -0
- package/dist/shared/ui/Steps/index.js +1 -0
- package/dist/shared/ui/Tabs/Tabs.d.ts +79 -0
- package/dist/shared/ui/Tabs/Tabs.js +1 -0
- package/dist/shared/ui/Tabs/Tabs.slots.d.ts +11 -0
- package/dist/shared/ui/Tabs/Tabs.slots.js +1 -0
- package/dist/shared/ui/Tabs/Tabs.styles.js +1 -0
- package/dist/shared/ui/Tabs/index.d.ts +2 -0
- package/dist/shared/ui/Tabs/index.js +1 -0
- package/dist/shared/ui/WalletRow/WalletRow.d.ts +1 -1
- package/dist/shared/ui/WalletRow/WalletRow.js +1 -1
- package/dist/shared/ui/surfaceContext.d.ts +9 -0
- package/dist/shared/ui/surfaceContext.js +1 -0
- package/dist/shared/utils/assertNever.js +1 -0
- package/dist/shared/utils/logos/types.d.ts +1 -1
- package/dist/shared/utils/useDeepMemo.js +1 -0
- package/dist/shared/wallet/ConnectWalletContext.d.ts +17 -0
- package/dist/shared/wallet/ConnectWalletContext.js +1 -0
- package/dist/shared/widgets/activity/ActivityTrigger.js +1 -0
- package/dist/shared/widgets/activity/ActivityTrigger.styles.js +1 -0
- 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/compound/ActivityDetail.d.ts +82 -0
- 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/compound/components/ActivityHeader.d.ts +39 -0
- package/dist/shared/widgets/activity/compound/components/ActivityHeader.js +1 -0
- package/dist/shared/widgets/activity/compound/components/Empty.d.ts +15 -0
- package/dist/shared/widgets/activity/compound/components/Empty.js +1 -0
- package/dist/shared/widgets/activity/compound/components/ErrorView.d.ts +26 -0
- 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/compound/components/Row.d.ts +51 -0
- 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/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/activity/transformers/resolveDirection.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/AmountEntry.d.ts +10 -2
- package/dist/shared/widgets/amount-entry/compound/AmountEntry.js +1 -1
- package/dist/shared/widgets/amount-entry/compound/AmountEntry.slots.d.ts +6 -0
- package/dist/shared/widgets/amount-entry/compound/AmountEntry.slots.js +1 -1
- package/dist/shared/widgets/amount-entry/compound/AmountEntry.styles.js +1 -1
- package/dist/shared/widgets/amount-entry/compound/components/Details.d.ts +34 -0
- package/dist/shared/widgets/amount-entry/compound/components/Details.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/components/Footer.d.ts +2 -1
- package/dist/shared/widgets/amount-entry/compound/components/Footer.js +1 -1
- package/dist/shared/widgets/amount-entry/compound/components/Header.d.ts +6 -1
- package/dist/shared/widgets/amount-entry/compound/components/Header.js +1 -1
- package/dist/shared/widgets/amount-entry/compound/components/Hero/Hero.js +1 -1
- package/dist/shared/widgets/amount-entry/compound/components/Hero/SwapBackdrop.js +1 -1
- package/dist/shared/widgets/amount-entry/compound/components/Notice.d.ts +7 -0
- package/dist/shared/widgets/amount-entry/compound/components/Notice.js +1 -0
- package/dist/shared/widgets/amount-entry/compound/index.d.ts +1 -1
- package/dist/shared/widgets/amount-entry/compound/types.d.ts +63 -3
- package/dist/shared/widgets/asset-picker/compound/AssetPicker.d.ts +3 -0
- package/dist/shared/widgets/asset-picker/compound/AssetPicker.js +1 -1
- package/dist/shared/widgets/asset-picker/compound/AssetPicker.slots.d.ts +2 -0
- package/dist/shared/widgets/asset-picker/compound/AssetPicker.slots.js +1 -1
- package/dist/shared/widgets/asset-picker/compound/AssetPicker.styles.js +1 -1
- package/dist/shared/widgets/asset-picker/compound/components/Asset.d.ts +7 -1
- package/dist/shared/widgets/asset-picker/compound/components/Asset.js +1 -1
- package/dist/shared/widgets/asset-picker/compound/components/Empty.d.ts +15 -0
- package/dist/shared/widgets/asset-picker/compound/components/Empty.js +1 -0
- package/dist/shared/widgets/asset-picker/compound/components/Header.d.ts +6 -1
- package/dist/shared/widgets/asset-picker/compound/components/Header.js +1 -1
- package/dist/shared/widgets/asset-picker/compound/types.d.ts +15 -1
- package/dist/shared/widgets/confirm-transfer/compound/ConfirmTransfer.styles.js +1 -1
- package/dist/shared/widgets/confirm-transfer/compound/components/Breakdown.js +1 -1
- package/dist/shared/widgets/confirm-transfer/compound/components/Disclaimer.d.ts +4 -3
- package/dist/shared/widgets/confirm-transfer/compound/components/Disclaimer.js +1 -1
- package/dist/shared/widgets/confirm-transfer/compound/components/QuoteTimer.js +1 -1
- package/dist/shared/widgets/error-state/compound/components/AssetValue.js +1 -1
- package/dist/shared/widgets/error-state/compound/components/HelpInfo.js +1 -1
- package/dist/shared/widgets/error-state/compound/components/MoreDetails.d.ts +1 -1
- package/dist/shared/widgets/error-state/compound/components/MoreDetails.js +1 -1
- package/dist/shared/widgets/error-state/compound/components/StatusValue.js +1 -1
- package/dist/shared/widgets/processing-state/compound/ProcessingState.d.ts +1 -5
- package/dist/shared/widgets/processing-state/compound/ProcessingState.js +1 -1
- package/dist/shared/widgets/processing-state/compound/ProcessingState.slots.d.ts +0 -1
- package/dist/shared/widgets/processing-state/compound/ProcessingState.slots.js +1 -1
- package/dist/shared/widgets/processing-state/compound/ProcessingState.styles.js +1 -1
- package/dist/shared/widgets/processing-state/compound/components/Details.d.ts +6 -1
- package/dist/shared/widgets/processing-state/compound/components/Details.js +1 -1
- package/dist/shared/widgets/processing-state/compound/components/Header.d.ts +4 -3
- package/dist/shared/widgets/processing-state/compound/components/Header.js +1 -1
- package/dist/shared/widgets/processing-state/compound/components/Hero.d.ts +14 -7
- package/dist/shared/widgets/processing-state/compound/components/Hero.js +1 -1
- package/dist/shared/widgets/processing-state/compound/components/Rows.js +1 -1
- package/dist/shared/widgets/processing-state/compound/components/StatusPill.js +1 -1
- package/dist/shared/widgets/processing-state/compound/components/splitAmount.js +1 -0
- package/dist/shared/widgets/processing-state/compound/index.d.ts +1 -1
- package/dist/shared/widgets/processing-state/compound/types.d.ts +11 -29
- package/dist/shared/widgets/success-state/compound/components/Actions.js +1 -1
- package/dist/shared/widgets/success-state/compound/components/AssetValue.js +1 -1
- package/dist/shared/widgets/success-state/compound/components/MoreDetails.d.ts +1 -1
- package/dist/shared/widgets/success-state/compound/components/MoreDetails.js +1 -1
- package/dist/shared/widgets/success-state/compound/components/RouteValue.js +1 -1
- package/dist/shared/widgets/success-state/compound/components/StatusPill.js +1 -1
- package/dist/shared/widgets/success-state/compound/types.d.ts +5 -5
- package/dist/storage/context.d.ts +9 -1
- package/dist/storage/context.js +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/stridge/StridgeProvider.d.ts +187 -35
- package/dist/stridge/StridgeProvider.js +1 -1
- package/dist/stridge/depositOwner.js +1 -0
- package/dist/stridge/optionalWagmi.js +1 -0
- package/dist/stridge/stubs.js +1 -1
- package/dist/styles/index.css +607 -12
- package/dist/types.d.ts +7 -5
- package/dist/ui/index.d.ts +9 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.d.ts +10 -0
- package/dist/version.js +1 -0
- package/dist/withdraw/compound/index.d.ts +11 -8
- package/dist/withdraw/compound/index.js +1 -1
- package/dist/withdraw/dialog/index.d.ts +4 -1
- package/dist/withdraw/widgets/index.d.ts +7 -0
- package/dist/withdraw/widgets/index.js +1 -0
- package/package.json +31 -7
- package/dist/_internal/deposit/widgets/index.d.ts +0 -11
- package/dist/_internal/deposit/widgets/index.js +0 -1
- package/dist/_internal/withdraw/widgets/index.d.ts +0 -5
- package/dist/_internal/withdraw/widgets/index.js +0 -1
- package/dist/flows/withdraw/dialog/WithdrawDialogEventsContext.d.ts +0 -36
- package/dist/flows/withdraw/dialog/WithdrawDialogEventsContext.js +0 -1
- package/dist/shared/widgets/processing-state/compound/components/Actions.d.ts +0 -17
- package/dist/shared/widgets/processing-state/compound/components/Actions.js +0 -1
- package/dist/stridge/StridgeContext.d.ts +0 -29
- package/dist/stridge/StridgeContext.js +0 -1
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SuccessStateBodyProps, SuccessStateRowProps } from "../../../../shared/widgets/success-state/compound/types.js";
|
|
2
|
+
import { SuccessStateActions } from "../../../../shared/widgets/success-state/compound/components/Actions.js";
|
|
3
|
+
import { SuccessStateDetails } from "../../../../shared/widgets/success-state/compound/components/Details.js";
|
|
4
|
+
import { SuccessStateHeader } from "../../../../shared/widgets/success-state/compound/components/Header.js";
|
|
5
|
+
import { SuccessStateHeadline } from "../../../../shared/widgets/success-state/compound/components/Headline.js";
|
|
6
|
+
import { SuccessStateMoreDetails } from "../../../../shared/widgets/success-state/compound/components/MoreDetails.js";
|
|
7
|
+
import { SuccessStateCompletionTxRow, SuccessStateDestinationRow, SuccessStateFillStatusRow, SuccessStateFilledAtRow, SuccessStateSourceRow, SuccessStateSubmittedAtRow, SuccessStateTotalTimeRow, SuccessStateYouReceiveRow } from "../../../../shared/widgets/success-state/compound/components/Rows.js";
|
|
8
|
+
import { ComponentProps, ReactNode } from "react";
|
|
2
9
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
10
|
|
|
4
11
|
//#region src/flows/withdraw/widgets/withdraw-success/WithdrawSuccess.d.ts
|
|
@@ -15,6 +22,43 @@ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
|
15
22
|
*
|
|
16
23
|
* Renders only when the FSM is on `success`.
|
|
17
24
|
*/
|
|
18
|
-
|
|
25
|
+
interface WithdrawSuccessOwnProps {
|
|
26
|
+
/**
|
|
27
|
+
* Optional custom composition. Defaults to the withdraw-tuned receipt: `<Header />` +
|
|
28
|
+
* `<Body><Headline /><Details><FillStatusRow /><TotalTimeRow /><DestinationRow />
|
|
29
|
+
* <YouReceiveRow /><MoreDetails>…tx rows…</MoreDetails></Details></Body>` + `<Actions />`.
|
|
30
|
+
* The default conditionally mounts `<MoreDetails>` when at least one of the tx / timestamp
|
|
31
|
+
* fields is available. Pass children to interleave your own elements.
|
|
32
|
+
*/
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
}
|
|
35
|
+
declare function WithdrawSuccess({
|
|
36
|
+
children,
|
|
37
|
+
...props
|
|
38
|
+
}: ComponentProps<"div"> & WithdrawSuccessOwnProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
39
|
+
/**
|
|
40
|
+
* Withdraw-tuned default for the source-tx row label. Without this wrapper, hosts composing
|
|
41
|
+
* `<WithdrawSuccess.DepositTxRow />` would inherit the deposit-flow's "Deposit tx" default —
|
|
42
|
+
* the wrong copy for a withdrawal. Host-supplied `label` overrides.
|
|
43
|
+
*/
|
|
44
|
+
declare function WithdrawSuccessDepositTxRow(props?: SuccessStateRowProps): _$react_jsx_runtime0.JSX.Element;
|
|
45
|
+
declare namespace WithdrawSuccess {
|
|
46
|
+
type Props = ComponentProps<"div"> & WithdrawSuccessOwnProps;
|
|
47
|
+
const Header: typeof SuccessStateHeader;
|
|
48
|
+
const Body: (props: SuccessStateBodyProps) => _$react_jsx_runtime0.JSX.Element;
|
|
49
|
+
const Headline: typeof SuccessStateHeadline;
|
|
50
|
+
const Details: typeof SuccessStateDetails;
|
|
51
|
+
const FillStatusRow: typeof SuccessStateFillStatusRow;
|
|
52
|
+
const TotalTimeRow: typeof SuccessStateTotalTimeRow;
|
|
53
|
+
const SourceRow: typeof SuccessStateSourceRow;
|
|
54
|
+
const DestinationRow: typeof SuccessStateDestinationRow;
|
|
55
|
+
const YouReceiveRow: typeof SuccessStateYouReceiveRow;
|
|
56
|
+
const MoreDetails: typeof SuccessStateMoreDetails;
|
|
57
|
+
const DepositTxRow: typeof WithdrawSuccessDepositTxRow;
|
|
58
|
+
const CompletionTxRow: typeof SuccessStateCompletionTxRow;
|
|
59
|
+
const SubmittedAtRow: typeof SuccessStateSubmittedAtRow;
|
|
60
|
+
const FilledAtRow: typeof SuccessStateFilledAtRow;
|
|
61
|
+
const Actions: typeof SuccessStateActions;
|
|
62
|
+
}
|
|
19
63
|
//#endregion
|
|
20
64
|
export { WithdrawSuccess };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{useLingui as e}from"../../../../shared/i18n/useLingui.js";import"../../../../i18n/index.js";import{useWithdrawSnapshot as t}from"../../driver/context.js";import{useWithdrawActions as n,useWithdrawEffectiveState as r}from"../../orchestrator/controller.js";import{
|
|
1
|
+
"use client";import{useLingui as e}from"../../../../shared/i18n/useLingui.js";import"../../../../i18n/index.js";import{useWithdrawSnapshot as t}from"../../driver/context.js";import{useWithdrawActions as n,useWithdrawEffectiveState as r}from"../../orchestrator/controller.js";import{SuccessState as i}from"../../../../shared/widgets/success-state/compound/SuccessState.js";import"../../../../shared/widgets/success-state/compound/index.js";import{toAssetDescriptor as a}from"../../../../shared/widgets/asset-descriptor.js";import{Fragment as o,jsx as s,jsxs as c}from"react/jsx-runtime";function l({children:l,...u}){let d=t(),f=r(),{close:p}=n(),{_:m}=e();if(f.name!==`success`)return null;let h=d.settlement,g=(h.status===`ready`||h.status===`stale`)&&h.payload.kind===`succeeded`?h.payload:void 0,_=f.ctx.input,v=d.quote,y=v.status===`ready`||v.status===`stale`?v.payload:void 0,b=a(g?.receiveAsset??y?.receiveAsset)??{symbol:_.receiveTokenSymbol},x=g?.receiveAmount.formatted??y?.receiveAmount.formatted??``,S=g?.recipient.formatted,C=g?.txHash?{hash:g.txHash.formatted,explorerUrl:g.txExplorerUrl}:void 0,w=g?.completionTx?{hash:g.completionTx.hash.formatted,...g.completionTx.explorerUrl?{explorerUrl:g.completionTx.explorerUrl}:{}}:void 0;return s(i,{...u,amount:x,creditedAsset:b,creditedTo:S,depositTx:C,...w?{completionTx:w}:{},submittedAt:g?.submittedAt.formatted,filledAt:g?.filledAt.formatted,totalTime:g?.totalTime.formatted,headerTitle:m({id:`q32Nt8`,message:`Withdrawal complete`}),headlineTitle:m({id:`_girqu`,message:`Withdrawal successful`}),headlineDescription:m({id:`flMR3h`,message:`Your funds were successfully withdrawn.`}),onDone:p,doneLabel:m({id:`DPfwMq`,message:`Done`}),children:l??c(o,{children:[s(i.Header,{}),c(i.Body,{children:[s(i.Headline,{}),c(i.Details,{children:[s(i.FillStatusRow,{}),s(i.TotalTimeRow,{}),s(i.DestinationRow,{}),s(i.YouReceiveRow,{}),C||w||g?.submittedAt||g?.filledAt?c(i.MoreDetails,{children:[s(i.DepositTxRow,{label:m({id:`60ahSE`,message:`Withdrawal tx`})}),s(i.CompletionTxRow,{}),s(i.SubmittedAtRow,{}),s(i.FilledAtRow,{})]}):null]})]}),s(i.Actions,{})]})})}function u(t={}){let{_:n}=e();return s(i.DepositTxRow,{...t,label:t.label??n({id:`60ahSE`,message:`Withdrawal tx`})})}(function(e){e.Header=i.Header,e.Body=i.Body,e.Headline=i.Headline,e.Details=i.Details,e.FillStatusRow=i.FillStatusRow,e.TotalTimeRow=i.TotalTimeRow,e.SourceRow=i.SourceRow,e.DestinationRow=i.DestinationRow,e.YouReceiveRow=i.YouReceiveRow,e.MoreDetails=i.MoreDetails,e.DepositTxRow=u,e.CompletionTxRow=i.CompletionTxRow,e.SubmittedAtRow=i.SubmittedAtRow,e.FilledAtRow=i.FilledAtRow,e.Actions=i.Actions})(l||={});export{l as WithdrawSuccess};
|
package/dist/format/index.d.ts
CHANGED
|
@@ -2,9 +2,10 @@ import { formatDurationCoarse } from "../shared/format/formatDurationCoarse.js";
|
|
|
2
2
|
import { formatDurationCompact } from "../shared/format/formatDurationCompact.js";
|
|
3
3
|
import { formatNetworkName } from "../shared/format/formatNetworkName.js";
|
|
4
4
|
import { formatPercent } from "../shared/format/formatPercent.js";
|
|
5
|
+
import { formatSmartRelative } from "../shared/format/formatSmartRelative.js";
|
|
5
6
|
import { formatTimestamp } from "../shared/format/formatTimestamp.js";
|
|
6
7
|
import { FormatTokenAmountOptions, formatTokenAmount } from "../shared/format/formatTokenAmount.js";
|
|
7
8
|
import { FormatUsdOptions, formatUsd } from "../shared/format/formatUsd.js";
|
|
8
9
|
import { shortenAddress } from "../shared/format/shortenAddress.js";
|
|
9
10
|
import { FormattedField } from "../shared/format/types.js";
|
|
10
|
-
export { type FormatTokenAmountOptions, type FormatUsdOptions, type FormattedField, formatDurationCoarse, formatDurationCompact, formatNetworkName, formatPercent, formatTimestamp, formatTokenAmount, formatUsd, shortenAddress };
|
|
11
|
+
export { type FormatTokenAmountOptions, type FormatUsdOptions, type FormattedField, formatDurationCoarse, formatDurationCompact, formatNetworkName, formatPercent, formatSmartRelative, formatTimestamp, formatTokenAmount, formatUsd, shortenAddress };
|
package/dist/format/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{formatDurationCoarse as e}from"../shared/format/formatDurationCoarse.js";import{formatDurationCompact as t}from"../shared/format/formatDurationCompact.js";import{formatNetworkName as n}from"../shared/format/formatNetworkName.js";import{formatPercent as r}from"../shared/format/formatPercent.js";import{formatTimestamp as i}from"../shared/format/formatTimestamp.js";import{
|
|
1
|
+
import{formatDurationCoarse as e}from"../shared/format/formatDurationCoarse.js";import{formatDurationCompact as t}from"../shared/format/formatDurationCompact.js";import{formatNetworkName as n}from"../shared/format/formatNetworkName.js";import{formatPercent as r}from"../shared/format/formatPercent.js";import{formatTimestamp as i}from"../shared/format/formatTimestamp.js";import{formatSmartRelative as a}from"../shared/format/formatSmartRelative.js";import{formatTokenAmount as o}from"../shared/format/formatTokenAmount.js";import{formatUsd as s}from"../shared/format/formatUsd.js";import{shortenAddress as c}from"../shared/format/shortenAddress.js";export{e as formatDurationCoarse,t as formatDurationCompact,n as formatNetworkName,r as formatPercent,a as formatSmartRelative,i as formatTimestamp,o as formatTokenAmount,s as formatUsd,c as shortenAddress};
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SUPPORTED_LOCALES, SupportedLocale } from "../shared/i18n/locales.js";
|
|
2
|
+
import { KitTranslatableKey } from "./locales/source-keys.js";
|
|
3
|
+
import { KitI18nConfig, KitLocale, KitMessages, createKitI18n, defineMessages } from "../shared/i18n/createKitI18n.js";
|
|
2
4
|
import { getLocaleDirection } from "../shared/i18n/getLocaleDirection.js";
|
|
3
5
|
import { KitI18nProvider } from "../shared/i18n/KitI18nProvider.js";
|
|
4
|
-
import { SUPPORTED_LOCALES, SupportedLocale } from "../shared/i18n/locales.js";
|
|
5
6
|
import { KitTransProps, Trans } from "../shared/i18n/Trans.js";
|
|
6
7
|
import { useKitI18n } from "../shared/i18n/useKitI18n.js";
|
|
7
|
-
import { useLingui } from "../shared/i18n/useLingui.js";
|
|
8
|
+
import { KitLinguiContextValue, useLingui } from "../shared/i18n/useLingui.js";
|
|
8
9
|
import { useT } from "../shared/i18n/useT.js";
|
|
9
|
-
export { type
|
|
10
|
+
export { type KitI18nConfig, KitI18nProvider, type KitLinguiContextValue, type KitLocale, type KitMessages, type KitTransProps, type KitTranslatableKey, SUPPORTED_LOCALES, type SupportedLocale, Trans, createKitI18n, defineMessages, getLocaleDirection, useKitI18n, useLingui, useT };
|
package/dist/i18n/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createKitI18n as e}from"../shared/i18n/createKitI18n.js";import{getLocaleDirection as
|
|
1
|
+
import{createKitI18n as e,defineMessages as t}from"../shared/i18n/createKitI18n.js";import{getLocaleDirection as n}from"../shared/i18n/getLocaleDirection.js";import{KitI18nProvider as r}from"../shared/i18n/KitI18nProvider.js";import{SUPPORTED_LOCALES as i}from"../shared/i18n/locales.js";import{useKitI18n as a}from"../shared/i18n/useKitI18n.js";import{Trans as o}from"../shared/i18n/Trans.js";import{useLingui as s}from"../shared/i18n/useLingui.js";import{useT as c}from"../shared/i18n/useT.js";export{r as KitI18nProvider,i as SUPPORTED_LOCALES,o as Trans,e as createKitI18n,t as defineMessages,n as getLocaleDirection,a as useKitI18n,s as useLingui,c as useT};
|
package/dist/i18n/locales/ar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=JSON.parse(`{"--OGth":["نجح الإيداع"],"-nuEh_":["الوقت المُقدَّر"],"-tu7Q8":["المزيد عن ",["0"]],"02NghK":["
|
|
1
|
+
const e=JSON.parse(`{"--OGth":["نجح الإيداع"],"-I_tc5":["الحد الأقصى ",["formattedCap"]],"-nuEh_":["الوقت المُقدَّر"],"-tu7Q8":["المزيد عن ",["0"]],"02NghK":["أغلق هذا الحوار وحاول مرة أخرى بعد قليل. إذا استمرت المشكلة، فتحقق من مفتاح البوابة في تكاملك."],"0eg2g7":["جاري تقدير الغاز…"],"0lHlRj":["قيد النقل"],"1zDzn9":["الدفع عبر Google Pay"],"2Eoi_a":["عرض التفاصيل"],"3dqPLT":["تحويل العملة الرقمية"],"3eKjkO":["الحد الأدنى للإيداع ",["formattedMin"]],"3kg1gB":["اكتمل الإيداع"],"3qkDVZ":["عرض التفاصيل"],"3yd3IL":["فشل برنامج تشغيل الإيداع في تحميل إعدادات البوابة."],"5AApJw":["اتصل بمحفظة للمتابعة"],"5joj8M":["تفاصيل المعاملة"],"60ahSE":["معاملة السحب"],"64M0UA":["رمز الأمان غير مكتمل"],"69Gavs":["التفاصيل التقنية"],"6D8qH6":["أرسل العملة المختارة على الشبكة المختارة إلى هذا العنوان. تظهر الأموال في حسابك بمجرد تأكيد الشبكة للتحويل."],"6RDwJM":["العملات"],"6ja7nr":["اضغط للدفع"],"6ws9A3":["Apple Pay"],"6yS5kL":["السحب قيد التنفيذ"],"72c5Qo":["الإجمالي"],"7Bj3x9":["فشل"],"7evBec":["وقت المعالجة: ",["resolvedProcessingTime"]],"88cUW-":["تستلم"],"9JHY2T":["تمت إضافة أموال إيداعك إلى حسابك."],"9XIJb8":["T…"],"9cCjMJ":["إيداع الحد الأقصى من الرصيد"],"< 1 min":["< دقيقة"],"AHyker":["الحد الأقصى ",["0"]],"AO44G_":["عرض الإيصال"],"AOPSKq":["إيداع ",["0"]],"AWtGgd":["احصل على المساعدة"],"AeXO77":["حساب"],"AeZIvT":["ستستلم"],"AikETk":["الحد الأدنى ",["minDeposit"]],"B-4zEC":["تعذر تحميل النشاط. حاول مرة أخرى."],"BhQhbU":["استخدم عنوان المستلم المقترح"],"BoQOH3":["يلزم وجود محفظة لإجراء الإيداع"],"C7cyXd":["تغطي رسوم المعالجة تكلفة معالجة دفعتك عبر طريقة الدفع المختارة."],"CK1KXz":["الأقصى"],"CS69m9":["الدفع بالعملة الرقمية"],"Ck1xL4":["ترسل"],"Cs44l6":["الإيداع قيد التنفيذ"],"D79cZK":["فوري"],"DO0IYK":["تاريخ الانتهاء غير صالح"],"DPfwMq":["تم"],"Dd7jP5":["تواجه مشكلات؟"],"DoS2vD":["إخفاء التفاصيل التقنية"],"ELhVSL":["فشل إرسال الإيداع."],"Ej5HL9":["رُفض التوقيع. حاول مرة أخرى."],"Enslfm":["الوجهة"],"FWbwx6":["Cash deposit unavailable for your account"],"FkAVbF":["جاري الدفع عبر Google Pay"],"G-SK3q":["واجهت الواجهة خطأً غير متوقع وتعذَّر إكمال العرض. حاول مرة أخرى، أو أغلق هذا الحوار وأعد المحاولة من التطبيق."],"GX8GKD":["الأصول"],"GXkBas":["الحد الأقصى ",["formattedLimit"]],"GZPxmc":["أدخل عنوان مستلم صالحاً"],"GcuGHR":["تمت الإضافة إلى ",["captionSuffix"]],"GwkmPx":["تبديل المبلغ المعروض"],"HalPBQ":["الشحن إلى"],"I2Iug_":["ادفع ",["amountFormatted"]," بأمان"],"IDt4jm":[["0","plural",{"zero":["#"," ثانية"],"one":["#"," ثانية"],"two":["#"," ثانية"],"few":["#"," ثوانٍ"],"many":["#"," ثانية"],"other":["#"," ثانية"]}]," متبقية على عرض السعر"],"IRogzB":["تمت إضافة أموال إيداعك إلى ",["brand"],"."],"JYp-ic":["Deposit processing"],"KDw4GX":["حاول مرة أخرى"],"KGoAE6":["تلقائي · ",["value"]],"KTNWsg":["فشل السحب"],"KuqCAK":["~ 2 دقيقة"],"LEbOpR":["مزيد من التفاصيل"],"LSs4cd":["الدفع نقداً"],"Ly6geA":["جاري إعادة احتساب عرض السعر…"],"MZ_nQf":["عنوان المستلم"],"N2DUxS":["رصيد غير كافٍ"],"OLF0i7":["تعذَّر تحميل خيارات الإيداع"],"OSBXx5":["الآن"],"Offl0a":["ستُضاف أموال إيداعك إلى حسابك."],"Oi8TiZ":["عرض التقدم"],"OsyKSt":["سحب"],"P9fBwv":["Stack"],"PiH3UR":["تم النسخ!"],"PknXwq":["ادفع الآن"],"Q12Rrs":["معاملة الإيداع"],"QFwptY":["رسوم المعالجة"],"QU2cIs":["لديك أسئلة؟"],"Qdn2XH":["الشراء عبر Google Pay"],"Rm325-":["سحب ",["amount"],"، ",["date"]],"Rxjdjn":["لم يكتمل الإيداع"],"SMl3YV":["رقم البطاقة غير مكتمل"],"SOVBoe":["نسخ عنوان الإيداع"],"SZRUQ4":["أقصى انزلاق سعري"],"Sjplg3":["عرض في المستكشف"],"SlfejT":["خطأ"],"TG4WOd":["ستُضاف أموال إيداعك إلى ",["brand"],"."],"TMA5Ot":["جاري الدفع عبر Apple Pay"],"TT0aVH":["تم إرسال الطلب"],"Uevt3L":["جاري تقدير العرض"],"UqHbdz":["إغلاق إشعار الإيداع قيد التنفيذ"],"V1fa9u":["عرض المزيد"],"VAZUpd":["فشل الطلب"],"VAxOSg":["تدفع"],"VHOVEJ":["اتصل بالمحفظة"],"WkRH60":["الحد الأدنى ",["0"]],"Wqz0SO":["رصيد منخفض"],"WsByvK":["الدفع عبر Apple Pay"],"XFvFyp":["تم إرسال تفاصيل البطاقة"],"XJOV1Y":["Activity"],"Xzw7uC":["ستظهر إيداعاتك وعمليات السحب هنا."],"YKfMl6":["جاري تحميل إدخال البطاقة الآمن..."],"YruUmm":["تاريخ الانتهاء غير مكتمل"],"Z1WbO6":["الأموال آمنة على شبكة المصدر — تواصل مع الدعم للاسترجاع."],"ZqugiS":["الرصيد: ",["0"]," ",["1"]],"_QZdX-":["تم سحب أموالك بنجاح."],"_girqu":["نجح السحب"],"_kXBrK":["إجمالي الوقت"],"a2WllD":["العملة المستلمة"],"aXFOuf":["لا يوجد نشاط بعد"],"aiEUrg":["إظهار التفاصيل التقنية"],"bAy57M":["الدفع بالبطاقة"],"bGtkfz":["تاريخ الانتهاء"],"bOZXx5":["تحديث الطلب"],"bZnukT":["تكلفة الشبكة"],"c3aao_":["View activity"],"c6Bl9M":["تبديل التفاصيل التقنية"],"cGYrpE":["تطبَّق الشروط"],"cHPbBJ":["تعذَّر على الجسر تمويل معاملة الوجهة (نفد رصيد الغاز)."],"cxR5Qy":["معاملة التسوية"],"e3xU5E":["تم استلام الإيداع"],"eUbBqz":["1 ",["0"]," = ",["1"]],"f-nEg4":["تُدفع رسوم الشبكة لعمَّال التعدين ومدققي البلوكشين لضمان معالجة المعاملة وتأكيدها."],"fKSGnu":["الحد الأدنى للمبلغ المطلوب على هذه الشبكة لتغطية رسوم الشبكة والتوجيه."],"fWsBTs":["حدث خطأ. حاول مرة أخرى."],"flMR3h":["تم سحب أموالك بنجاح."],"g2UNkE":["مشغل بواسطة"],"gfh8CC":["الشبكات"],"hBIHD-":["إيداع ",["amount"],"، ",["date"]],"hKMHs1":["الفرق بين الناتج المتوقع للمسار وسعر السوق الأوسط الأساسي."],"he3ygx":["نسخ"],"hehnjM":["المبلغ"],"i-4Fbp":["فشل الإيداع"],"i-EgW-":["التكلفة التقديرية لبث هذه المعاملة على سلسلة الوجهة."],"i1MfcA":["ستظهر هنا العملات المتاحة للإيداع من محفظتك."],"iH8pgl":["رجوع"],"iROlQr":["تفاصيل البطاقة"],"jKZO-R":["اكتمل السحب"],"jtKSW-":["حد ",["0"]],"junZX6":["تم استلام الإيداع وجاري المعالجة…"],"kH6wUX":["تأثير السعر"],"kR8ayx":["بالنقر على تأكيد الإيداع، فإنك توافق على <0>الشروط</0>."],"kUFhUv":["فشل السحب."],"kj3M8S":["إيداع"],"kjrq_8":["مزيد من المعلومات"],"kryGs-":["بطاقة"],"lDgVWA":["استلام"],"lOEm_1":["تم تنفيذ الطلب"],"ldK3jJ":["فشل إرسال السحب."],"lxjao1":["مسار السيولة المختار المستخدم لتسوية هذا السحب."],"mF_ucv":["اتصل بمحفظة حتى تتمكن البوابة من توفير عنوان إيداع وتوجيه تحويلك."],"meq3YR":["رقم البطاقة غير صالح"],"mgLWEL":["تراجعت معاملة الوجهة على السلسلة."],"mvYQx_":["تم الاكتشاف"],"njn4bC":["أكِّد المعاملة في محفظتك"],"nr03QI":["أدخل عنوان المستلم"],"nwtY4N":["حدث خطأ"],"o-XJ9D":["تغيير"],"oBNGNc":["تغيَّر الناتج المتوقَّع للمسار أثناء انتظار معاملتك."],"oFmN8a":["إيداع ",["symbol"]],"oW1G8i":["تم إيداع أموالك بنجاح."],"ob8R_m":["حاول مرة أخرى أو تواصل معنا إذا استمرت المشكلة."],"ogD_nm":["إيداع إلى ",["0"]],"olEUh2":["ناجح"],"pCzTTC":["عنوان الإيداع الخاص بك"],"pfAinS":["امسح للدفع"],"q32Nt8":["اكتمل السحب"],"qQ5VJt":["يتعذَّر الوصول إلى البوابة الآن"],"qj0vvX":["تأكيد الإيداع"],"qtoOYG":["بدون حد"],"rT8e1f":["المسار"],"rZdp61":["معاملة الإكمال"],"sSiLKx":["شبكة الاستلام"],"sb9Y58":["محفظة"],"sbwbC0":["طريقة الدفع"],"srsA0x":["رُفض السحب."],"t-aixw":["أكّد في محفظة Google"],"t1k2Bt":["إخفاء التفاصيل"],"tInLgk":["جاري الدفع بالبطاقة"],"tTnE4T":["لا توجد أصول للإيداع"],"uPo3PQ":["عرض أقل"],"vepIdX":["سعر العملة الرقمية"],"vrnnn9":["جاري المعالجة"],"w-2VR9":["جاري السحب…"],"wB8KqP":["امسح بكاميرا iPhone"],"wLmRnI":["رمز الأمان"],"wdxz7K":["المصدر"],"wkskq5":["استخدام الحد الأقصى"],"xDAtGP":["الرسالة"],"xGVfLh":["متابعة"],"xHIEQ5":["رقم البطاقة"],"xOUCt3":["خيارات أخرى"],"y1ypMV":["الأكثر شيوعاً"],"y62Dys":["رسوم الشبكة"],"yH9V_J":["أدخل المبلغ"],"yLEjmm":[["resolvedPriceImpact"],"% price impact"],"yMg5R0":["انتهت صلاحية البطاقة"],"yQE2r9":["جارٍ التحميل"],"y_0uwd":["أمس"],"ybKOj4":["Google Pay"],"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"],"-nuEh_":["Tiempo estimado"],"-tu7Q8":["Más sobre ",["0"]],"02NghK":["
|
|
1
|
+
const e=JSON.parse(`{"--OGth":["Depósito exitoso"],"-I_tc5":["Máx ",["formattedCap"]],"-nuEh_":["Tiempo estimado"],"-tu7Q8":["Más sobre ",["0"]],"02NghK":["Cierra este diálogo y vuelve a intentarlo en un momento. Si el problema persiste, verifica la clave del gateway en tu integración."],"0eg2g7":["Estimando gas…"],"0lHlRj":["En tránsito"],"1zDzn9":["Pagar con Google Pay"],"2Eoi_a":["Ver detalles"],"3dqPLT":["Transferir cripto"],"3eKjkO":["Depósito mínimo de ",["formattedMin"]],"3kg1gB":["Depósito completado"],"3qkDVZ":["Ver desglose"],"3yd3IL":["El controlador de depósito no pudo cargar la configuración del gateway."],"5AApJw":["Conecta una billetera para continuar"],"5joj8M":["Desglose de la transacción"],"60ahSE":["Tx del retiro"],"64M0UA":["El código de seguridad está incompleto"],"69Gavs":["Detalles técnicos"],"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"],"6ja7nr":["Toca para pagar"],"6ws9A3":["Apple Pay"],"6yS5kL":["Retiro en curso"],"72c5Qo":["Total"],"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":["Máx ",["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"],"C7cyXd":["La comisión de procesamiento cubre el costo de procesar tu pago a través del método de pago seleccionado."],"CK1KXz":["Máx"],"CS69m9":["Usar cripto"],"Ck1xL4":["Envías"],"Cs44l6":["Depósito en curso"],"D79cZK":["Instantáneo"],"DO0IYK":["La fecha de vencimiento no es válida"],"DPfwMq":["Listo"],"Dd7jP5":["¿Tienes problemas?"],"DoS2vD":["Ocultar detalles técnicos"],"ELhVSL":["No se pudo enviar el depósito."],"Ej5HL9":["Firma rechazada. Vuelve a intentarlo."],"Enslfm":["Destino"],"FWbwx6":["Cash deposit unavailable for your account"],"FkAVbF":["Pagando con Google Pay"],"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"],"GXkBas":["Máx ",["formattedLimit"]],"GZPxmc":["Ingresa una dirección de destinatario válida"],"GcuGHR":["Acreditado a ",["captionSuffix"]],"GwkmPx":["Cambiar el importe mostrado"],"HalPBQ":["Recargar en"],"I2Iug_":["Paga ",["amountFormatted"]," de forma segura"],"IDt4jm":[["0","plural",{"one":["#"," segundo"],"other":["#"," segundos"]}]," restantes en la cotización"],"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"],"LSs4cd":["Usar efectivo"],"Ly6geA":["Regenerando cotización…"],"MZ_nQf":["Dirección del destinatario"],"N2DUxS":["Saldo insuficiente"],"OLF0i7":["No se pudieron cargar las opciones de depósito"],"OSBXx5":["Ahora mismo"],"Offl0a":["Tu depósito se acreditará en tu cuenta."],"Oi8TiZ":["Ver progreso"],"OsyKSt":["Retirar"],"P9fBwv":["Stack"],"PiH3UR":["¡Copiado!"],"PknXwq":["Pagar ahora"],"Q12Rrs":["Tx depósito"],"QFwptY":["Comisión de procesamiento"],"QU2cIs":["¿Tienes preguntas?"],"Qdn2XH":["Comprar con Google Pay"],"Rm325-":["Retiro de ",["amount"],", ",["date"]],"Rxjdjn":["El depósito no se completó"],"SMl3YV":["El número de tarjeta está incompleto"],"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"],"."],"TMA5Ot":["Pagando con Apple Pay"],"TT0aVH":["Orden enviada"],"Uevt3L":["Estimando cotización"],"UqHbdz":["Descartar aviso de depósito pendiente"],"V1fa9u":["Ver más"],"VAZUpd":["Orden fallida"],"VAxOSg":["Tú pagas"],"VHOVEJ":["Conectar billetera"],"WkRH60":["Mín ",["0"]],"Wqz0SO":["Saldo bajo"],"WsByvK":["Pagar con Apple Pay"],"XFvFyp":["Detalles de la tarjeta enviados"],"XJOV1Y":["Actividad"],"Xzw7uC":["Tus depósitos y retiros aparecerán aquí."],"YKfMl6":["Cargando entrada segura de tarjeta..."],"YruUmm":["La fecha de vencimiento está incompleta"],"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"],"bAy57M":["Pagar con tarjeta"],"bGtkfz":["Fecha de vencimiento"],"bOZXx5":["Actualizar orden"],"bZnukT":["Costo de red"],"c3aao_":["Ver actividad"],"c6Bl9M":["Alternar detalles técnicos"],"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"],"eUbBqz":["1 ",["0"]," = ",["1"]],"f-nEg4":["La comisión de red se paga a los mineros y validadores de la blockchain para asegurar que la transacción se procese y confirme."],"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."],"i1MfcA":["Los tokens disponibles para depositar desde tu billetera aparecerán aquí."],"iH8pgl":["Atrás"],"iROlQr":["Detalles de la tarjeta"],"jKZO-R":["Retiro completado"],"jtKSW-":["Límite ",["0"]],"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":["El retiro falló."],"kj3M8S":["Depositar"],"kjrq_8":["Más información"],"kryGs-":["Tarjeta"],"lDgVWA":["Recibir"],"lOEm_1":["Orden completada"],"ldK3jJ":["No se pudo enviar el retiro."],"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."],"meq3YR":["El número de tarjeta no es válido"],"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"],"o-XJ9D":["Cambiar"],"oBNGNc":["El resultado esperado de la ruta varió mientras tu transacción estaba pendiente."],"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"],"pfAinS":["Escanea para pagar"],"q32Nt8":["Retiro completado"],"qQ5VJt":["No podemos contactar el gateway en este momento"],"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":["Retiro rechazado."],"t-aixw":["Confirma en tu Google Wallet"],"t1k2Bt":["Ocultar desglose"],"tInLgk":["Pagando con tarjeta"],"tTnE4T":["No hay activos para depositar"],"uPo3PQ":["Ver menos"],"vepIdX":["Precio cripto"],"vrnnn9":["Procesando"],"w-2VR9":["Retiro en curso…"],"wB8KqP":["Escanea con la cámara de tu iPhone"],"wLmRnI":["Código de seguridad"],"wdxz7K":["Origen"],"wkskq5":["Usar máx"],"xDAtGP":["Mensaje"],"xGVfLh":["Continuar"],"xHIEQ5":["Número de tarjeta"],"xOUCt3":["Otras opciones"],"y1ypMV":["Más popular"],"y62Dys":["Comisión de red"],"yH9V_J":["Ingresa el monto"],"yLEjmm":[["resolvedPriceImpact"],"% price impact"],"yMg5R0":["La tarjeta ha caducado"],"yQE2r9":["Cargando"],"y_0uwd":["Ayer"],"ybKOj4":["Google Pay"],"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};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/shared/i18n/locales/source-keys.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Auto-generated by `scripts/codegen-source-keys.mjs` from `en.po`. Do not edit by hand —
|
|
4
|
+
* re-run `pnpm --filter @stridge/kit run i18n:compile` after changing translatable strings.
|
|
5
|
+
*
|
|
6
|
+
* String literal union of every English source the kit uses in `<Trans>` / `t` macros. Acts
|
|
7
|
+
* as the typed contract for {@link defineMessages}: callers get autocomplete on every key the
|
|
8
|
+
* kit translates, and unknown keys fail at compile time via excess-property checks.
|
|
9
|
+
*/
|
|
10
|
+
type KitTranslatableKey = "0x…" | "1 {0} = {1}" | "< 1 min" | "A wallet is required to deposit" | "Account" | "Activity" | "Amount" | "Apple Pay" | "Assets" | "Auto · {value}" | "Back" | "Balance: {0} {1}" | "Buy with Google Pay" | "By clicking Confirm Deposit, you agree to our <0>terms</0>." | "Card" | "Card details" | "Card details submitted" | "Card expiration" | "Card has expired" | "Card number" | "Card number is incomplete" | "Card number is invalid" | "Cash deposit unavailable for your account" | "Chains" | "Change" | "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 in your Google Wallet" | "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" | "Crypto price" | "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?" | "Expiry date is incomplete" | "Expiry date is invalid" | "Failed" | "Failed to submit deposit." | "Failed to submit withdrawal." | "Fill status" | "Funds are safe on the source chain — contact support to recover." | "Get help" | "Google Pay" | "Have questions?" | "Hide breakdown" | "Hide technical details" | "In transit" | "Instant" | "Insufficient Balance" | "Insufficient balance" | "Just now" | "Loading" | "Loading secure card input..." | "Low Balance" | "Max" | "Max slippage" | "Max {0}" | "Max {formattedCap}" | "Max {formattedLimit}" | "Message" | "Min {0}" | "Min {minDeposit}" | "More about {0}" | "More details" | "More information" | "Most popular" | "Network cost" | "Network fee" | "No activity yet" | "No assets to deposit" | "No limit" | "Order failed" | "Order filled" | "Order submitted" | "Other options" | "Pay Now" | "Pay with Apple Pay" | "Pay with Card" | "Pay with Google Pay" | "Pay {amountFormatted} securely" | "Paying with Apple Pay" | "Paying with Card" | "Paying with Google Pay" | "Payment Method" | "Please try again or contact us if the issue persists." | "Powered by" | "Price impact" | "Processing" | "Processing fee" | "Processing time: {resolvedProcessingTime}" | "Receive" | "Receive chain" | "Receive token" | "Recipient address" | "Regenerating quote…" | "Route" | "Scan to pay" | "Scan with your iPhone camera" | "Security code" | "Security code is incomplete" | "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" | "Tap to pay" | "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 network fee is paid to miners and validators of the blockchain to make sure the transaction is processed and confirmed." | "The processing fee covers the cost of processing your payment through the selected payment method." | "The route's expected output drifted while your transaction was pending." | "The selected liquidity route used to settle this withdrawal." | "Toggle technical details" | "Tokens" | "Tokens available to deposit from your wallet will appear here." | "Top up on" | "Total" | "Total time" | "Transaction breakdown" | "Transfer Crypto" | "Try again" | "T…" | "Update order" | "Use Cash" | "Use Crypto" | "Use max" | "Use suggested recipient address" | "View activity" | "View breakdown" | "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 pay" | "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" | "{0} limit" | "{formattedMin} minimum deposit" | "{hours} hr" | "{minutes} min" | "{n}h" | "{n}m" | "{n}s" | "{resolvedPriceImpact}% price impact" | "~ 2 min";
|
|
11
|
+
//#endregion
|
|
12
|
+
export { KitTranslatableKey };
|
|
File without changes
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { ActivityIcon } from "../shared/icons/ActivityIcon.js";
|
|
1
2
|
import { AlertIcon } from "../shared/icons/AlertIcon.js";
|
|
3
|
+
import { AmexIcon } from "../shared/icons/AmexIcon.js";
|
|
4
|
+
import { ApplePayIcon } from "../shared/icons/ApplePayIcon.js";
|
|
2
5
|
import { ArrowDownIcon } from "../shared/icons/ArrowDownIcon.js";
|
|
3
6
|
import { ArrowRightIcon } from "../shared/icons/ArrowRightIcon.js";
|
|
4
7
|
import { ArrowRightLeftIcon } from "../shared/icons/ArrowRightLeftIcon.js";
|
|
8
|
+
import { BitcoinIcon } from "../shared/icons/BitcoinIcon.js";
|
|
9
|
+
import { CardIcon } from "../shared/icons/CardIcon.js";
|
|
10
|
+
import { CashIcon } from "../shared/icons/CashIcon.js";
|
|
5
11
|
import { CheckIcon } from "../shared/icons/CheckIcon.js";
|
|
6
12
|
import { ChevronDownIcon } from "../shared/icons/ChevronDownIcon.js";
|
|
7
13
|
import { ChevronLeftIcon } from "../shared/icons/ChevronLeftIcon.js";
|
|
@@ -11,17 +17,22 @@ import { CircleArrowUpIcon } from "../shared/icons/CircleArrowUpIcon.js";
|
|
|
11
17
|
import { CircleHelpIcon } from "../shared/icons/CircleHelpIcon.js";
|
|
12
18
|
import { ClockIcon } from "../shared/icons/ClockIcon.js";
|
|
13
19
|
import { CopyIcon } from "../shared/icons/CopyIcon.js";
|
|
20
|
+
import { DiscoverIcon } from "../shared/icons/DiscoverIcon.js";
|
|
14
21
|
import { ExternalLinkIcon } from "../shared/icons/ExternalLinkIcon.js";
|
|
15
22
|
import { BinanceIcon } from "../shared/icons/exchanges/BinanceIcon.js";
|
|
16
23
|
import { CoinbaseIcon } from "../shared/icons/exchanges/CoinbaseIcon.js";
|
|
17
24
|
import { KrakenIcon } from "../shared/icons/exchanges/KrakenIcon.js";
|
|
18
25
|
import { OkxIcon } from "../shared/icons/exchanges/OkxIcon.js";
|
|
19
26
|
import { RobinhoodIcon } from "../shared/icons/exchanges/RobinhoodIcon.js";
|
|
27
|
+
import { GooglePayIcon } from "../shared/icons/GooglePayIcon.js";
|
|
20
28
|
import { InfoIcon } from "../shared/icons/InfoIcon.js";
|
|
21
29
|
import { LoaderIcon } from "../shared/icons/LoaderIcon.js";
|
|
30
|
+
import { LogoIcon } from "../shared/icons/LogoIcon.js";
|
|
22
31
|
import { MailIcon } from "../shared/icons/MailIcon.js";
|
|
32
|
+
import { MastercardIcon } from "../shared/icons/MastercardIcon.js";
|
|
23
33
|
import { PackageIcon } from "../shared/icons/PackageIcon.js";
|
|
24
34
|
import { QrCodeIcon } from "../shared/icons/QrCodeIcon.js";
|
|
35
|
+
import { VisaIcon } from "../shared/icons/VisaIcon.js";
|
|
25
36
|
import { WalletIcon } from "../shared/icons/WalletIcon.js";
|
|
26
37
|
import { XIcon } from "../shared/icons/XIcon.js";
|
|
27
|
-
export { AlertIcon, ArrowDownIcon, ArrowRightIcon, ArrowRightLeftIcon, BinanceIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleArrowUpIcon, CircleHelpIcon, ClockIcon, CoinbaseIcon, CopyIcon, ExternalLinkIcon, InfoIcon, KrakenIcon, LoaderIcon, MailIcon, OkxIcon, PackageIcon, QrCodeIcon, RobinhoodIcon, WalletIcon, XIcon };
|
|
38
|
+
export { ActivityIcon, AlertIcon, AmexIcon, ApplePayIcon, ArrowDownIcon, ArrowRightIcon, ArrowRightLeftIcon, BinanceIcon, BitcoinIcon, CardIcon, CashIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleArrowUpIcon, CircleHelpIcon, ClockIcon, CoinbaseIcon, CopyIcon, DiscoverIcon, ExternalLinkIcon, GooglePayIcon, InfoIcon, KrakenIcon, LoaderIcon, LogoIcon, MailIcon, MastercardIcon, OkxIcon, PackageIcon, QrCodeIcon, RobinhoodIcon, VisaIcon, 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{AmexIcon as n}from"../shared/icons/AmexIcon.js";import{ApplePayIcon as r}from"../shared/icons/ApplePayIcon.js";import{ArrowDownIcon as i}from"../shared/icons/ArrowDownIcon.js";import{ArrowRightIcon as a}from"../shared/icons/ArrowRightIcon.js";import{ArrowRightLeftIcon as o}from"../shared/icons/ArrowRightLeftIcon.js";import{BitcoinIcon as s}from"../shared/icons/BitcoinIcon.js";import{CardIcon as c}from"../shared/icons/CardIcon.js";import{CashIcon as l}from"../shared/icons/CashIcon.js";import{CheckIcon as u}from"../shared/icons/CheckIcon.js";import{ChevronDownIcon as d}from"../shared/icons/ChevronDownIcon.js";import{ChevronLeftIcon as f}from"../shared/icons/ChevronLeftIcon.js";import{ChevronRightIcon as p}from"../shared/icons/ChevronRightIcon.js";import{ChevronUpIcon as m}from"../shared/icons/ChevronUpIcon.js";import{CircleArrowUpIcon as h}from"../shared/icons/CircleArrowUpIcon.js";import{CircleHelpIcon as g}from"../shared/icons/CircleHelpIcon.js";import{ClockIcon as _}from"../shared/icons/ClockIcon.js";import{CopyIcon as v}from"../shared/icons/CopyIcon.js";import{DiscoverIcon as y}from"../shared/icons/DiscoverIcon.js";import{ExternalLinkIcon as b}from"../shared/icons/ExternalLinkIcon.js";import{BinanceIcon as x}from"../shared/icons/exchanges/BinanceIcon.js";import{CoinbaseIcon as S}from"../shared/icons/exchanges/CoinbaseIcon.js";import{KrakenIcon as C}from"../shared/icons/exchanges/KrakenIcon.js";import{OkxIcon as w}from"../shared/icons/exchanges/OkxIcon.js";import{RobinhoodIcon as T}from"../shared/icons/exchanges/RobinhoodIcon.js";import"../shared/icons/exchanges/index.js";import{GooglePayIcon as E}from"../shared/icons/GooglePayIcon.js";import{InfoIcon as D}from"../shared/icons/InfoIcon.js";import{LoaderIcon as O}from"../shared/icons/LoaderIcon.js";import{LogoIcon as k}from"../shared/icons/LogoIcon.js";import{MailIcon as A}from"../shared/icons/MailIcon.js";import{MastercardIcon as j}from"../shared/icons/MastercardIcon.js";import{PackageIcon as M}from"../shared/icons/PackageIcon.js";import{QrCodeIcon as N}from"../shared/icons/QrCodeIcon.js";import{VisaIcon as P}from"../shared/icons/VisaIcon.js";import{WalletIcon as F}from"../shared/icons/WalletIcon.js";import{XIcon as I}from"../shared/icons/XIcon.js";export{e as ActivityIcon,t as AlertIcon,n as AmexIcon,r as ApplePayIcon,i as ArrowDownIcon,a as ArrowRightIcon,o as ArrowRightLeftIcon,x as BinanceIcon,s as BitcoinIcon,c as CardIcon,l as CashIcon,u as CheckIcon,d as ChevronDownIcon,f as ChevronLeftIcon,p as ChevronRightIcon,m as ChevronUpIcon,h as CircleArrowUpIcon,g as CircleHelpIcon,_ as ClockIcon,S as CoinbaseIcon,v as CopyIcon,y as DiscoverIcon,b as ExternalLinkIcon,E as GooglePayIcon,D as InfoIcon,C as KrakenIcon,O as LoaderIcon,k as LogoIcon,A as MailIcon,j as MastercardIcon,w as OkxIcon,M as PackageIcon,N as QrCodeIcon,T as RobinhoodIcon,P as VisaIcon,F as WalletIcon,I as XIcon};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,51 @@
|
|
|
1
1
|
import { TxRef } from "./shared/driver/types.js";
|
|
2
|
+
import { ActivityAmount, ActivityDirection, ActivityPayload, ActivityRowPayload, ActivityStatus, ActivityStatusType } from "./shared/widgets/activity/payloads.js";
|
|
3
|
+
import { ActivityDriver, ActivitySnapshot } from "./flows/activity/driver/types.js";
|
|
4
|
+
import { CashMethodCapability, CashMethodsPayload } from "./flows/deposit/driver/payloads.js";
|
|
2
5
|
import { DepositSnapshot } from "./flows/deposit/driver/types.js";
|
|
3
6
|
import { useDepositSnapshot } from "./flows/deposit/driver/context.js";
|
|
7
|
+
import { ActivityOpenInput } from "./shared/orchestrator/activityOpenInput.js";
|
|
8
|
+
import { FailureInfo } from "./shared/orchestrator/types.js";
|
|
9
|
+
import { CashMethodId, DepositActions, DepositController, DepositMethod, DepositMethodConfig, DepositMethodsConfig, DepositRailConfig, DepositState, DepositStateName, OpenInput } from "./flows/deposit/orchestrator/types.js";
|
|
10
|
+
import { ChainType, isValidAddressForChainType, isValidEvmAddress, isValidTronAddress, toChainType } from "./shared/chains/index.js";
|
|
4
11
|
import { WithdrawSnapshot } from "./flows/withdraw/driver/types.js";
|
|
5
12
|
import { useWithdrawSnapshot } from "./flows/withdraw/driver/context.js";
|
|
13
|
+
import { Presentation, PresentationConfig, PresentationMode } from "./shared/presentation/types.js";
|
|
6
14
|
import { useKitConfig } from "./scope/context.js";
|
|
7
15
|
import { KitPortalScope } from "./scope/KitPortalScope.js";
|
|
16
|
+
import { IntercomMerchantContext } from "./shared/support/useIntercomMerchantContext.js";
|
|
17
|
+
import { SupportConfig, SupportOpenContext } from "./shared/support/types.js";
|
|
18
|
+
import { TermsConfig, TermsSelectContext } from "./shared/terms/types.js";
|
|
8
19
|
import { createLocalStorageAdapter, createMemoryStorageAdapter, createSessionStorageAdapter, resolveStorageAdapter } from "./storage/adapters.js";
|
|
9
20
|
import { createKitStorage } from "./storage/createKitStorage.js";
|
|
10
|
-
import { DEFAULT_KIT_STORAGE_NAMESPACE, KitStorageProvider, useKitStorage, useKitStorageValue } from "./storage/context.js";
|
|
21
|
+
import { DEFAULT_KIT_STORAGE_NAMESPACE, KitStorageProvider, useKitStorage, useKitStorageValue, useOptionalKitStorage } from "./storage/context.js";
|
|
22
|
+
import { useActivitySnapshot } from "./flows/activity/driver/context.js";
|
|
11
23
|
import { StridgeEnvironment } from "./drivers/stridge/types.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
24
|
+
import { KIT_VERSION } from "./version.js";
|
|
25
|
+
import { FlowIdKey } from "./events/bus/flowIdRegistry.js";
|
|
26
|
+
import { useCurrentFlowId } from "./events/hooks/useCurrentFlowId.js";
|
|
27
|
+
import { ActivityActions, ActivityController, ActivityState, ActivityStateName } from "./flows/activity/orchestrator/types.js";
|
|
28
|
+
import { WithdrawActions, WithdrawController, WithdrawState, WithdrawStateName, WithdrawSubmitActions, WithdrawSubmitCallback, WithdrawSubmitInput, WithdrawalFormSnapshot } from "./flows/withdraw/orchestrator/types.js";
|
|
29
|
+
import { FlowEvent, StridgeEvent, UiEvent } from "./events/types/index.js";
|
|
30
|
+
import { SubscribeOptions } from "./events/bus/createBus.js";
|
|
31
|
+
import { useStridgeEvent } from "./events/hooks/useStridgeEvent.js";
|
|
32
|
+
import { PublicStridgeEventBus, useStridgeEventBus } from "./events/hooks/useStridgeEventBus.js";
|
|
33
|
+
import { useStridgeEvents } from "./events/hooks/useStridgeEvents.js";
|
|
34
|
+
import { useStridgeFlowEvent } from "./events/hooks/useStridgeFlowEvent.js";
|
|
35
|
+
import { useStridgeFlowEvents } from "./events/hooks/useStridgeFlowEvents.js";
|
|
36
|
+
import { RedactEventOptions, redactEvent } from "./events/redact.js";
|
|
37
|
+
import { useActivityState } from "./flows/activity/orchestrator/controller.js";
|
|
38
|
+
import { useActivity, useOptionalActivity, useOptionalPrefetchActivity, usePrefetchActivity } from "./flows/activity/orchestrator/useActivity.js";
|
|
39
|
+
import { useDepositState } from "./flows/deposit/orchestrator/controller.js";
|
|
40
|
+
import { useDeposit, useOptionalDeposit, usePrefetchDeposit } from "./flows/deposit/orchestrator/useDeposit.js";
|
|
41
|
+
import { WithdrawBalanceInput, WithdrawBindings, WithdrawSuggestedRecipient, useWithdrawBindings } from "./flows/withdraw/bindings/WithdrawBindings.js";
|
|
16
42
|
import { ChainLogoMeta } from "./shared/utils/logos/chains.js";
|
|
17
43
|
import { ChainLogoInput, TokenLogoInput } from "./shared/utils/logos/types.js";
|
|
18
44
|
import { LogosNamespace, logos } from "./shared/utils/logos/api.js";
|
|
19
45
|
import { BannerAckBucket, bannerAckStorageKey, bucketFromSettlement, useBannerAck, useBannerAckForSettlement } from "./banners/useBannerAck.js";
|
|
20
|
-
import {
|
|
21
|
-
import { useDeposit } from "./flows/deposit/orchestrator/useDeposit.js";
|
|
46
|
+
import { CardBrand, CardData, DepositBindings, TokenizationResult, useDepositBindings } from "./flows/deposit/bindings/DepositBindings.js";
|
|
22
47
|
import { useWithdrawState } from "./flows/withdraw/orchestrator/controller.js";
|
|
23
|
-
import { useWithdraw } from "./flows/withdraw/orchestrator/useWithdraw.js";
|
|
24
|
-
import {
|
|
25
|
-
import { StridgeAppearance, StridgeAsset, StridgeDepositFlowConfig, StridgeProvider, StridgeStorageConfig, StridgeWithdrawFlowConfig } from "./stridge/StridgeProvider.js";
|
|
26
|
-
export { type BannerAckBucket, type
|
|
48
|
+
import { useOptionalWithdraw, usePrefetchWithdraw, useWithdraw } from "./flows/withdraw/orchestrator/useWithdraw.js";
|
|
49
|
+
import { ConnectWalletConfig } from "./shared/wallet/ConnectWalletContext.js";
|
|
50
|
+
import { StridgeAppearance, StridgeAsset, StridgeDepositDestination, StridgeDepositFlowConfig, StridgeDepositMethodConfig, StridgeDepositMethodsConfig, StridgeFlowOwner, StridgePrefetchConfig, StridgeProvider, StridgeStorageConfig, StridgeWithdrawFlowConfig } from "./stridge/StridgeProvider.js";
|
|
51
|
+
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 CardBrand, type CardData, type CashMethodCapability, type CashMethodId, type CashMethodsPayload, type ChainLogoInput, type ChainLogoMeta, type ChainType, type ConnectWalletConfig, DEFAULT_KIT_STORAGE_NAMESPACE, type DepositActions, type DepositBindings, type DepositController, type DepositMethod, type DepositMethodConfig, type DepositMethodsConfig, type OpenInput as DepositOpenInput, type DepositRailConfig, type DepositSnapshot, type DepositState, type DepositStateName, type FailureInfo, type FlowEvent, type FlowIdKey, type IntercomMerchantContext, KIT_VERSION, KitPortalScope, KitStorageProvider, type LogosNamespace, type Presentation, type PresentationConfig, type PresentationMode, type PublicStridgeEventBus, type RedactEventOptions, 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 SubscribeOptions, type SupportConfig, type SupportOpenContext, type TermsConfig, type TermsSelectContext, type TokenLogoInput, type TokenizationResult, 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, redactEvent, resolveStorageAdapter, toChainType, useActivity, useActivitySnapshot, useActivityState, useBannerAck, useBannerAckForSettlement, useCurrentFlowId, useDeposit, useDepositBindings, useDepositSnapshot, useDepositState, useKitConfig, useKitStorage, useKitStorageValue, useOptionalActivity, useOptionalDeposit, useOptionalKitStorage, useOptionalPrefetchActivity, useOptionalWithdraw, usePrefetchActivity, usePrefetchDeposit, usePrefetchWithdraw, useStridgeEvent, useStridgeEventBus, useStridgeEvents, useStridgeFlowEvent, useStridgeFlowEvents, useWithdraw, useWithdrawBindings, useWithdrawSnapshot, useWithdrawState };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
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,useOptionalKitStorage as m}from"./storage/context.js";import"./storage/index.js";import{bannerAckStorageKey as h,bucketFromSettlement as g,useBannerAck as _,useBannerAckForSettlement as v}from"./banners/useBannerAck.js";import"./banners/index.js";import{KIT_VERSION as y}from"./version.js";import{useCurrentFlowId as b}from"./events/hooks/useCurrentFlowId.js";import{useStridgeEvent as x}from"./events/hooks/useStridgeEvent.js";import{useStridgeEventBus as S}from"./events/hooks/useStridgeEventBus.js";import{useStridgeEvents as C}from"./events/hooks/useStridgeEvents.js";import{useStridgeFlowEvent as w}from"./events/hooks/useStridgeFlowEvent.js";import{useStridgeFlowEvents as T}from"./events/hooks/useStridgeFlowEvents.js";import{redactEvent as E}from"./events/redact.js";import"./events/index.js";import{useActivitySnapshot as D}from"./flows/activity/driver/context.js";import{useActivityState as O}from"./flows/activity/orchestrator/controller.js";import{useActivity as k,useOptionalActivity as A,useOptionalPrefetchActivity as j,usePrefetchActivity as M}from"./flows/activity/orchestrator/useActivity.js";import"./flows/activity/orchestrator/index.js";import{useDepositBindings as N}from"./flows/deposit/bindings/DepositBindings.js";import"./flows/deposit/bindings/index.js";import{useDepositSnapshot as P}from"./flows/deposit/driver/context.js";import{useDepositState as F}from"./flows/deposit/orchestrator/controller.js";import{useDeposit as I,useOptionalDeposit as L,usePrefetchDeposit as R}from"./flows/deposit/orchestrator/useDeposit.js";import{useWithdrawBindings as z}from"./flows/withdraw/bindings/WithdrawBindings.js";import"./flows/withdraw/bindings/index.js";import{useWithdrawSnapshot as B}from"./flows/withdraw/driver/context.js";import{useWithdrawState as V}from"./flows/withdraw/orchestrator/controller.js";import{useOptionalWithdraw as H,usePrefetchWithdraw as U,useWithdraw as W}from"./flows/withdraw/orchestrator/useWithdraw.js";import"./flows/withdraw/orchestrator/index.js";import{useKitConfig as G}from"./scope/context.js";import{KitPortalScope as K}from"./scope/KitPortalScope.js";import{StridgeProvider as q}from"./stridge/StridgeProvider.js";export{u as DEFAULT_KIT_STORAGE_NAMESPACE,y as KIT_VERSION,K as KitPortalScope,d as KitStorageProvider,q as StridgeProvider,h as bannerAckStorageKey,g 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,E as redactEvent,c as resolveStorageAdapter,r as toChainType,k as useActivity,D as useActivitySnapshot,O as useActivityState,_ as useBannerAck,v as useBannerAckForSettlement,b as useCurrentFlowId,I as useDeposit,N as useDepositBindings,P as useDepositSnapshot,F as useDepositState,G as useKitConfig,f as useKitStorage,p as useKitStorageValue,A as useOptionalActivity,L as useOptionalDeposit,m as useOptionalKitStorage,j as useOptionalPrefetchActivity,H as useOptionalWithdraw,M as usePrefetchActivity,R as usePrefetchDeposit,U as usePrefetchWithdraw,x as useStridgeEvent,S as useStridgeEventBus,C as useStridgeEvents,w as useStridgeFlowEvent,T as useStridgeFlowEvents,W as useWithdraw,z as useWithdrawBindings,B as useWithdrawSnapshot,V as useWithdrawState};
|
package/dist/package.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=`0.1.0-alpha.
|
|
1
|
+
var e=`0.1.0-alpha.60`;export{e as version};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{useKitConfig as e}from"./context.js";import{KIT_SCOPE_SLOTS as t}from"./KitScope.slots.js";import{jsx as n}from"react/jsx-runtime";import{DirectionProvider as r}from"@base-ui/react/direction-provider";function i({className:i,style:a,children:o,...s}){let{accent:c,direction:l,
|
|
1
|
+
"use client";import{useKitConfig as e}from"./context.js";import{KIT_SCOPE_SLOTS as t}from"./KitScope.slots.js";import{jsx as n}from"react/jsx-runtime";import{DirectionProvider as r}from"@base-ui/react/direction-provider";function i({className:i,style:a,children:o,...s}){let{accent:c,direction:l,locale:u,radius:d,theme:f}=e(),p=c?{"--stridge-kit-primary":c}:void 0,m=p||a?{...p,...a}:void 0;return n(r,{direction:l??`ltr`,children:n(`div`,{...s,dir:l,"data-stridge-scope":``,"data-stridge-radius":d,"data-stridge-theme":f,"data-stridge-locale":u,"data-stridge-slot":t.portalScope,className:i,style:m,children:o})})}export{i as KitPortalScope};
|
package/dist/scope/KitScope.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Presentation } from "../shared/presentation/types.js";
|
|
2
|
+
import { KitAttribution, KitDirection, KitRadius, KitTarget, KitTheme } from "./context.js";
|
|
2
3
|
import { ComponentProps, ReactNode } from "react";
|
|
3
4
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
5
|
|
|
@@ -19,7 +20,10 @@ declare function KitScope({
|
|
|
19
20
|
radius,
|
|
20
21
|
theme,
|
|
21
22
|
direction: directionProp,
|
|
23
|
+
locale,
|
|
22
24
|
target,
|
|
25
|
+
attribution,
|
|
26
|
+
presentation,
|
|
23
27
|
className,
|
|
24
28
|
style,
|
|
25
29
|
dir,
|
|
@@ -55,6 +59,28 @@ declare namespace KitScope {
|
|
|
55
59
|
* Use the standard HTML `dir` prop instead when you want a tree-wide DOM flip.
|
|
56
60
|
*/
|
|
57
61
|
direction?: KitDirection;
|
|
62
|
+
/**
|
|
63
|
+
* Active BCP-47 locale tag (`"en"`, `"ar"`, `"fa"`, …). Forwarded by `KitProvider` from
|
|
64
|
+
* `i18n.locale` and stamped onto the scope div as `data-stridge-locale="…"` so hosts can
|
|
65
|
+
* target script-specific styling per locale — e.g. swap the kit's font stack to a Persian
|
|
66
|
+
* face on `[data-stridge-locale^="fa"]` while keeping the Arabic face on `[…^="ar"]`. RTL
|
|
67
|
+
* alone isn't fine-grained enough because both share `dir="rtl"`.
|
|
68
|
+
*/
|
|
69
|
+
locale?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Controls the "Powered by Stridge" attribution row inside every gateway widget frame.
|
|
72
|
+
* `"visible"` (default) auto-mounts the brand row at the bottom of every step; `"hidden"`
|
|
73
|
+
* suppresses the auto-mount for white-label installs. Explicit `<Stridge.PoweredBy />`
|
|
74
|
+
* compositions always render — set this to `"hidden"` when composing the brand row manually.
|
|
75
|
+
*/
|
|
76
|
+
attribution?: KitAttribution;
|
|
77
|
+
/**
|
|
78
|
+
* How gateway surfaces present themselves. `"auto"` (default) renders a centred dialog on
|
|
79
|
+
* wide containers and a bottom-sheet drawer below the breakpoint; `"dialog"` / `"drawer"`
|
|
80
|
+
* force one. Pass `{ mode, breakpoint }` to tune the px threshold. Published into kit config
|
|
81
|
+
* as the global default for `AdaptiveSurface`; a per-surface `presentation` prop overrides it.
|
|
82
|
+
*/
|
|
83
|
+
presentation?: Presentation;
|
|
58
84
|
/** Children rendered inside the kit scope. */
|
|
59
85
|
children?: ReactNode;
|
|
60
86
|
}
|
package/dist/scope/KitScope.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{KitContext as e}from"./context.js";import{KIT_SCOPE_SLOTS as t}from"./KitScope.slots.js";import{useCallback as n,useLayoutEffect as r,useMemo as i,useRef as a,useState as o}from"react";import{jsx as s}from"react/jsx-runtime";import{DirectionProvider as c}from"@base-ui/react/direction-provider";function l({accent:r,radius:o,theme:l,direction:d,
|
|
1
|
+
"use client";import{KitContext as e}from"./context.js";import{KIT_SCOPE_SLOTS as t}from"./KitScope.slots.js";import{useCallback as n,useLayoutEffect as r,useMemo as i,useRef as a,useState as o}from"react";import{jsx as s}from"react/jsx-runtime";import{DirectionProvider as c}from"@base-ui/react/direction-provider";function l({accent:r,radius:o,theme:l,direction:d,locale:m,target:h,attribution:g,presentation:_,className:v,style:y,dir:b,ref:x,children:S,...C}){let w=a(null),T=f(w,b),E=u(b)??d??T,D=n(e=>{w.current=e,p(x,e)},[x]),O=i(()=>({accent:r,radius:o,theme:l,direction:E,locale:m,target:h,attribution:g,presentation:_}),[r,o,l,E,m,h,g,_]),k=r?{"--stridge-kit-primary":r}:void 0,A=k||y?{...k,...y}:void 0;return s(e.Provider,{value:O,children:s(c,{direction:E??`ltr`,children:s(`div`,{...C,ref:D,dir:b,"data-stridge-scope":``,"data-stridge-radius":o,"data-stridge-theme":l,"data-stridge-locale":m,"data-stridge-slot":t.root,className:v,style:A,children:S})})})}function u(e){return e===`ltr`||e===`rtl`?e:void 0}function d(e){for(let t=e;t;t=t.parentElement){let e=u(t.getAttribute(`dir`)??void 0);if(e)return e}if(!(typeof window>`u`))return u(window.getComputedStyle(e).direction)}function f(e,t){let[n,i]=o(()=>u(t));return r(()=>{let n=e.current;if(!n){i(u(t));return}let r=()=>{i(d(n))};if(r(),typeof MutationObserver>`u`)return;let a=new MutationObserver(r);for(let e=n;e;e=e.parentElement)a.observe(e,{attributes:!0,attributeFilter:[`dir`]});return()=>a.disconnect()},[t,e]),n}function p(e,t){if(e){if(typeof e==`function`){e(t);return}e.current=t}}export{l as KitScope};
|
package/dist/scope/context.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Presentation } from "../shared/presentation/types.js";
|
|
1
2
|
//#region src/scope/context.d.ts
|
|
2
3
|
type KitRadius = "sharp" | "subtle" | "rounded" | "pill";
|
|
3
4
|
type KitTheme = "dark" | "light";
|
|
4
5
|
type KitDirection = "ltr" | "rtl";
|
|
6
|
+
type KitAttribution = "visible" | "hidden";
|
|
5
7
|
/**
|
|
6
8
|
* Destination token credited by the gateway flow.
|
|
7
9
|
*/
|
|
@@ -53,10 +55,31 @@ interface KitConfig {
|
|
|
53
55
|
* behavior when they render outside the provider's DOM subtree.
|
|
54
56
|
*/
|
|
55
57
|
direction?: KitDirection;
|
|
58
|
+
/**
|
|
59
|
+
* Active BCP-47 locale tag (e.g. `"en"`, `"ar"`, `"fa"`, `"ar-EG"`). Forwarded by `KitProvider`
|
|
60
|
+
* from `i18n.locale` and stamped onto every kit scope as `data-stridge-locale="…"` so the host
|
|
61
|
+
* can target script-specific styling (typically the font stack) per locale — RTL alone isn't
|
|
62
|
+
* fine-grained enough (Arabic and Persian are both RTL but commonly want different faces).
|
|
63
|
+
*/
|
|
64
|
+
locale?: string;
|
|
56
65
|
/**
|
|
57
66
|
* Destination token configuration.
|
|
58
67
|
*/
|
|
59
68
|
target?: KitTarget;
|
|
69
|
+
/**
|
|
70
|
+
* Resolved state of the "Powered by Stridge" attribution row. `"visible"` (default) lets the
|
|
71
|
+
* gateway frame auto-mount the brand row at the bottom of every step; `"hidden"` suppresses
|
|
72
|
+
* the auto-mount for white-label installs. Explicit `<Stridge.PoweredBy />` compositions
|
|
73
|
+
* ignore this value and always render — the contract is "set `attribution=\"hidden\"` when
|
|
74
|
+
* composing the brand row manually".
|
|
75
|
+
*/
|
|
76
|
+
attribution?: KitAttribution;
|
|
77
|
+
/**
|
|
78
|
+
* How gateway surfaces present themselves — `"auto"` (default) renders a centred dialog on wide
|
|
79
|
+
* containers and a bottom-sheet drawer below the breakpoint, `"dialog"` / `"drawer"` force one.
|
|
80
|
+
* Read by {@link AdaptiveSurface} as the global default; a per-surface `presentation` prop wins.
|
|
81
|
+
*/
|
|
82
|
+
presentation?: Presentation;
|
|
60
83
|
}
|
|
61
84
|
/**
|
|
62
85
|
* Reads the active {@link KitConfig} from the nearest provider. Returns `{}` when no provider is
|
|
@@ -64,4 +87,4 @@ interface KitConfig {
|
|
|
64
87
|
*/
|
|
65
88
|
declare function useKitConfig(): KitConfig;
|
|
66
89
|
//#endregion
|
|
67
|
-
export { KitConfig, KitDirection, KitRadius, KitTarget, KitTheme, useKitConfig };
|
|
90
|
+
export { KitAttribution, KitConfig, KitDirection, KitRadius, KitTarget, KitTheme, useKitConfig };
|
package/dist/scope/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { KitConfig, KitDirection, KitRadius, KitTarget, KitTheme, useKitConfig } from "./context.js";
|
|
1
|
+
import { KitAttribution, KitConfig, KitDirection, KitRadius, KitTarget, KitTheme, useKitConfig } from "./context.js";
|
|
2
2
|
import { KitPortalScope } from "./KitPortalScope.js";
|
|
3
3
|
import { KitScope } from "./KitScope.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useLingui as e}from"../i18n/useLingui.js";import"../../i18n/index.js";import{joinClassNames as t}from"../utils/joinClassNames.js";import{LogoIcon as n}from"../icons/LogoIcon.js";import"../../icons/index.js";import{ATTRIBUTION_SLOTS as r}from"./Attribution.slots.js";import{elementStyles as i,styles as a}from"./Attribution.styles.js";import{Fragment as o,jsx as s,jsxs as c}from"react/jsx-runtime";import*as l from"@stylexjs/stylex";function u({href:u=`https://stridge.com`,target:d=`_blank`,rel:f=`noopener noreferrer`,asStatic:p,className:m,style:h}){let{_:g}=e(),_=l.props(a.root),v=l.props(a.link,!p&&a.anchor),y=l.props(i.prefix),b=l.props(i.mark),x=l.props(i.wordmark),S=t(_.className,m),C=_.style||h?{..._.style,...h}:void 0,w=c(o,{children:[s(`span`,{"data-stridge-slot":r.prefix,className:y.className,style:y.style,children:g({id:`g2UNkE`,message:`Powered by`})}),s(`span`,{"data-stridge-slot":r.mark,className:b.className,style:b.style,children:s(n,{"aria-hidden":!0,focusable:!1})}),s(`span`,{"data-stridge-slot":r.wordmark,className:x.className,style:x.style,children:`Stridge`})]});return s(`div`,{"data-stridge-slot":r.root,className:S,style:C,children:p?s(`span`,{className:v.className,style:v.style,children:w}):s(`a`,{href:u,target:d,rel:f,className:v.className,style:v.style,children:w})})}export{u as Attribution};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:`attribution`,prefix:`attribution-prefix`,mark:`attribution-mark`,wordmark:`attribution-wordmark`};export{e as ATTRIBUTION_SLOTS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={root:{"Attribution__styles.root":`Attribution__styles.root`,"display-k1xSpc":`x78zum5`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"justifyContent-kjj79g":`xl56j7k`,"paddingTop-kLKAdn":`x19ment4`,"paddingBottom-kGO01o":`xfvigk`,"paddingInline-kg3NbH":`x1ujb8i1`,$$css:`@stridge/kit:src/shared/attribution/Attribution.styles.ts:11`},link:{"Attribution__styles.link":`Attribution__styles.link`,"display-k1xSpc":`x3nfvp2`,"flexDirection-kXwgrk":`x1q0g3np`,"alignItems-kGNEyG":`x6s0dn4`,"gap-kOIVth":`x1a6yh9e`,"textDecoration-kybGjl":`x1hl2dhg`,"outline-kI3sdo":`x1a2a7pz`,"transitionProperty-k1ekBW":`xt3l3uh`,"transitionDuration-kIyJzY":`x1vhb3u9`,"transitionTimingFunction-kAMwcw":`x1xv5090`,$$css:`@stridge/kit:src/shared/attribution/Attribution.styles.ts:20`},anchor:{"Attribution__styles.anchor":`Attribution__styles.anchor`,":focus-visible_outline-k3Woio":`x1gvykhg`,":focus-visible_outlineOffset-kiEn40":`x7s97pk`,$$css:`@stridge/kit:src/shared/attribution/Attribution.styles.ts:35`}},t={prefix:{"Attribution__elementStyles.prefix":`Attribution__elementStyles.prefix`,"fontSize-kGuDYH":`x1oae1zf`,"fontWeight-k63SB2":`xxjjie5`,"lineHeight-kLWn49":`x1d3mw78`,"color-kMwMTN":`xd2gg92`,":is(a:hover, a:focus-visible) [data-stridge-slot~='attribution-prefix']_color-kKNNVu":`x1wa2jhk`,$$css:`@stridge/kit:src/shared/attribution/Attribution.styles.ts:51`},mark:{"Attribution__elementStyles.mark":`Attribution__elementStyles.mark`,"display-k1xSpc":`x3nfvp2`,"alignItems-kGNEyG":`x6s0dn4`,"color-kMwMTN":`x9irweu`,":is(a:hover, a:focus-visible) [data-stridge-slot~='attribution-mark']_color-kEC4n1":`x1perupi`,$$css:`@stridge/kit:src/shared/attribution/Attribution.styles.ts:60`},wordmark:{"Attribution__elementStyles.wordmark":`Attribution__elementStyles.wordmark`,"fontSize-kGuDYH":`x1oae1zf`,"fontWeight-k63SB2":`x1qvi77d`,"letterSpacing-kb6lSQ":`x1ixy4ik`,"lineHeight-kLWn49":`x1d3mw78`,"color-kMwMTN":`x1nxg1fm`,":is(a:hover, a:focus-visible) [data-stridge-slot~='attribution-wordmark']_color-kKiZkk":`x19k0ldo`,":is(a:hover, a:focus-visible) [data-stridge-slot~='attribution-wordmark']_textDecoration-k7BEHM":`x1l0eogd`,":is(a:hover, a:focus-visible) [data-stridge-slot~='attribution-wordmark']_textUnderlineOffset-kHPfEo":`x1diuls0`,$$css:`@stridge/kit:src/shared/attribution/Attribution.styles.ts:68`}};export{t as elementStyles,e as styles};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./Attribution.slots.js";import"./Attribution.js";
|