@yuno-payments/sdk-web-types 1.7.0 → 1.9.0-beta.1

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
@@ -248,6 +248,7 @@ type OnChangeArgs = {
248
248
  isInstallmentLoading: boolean;
249
249
  };
250
250
  };
251
+ type ValidationTypeSecureFields = 'on_change' | 'on_blur' | 'on_blur_full';
251
252
  type Create = {
252
253
  name: Name;
253
254
  options: {
@@ -256,9 +257,12 @@ type Create = {
256
257
  onChange?(onChangeArgs: OnChangeArgs): void;
257
258
  onBlur?(): void;
258
259
  onFocus?(): void;
260
+ onRenderedSecureField?(): void;
259
261
  styles?: string;
260
262
  placeholder?: string;
261
263
  errorMessage?: string;
264
+ requiredErrorMessage?: string;
265
+ validationType?: ValidationTypeSecureFields;
262
266
  };
263
267
  };
264
268
  type GetElement = {
@@ -386,9 +390,13 @@ interface CardConfig {
386
390
  texts?: ButtonTextCard;
387
391
  documentEnable?: boolean;
388
392
  }
393
+ interface FormElementSelector {
394
+ apmForm?: string;
395
+ actionForm?: string;
396
+ }
389
397
  interface RenderMode {
390
398
  type: 'modal' | 'element';
391
- elementSelector?: string;
399
+ elementSelector?: string | FormElementSelector;
392
400
  }
393
401
  declare enum ExternalPaymentButtonsTypes {
394
402
  PAYPAL = "paypal"
package/dist/types.ts CHANGED
@@ -248,6 +248,7 @@ type OnChangeArgs = {
248
248
  isInstallmentLoading: boolean;
249
249
  };
250
250
  };
251
+ type ValidationTypeSecureFields = 'on_change' | 'on_blur' | 'on_blur_full';
251
252
  type Create = {
252
253
  name: Name;
253
254
  options: {
@@ -256,9 +257,12 @@ type Create = {
256
257
  onChange?(onChangeArgs: OnChangeArgs): void;
257
258
  onBlur?(): void;
258
259
  onFocus?(): void;
260
+ onRenderedSecureField?(): void;
259
261
  styles?: string;
260
262
  placeholder?: string;
261
263
  errorMessage?: string;
264
+ requiredErrorMessage?: string;
265
+ validationType?: ValidationTypeSecureFields;
262
266
  };
263
267
  };
264
268
  type GetElement = {
@@ -386,9 +390,13 @@ interface CardConfig {
386
390
  texts?: ButtonTextCard;
387
391
  documentEnable?: boolean;
388
392
  }
393
+ interface FormElementSelector {
394
+ apmForm?: string;
395
+ actionForm?: string;
396
+ }
389
397
  interface RenderMode {
390
398
  type: 'modal' | 'element';
391
- elementSelector?: string;
399
+ elementSelector?: string | FormElementSelector;
392
400
  }
393
401
  declare enum ExternalPaymentButtonsTypes {
394
402
  PAYPAL = "paypal"
@@ -490,4 +498,4 @@ interface Yuno {
490
498
  initialize(publicApiKey: string): YunoInstance;
491
499
  }
492
500
 
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 };
501
+ 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.9.0-beta.1",
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",