moyasar-payment-form 2.0.15 → 2.0.17

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: moyasar-payment-form
3
- * version: v2.0.15
3
+ * version: v2.0.17
4
4
  * description: Moyasar payment form utilities
5
5
  * author: Jan Jagieła - Railwaymen Team
6
6
  * homepage: https://docs.moyasar.com
package/dist/moyasar.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: moyasar-payment-form
3
- * version: v2.0.15
3
+ * version: v2.0.17
4
4
  * description: Moyasar payment form utilities
5
5
  * author: Jan Jagieła - Railwaymen Team
6
6
  * homepage: https://docs.moyasar.com
package/dist/moyasar.d.ts CHANGED
@@ -1,31 +1,7 @@
1
- import { Dispatch } from 'preact/hooks';
2
- import { StateUpdater } from 'preact/hooks';
3
-
4
- declare interface AppCtxProps extends MoyasarJS.PaymentFormConfig {
5
- formattedAmount: string;
6
- decimalAmount: string;
7
- isRtl: boolean;
8
- version: string;
9
- setFormSettings?: SetFormSettings;
10
- isProcessing: boolean;
11
- apiError?: string;
12
- showForm: boolean;
13
- isTestMode?: boolean;
14
- scriptsLoaded?: {
15
- samsung: boolean;
16
- google: boolean;
17
- apple: boolean;
18
- };
19
- }
20
-
21
1
  declare class Moyasar {
22
2
  static init(config: MoyasarJS.PaymentFormConfig): void;
23
3
  static setAmount(newAmount: number): void;
24
4
  }
25
5
  export default Moyasar;
26
6
 
27
- export declare function registerAmountSetter(setter: SetFormSettings): void;
28
-
29
- declare type SetFormSettings = Dispatch<StateUpdater<AppCtxProps>>;
30
-
31
7
  export { }