@payment-kit-js/vanilla 0.5.5 → 0.5.7

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,5 +1,5 @@
1
1
  /**
2
- * PaymentKit.js v0.5.5
2
+ * PaymentKit.js v0.5.7
3
3
  * https://paymentkit.com
4
4
  *
5
5
  * @license MIT
@@ -42,7 +42,7 @@ var PaymentKit = (() => {
42
42
  });
43
43
 
44
44
  // package.json
45
- var version = "0.5.5";
45
+ var version = "0.5.7";
46
46
 
47
47
  // src/analytics/mock-adapter.ts
48
48
  var MockAnalyticsAdapter = class {
@@ -6869,8 +6869,12 @@ var PaymentKit = (() => {
6869
6869
  validations: ["required", "validCardNumber"],
6870
6870
  css: fieldCss
6871
6871
  });
6872
- const expField = form.cardExpirationDateField(mountPoints.exp, {
6872
+ const expField = form.field(mountPoints.exp, {
6873
+ type: "card-expiration-date",
6874
+ name: "exp-date",
6873
6875
  placeholder: placeholders?.card_exp ?? "MM / YY",
6876
+ yearLength: 2,
6877
+ serializers: [{ name: "separate", options: { monthName: "month", yearName: "year" } }],
6874
6878
  validations: ["required", "validCardExpirationDate"],
6875
6879
  css: fieldCss
6876
6880
  });