@stripe/connect-js 1.0.3 → 1.0.4

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.
@@ -61,14 +61,13 @@ const initStripeConnect = stripeConnectPromise => {
61
61
  const createWrapper = stripeConnect => {
62
62
  const wrapper = {
63
63
  initialize: params => {
64
- const metaOptions = params.metaOptions ?? {};
65
- return stripeConnect.init({
66
- ...params,
67
- metaOptions: {
68
- ...metaOptions,
64
+ var _a;
65
+ const metaOptions = (_a = params.metaOptions) !== null && _a !== void 0 ? _a : {};
66
+ return stripeConnect.init(Object.assign(Object.assign({}, params), {
67
+ metaOptions: Object.assign(Object.assign({}, metaOptions), {
69
68
  sdk: true
70
- }
71
- });
69
+ })
70
+ }));
72
71
  }
73
72
  };
74
73
  return wrapper;
package/dist/connect.js CHANGED
@@ -65,14 +65,13 @@ const initStripeConnect = stripeConnectPromise => {
65
65
  const createWrapper = stripeConnect => {
66
66
  const wrapper = {
67
67
  initialize: params => {
68
- const metaOptions = params.metaOptions ?? {};
69
- return stripeConnect.init({
70
- ...params,
71
- metaOptions: {
72
- ...metaOptions,
68
+ var _a;
69
+ const metaOptions = (_a = params.metaOptions) !== null && _a !== void 0 ? _a : {};
70
+ return stripeConnect.init(Object.assign(Object.assign({}, params), {
71
+ metaOptions: Object.assign(Object.assign({}, metaOptions), {
73
72
  sdk: true
74
- }
75
- });
73
+ })
74
+ }));
76
75
  }
77
76
  };
78
77
  return wrapper;
package/dist/pure.esm.js CHANGED
@@ -61,14 +61,13 @@ const initStripeConnect = stripeConnectPromise => {
61
61
  const createWrapper = stripeConnect => {
62
62
  const wrapper = {
63
63
  initialize: params => {
64
- const metaOptions = params.metaOptions ?? {};
65
- return stripeConnect.init({
66
- ...params,
67
- metaOptions: {
68
- ...metaOptions,
64
+ var _a;
65
+ const metaOptions = (_a = params.metaOptions) !== null && _a !== void 0 ? _a : {};
66
+ return stripeConnect.init(Object.assign(Object.assign({}, params), {
67
+ metaOptions: Object.assign(Object.assign({}, metaOptions), {
69
68
  sdk: true
70
- }
71
- });
69
+ })
70
+ }));
72
71
  }
73
72
  };
74
73
  return wrapper;
package/dist/pure.js CHANGED
@@ -65,14 +65,13 @@ const initStripeConnect = stripeConnectPromise => {
65
65
  const createWrapper = stripeConnect => {
66
66
  const wrapper = {
67
67
  initialize: params => {
68
- const metaOptions = params.metaOptions ?? {};
69
- return stripeConnect.init({
70
- ...params,
71
- metaOptions: {
72
- ...metaOptions,
68
+ var _a;
69
+ const metaOptions = (_a = params.metaOptions) !== null && _a !== void 0 ? _a : {};
70
+ return stripeConnect.init(Object.assign(Object.assign({}, params), {
71
+ metaOptions: Object.assign(Object.assign({}, metaOptions), {
73
72
  sdk: true
74
- }
75
- });
73
+ })
74
+ }));
76
75
  }
77
76
  };
78
77
  return wrapper;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Connect.js loading utility package",
5
5
  "main": "dist/connect.js",
6
6
  "module": "dist/connect.esm.js",
package/types/shared.d.ts CHANGED
@@ -9,7 +9,97 @@ export declare type UIConfigOptions = {
9
9
 
10
10
  export declare type AppearanceOptions = {
11
11
  colorPrimary?: string;
12
- fontFamily?: string;
12
+ // Primary Button
13
+ colorPrimaryButtonBorder?: string;
14
+ colorPrimaryButtonBackground?: string;
15
+ colorPrimaryButtonText?: string;
16
+ // Secondary Button
17
+ colorSecondaryButtonBorder?: string;
18
+ colorSecondaryButtonBackground?: string;
19
+ colorSecondaryButtonText?: string;
20
+ // Link
21
+ colorPrimaryLinkText?: string;
22
+ colorSecondaryLinkText?: string;
23
+ // Border
24
+ colorBorder?: string;
25
+ // Form
26
+ colorFormHighlightBorder?: string;
27
+ colorFormAccent?: string;
28
+ // Text
29
+ colorText?: string;
30
+ colorSecondaryText?: string;
31
+ // Background
32
+ colorBackground?: string;
33
+ colorOffsetBackground?: string;
34
+ colorFormBackground?: string;
35
+
36
+ // Feedback Colors
37
+ colorDanger?: string;
38
+
39
+ // Neutral Badge Colors
40
+ badgeNeutralBorderColor?: string;
41
+ badgeNeutralBackgroundColor?: string;
42
+ badgeNeutralTextColor?: string;
43
+
44
+ // Success Badge Colors
45
+ badgeSuccessBorderColor?: string;
46
+ badgeSuccessBackgroundColor?: string;
47
+ badgeSuccessTextColor?: string;
48
+
49
+ // Warning Badge Colors
50
+ badgeWarningBorderColor?: string;
51
+ badgeWarningBackgroundColor?: string;
52
+ badgeWarningTextColor?: string;
53
+
54
+ // Danger Badge Colors
55
+ badgeDangerBorderColor?: string;
56
+ badgeDangerBackgroundColor?: string;
57
+ badgeDangerTextColor?: string;
58
+
59
+ // Border Sizing
60
+ borderRadius?: string;
61
+ borderRadiusButton?: string;
62
+ borderRadiusForm?: string;
63
+ borderRadiusBadge?: string;
64
+
65
+ // Body Typography
66
+ bodyLargeFontSize?: string;
67
+ bodyLargeFontWeight?: string;
68
+ bodyMediumFontSize?: string;
69
+ bodyMediumFontWeight?: string;
70
+ bodySmallFontSize?: string;
71
+ bodySmallFontWeight?: string;
72
+
73
+ // Label Typography
74
+ labelLargeFontSize?: string;
75
+ labelLargeFontWeight?: string;
76
+ labelLargeTextTransform?: string;
77
+ labelMediumFontSize?: string;
78
+ labelMediumFontWeight?: string;
79
+ labelMediumTextTransform?: string;
80
+ labelSmallFontSize?: string;
81
+ labelSmallFontWeight?: string;
82
+ labelSmallTextTransform?: string;
83
+
84
+ // Heading Typography
85
+ headingXLargeFontSize?: string;
86
+ headingXLargeFontWeight?: string;
87
+ headingXLargeTextTransform?: string;
88
+ headingLargeFontSize?: string;
89
+ headingLargeFontWeight?: string;
90
+ headingLargeTextTransform?: string;
91
+ headingMediumFontSize?: string;
92
+ headingMediumFontWeight?: string;
93
+ headingMediumTextTransform?: string;
94
+ headingSmallFontSize?: string;
95
+ headingSmallFontWeight?: string;
96
+ headingSmallTextTransform?: string;
97
+ headingXSmallFontSize?: string;
98
+ headingXSmallFontWeight?: string;
99
+ headingXSmallTextTransform?: string;
100
+
101
+ // Spacing
102
+ spacingScale?: string;
13
103
  };
14
104
 
15
105
  export type IStripeConnectUpdateParams = {