@stripe/connect-js 2.0.1-beta.5 → 2.0.1-beta.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,36 +1,12 @@
1
- import { useQuery } from 'react-query';
2
-
3
- /*! *****************************************************************************
4
- Copyright (c) Microsoft Corporation. All rights reserved.
5
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
6
- this file except in compliance with the License. You may obtain a copy of the
7
- License at http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
10
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
11
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
12
- MERCHANTABLITY OR NON-INFRINGEMENT.
13
-
14
- See the Apache Version 2.0 License for specific language governing permissions
15
- and limitations under the License.
16
- ***************************************************************************** */
17
-
18
- function __awaiter(thisArg, _arguments, P, generator) {
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- }
26
-
27
- var version = "2.0.1-beta.1";
28
-
29
1
  const componentNameMapping = {
30
2
  payments: "stripe-connect-payments",
31
3
  payouts: "stripe-connect-payouts",
32
4
  "payment-details": "stripe-connect-payment-details",
33
- "account-onboarding": "stripe-connect-account-onboarding"
5
+ "account-onboarding": "stripe-connect-account-onboarding",
6
+ "payment-method-settings": "stripe-connect-payment-method-settings",
7
+ "account-management": "stripe-connect-account-management",
8
+ "notification-banner": "stripe-connect-notification-banner",
9
+ "instant-payouts": "stripe-connect-instant-payouts"
34
10
  };
35
11
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
36
12
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -39,7 +15,7 @@ const findScript = () => {
39
15
  };
40
16
  const injectScript = () => {
41
17
  const script = document.createElement("script");
42
- script.src = "http://localhost:3001/v0.1/connect.js";
18
+ script.src = "https://connect-js.stripe.com/v0.1/connect.js";
43
19
  const head = document.head;
44
20
  if (!head) {
45
21
  throw new Error("Expected document.head not to be null. Connect.js requires a <head> element.");
@@ -105,7 +81,8 @@ const createWrapper = stripeConnect => {
105
81
  metaOptions: Object.assign(Object.assign({}, metaOptions), {
106
82
  sdk: true,
107
83
  sdkOptions: {
108
- sdkVersion: version
84
+ // This will be replaced by the npm package version when bundling
85
+ sdkVersion: "2.0.1-beta.7"
109
86
  }
110
87
  })
111
88
  }));
@@ -137,19 +114,5 @@ const loadConnect = () => {
137
114
  loadCalled = true;
138
115
  return stripePromise$1.then(maybeConnect => initStripeConnect(maybeConnect));
139
116
  };
140
- const loadConnectAndInitialize = initParams => {
141
- loadCalled = true;
142
- console.log("loading connect and initializing");
143
- const {
144
- data
145
- } = useQuery([initParams], () => __awaiter(void 0, void 0, void 0, function* () {
146
- const stripeConnectWrapper = yield stripePromise$1.then(maybeConnect => initStripeConnect(maybeConnect));
147
- if (stripeConnectWrapper === null) {
148
- throw new Error("Stripe Connect has not loaded correctly");
149
- }
150
- return stripeConnectWrapper.initialize(initParams);
151
- }));
152
- return data;
153
- };
154
117
 
155
- export { loadConnect, loadConnectAndInitialize };
118
+ export { loadConnect };
package/dist/connect.js CHANGED
@@ -2,39 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var reactQuery = require('react-query');
6
-
7
- /*! *****************************************************************************
8
- Copyright (c) Microsoft Corporation. All rights reserved.
9
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
10
- this file except in compliance with the License. You may obtain a copy of the
11
- License at http://www.apache.org/licenses/LICENSE-2.0
12
-
13
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
15
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
16
- MERCHANTABLITY OR NON-INFRINGEMENT.
17
-
18
- See the Apache Version 2.0 License for specific language governing permissions
19
- and limitations under the License.
20
- ***************************************************************************** */
21
-
22
- function __awaiter(thisArg, _arguments, P, generator) {
23
- return new (P || (P = Promise))(function (resolve, reject) {
24
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
25
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
26
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
27
- step((generator = generator.apply(thisArg, _arguments || [])).next());
28
- });
29
- }
30
-
31
- var version = "2.0.1-beta.1";
32
-
33
5
  const componentNameMapping = {
34
6
  payments: "stripe-connect-payments",
35
7
  payouts: "stripe-connect-payouts",
36
8
  "payment-details": "stripe-connect-payment-details",
37
- "account-onboarding": "stripe-connect-account-onboarding"
9
+ "account-onboarding": "stripe-connect-account-onboarding",
10
+ "payment-method-settings": "stripe-connect-payment-method-settings",
11
+ "account-management": "stripe-connect-account-management",
12
+ "notification-banner": "stripe-connect-notification-banner",
13
+ "instant-payouts": "stripe-connect-instant-payouts"
38
14
  };
39
15
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
40
16
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -43,7 +19,7 @@ const findScript = () => {
43
19
  };
44
20
  const injectScript = () => {
45
21
  const script = document.createElement("script");
46
- script.src = "http://localhost:3001/v0.1/connect.js";
22
+ script.src = "https://connect-js.stripe.com/v0.1/connect.js";
47
23
  const head = document.head;
48
24
  if (!head) {
49
25
  throw new Error("Expected document.head not to be null. Connect.js requires a <head> element.");
@@ -109,7 +85,8 @@ const createWrapper = stripeConnect => {
109
85
  metaOptions: Object.assign(Object.assign({}, metaOptions), {
110
86
  sdk: true,
111
87
  sdkOptions: {
112
- sdkVersion: version
88
+ // This will be replaced by the npm package version when bundling
89
+ sdkVersion: "2.0.1-beta.7"
113
90
  }
114
91
  })
115
92
  }));
@@ -141,20 +118,5 @@ const loadConnect = () => {
141
118
  loadCalled = true;
142
119
  return stripePromise$1.then(maybeConnect => initStripeConnect(maybeConnect));
143
120
  };
144
- const loadConnectAndInitialize = initParams => {
145
- loadCalled = true;
146
- console.log("loading connect and initializing");
147
- const {
148
- data
149
- } = reactQuery.useQuery([initParams], () => __awaiter(void 0, void 0, void 0, function* () {
150
- const stripeConnectWrapper = yield stripePromise$1.then(maybeConnect => initStripeConnect(maybeConnect));
151
- if (stripeConnectWrapper === null) {
152
- throw new Error("Stripe Connect has not loaded correctly");
153
- }
154
- return stripeConnectWrapper.initialize(initParams);
155
- }));
156
- return data;
157
- };
158
121
 
159
122
  exports.loadConnect = loadConnect;
160
- exports.loadConnectAndInitialize = loadConnectAndInitialize;
@@ -0,0 +1,3 @@
1
+ import { LoadConnect } from "./shared";
2
+ export declare const loadConnect: LoadConnect;
3
+ export {};
package/dist/pure.esm.js CHANGED
@@ -1,10 +1,12 @@
1
- var version = "2.0.1-beta.1";
2
-
3
1
  const componentNameMapping = {
4
2
  payments: "stripe-connect-payments",
5
3
  payouts: "stripe-connect-payouts",
6
4
  "payment-details": "stripe-connect-payment-details",
7
- "account-onboarding": "stripe-connect-account-onboarding"
5
+ "account-onboarding": "stripe-connect-account-onboarding",
6
+ "payment-method-settings": "stripe-connect-payment-method-settings",
7
+ "account-management": "stripe-connect-account-management",
8
+ "notification-banner": "stripe-connect-notification-banner",
9
+ "instant-payouts": "stripe-connect-instant-payouts"
8
10
  };
9
11
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
10
12
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -13,7 +15,7 @@ const findScript = () => {
13
15
  };
14
16
  const injectScript = () => {
15
17
  const script = document.createElement("script");
16
- script.src = "http://localhost:3001/v0.1/connect.js";
18
+ script.src = "https://connect-js.stripe.com/v0.1/connect.js";
17
19
  const head = document.head;
18
20
  if (!head) {
19
21
  throw new Error("Expected document.head not to be null. Connect.js requires a <head> element.");
@@ -79,7 +81,8 @@ const createWrapper = stripeConnect => {
79
81
  metaOptions: Object.assign(Object.assign({}, metaOptions), {
80
82
  sdk: true,
81
83
  sdkOptions: {
82
- sdkVersion: version
84
+ // This will be replaced by the npm package version when bundling
85
+ sdkVersion: "2.0.1-beta.7"
83
86
  }
84
87
  })
85
88
  }));
package/dist/pure.js CHANGED
@@ -2,13 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = "2.0.1-beta.1";
6
-
7
5
  const componentNameMapping = {
8
6
  payments: "stripe-connect-payments",
9
7
  payouts: "stripe-connect-payouts",
10
8
  "payment-details": "stripe-connect-payment-details",
11
- "account-onboarding": "stripe-connect-account-onboarding"
9
+ "account-onboarding": "stripe-connect-account-onboarding",
10
+ "payment-method-settings": "stripe-connect-payment-method-settings",
11
+ "account-management": "stripe-connect-account-management",
12
+ "notification-banner": "stripe-connect-notification-banner",
13
+ "instant-payouts": "stripe-connect-instant-payouts"
12
14
  };
13
15
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
14
16
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -17,7 +19,7 @@ const findScript = () => {
17
19
  };
18
20
  const injectScript = () => {
19
21
  const script = document.createElement("script");
20
- script.src = "http://localhost:3001/v0.1/connect.js";
22
+ script.src = "https://connect-js.stripe.com/v0.1/connect.js";
21
23
  const head = document.head;
22
24
  if (!head) {
23
25
  throw new Error("Expected document.head not to be null. Connect.js requires a <head> element.");
@@ -83,7 +85,8 @@ const createWrapper = stripeConnect => {
83
85
  metaOptions: Object.assign(Object.assign({}, metaOptions), {
84
86
  sdk: true,
85
87
  sdkOptions: {
86
- sdkVersion: version
88
+ // This will be replaced by the npm package version when bundling
89
+ sdkVersion: "2.0.1-beta.7"
87
90
  }
88
91
  })
89
92
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "2.0.1-beta.5",
3
+ "version": "2.0.1-beta.7",
4
4
  "description": "Connect.js loading utility package",
5
5
  "main": "dist/connect.js",
6
6
  "module": "dist/connect.esm.js",
package/src/shared.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  StripeConnectWrapper,
3
3
  IStripeConnectInitParams,
4
- ConnectElementTagName
4
+ ConnectElementTagName,
5
5
  } from "../types";
6
6
 
7
7
  export type LoadConnect = () => Promise<StripeConnectWrapper>;
@@ -11,7 +11,10 @@ type ConnectElementHTMLName =
11
11
  | "stripe-connect-payouts"
12
12
  | "stripe-connect-payment-details"
13
13
  | "stripe-connect-account-onboarding"
14
- | "stripe-connect-payment-method-settings";
14
+ | "stripe-connect-payment-method-settings"
15
+ | "stripe-connect-account-management"
16
+ | "stripe-connect-notification-banner"
17
+ | "stripe-connect-instant-payouts";
15
18
 
16
19
  const componentNameMapping: Record<
17
20
  ConnectElementTagName,
@@ -21,7 +24,10 @@ const componentNameMapping: Record<
21
24
  payouts: "stripe-connect-payouts",
22
25
  "payment-details": "stripe-connect-payment-details",
23
26
  "account-onboarding": "stripe-connect-account-onboarding",
24
- "payment-method-settings": "stripe-connect-payment-method-settings"
27
+ "payment-method-settings": "stripe-connect-payment-method-settings",
28
+ "account-management": "stripe-connect-account-management",
29
+ "notification-banner": "stripe-connect-notification-banner",
30
+ "instant-payouts": "stripe-connect-instant-payouts",
25
31
  };
26
32
 
27
33
  const EXISTING_SCRIPT_MESSAGE =
@@ -127,9 +133,9 @@ const createWrapper = (stripeConnect: any) => {
127
133
  sdk: true,
128
134
  sdkOptions: {
129
135
  // This will be replaced by the npm package version when bundling
130
- sdkVersion: "_NPM_PACKAGE_VERSION_"
131
- }
132
- }
136
+ sdkVersion: "_NPM_PACKAGE_VERSION_",
137
+ },
138
+ },
133
139
  });
134
140
 
135
141
  // We wrap create so we can map its different strings to supported components
@@ -144,7 +150,7 @@ const createWrapper = (stripeConnect: any) => {
144
150
  return oldCreate(htmlName);
145
151
  };
146
152
  return stripeConnectInstance;
147
- }
153
+ },
148
154
  };
149
155
  return wrapper;
150
156
  };
package/types/shared.d.ts CHANGED
@@ -6,114 +6,342 @@ export declare type OverlayOption = "dialog" | "drawer";
6
6
  * Appearance options for the Connect instance.
7
7
  */
8
8
  export declare type AppearanceOptions = {
9
+ /**
10
+ * The type of overlay used throughout the Connect.js design system. Set this to be either a Dialog or Drawer.
11
+ */
9
12
  overlays?: OverlayOption;
10
13
  variables?: AppearanceVariables;
11
14
  };
12
15
 
13
16
  export declare type AppearanceVariables = {
17
+ // Commonly used
18
+
19
+ /**
20
+ * The font family value used throughout embedded components. If an embedded component inherits a font-family value from an element on your site in which it’s placed, this setting overrides that inheritance.
21
+ */
22
+ fontFamily?: string;
23
+
24
+ /**
25
+ * The baseline font size set on the embedded component root. This scales the value of other font size variables. This supports pixel values only.
26
+ */
27
+ fontSizeBase?: string;
28
+
29
+ /**
30
+ * The base spacing unit that derives all spacing values. Increase or decrease this value to make your layout more or less spacious. This supports pixel values only.
31
+ */
32
+ spacingUnit?: string;
33
+
34
+ /**
35
+ * The general border radius used in embedded components. This sets the default border radius for all components. This supports pixel values only.
36
+ */
37
+ borderRadius?: string;
38
+
39
+ /**
40
+ * The primary color used throughout embedded components. Set this to your primary brand color. This accepts hex values or RGB/HSL strings.
41
+ */
14
42
  colorPrimary?: string;
43
+
44
+ /**
45
+ * The background color for embedded components, including overlays, tooltips, and popovers. This accepts hex values or RGB/HSL strings.
46
+ */
47
+ colorBackground?: string;
48
+
49
+ /**
50
+ * The color used for regular text. This accepts hex values or RGB/HSL strings.
51
+ */
52
+ colorText?: string;
53
+
54
+ /**
55
+ * The color used to indicate errors or destructive actions. This accepts hex values or RGB/HSL strings.
56
+ */
57
+ colorDanger?: string;
58
+
59
+ // Less commonly used
60
+
15
61
  // Primary Button
16
- buttonPrimaryColorBorder?: string;
62
+ /**
63
+ * The color used as a background for primary buttons. This accepts hex values or RGB/HSL strings.
64
+ */
17
65
  buttonPrimaryColorBackground?: string;
66
+ /**
67
+ * The border color used for primary buttons. This accepts hex values or RGB/HSL strings.
68
+ */
69
+ buttonPrimaryColorBorder?: string;
70
+ /**
71
+ * The text color used for primary buttons. This accepts hex values or RGB/HSL strings.
72
+ */
18
73
  buttonPrimaryColorText?: string;
74
+
19
75
  // Secondary Button
20
- buttonSecondaryColorBorder?: string;
76
+ /**
77
+ * The color used as a background for secondary buttons. This accepts hex values or RGB/HSL strings.
78
+ */
21
79
  buttonSecondaryColorBackground?: string;
80
+ /**
81
+ * The color used as a border for secondary buttons. This accepts hex values or RGB/HSL strings.
82
+ */
83
+ buttonSecondaryColorBorder?: string;
84
+ /**
85
+ * The text color used for secondary buttons. This accepts hex values or RGB/HSL strings.
86
+ */
22
87
  buttonSecondaryColorText?: string;
23
- // Link
88
+
89
+ /**
90
+ * The color used for secondary text. This accepts hex values or RGB/RGBA/HSL strings.
91
+ */
92
+ colorSecondaryText?: string;
93
+ /**
94
+ * The color used for primary actions and links. This accepts hex values or RGB/HSL strings.
95
+ */
24
96
  actionPrimaryColorText?: string;
97
+ /**
98
+ * The color used for secondary actions and links. This accepts hex values or RGB/HSL strings.
99
+ */
25
100
  actionSecondaryColorText?: string;
26
- // Border
27
- colorBorder?: string;
28
- // Form
29
- formHighlightColorBorder?: string;
30
- formAccentColor?: string;
31
- // Text
32
- colorText?: string;
33
- colorSecondaryText?: string;
34
- // Background
35
- colorBackground?: string;
36
- offsetBackgroundColor?: string;
37
- formBackgroundColor?: string;
38
-
39
- // Feedback Colors
40
- colorDanger?: string;
41
101
 
42
102
  // Neutral Badge Colors
43
- badgeNeutralColorBorder?: string;
103
+ /**
104
+ * The background color used to represent neutral state or lack of state in status badges. This accepts hex values or RGB/HSL strings.
105
+ */
44
106
  badgeNeutralColorBackground?: string;
107
+ /**
108
+ * The text color used to represent neutral state or lack of state in status badges. This accepts hex values or RGB/HSL strings.
109
+ */
45
110
  badgeNeutralColorText?: string;
111
+ /**
112
+ * The border color used to represent neutral state or lack of state in status badges. This accepts hex values or RGB/RGBA/HSL strings.
113
+ */
114
+ badgeNeutralColorBorder?: string;
46
115
 
47
116
  // Success Badge Colors
48
- badgeSuccessColorBorder?: string;
117
+ /**
118
+ * The background color used to reinforce a successful outcome in status badges. This accepts hex values or RGB/HSL strings.
119
+ */
49
120
  badgeSuccessColorBackground?: string;
121
+ /**
122
+ * The text color used to reinforce a successful outcome in status badges. This accepts hex values or RGB/HSL strings.
123
+ */
50
124
  badgeSuccessColorText?: string;
125
+ /**
126
+ * The border color used to reinforce a successful outcome in status badges. This accepts hex values or RGB/RGBA/HSL strings.
127
+ */
128
+ badgeSuccessColorBorder?: string;
51
129
 
52
130
  // Warning Badge Colors
53
- badgeWarningColorBorder?: string;
131
+ /**
132
+ * The background color used in status badges to highlight things that might require action, but are optional to resolve. This accepts hex values or RGB/HSL strings.
133
+ */
54
134
  badgeWarningColorBackground?: string;
135
+ /**
136
+ * The text color used in status badges to highlight things that might require action, but are optional to resolve. This accepts hex values or RGB/HSL strings.
137
+ */
55
138
  badgeWarningColorText?: string;
139
+ /**
140
+ * The border color used in status badges to highlight things that might require action, but are optional to resolve. This accepts hex values or RGB/RGBA/HSL strings.
141
+ */
142
+ badgeWarningColorBorder?: string;
56
143
 
57
144
  // Danger Badge Colors
58
- badgeDangerColorBorder?: string;
145
+ /**
146
+ * The background color used in status badges for high-priority, critical situations that the user must address immediately, and to indicate failed or unsuccessful outcomes. This accepts hex values or RGB/HSL strings.
147
+ */
59
148
  badgeDangerColorBackground?: string;
149
+ /**
150
+ * The text color used in status badges for high-priority, critical situations that the user must address immediately, and to indicate failed or unsuccessful outcomes. This accepts hex values or RGB/HSL strings.
151
+ */
60
152
  badgeDangerColorText?: string;
153
+ /**
154
+ * The border color used in status badges for high-priority, critical situations that the user must address immediately, and to indicate failed or unsuccessful outcomes. This accepts hex values or RGB/RGBA/HSL strings.
155
+ */
156
+ badgeDangerColorBorder?: string;
157
+
158
+ // Background
159
+ /**
160
+ * The background color used when highlighting information, like the selected row on a table or particular piece of UI. This accepts hex values or RGB/HSL strings.
161
+ */
162
+ offsetBackgroundColor?: string;
163
+ /**
164
+ * The background color used for form items. This accepts hex values or RGB/HSL strings.
165
+ */
166
+ formBackgroundColor?: string;
167
+
168
+ /**
169
+ * The color used for borders throughout the component. This accepts hex values or RGB/RGBA/HSL strings.
170
+ */
171
+ colorBorder?: string;
172
+
173
+ // Form
174
+ /**
175
+ * The color used to highlight form items when focused. This accepts hex values or RGB/RGBA/HSL strings.
176
+ */
177
+ formHighlightColorBorder?: string;
178
+ /**
179
+ * The color used for to fill in form items like checkboxes, radio buttons and switches. This accepts hex values or RGB/HSL strings.
180
+ */
181
+ formAccentColor?: string;
61
182
 
62
183
  // Border Sizing
63
- borderRadius?: string;
184
+ /**
185
+ * The border radius used for buttons. This supports pixel values only.
186
+ */
64
187
  buttonBorderRadius?: string;
188
+ /**
189
+ * The border radius used for form elements. This supports pixel values only.
190
+ */
65
191
  formBorderRadius?: string;
192
+ /**
193
+ * The border radius used for badges. This supports pixel values only.
194
+ */
66
195
  badgeBorderRadius?: string;
196
+ /**
197
+ * The border radius used for overlays. This supports pixel values only.
198
+ */
67
199
  overlayBorderRadius?: string;
68
200
 
69
- // Overlay
70
- overlayZIndex?: number;
71
-
72
201
  // Font Sizing
73
- fontSizeBase?: string;
74
202
 
75
- // Spacing
76
- spacingUnit?: string;
203
+ // Overlay
204
+ /**
205
+ * A z-index to use for the overlay throughout embedded components. Set this number to control the z-order of the overlay.
206
+ */
207
+ overlayZIndex?: number;
77
208
 
78
209
  // Body Typography
210
+ /**
211
+ * The font size for the large body typography. Body typography variables accept a valid font size value.
212
+ */
79
213
  bodyLgFontSize?: string;
214
+ /**
215
+ * The font weight for the large body typography. Body typography variables accept a valid font weight value.
216
+ */
80
217
  bodyLgFontWeight?: string;
218
+ /**
219
+ * The font size for the medium body typography. Body typography variables accept a valid font size value.
220
+ */
81
221
  bodyMdFontSize?: string;
222
+ /**
223
+ * The font weight for the medium body typography. Body typography variables accept a valid font weight value.
224
+ */
82
225
  bodyMdFontWeight?: string;
226
+ /**
227
+ * The font size for the small body typography. Body typography variables accept a valid font size value.
228
+ */
83
229
  bodySmFontSize?: string;
230
+ /**
231
+ * The font weight for the small body typography. Body typography variables accept a valid font weight value.
232
+ */
84
233
  bodySmFontWeight?: string;
85
234
 
86
- // Label Typography
87
- labelLgFontSize?: string;
88
- labelLgFontWeight?: string;
89
- labelLgTextTransform?: string;
90
- labelMdFontSize?: string;
91
- labelMdFontWeight?: string;
92
- labelMdTextTransform?: string;
93
- labelSmFontSize?: string;
94
- labelSmFontWeight?: string;
95
- labelSmTextTransform?: string;
96
-
97
235
  // Heading Typography
236
+ /**
237
+ * The font size for the extra large heading typography. Heading typography variables accept a valid font size value.
238
+ */
98
239
  headingXlFontSize?: string;
240
+ /**
241
+ * The font weight for the extra large heading typography. Heading typography variables accept a valid font weight value.
242
+ */
99
243
  headingXlFontWeight?: string;
244
+ /**
245
+ * The text transform for the extra large heading typography. Heading typography variables accept a valid text transform value.
246
+ */
100
247
  headingXlTextTransform?: string;
248
+ /**
249
+ * The font size for the large heading typography. Heading typography variables accept a valid font size value.
250
+ */
101
251
  headingLgFontSize?: string;
252
+ /**
253
+ * The font weight for the large heading typography. Heading typography variables accept a valid font weight value.
254
+ */
102
255
  headingLgFontWeight?: string;
256
+ /**
257
+ * The text transform for the large heading typography. Heading typography variables accept a valid text transform value.
258
+ */
103
259
  headingLgTextTransform?: string;
260
+ /**
261
+ * The font size for the medium heading typography. Heading typography variables accept a valid font size value.
262
+ */
104
263
  headingMdFontSize?: string;
264
+ /**
265
+ * The font weight for the medium heading typography. Heading typography variables accept a valid font weight value.
266
+ */
105
267
  headingMdFontWeight?: string;
268
+ /**
269
+ * The text transform for the medium heading typography. Heading typography variables accept a valid text transform value.
270
+ */
106
271
  headingMdTextTransform?: string;
272
+ /**
273
+ * The font size for the small heading typography. Heading typography variables accept a valid font size value.
274
+ */
107
275
  headingSmFontSize?: string;
276
+ /**
277
+ * The font weight for the small heading typography. Heading typography variables accept a valid font weight value.
278
+ */
108
279
  headingSmFontWeight?: string;
280
+ /**
281
+ * The text transform for the small heading typography. Heading typography variables accept a valid text transform value.
282
+ */
109
283
  headingSmTextTransform?: string;
284
+ /**
285
+ * The font size for the extra small heading typography. Heading typography variables accept a valid font size value.
286
+ */
110
287
  headingXsFontSize?: string;
288
+ /**
289
+ * The font weight for the extra small heading typography. Heading typography variables accept a valid font weight value.
290
+ */
111
291
  headingXsFontWeight?: string;
292
+ /**
293
+ * The text transform for the extra small heading typography. Heading typography variables accept a valid text transform value.
294
+ */
112
295
  headingXsTextTransform?: string;
296
+
297
+ // Label Typography
298
+ /**
299
+ * The font size for the large label typography. Label typography variables accept a valid font size value.
300
+ */
301
+ labelLgFontSize?: string;
302
+ /**
303
+ * The font weight for the large label typography. Label typography variables accept a valid font weight value.
304
+ */
305
+ labelLgFontWeight?: string;
306
+ /**
307
+ * The text transform for the large label typography. Label typography variables accept a valid text transform value.
308
+ */
309
+ labelLgTextTransform?: string;
310
+ /**
311
+ * The font size for the medium label typography. Label typography variables accept a valid font size value.
312
+ */
313
+ labelMdFontSize?: string;
314
+ /**
315
+ * The font weight for the medium label typography. Label typography variables accept a valid font weight value.
316
+ */
317
+ labelMdFontWeight?: string;
318
+ /**
319
+ * The text transform for the medium label typography. Label typography variables accept a valid text transform value.
320
+ */
321
+ labelMdTextTransform?: string;
322
+ /**
323
+ * The font size for the small label typography. Label typography variables accept a valid font size value.
324
+ */
325
+ labelSmFontSize?: string;
326
+ /**
327
+ * The font weight for the small label typography. Label typography variables accept a valid font weight value.
328
+ */
329
+ labelSmFontWeight?: string;
330
+ /**
331
+ * The text transform for the small label typography. Label typography variables accept a valid text transform value.
332
+ */
333
+ labelSmTextTransform?: string;
113
334
  };
114
335
 
115
336
  export type IStripeConnectUpdateParams = {
337
+ /**
338
+ * Appearance options for the Connect instance.
339
+ */
116
340
  appearance?: AppearanceOptions;
341
+
342
+ /**
343
+ * The locale to use for the Connect instance.
344
+ */
117
345
  locale?: string;
118
346
  };
119
347
 
@@ -186,7 +414,10 @@ export type ConnectElementTagName =
186
414
  | "payouts"
187
415
  | "payment-details"
188
416
  | "account-onboarding"
189
- | "payment-method-settings";
417
+ | "payment-method-settings"
418
+ | "account-management"
419
+ | "notification-banner"
420
+ | "instant-payouts";
190
421
 
191
422
  export declare const findScript: () => HTMLScriptElement | null;
192
423
 
@@ -1,5 +0,0 @@
1
- import { IStripeConnectInitParams, StripeConnectInstance } from "../types";
2
- import { LoadConnect } from "./shared";
3
- export declare const loadConnect: LoadConnect;
4
- export declare const loadConnectAndInitialize: (initParams: IStripeConnectInitParams) => StripeConnectInstance;
5
- export {};
File without changes
File without changes
File without changes
File without changes