@stripe/connect-js 3.3.10-beta-1 → 3.3.11-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.
@@ -201,7 +201,7 @@ const createWrapper = stripeConnect => {
201
201
  sdk: true,
202
202
  sdkOptions: {
203
203
  // This will be replaced by the npm package version when bundling
204
- sdkVersion: "3.3.10-beta-1"
204
+ sdkVersion: "3.3.11-beta-1"
205
205
  }
206
206
  })
207
207
  }));
package/dist/connect.js CHANGED
@@ -205,7 +205,7 @@ const createWrapper = stripeConnect => {
205
205
  sdk: true,
206
206
  sdkOptions: {
207
207
  // This will be replaced by the npm package version when bundling
208
- sdkVersion: "3.3.10-beta-1"
208
+ sdkVersion: "3.3.11-beta-1"
209
209
  }
210
210
  })
211
211
  }));
package/dist/pure.esm.js CHANGED
@@ -201,7 +201,7 @@ const createWrapper = stripeConnect => {
201
201
  sdk: true,
202
202
  sdkOptions: {
203
203
  // This will be replaced by the npm package version when bundling
204
- sdkVersion: "3.3.10-beta-1"
204
+ sdkVersion: "3.3.11-beta-1"
205
205
  }
206
206
  })
207
207
  }));
package/dist/pure.js CHANGED
@@ -205,7 +205,7 @@ const createWrapper = stripeConnect => {
205
205
  sdk: true,
206
206
  sdkOptions: {
207
207
  // This will be replaced by the npm package version when bundling
208
- sdkVersion: "3.3.10-beta-1"
208
+ sdkVersion: "3.3.11-beta-1"
209
209
  }
210
210
  })
211
211
  }));
@@ -10,6 +10,10 @@ export type CollectionOptions = {
10
10
  fields: "currently_due" | "eventually_due";
11
11
  futureRequirements?: "omit" | "include";
12
12
  };
13
+ export type NotificationCount = {
14
+ total: number;
15
+ actionRequired: number;
16
+ };
13
17
  export declare const ConnectElementCustomMethodConfig: {
14
18
  "payment-details": {
15
19
  setPayment: (_payment: string | undefined) => void;
@@ -28,7 +32,7 @@ export declare const ConnectElementCustomMethodConfig: {
28
32
  };
29
33
  "notification-banner": {
30
34
  setCollectionOptions: (_collectionOptions: CollectionOptions | undefined) => void;
31
- setOnNotificationsChange: (_listener: (() => void) | undefined) => void;
35
+ setOnNotificationsChange: (_listener: (({ total, actionRequired }: NotificationCount) => void) | undefined) => void;
32
36
  };
33
37
  "issuing-card": {
34
38
  setDefaultCard: (_defaultCard: string | undefined) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "3.3.10-beta-1",
3
+ "version": "3.3.11-beta-1",
4
4
  "description": "Connect.js loading utility package",
5
5
  "main": "dist/connect.js",
6
6
  "module": "dist/connect.esm.js",
package/types/config.ts CHANGED
@@ -15,6 +15,11 @@ export type CollectionOptions = {
15
15
  futureRequirements?: "omit" | "include";
16
16
  };
17
17
 
18
+ export type NotificationCount = {
19
+ total: number;
20
+ actionRequired: number;
21
+ };
22
+
18
23
  export const ConnectElementCustomMethodConfig = {
19
24
  "payment-details": {
20
25
  setPayment: (_payment: string | undefined): void => {},
@@ -45,7 +50,11 @@ export const ConnectElementCustomMethodConfig = {
45
50
  setCollectionOptions: (
46
51
  _collectionOptions: CollectionOptions | undefined
47
52
  ): void => {},
48
- setOnNotificationsChange: (_listener: (() => void) | undefined): void => {}
53
+ setOnNotificationsChange: (
54
+ _listener:
55
+ | (({ total, actionRequired }: NotificationCount) => void)
56
+ | undefined
57
+ ): void => {}
49
58
  },
50
59
  "issuing-card": {
51
60
  setDefaultCard: (_defaultCard: string | undefined): void => {},