@nordhealth/provet-pay-elements 0.18.1 → 0.19.2

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.
@@ -113,6 +113,8 @@ interface PayCardTranslations {
113
113
  'provetPay.errors.network'?: string;
114
114
  /** Default: "The card form could not be opened. Try again later." */
115
115
  'provetPay.errors.session_error'?: string;
116
+ /** Default: "Your session has expired, please reload the page" */
117
+ 'provetPay.errors.session_expired'?: string;
116
118
  /** Default: "Something went wrong while setting up the card." */
117
119
  'provetPay.errors.technical'?: string;
118
120
  /** Default: "Loading the card form" (read by screen readers) */
@@ -260,7 +262,8 @@ interface MountOptions {
260
262
  * Something went wrong. When the component cannot go on, the form shows a
261
263
  * banner. When Adyen reports an error with its card fields loaded and on the
262
264
  * page, such as a failed call during the check, the form stays and the
263
- * shopper can try again.
265
+ * shopper can try again. A form whose 55 minutes are up ends with a banner
266
+ * too, its card fields cleared.
264
267
  */
265
268
  onError?: (error: ElementErrorPayload) => void;
266
269
  }
@@ -282,7 +285,7 @@ declare function mount(container: HTMLElement | string, options: MountOptions):
282
285
 
283
286
  /** The locale the component and Adyen get when the consumer passes none, and the component's fallback. */
284
287
  declare const DEFAULT_LOCALE = "en-GB";
285
- /** The component's own text in `DEFAULT_LOCALE`: every `provetPay.*` key with its British English default. Read-only. */
288
+ /** The component's own English text: every `provetPay.*` key with its source string, which shows wherever a dictionary has none. Read-only. */
286
289
  declare const DEFAULT_TRANSLATIONS: Readonly<Required<PayCardTranslations>>;
287
290
 
288
291
  declare const VERSION: string;
@@ -113,6 +113,8 @@ interface PayCardTranslations {
113
113
  'provetPay.errors.network'?: string;
114
114
  /** Default: "The card form could not be opened. Try again later." */
115
115
  'provetPay.errors.session_error'?: string;
116
+ /** Default: "Your session has expired, please reload the page" */
117
+ 'provetPay.errors.session_expired'?: string;
116
118
  /** Default: "Something went wrong while setting up the card." */
117
119
  'provetPay.errors.technical'?: string;
118
120
  /** Default: "Loading the card form" (read by screen readers) */
@@ -260,7 +262,8 @@ interface MountOptions {
260
262
  * Something went wrong. When the component cannot go on, the form shows a
261
263
  * banner. When Adyen reports an error with its card fields loaded and on the
262
264
  * page, such as a failed call during the check, the form stays and the
263
- * shopper can try again.
265
+ * shopper can try again. A form whose 55 minutes are up ends with a banner
266
+ * too, its card fields cleared.
264
267
  */
265
268
  onError?: (error: ElementErrorPayload) => void;
266
269
  }
@@ -282,7 +285,7 @@ declare function mount(container: HTMLElement | string, options: MountOptions):
282
285
 
283
286
  /** The locale the component and Adyen get when the consumer passes none, and the component's fallback. */
284
287
  declare const DEFAULT_LOCALE = "en-GB";
285
- /** The component's own text in `DEFAULT_LOCALE`: every `provetPay.*` key with its British English default. Read-only. */
288
+ /** The component's own English text: every `provetPay.*` key with its source string, which shows wherever a dictionary has none. Read-only. */
286
289
  declare const DEFAULT_TRANSLATIONS: Readonly<Required<PayCardTranslations>>;
287
290
 
288
291
  declare const VERSION: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordhealth/provet-pay-elements",
3
- "version": "0.18.1",
3
+ "version": "0.19.2",
4
4
  "description": "Embeddable Provet Pay card tokenizer — the Adyen Web v6 Sessions flow, mounted on the consumer’s own page and backed by Provet.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://gitlab.com/nordhealth/projects/microservices/payment-gateway/pay-js/-/tree/master/provet-pay-elements",