@stripe/connect-js 3.3.8 → 3.3.9

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.
@@ -174,7 +174,7 @@ const createWrapper = stripeConnect => {
174
174
  sdk: true,
175
175
  sdkOptions: {
176
176
  // This will be replaced by the npm package version when bundling
177
- sdkVersion: "3.3.8"
177
+ sdkVersion: "3.3.9"
178
178
  }
179
179
  })
180
180
  }));
package/dist/connect.js CHANGED
@@ -178,7 +178,7 @@ const createWrapper = stripeConnect => {
178
178
  sdk: true,
179
179
  sdkOptions: {
180
180
  // This will be replaced by the npm package version when bundling
181
- sdkVersion: "3.3.8"
181
+ sdkVersion: "3.3.9"
182
182
  }
183
183
  })
184
184
  }));
package/dist/pure.esm.js CHANGED
@@ -174,7 +174,7 @@ const createWrapper = stripeConnect => {
174
174
  sdk: true,
175
175
  sdkOptions: {
176
176
  // This will be replaced by the npm package version when bundling
177
- sdkVersion: "3.3.8"
177
+ sdkVersion: "3.3.9"
178
178
  }
179
179
  })
180
180
  }));
package/dist/pure.js CHANGED
@@ -178,7 +178,7 @@ const createWrapper = stripeConnect => {
178
178
  sdk: true,
179
179
  sdkOptions: {
180
180
  // This will be replaced by the npm package version when bundling
181
- sdkVersion: "3.3.8"
181
+ sdkVersion: "3.3.9"
182
182
  }
183
183
  })
184
184
  }));
@@ -2,6 +2,10 @@ export type CollectionOptions = {
2
2
  fields: "currently_due" | "eventually_due";
3
3
  futureRequirements?: "omit" | "include";
4
4
  };
5
+ export type NotificationCount = {
6
+ total: number;
7
+ actionRequired: number;
8
+ };
5
9
  export declare const ConnectElementCustomMethodConfig: {
6
10
  "account-onboarding": {
7
11
  setFullTermsOfServiceUrl: (_termOfServiceUrl: string | undefined) => void;
@@ -16,7 +20,7 @@ export declare const ConnectElementCustomMethodConfig: {
16
20
  };
17
21
  "notification-banner": {
18
22
  setCollectionOptions: (_collectionOptions: CollectionOptions | undefined) => void;
19
- setOnNotificationsChange: (_listener: (() => void) | undefined) => void;
23
+ setOnNotificationsChange: (_listener: (({ total, actionRequired }: NotificationCount) => void) | undefined) => void;
20
24
  };
21
25
  "payment-details": {
22
26
  setPayment: (_payment: string | undefined) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "3.3.8",
3
+ "version": "3.3.9",
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
@@ -6,6 +6,11 @@ export type CollectionOptions = {
6
6
  futureRequirements?: "omit" | "include";
7
7
  };
8
8
 
9
+ export type NotificationCount = {
10
+ total: number;
11
+ actionRequired: number;
12
+ };
13
+
9
14
  export const ConnectElementCustomMethodConfig = {
10
15
  "account-onboarding": {
11
16
  setFullTermsOfServiceUrl: (
@@ -32,7 +37,11 @@ export const ConnectElementCustomMethodConfig = {
32
37
  setCollectionOptions: (
33
38
  _collectionOptions: CollectionOptions | undefined
34
39
  ): void => {},
35
- setOnNotificationsChange: (_listener: (() => void) | undefined): void => {}
40
+ setOnNotificationsChange: (
41
+ _listener:
42
+ | (({ total, actionRequired }: NotificationCount) => void)
43
+ | undefined
44
+ ): void => {}
36
45
  },
37
46
  "payment-details": {
38
47
  setPayment: (_payment: string | undefined): void => {},