@stripe/connect-js 3.3.0-beta-1 → 3.3.1-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.
@@ -35,7 +35,8 @@ const componentNameMapping = {
35
35
  "notification-banner": "stripe-connect-notification-banner",
36
36
  "instant-payouts": "stripe-connect-instant-payouts",
37
37
  "issuing-card": "stripe-connect-issuing-card",
38
- "issuing-cards-list": "stripe-connect-issuing-cards-list"
38
+ "issuing-cards-list": "stripe-connect-issuing-cards-list",
39
+ documents: "stripe-connect-documents"
39
40
  };
40
41
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
41
42
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -149,7 +150,7 @@ const createWrapper = stripeConnect => {
149
150
  sdk: true,
150
151
  sdkOptions: {
151
152
  // This will be replaced by the npm package version when bundling
152
- sdkVersion: "3.3.0-beta-1"
153
+ sdkVersion: "3.3.1-beta-1"
153
154
  }
154
155
  })
155
156
  }));
package/dist/connect.js CHANGED
@@ -39,7 +39,8 @@ const componentNameMapping = {
39
39
  "notification-banner": "stripe-connect-notification-banner",
40
40
  "instant-payouts": "stripe-connect-instant-payouts",
41
41
  "issuing-card": "stripe-connect-issuing-card",
42
- "issuing-cards-list": "stripe-connect-issuing-cards-list"
42
+ "issuing-cards-list": "stripe-connect-issuing-cards-list",
43
+ documents: "stripe-connect-documents"
43
44
  };
44
45
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
45
46
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -153,7 +154,7 @@ const createWrapper = stripeConnect => {
153
154
  sdk: true,
154
155
  sdkOptions: {
155
156
  // This will be replaced by the npm package version when bundling
156
- sdkVersion: "3.3.0-beta-1"
157
+ sdkVersion: "3.3.1-beta-1"
157
158
  }
158
159
  })
159
160
  }));
package/dist/pure.esm.js CHANGED
@@ -35,7 +35,8 @@ const componentNameMapping = {
35
35
  "notification-banner": "stripe-connect-notification-banner",
36
36
  "instant-payouts": "stripe-connect-instant-payouts",
37
37
  "issuing-card": "stripe-connect-issuing-card",
38
- "issuing-cards-list": "stripe-connect-issuing-cards-list"
38
+ "issuing-cards-list": "stripe-connect-issuing-cards-list",
39
+ documents: "stripe-connect-documents"
39
40
  };
40
41
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
41
42
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -149,7 +150,7 @@ const createWrapper = stripeConnect => {
149
150
  sdk: true,
150
151
  sdkOptions: {
151
152
  // This will be replaced by the npm package version when bundling
152
- sdkVersion: "3.3.0-beta-1"
153
+ sdkVersion: "3.3.1-beta-1"
153
154
  }
154
155
  })
155
156
  }));
package/dist/pure.js CHANGED
@@ -39,7 +39,8 @@ const componentNameMapping = {
39
39
  "notification-banner": "stripe-connect-notification-banner",
40
40
  "instant-payouts": "stripe-connect-instant-payouts",
41
41
  "issuing-card": "stripe-connect-issuing-card",
42
- "issuing-cards-list": "stripe-connect-issuing-cards-list"
42
+ "issuing-cards-list": "stripe-connect-issuing-cards-list",
43
+ documents: "stripe-connect-documents"
43
44
  };
44
45
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
45
46
  const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
@@ -153,7 +154,7 @@ const createWrapper = stripeConnect => {
153
154
  sdk: true,
154
155
  sdkOptions: {
155
156
  // This will be replaced by the npm package version when bundling
156
- sdkVersion: "3.3.0-beta-1"
157
+ sdkVersion: "3.3.1-beta-1"
157
158
  }
158
159
  })
159
160
  }));
@@ -1,6 +1,6 @@
1
1
  import { IStripeConnectInitParams, StripeConnectInstance, ConnectElementTagName } from "../types";
2
2
  export type LoadConnectAndInitialize = (initParams: IStripeConnectInitParams) => StripeConnectInstance;
3
- export type ConnectElementHTMLName = "stripe-connect-payments" | "stripe-connect-payouts" | "stripe-connect-payment-details" | "stripe-connect-account-onboarding" | "stripe-connect-payment-method-settings" | "stripe-connect-account-management" | "stripe-connect-notification-banner" | "stripe-connect-instant-payouts" | "stripe-connect-issuing-card" | "stripe-connect-issuing-cards-list";
3
+ export type ConnectElementHTMLName = "stripe-connect-payments" | "stripe-connect-payouts" | "stripe-connect-payment-details" | "stripe-connect-account-onboarding" | "stripe-connect-payment-method-settings" | "stripe-connect-account-management" | "stripe-connect-notification-banner" | "stripe-connect-instant-payouts" | "stripe-connect-issuing-card" | "stripe-connect-issuing-cards-list" | "stripe-connect-documents";
4
4
  export declare const componentNameMapping: Record<ConnectElementTagName, ConnectElementHTMLName>;
5
5
  type StripeConnectInstanceExtended = StripeConnectInstance & {
6
6
  debugInstance: () => Promise<StripeConnectInstance>;
@@ -1,4 +1,4 @@
1
- type FetchEphemeralKeyFunction = (fetchParams: {
1
+ export type FetchEphemeralKeyFunction = (fetchParams: {
2
2
  issuingCard: string;
3
3
  nonce: string;
4
4
  }) => Promise<{
@@ -6,7 +6,7 @@ type FetchEphemeralKeyFunction = (fetchParams: {
6
6
  nonce: string;
7
7
  ephemeralKeySecret: string;
8
8
  }>;
9
- type CollectionOptions = {
9
+ export type CollectionOptions = {
10
10
  fields: "currently_due" | "eventually_due";
11
11
  futureRequirements?: "omit" | "include";
12
12
  };
@@ -34,4 +34,3 @@ export declare const ConnectElementCustomMethodConfig: {
34
34
  setFetchEphemeralKey: (_fetchEphemeralKey: FetchEphemeralKeyFunction | undefined) => void;
35
35
  };
36
36
  };
37
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "3.3.0-beta-1",
3
+ "version": "3.3.1-beta-1",
4
4
  "description": "Connect.js loading utility package",
5
5
  "main": "dist/connect.js",
6
6
  "module": "dist/connect.esm.js",
@@ -42,6 +42,7 @@
42
42
  "devDependencies": {
43
43
  "@babel/core": "^7.7.2",
44
44
  "@babel/preset-env": "^7.7.1",
45
+ "@rollup/plugin-json": "^6.0.0",
45
46
  "@rollup/plugin-replace": "^2.3.1",
46
47
  "@types/jest": "^24.0.25",
47
48
  "@typescript-eslint/eslint-plugin": "^4.15.2",
@@ -66,7 +67,5 @@
66
67
  "yalc": "^1.0.0-pre.53",
67
68
  "zx": "^4.2.0"
68
69
  },
69
- "dependencies": {
70
- "@rollup/plugin-json": "^6.0.0"
71
- }
70
+ "dependencies": {}
72
71
  }
package/src/shared.ts CHANGED
@@ -20,7 +20,8 @@ export type ConnectElementHTMLName =
20
20
  | "stripe-connect-notification-banner"
21
21
  | "stripe-connect-instant-payouts"
22
22
  | "stripe-connect-issuing-card"
23
- | "stripe-connect-issuing-cards-list";
23
+ | "stripe-connect-issuing-cards-list"
24
+ | "stripe-connect-documents";
24
25
 
25
26
  export const componentNameMapping: Record<
26
27
  ConnectElementTagName,
@@ -35,7 +36,8 @@ export const componentNameMapping: Record<
35
36
  "notification-banner": "stripe-connect-notification-banner",
36
37
  "instant-payouts": "stripe-connect-instant-payouts",
37
38
  "issuing-card": "stripe-connect-issuing-card",
38
- "issuing-cards-list": "stripe-connect-issuing-cards-list"
39
+ "issuing-cards-list": "stripe-connect-issuing-cards-list",
40
+ documents: "stripe-connect-documents"
39
41
  };
40
42
 
41
43
  type StripeConnectInstanceExtended = StripeConnectInstance & {
package/types/config.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-empty-function */
2
2
  /* eslint-disable @typescript-eslint/no-unused-vars */
3
3
 
4
- type FetchEphemeralKeyFunction = (fetchParams: {
4
+ export type FetchEphemeralKeyFunction = (fetchParams: {
5
5
  issuingCard: string;
6
6
  nonce: string;
7
7
  }) => Promise<{
@@ -10,7 +10,7 @@ type FetchEphemeralKeyFunction = (fetchParams: {
10
10
  ephemeralKeySecret: string;
11
11
  }>;
12
12
 
13
- type CollectionOptions = {
13
+ export type CollectionOptions = {
14
14
  fields: "currently_due" | "eventually_due";
15
15
  futureRequirements?: "omit" | "include";
16
16
  };
package/types/index.d.ts CHANGED
@@ -4,3 +4,4 @@ export declare const loadConnectAndInitialize: (
4
4
  initParams: IStripeConnectInitParams
5
5
  ) => StripeConnectInstance;
6
6
  export * from "./shared";
7
+ export * from "./config";
package/types/shared.d.ts CHANGED
@@ -413,7 +413,7 @@ export interface IStripeConnectInitParams {
413
413
 
414
414
  type ConnectElementCustomMethods = typeof ConnectElementCustomMethodConfig;
415
415
 
416
- type ConnectHTMLElementRecord = {
416
+ export type ConnectHTMLElementRecord = {
417
417
  [K in keyof ConnectElementCustomMethods]: HTMLElement &
418
418
  ConnectElementCustomMethods[K];
419
419
  } & {
@@ -456,4 +456,5 @@ export type ConnectElementTagName =
456
456
  | "notification-banner"
457
457
  | "instant-payouts"
458
458
  | "issuing-card"
459
- | "issuing-cards-list";
459
+ | "issuing-cards-list"
460
+ | "documents";