@stripe/connect-js 3.3.12-beta-1 → 3.3.13-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/connect.esm.js +10 -1
- package/dist/connect.js +10 -1
- package/dist/pure.esm.js +10 -1
- package/dist/pure.js +10 -1
- package/dist/types/config.d.ts +13 -0
- package/package.json +1 -1
- package/types/config.ts +18 -0
package/dist/connect.esm.js
CHANGED
|
@@ -35,6 +35,15 @@ const ConnectElementCustomMethodConfig = {
|
|
|
35
35
|
},
|
|
36
36
|
"financial-account-transactions": {
|
|
37
37
|
setFinancialAccount: _financialAccount => {}
|
|
38
|
+
},
|
|
39
|
+
"app-install": {
|
|
40
|
+
setApp: _app => {},
|
|
41
|
+
setOnAppInstallStateFetched: _listener => {},
|
|
42
|
+
setOnAppInstallStateChanged: _listener => {}
|
|
43
|
+
},
|
|
44
|
+
"app-viewport": {
|
|
45
|
+
setApp: _app => {},
|
|
46
|
+
setAppData: _appData => {}
|
|
38
47
|
}
|
|
39
48
|
};
|
|
40
49
|
|
|
@@ -202,7 +211,7 @@ const createWrapper = stripeConnect => {
|
|
|
202
211
|
sdk: true,
|
|
203
212
|
sdkOptions: {
|
|
204
213
|
// This will be replaced by the npm package version when bundling
|
|
205
|
-
sdkVersion: "3.3.
|
|
214
|
+
sdkVersion: "3.3.13-beta-1"
|
|
206
215
|
}
|
|
207
216
|
})
|
|
208
217
|
}));
|
package/dist/connect.js
CHANGED
|
@@ -39,6 +39,15 @@ const ConnectElementCustomMethodConfig = {
|
|
|
39
39
|
},
|
|
40
40
|
"financial-account-transactions": {
|
|
41
41
|
setFinancialAccount: _financialAccount => {}
|
|
42
|
+
},
|
|
43
|
+
"app-install": {
|
|
44
|
+
setApp: _app => {},
|
|
45
|
+
setOnAppInstallStateFetched: _listener => {},
|
|
46
|
+
setOnAppInstallStateChanged: _listener => {}
|
|
47
|
+
},
|
|
48
|
+
"app-viewport": {
|
|
49
|
+
setApp: _app => {},
|
|
50
|
+
setAppData: _appData => {}
|
|
42
51
|
}
|
|
43
52
|
};
|
|
44
53
|
|
|
@@ -206,7 +215,7 @@ const createWrapper = stripeConnect => {
|
|
|
206
215
|
sdk: true,
|
|
207
216
|
sdkOptions: {
|
|
208
217
|
// This will be replaced by the npm package version when bundling
|
|
209
|
-
sdkVersion: "3.3.
|
|
218
|
+
sdkVersion: "3.3.13-beta-1"
|
|
210
219
|
}
|
|
211
220
|
})
|
|
212
221
|
}));
|
package/dist/pure.esm.js
CHANGED
|
@@ -35,6 +35,15 @@ const ConnectElementCustomMethodConfig = {
|
|
|
35
35
|
},
|
|
36
36
|
"financial-account-transactions": {
|
|
37
37
|
setFinancialAccount: _financialAccount => {}
|
|
38
|
+
},
|
|
39
|
+
"app-install": {
|
|
40
|
+
setApp: _app => {},
|
|
41
|
+
setOnAppInstallStateFetched: _listener => {},
|
|
42
|
+
setOnAppInstallStateChanged: _listener => {}
|
|
43
|
+
},
|
|
44
|
+
"app-viewport": {
|
|
45
|
+
setApp: _app => {},
|
|
46
|
+
setAppData: _appData => {}
|
|
38
47
|
}
|
|
39
48
|
};
|
|
40
49
|
|
|
@@ -202,7 +211,7 @@ const createWrapper = stripeConnect => {
|
|
|
202
211
|
sdk: true,
|
|
203
212
|
sdkOptions: {
|
|
204
213
|
// This will be replaced by the npm package version when bundling
|
|
205
|
-
sdkVersion: "3.3.
|
|
214
|
+
sdkVersion: "3.3.13-beta-1"
|
|
206
215
|
}
|
|
207
216
|
})
|
|
208
217
|
}));
|
package/dist/pure.js
CHANGED
|
@@ -39,6 +39,15 @@ const ConnectElementCustomMethodConfig = {
|
|
|
39
39
|
},
|
|
40
40
|
"financial-account-transactions": {
|
|
41
41
|
setFinancialAccount: _financialAccount => {}
|
|
42
|
+
},
|
|
43
|
+
"app-install": {
|
|
44
|
+
setApp: _app => {},
|
|
45
|
+
setOnAppInstallStateFetched: _listener => {},
|
|
46
|
+
setOnAppInstallStateChanged: _listener => {}
|
|
47
|
+
},
|
|
48
|
+
"app-viewport": {
|
|
49
|
+
setApp: _app => {},
|
|
50
|
+
setAppData: _appData => {}
|
|
42
51
|
}
|
|
43
52
|
};
|
|
44
53
|
|
|
@@ -206,7 +215,7 @@ const createWrapper = stripeConnect => {
|
|
|
206
215
|
sdk: true,
|
|
207
216
|
sdkOptions: {
|
|
208
217
|
// This will be replaced by the npm package version when bundling
|
|
209
|
-
sdkVersion: "3.3.
|
|
218
|
+
sdkVersion: "3.3.13-beta-1"
|
|
210
219
|
}
|
|
211
220
|
})
|
|
212
221
|
}));
|
package/dist/types/config.d.ts
CHANGED
|
@@ -14,6 +14,10 @@ export type NotificationCount = {
|
|
|
14
14
|
total: number;
|
|
15
15
|
actionRequired: number;
|
|
16
16
|
};
|
|
17
|
+
export type InstallState = {
|
|
18
|
+
appId: string;
|
|
19
|
+
state: "INSTALLED" | "UNINSTALLED";
|
|
20
|
+
};
|
|
17
21
|
export declare const ConnectElementCustomMethodConfig: {
|
|
18
22
|
"payment-details": {
|
|
19
23
|
setPayment: (_payment: string | undefined) => void;
|
|
@@ -50,4 +54,13 @@ export declare const ConnectElementCustomMethodConfig: {
|
|
|
50
54
|
"financial-account-transactions": {
|
|
51
55
|
setFinancialAccount: (_financialAccount: string) => void;
|
|
52
56
|
};
|
|
57
|
+
"app-install": {
|
|
58
|
+
setApp: (_app: string | undefined) => void;
|
|
59
|
+
setOnAppInstallStateFetched: (_listener: (({ appId, state }: InstallState) => void) | undefined) => void;
|
|
60
|
+
setOnAppInstallStateChanged: (_listener: (({ appId, state }: InstallState) => void) | undefined) => void;
|
|
61
|
+
};
|
|
62
|
+
"app-viewport": {
|
|
63
|
+
setApp: (_app: string | undefined) => void;
|
|
64
|
+
setAppData: (_appData: Record<string, string> | undefined) => void;
|
|
65
|
+
};
|
|
53
66
|
};
|
package/package.json
CHANGED
package/types/config.ts
CHANGED
|
@@ -20,6 +20,11 @@ export type NotificationCount = {
|
|
|
20
20
|
actionRequired: number;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
+
export type InstallState = {
|
|
24
|
+
appId: string;
|
|
25
|
+
state: "INSTALLED" | "UNINSTALLED";
|
|
26
|
+
};
|
|
27
|
+
|
|
23
28
|
export const ConnectElementCustomMethodConfig = {
|
|
24
29
|
"payment-details": {
|
|
25
30
|
setPayment: (_payment: string | undefined): void => {},
|
|
@@ -75,5 +80,18 @@ export const ConnectElementCustomMethodConfig = {
|
|
|
75
80
|
},
|
|
76
81
|
"financial-account-transactions": {
|
|
77
82
|
setFinancialAccount: (_financialAccount: string): void => {}
|
|
83
|
+
},
|
|
84
|
+
"app-install": {
|
|
85
|
+
setApp: (_app: string | undefined): void => {},
|
|
86
|
+
setOnAppInstallStateFetched: (
|
|
87
|
+
_listener: (({ appId, state }: InstallState) => void) | undefined
|
|
88
|
+
): void => {},
|
|
89
|
+
setOnAppInstallStateChanged: (
|
|
90
|
+
_listener: (({ appId, state }: InstallState) => void) | undefined
|
|
91
|
+
): void => {}
|
|
92
|
+
},
|
|
93
|
+
"app-viewport": {
|
|
94
|
+
setApp: (_app: string | undefined): void => {},
|
|
95
|
+
setAppData: (_appData: Record<string, string> | undefined): void => {}
|
|
78
96
|
}
|
|
79
97
|
};
|