@stripe/connect-js 1.0.4 → 1.0.6
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 +28 -1
- package/dist/connect.js +28 -1
- package/dist/pure.esm.js +28 -1
- package/dist/pure.js +28 -1
- package/package.json +1 -1
- package/src/shared.ts +3 -0
- package/types/shared.d.ts +2 -5
package/dist/connect.esm.js
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
1
25
|
const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
|
|
2
26
|
const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
|
|
3
27
|
const findScript = () => {
|
|
@@ -68,7 +92,10 @@ const createWrapper = stripeConnect => {
|
|
|
68
92
|
sdk: true
|
|
69
93
|
})
|
|
70
94
|
}));
|
|
71
|
-
}
|
|
95
|
+
},
|
|
96
|
+
logout: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
97
|
+
yield stripeConnect.logout();
|
|
98
|
+
})
|
|
72
99
|
};
|
|
73
100
|
return wrapper;
|
|
74
101
|
};
|
package/dist/connect.js
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
/*! *****************************************************************************
|
|
6
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
8
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
9
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
12
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
13
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
14
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
15
|
+
|
|
16
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
17
|
+
and limitations under the License.
|
|
18
|
+
***************************************************************************** */
|
|
19
|
+
|
|
20
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
21
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
22
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
23
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
24
|
+
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
25
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
5
29
|
const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
|
|
6
30
|
const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
|
|
7
31
|
const findScript = () => {
|
|
@@ -72,7 +96,10 @@ const createWrapper = stripeConnect => {
|
|
|
72
96
|
sdk: true
|
|
73
97
|
})
|
|
74
98
|
}));
|
|
75
|
-
}
|
|
99
|
+
},
|
|
100
|
+
logout: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
101
|
+
yield stripeConnect.logout();
|
|
102
|
+
})
|
|
76
103
|
};
|
|
77
104
|
return wrapper;
|
|
78
105
|
};
|
package/dist/pure.esm.js
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
1
25
|
const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
|
|
2
26
|
const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
|
|
3
27
|
const findScript = () => {
|
|
@@ -68,7 +92,10 @@ const createWrapper = stripeConnect => {
|
|
|
68
92
|
sdk: true
|
|
69
93
|
})
|
|
70
94
|
}));
|
|
71
|
-
}
|
|
95
|
+
},
|
|
96
|
+
logout: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
97
|
+
yield stripeConnect.logout();
|
|
98
|
+
})
|
|
72
99
|
};
|
|
73
100
|
return wrapper;
|
|
74
101
|
};
|
package/dist/pure.js
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
/*! *****************************************************************************
|
|
6
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
8
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
9
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
12
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
13
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
14
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
15
|
+
|
|
16
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
17
|
+
and limitations under the License.
|
|
18
|
+
***************************************************************************** */
|
|
19
|
+
|
|
20
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
21
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
22
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
23
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
24
|
+
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
25
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
5
29
|
const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
|
|
6
30
|
const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
|
|
7
31
|
const findScript = () => {
|
|
@@ -72,7 +96,10 @@ const createWrapper = stripeConnect => {
|
|
|
72
96
|
sdk: true
|
|
73
97
|
})
|
|
74
98
|
}));
|
|
75
|
-
}
|
|
99
|
+
},
|
|
100
|
+
logout: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
101
|
+
yield stripeConnect.logout();
|
|
102
|
+
})
|
|
76
103
|
};
|
|
77
104
|
return wrapper;
|
|
78
105
|
};
|
package/package.json
CHANGED
package/src/shared.ts
CHANGED
package/types/shared.d.ts
CHANGED
|
@@ -117,6 +117,7 @@ export interface IStripeConnectInitParams {
|
|
|
117
117
|
|
|
118
118
|
export interface StripeConnectWrapper {
|
|
119
119
|
initialize: (params: IStripeConnectInitParams) => StripeConnectInstance;
|
|
120
|
+
logout: () => Promise<void>;
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
export interface StripeConnectInstance {
|
|
@@ -127,11 +128,7 @@ export interface StripeConnectInstance {
|
|
|
127
128
|
export type ConnectElementTagName =
|
|
128
129
|
| "stripe-connect-payments"
|
|
129
130
|
| "stripe-connect-payouts"
|
|
130
|
-
| "stripe-connect-
|
|
131
|
-
| "stripe-connect-account-management"
|
|
132
|
-
| "stripe-connect-instant-payouts"
|
|
133
|
-
| "stripe-connect-payment-details"
|
|
134
|
-
| "stripe-connect-notification-banner";
|
|
131
|
+
| "stripe-connect-payment-details";
|
|
135
132
|
|
|
136
133
|
export declare const findScript: () => HTMLScriptElement | null;
|
|
137
134
|
|