@yuno-payments/sdk-web-types 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -256,6 +256,7 @@ type Create = {
256
256
  onChange?(onChangeArgs: OnChangeArgs): void;
257
257
  onBlur?(): void;
258
258
  onFocus?(): void;
259
+ onRenderedSecureField?(): void;
259
260
  styles?: string;
260
261
  placeholder?: string;
261
262
  errorMessage?: string;
@@ -386,9 +387,13 @@ interface CardConfig {
386
387
  texts?: ButtonTextCard;
387
388
  documentEnable?: boolean;
388
389
  }
390
+ interface FormElementSelector {
391
+ apmForm?: string;
392
+ actionForm?: string;
393
+ }
389
394
  interface RenderMode {
390
395
  type: 'modal' | 'element';
391
- elementSelector?: string;
396
+ elementSelector?: string | FormElementSelector;
392
397
  }
393
398
  declare enum ExternalPaymentButtonsTypes {
394
399
  PAYPAL = "paypal"
package/dist/types.ts CHANGED
@@ -256,6 +256,7 @@ type Create = {
256
256
  onChange?(onChangeArgs: OnChangeArgs): void;
257
257
  onBlur?(): void;
258
258
  onFocus?(): void;
259
+ onRenderedSecureField?(): void;
259
260
  styles?: string;
260
261
  placeholder?: string;
261
262
  errorMessage?: string;
@@ -386,9 +387,13 @@ interface CardConfig {
386
387
  texts?: ButtonTextCard;
387
388
  documentEnable?: boolean;
388
389
  }
390
+ interface FormElementSelector {
391
+ apmForm?: string;
392
+ actionForm?: string;
393
+ }
389
394
  interface RenderMode {
390
395
  type: 'modal' | 'element';
391
- elementSelector?: string;
396
+ elementSelector?: string | FormElementSelector;
392
397
  }
393
398
  declare enum ExternalPaymentButtonsTypes {
394
399
  PAYPAL = "paypal"
@@ -490,4 +495,4 @@ interface Yuno {
490
495
  initialize(publicApiKey: string): YunoInstance;
491
496
  }
492
497
 
493
- export { type ButtonTextCard, type CardConfig, type ExternalPaymentButtons, ExternalPaymentButtonsTypes, type Language, type LoadingType, type MountCheckoutArgs, type MountCheckoutLiteArgs, type MountEnrollmentLiteArgs, type MountStatusPaymentArgs, type RenderMode, type SecureFieldsArgs, type StartCheckoutArgs, type TextsCustom, type Yuno, type YunoConfig, type YunoInstance, type mountFraudArgs };
498
+ export { type ButtonTextCard, type CardConfig, type ExternalPaymentButtons, ExternalPaymentButtonsTypes, type FormElementSelector, type Language, type LoadingType, type MountCheckoutArgs, type MountCheckoutLiteArgs, type MountEnrollmentLiteArgs, type MountStatusPaymentArgs, type RenderMode, type SecureFieldsArgs, type StartCheckoutArgs, type TextsCustom, type Yuno, type YunoConfig, type YunoInstance, type mountFraudArgs };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuno-payments/sdk-web-types",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/types.ts",
6
6
  "type": "commonjs",
@@ -11,7 +11,8 @@
11
11
  "/dist"
12
12
  ],
13
13
  "scripts": {
14
- "build": "rm -rf ./dist && rollup -c --bundleConfigAsCjs && node ./script.js"
14
+ "build": "rm -rf ./dist && rollup -c --bundleConfigAsCjs && node ./script.js",
15
+ "prepublishOnly": "npm run build"
15
16
  },
16
17
  "author": "",
17
18
  "license": "ISC",