@amp-labs/react 1.16.2 → 1.17.0

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.
@@ -588,6 +588,8 @@ function sd(e) {
588
588
  if (e !== void 0)
589
589
  return e === null ? null : {
590
590
  objectName: e.objectName,
591
+ mapToName: e.mapToName,
592
+ mapToDisplayName: e.mapToDisplayName,
591
593
  schedule: e.schedule,
592
594
  destination: e.destination,
593
595
  selectedFields: e.selectedFields,
@@ -850,6 +852,8 @@ function Hd(e, t) {
850
852
  objectName: e.objectName,
851
853
  destination: e.destination,
852
854
  schedule: e.schedule,
855
+ mapToName: V(e, "mapToName") ? e.mapToName : void 0,
856
+ mapToDisplayName: V(e, "mapToDisplayName") ? e.mapToDisplayName : void 0,
853
857
  requiredFields: V(e, "requiredFields") ? e.requiredFields.map(ps) : void 0,
854
858
  optionalFields: V(e, "optionalFields") ? e.optionalFields.map(ps) : void 0,
855
859
  optionalFieldsAuto: V(e, "optionalFieldsAuto") ? Ia(e.optionalFieldsAuto) : void 0,
@@ -863,6 +867,8 @@ function Ud(e) {
863
867
  objectName: e.objectName,
864
868
  destination: e.destination,
865
869
  schedule: e.schedule,
870
+ mapToName: e.mapToName,
871
+ mapToDisplayName: e.mapToDisplayName,
866
872
  requiredFields: e.requiredFields === void 0 ? void 0 : e.requiredFields.map(fs),
867
873
  optionalFields: e.optionalFields === void 0 ? void 0 : e.optionalFields.map(fs),
868
874
  optionalFieldsAuto: e.optionalFieldsAuto,
@@ -2014,7 +2020,7 @@ class uf {
2014
2020
  this.connectionApi = new tf(t), this.installationApi = new nf(t), this.integrationApi = new rf(t), this.oAuthApi = new of(t), this.projectApi = new sf(t), this.providerApi = new af(t), this.providerAppApi = new cf(t), this.revisionApi = new lf(t);
2015
2021
  }
2016
2022
  }
2017
- const df = "1.16.2", pf = "v1", Pr = "https://api.withampersand.com";
2023
+ const df = "1.17.0", pf = "v1", Pr = "https://api.withampersand.com";
2018
2024
  function ba() {
2019
2025
  try {
2020
2026
  const e = process.env.REACT_APP_AMP_SERVER;
@@ -9881,7 +9887,7 @@ const il = async (e, t, n, r, i, o, s, a) => {
9881
9887
  provider: i
9882
9888
  }
9883
9889
  };
9884
- return await Te().oAuthApi.oauthConnect(p);
9890
+ return await Te().oAuthApi.oauthConnect(p, { credentials: "include" });
9885
9891
  }
9886
9892
  throw new Error(`Provider ${i} does not support an OAuth2 web flow.`);
9887
9893
  }, ta = 600, na = 600, sy = "AUTHORIZATION_SUCCEEDED", ay = "AUTHORIZATION_FAILED";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amp-labs/react",
3
- "version": "1.16.2",
3
+ "version": "1.17.0",
4
4
  "description": "Ampersand React library.",
5
5
  "author": {
6
6
  "name": "Ampersand Labs",