choco-one-click-payment 1.0.12 → 1.0.13

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.
Files changed (2) hide show
  1. package/index.d.ts +6 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -88,6 +88,12 @@ export interface ChocoOneClickConfig {
88
88
  */
89
89
  onConfirmPay?: () => void;
90
90
 
91
+ /**
92
+ * Callback вызываемый при включении/выключении бонусов
93
+ * @param useBonuses - true если бонусы включены, false если выключены
94
+ */
95
+ onAppliedBonus?: (useBonuses: boolean) => void;
96
+
91
97
  /**
92
98
  * Акцентный цвет (фон кнопки оплаты и включенного тумблера баланса)
93
99
  * @default "#2F2F2F"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "choco-one-click-payment",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Встраиваемый виджет для быстрой оплаты с bottom sheet интерфейсом",
5
5
  "main": "./index.js",
6
6
  "module": "./index.esm.js",