@amp-labs/react 1.15.0 → 1.15.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.
- package/build/amp-react.cjs.js +11 -11
- package/build/amp-react.es.js +91 -84
- package/build/index.d.ts +11 -2
- package/build/style.css +1 -1
- package/package.json +2 -1
package/build/amp-react.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c, jsxs as F, Fragment as We } from "react/jsx-runtime";
|
|
2
2
|
import * as X from "react";
|
|
3
|
-
import Ut, { createContext as Qe, useContext as et, useState as U, useCallback as ee, useMemo as Re, useEffect as
|
|
3
|
+
import Ut, { createContext as Qe, useContext as et, useState as U, useCallback as ee, useMemo as Re, useEffect as ie, forwardRef as Yn, useRef as ke, cloneElement as wc, useLayoutEffect as _c, useReducer as bc, Component as Cc, createElement as Kn } from "react";
|
|
4
4
|
import { extendTheme as yi, ChakraProvider as Oc, Box as Je, Container as Nc, Text as jt, Stack as Kt, Spinner as Sc, useTab as vi, useMultiStyleConfig as Ii, Button as Se, Select as Ec, Divider as Tc, FormControl as mt, FormErrorMessage as xc, Checkbox as $n, Link as Rc, FormLabel as bt, Heading as Ct, InputGroup as Gn, Input as ot, InputRightElement as Zn, createIcon as Ac, Flex as Pc, Textarea as wi, Tabs as Dc } from "@chakra-ui/react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
const Fc = {
|
|
@@ -592,6 +592,7 @@ function Il(e) {
|
|
|
592
592
|
destination: e.destination,
|
|
593
593
|
selectedFields: e.selectedFields,
|
|
594
594
|
selectedFieldMappings: e.selectedFieldMappings,
|
|
595
|
+
selectedFieldsAuto: e.selectedFieldsAuto,
|
|
595
596
|
backfill: gl(e.backfill)
|
|
596
597
|
};
|
|
597
598
|
}
|
|
@@ -2009,7 +2010,7 @@ class bd {
|
|
|
2009
2010
|
this.connectionApi = new hd(t), this.installationApi = new md(t), this.integrationApi = new gd(t), this.oAuthApi = new yd(t), this.projectApi = new vd(t), this.providerApi = new Id(t), this.providerAppApi = new wd(t), this.revisionApi = new _d(t);
|
|
2010
2011
|
}
|
|
2011
2012
|
}
|
|
2012
|
-
const Cd = "1.15.
|
|
2013
|
+
const Cd = "1.15.1", Od = "v1", Sn = "https://api.withampersand.com";
|
|
2013
2014
|
function Fi() {
|
|
2014
2015
|
try {
|
|
2015
2016
|
const e = process.env.REACT_APP_AMP_SERVER;
|
|
@@ -2119,7 +2120,7 @@ const Ee = async (e, t) => {
|
|
|
2119
2120
|
};
|
|
2120
2121
|
function $d({ projectIdOrName: e, children: t }) {
|
|
2121
2122
|
const n = Ce(), { setError: o, isError: i } = Ot(), [r, a] = U(null), [s, l] = U(!0);
|
|
2122
|
-
|
|
2123
|
+
ie(() => {
|
|
2123
2124
|
me().integrationApi.listIntegrations({ projectIdOrName: e }, {
|
|
2124
2125
|
headers: {
|
|
2125
2126
|
"X-Api-Key": n ?? ""
|
|
@@ -2148,7 +2149,7 @@ const Ki = Qe({
|
|
|
2148
2149
|
};
|
|
2149
2150
|
function Ld({ projectIdOrName: e, children: t }) {
|
|
2150
2151
|
const n = Ce(), { isError: o, setError: i } = Ot(), [r, a] = U(null), [s, l] = U(!0);
|
|
2151
|
-
|
|
2152
|
+
ie(() => {
|
|
2152
2153
|
me().projectApi.getProject({ projectIdOrName: e }, {
|
|
2153
2154
|
headers: {
|
|
2154
2155
|
"X-Api-Key": n ?? ""
|
|
@@ -2167,7 +2168,7 @@ function Ld({ projectIdOrName: e, children: t }) {
|
|
|
2167
2168
|
}), [e, r]);
|
|
2168
2169
|
return o(ye.PROJECT, e) ? /* @__PURE__ */ c(ht, { message: `Error loading project ${e}` }) : /* @__PURE__ */ c(Ki.Provider, { value: d, children: s ? /* @__PURE__ */ c(Ze, {}) : t });
|
|
2169
2170
|
}
|
|
2170
|
-
function
|
|
2171
|
+
function ug(e) {
|
|
2171
2172
|
const { options: { apiKey: t, projectId: n, project: o }, children: i } = e, r = o || n;
|
|
2172
2173
|
if (n && o)
|
|
2173
2174
|
throw new Error("Use AmpersandProvider either with projectId or project but not both.");
|
|
@@ -2178,7 +2179,7 @@ function lg(e) {
|
|
|
2178
2179
|
return /* @__PURE__ */ c(Kc, { children: /* @__PURE__ */ c(Vc, { children: /* @__PURE__ */ c($c, { value: t, children: /* @__PURE__ */ c(Ld, { projectIdOrName: r, children: /* @__PURE__ */ c($d, { projectIdOrName: r, children: i }) }) }) }) });
|
|
2179
2180
|
}
|
|
2180
2181
|
const Vd = Qe(null);
|
|
2181
|
-
function
|
|
2182
|
+
function dg() {
|
|
2182
2183
|
const e = et(Vd);
|
|
2183
2184
|
if (!e)
|
|
2184
2185
|
throw new Error(`Cannot call useAmpersandProvider unless your
|
|
@@ -2232,7 +2233,7 @@ function Ud({
|
|
|
2232
2233
|
() => Uc(t, g || []),
|
|
2233
2234
|
[t, g]
|
|
2234
2235
|
);
|
|
2235
|
-
|
|
2236
|
+
ie(() => {
|
|
2236
2237
|
N === null && (g != null && g.length) && console.error(`Integration "${t}" not found in integration list`);
|
|
2237
2238
|
}, [t, N, g]);
|
|
2238
2239
|
const V = ee((z) => {
|
|
@@ -2255,7 +2256,7 @@ function Ud({
|
|
|
2255
2256
|
},
|
|
2256
2257
|
[N, h, p, f, i]
|
|
2257
2258
|
), H = (N == null ? void 0 : N.id) || "";
|
|
2258
|
-
|
|
2259
|
+
ie(() => {
|
|
2259
2260
|
D();
|
|
2260
2261
|
}, [D]);
|
|
2261
2262
|
const Y = Re(() => ({
|
|
@@ -2321,7 +2322,7 @@ function Vi({
|
|
|
2321
2322
|
const m = e || f;
|
|
2322
2323
|
if (!m)
|
|
2323
2324
|
throw new Error("ConnectionsProvider must be given a provider prop or be used within InstallIntegrationProvider");
|
|
2324
|
-
|
|
2325
|
+
ie(() => {
|
|
2325
2326
|
me().connectionApi.listConnections({ projectIdOrName: i, groupRef: t, provider: m }, {
|
|
2326
2327
|
headers: {
|
|
2327
2328
|
"X-Api-Key": o ?? ""
|
|
@@ -2349,7 +2350,7 @@ Ln.exports;
|
|
|
2349
2350
|
(function(e, t) {
|
|
2350
2351
|
var n = 200, o = "__lodash_hash_undefined__", i = 1, r = 2, a = 9007199254740991, s = "[object Arguments]", l = "[object Array]", d = "[object AsyncFunction]", p = "[object Boolean]", h = "[object Date]", g = "[object Error]", f = "[object Function]", m = "[object GeneratorFunction]", w = "[object Map]", v = "[object Number]", O = "[object Null]", y = "[object Object]", C = "[object Promise]", b = "[object Proxy]", I = "[object RegExp]", N = "[object Set]", V = "[object String]", D = "[object Symbol]", H = "[object Undefined]", Y = "[object WeakMap]", z = "[object ArrayBuffer]", Z = "[object DataView]", ne = "[object Float32Array]", Q = "[object Float64Array]", de = "[object Int8Array]", pe = "[object Int16Array]", oe = "[object Int32Array]", Te = "[object Uint8Array]", Ae = "[object Uint8ClampedArray]", E = "[object Uint16Array]", K = "[object Uint32Array]", k = /[\\^$.*+?()[\]{}|]/g, P = /^\[object .+?Constructor\]$/, A = /^(?:0|[1-9]\d*)$/, T = {};
|
|
2351
2352
|
T[ne] = T[Q] = T[de] = T[pe] = T[oe] = T[Te] = T[Ae] = T[E] = T[K] = !0, T[s] = T[l] = T[z] = T[p] = T[Z] = T[h] = T[g] = T[f] = T[w] = T[v] = T[y] = T[I] = T[N] = T[V] = T[Y] = !1;
|
|
2352
|
-
var B = typeof En == "object" && En && En.Object === Object && En, W = typeof self == "object" && self && self.Object === Object && self, j = B || W || Function("return this")(), J = t && !t.nodeType && t, q = J && !0 && e && !e.nodeType && e,
|
|
2353
|
+
var B = typeof En == "object" && En && En.Object === Object && En, W = typeof self == "object" && self && self.Object === Object && self, j = B || W || Function("return this")(), J = t && !t.nodeType && t, q = J && !0 && e && !e.nodeType && e, ae = q && q.exports === J, R = ae && B.process, fe = function() {
|
|
2353
2354
|
try {
|
|
2354
2355
|
return R && R.binding && R.binding("util");
|
|
2355
2356
|
} catch {
|
|
@@ -2411,7 +2412,7 @@ Ln.exports;
|
|
|
2411
2412
|
return u ? "Symbol(src)_1." + u : "";
|
|
2412
2413
|
}(), Io = Ke.toString, bs = RegExp(
|
|
2413
2414
|
"^" + yn.call(rt).replace(k, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2414
|
-
), wo =
|
|
2415
|
+
), wo = ae ? j.Buffer : void 0, vn = j.Symbol, _o = j.Uint8Array, bo = Ke.propertyIsEnumerable, Cs = nt.splice, Et = vn ? vn.toStringTag : void 0, Co = Object.getOwnPropertySymbols, Os = wo ? wo.isBuffer : void 0, Ns = en(Object.keys, Object), ar = Vt(j, "DataView"), tn = Vt(j, "Map"), sr = Vt(j, "Promise"), cr = Vt(j, "Set"), lr = Vt(j, "WeakMap"), nn = Vt(Object, "create"), Ss = Rt(ar), Es = Rt(tn), Ts = Rt(sr), xs = Rt(cr), Rs = Rt(lr), Oo = vn ? vn.prototype : void 0, ur = Oo ? Oo.valueOf : void 0;
|
|
2415
2416
|
function Tt(u) {
|
|
2416
2417
|
var _ = -1, S = u == null ? 0 : u.length;
|
|
2417
2418
|
for (this.clear(); ++_ < S; ) {
|
|
@@ -3248,7 +3249,7 @@ function yp({
|
|
|
3248
3249
|
}) {
|
|
3249
3250
|
var C;
|
|
3250
3251
|
const { selectedConnection: n } = Gt(), { integrationId: o, integrationObj: i } = tt(), [r, a] = U(null), [s, l] = U(!0), { isError: d, removeError: p, setError: h } = Ot(), g = Ce(), f = n == null ? void 0 : n.id, m = (C = i == null ? void 0 : i.latestRevision) == null ? void 0 : C.id, w = (i == null ? void 0 : i.name) || o;
|
|
3251
|
-
|
|
3252
|
+
ie(() => {
|
|
3252
3253
|
e && o && m && f && g && me().revisionApi.getHydratedRevision({
|
|
3253
3254
|
projectIdOrName: e,
|
|
3254
3255
|
integrationId: o,
|
|
@@ -3466,10 +3467,10 @@ function wp() {
|
|
|
3466
3467
|
function q(R) {
|
|
3467
3468
|
return b(R) === i;
|
|
3468
3469
|
}
|
|
3469
|
-
function
|
|
3470
|
+
function ae(R) {
|
|
3470
3471
|
return b(R) === h;
|
|
3471
3472
|
}
|
|
3472
|
-
ce.AsyncMode = I, ce.ConcurrentMode = N, ce.ContextConsumer = V, ce.ContextProvider = D, ce.Element = H, ce.ForwardRef = Y, ce.Fragment = z, ce.Lazy = Z, ce.Memo = ne, ce.Portal = Q, ce.Profiler = de, ce.StrictMode = pe, ce.Suspense = oe, ce.isAsyncMode = Ae, ce.isConcurrentMode = E, ce.isContextConsumer = K, ce.isContextProvider = k, ce.isElement = P, ce.isForwardRef = A, ce.isFragment = T, ce.isLazy = B, ce.isMemo = W, ce.isPortal = j, ce.isProfiler = J, ce.isStrictMode = q, ce.isSuspense =
|
|
3473
|
+
ce.AsyncMode = I, ce.ConcurrentMode = N, ce.ContextConsumer = V, ce.ContextProvider = D, ce.Element = H, ce.ForwardRef = Y, ce.Fragment = z, ce.Lazy = Z, ce.Memo = ne, ce.Portal = Q, ce.Profiler = de, ce.StrictMode = pe, ce.Suspense = oe, ce.isAsyncMode = Ae, ce.isConcurrentMode = E, ce.isContextConsumer = K, ce.isContextProvider = k, ce.isElement = P, ce.isForwardRef = A, ce.isFragment = T, ce.isLazy = B, ce.isMemo = W, ce.isPortal = j, ce.isProfiler = J, ce.isStrictMode = q, ce.isSuspense = ae, ce.isValidElementType = C, ce.typeOf = b;
|
|
3473
3474
|
}()), ce;
|
|
3474
3475
|
}
|
|
3475
3476
|
var Bo;
|
|
@@ -3642,8 +3643,8 @@ function Cp() {
|
|
|
3642
3643
|
function v(E) {
|
|
3643
3644
|
if (process.env.NODE_ENV !== "production")
|
|
3644
3645
|
var K = {}, k = 0;
|
|
3645
|
-
function P(T, B, W, j, J, q,
|
|
3646
|
-
if (j = j || g, q = q || W,
|
|
3646
|
+
function P(T, B, W, j, J, q, ae) {
|
|
3647
|
+
if (j = j || g, q = q || W, ae !== n) {
|
|
3647
3648
|
if (l) {
|
|
3648
3649
|
var R = new Error(
|
|
3649
3650
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -3738,7 +3739,7 @@ function Cp() {
|
|
|
3738
3739
|
for (var W = k[P], j = 0; j < E.length; j++)
|
|
3739
3740
|
if (m(W, E[j]))
|
|
3740
3741
|
return null;
|
|
3741
|
-
var J = JSON.stringify(E, function(
|
|
3742
|
+
var J = JSON.stringify(E, function(ae, R) {
|
|
3742
3743
|
var fe = oe(R);
|
|
3743
3744
|
return fe === "symbol" ? String(R) : R;
|
|
3744
3745
|
});
|
|
@@ -3775,7 +3776,7 @@ function Cp() {
|
|
|
3775
3776
|
}
|
|
3776
3777
|
function P(A, T, B, W, j) {
|
|
3777
3778
|
for (var J = [], q = 0; q < E.length; q++) {
|
|
3778
|
-
var
|
|
3779
|
+
var ae = E[q], R = ae(A, T, B, W, j, n);
|
|
3779
3780
|
if (R == null)
|
|
3780
3781
|
return null;
|
|
3781
3782
|
R.data && o(R.data, "expectedType") && J.push(R.data.expectedType);
|
|
@@ -3805,9 +3806,9 @@ function Cp() {
|
|
|
3805
3806
|
var q = E[J];
|
|
3806
3807
|
if (typeof q != "function")
|
|
3807
3808
|
return z(A, T, B, J, oe(q));
|
|
3808
|
-
var
|
|
3809
|
-
if (
|
|
3810
|
-
return
|
|
3809
|
+
var ae = q(W, J, A, T, B + "." + J, n);
|
|
3810
|
+
if (ae)
|
|
3811
|
+
return ae;
|
|
3811
3812
|
}
|
|
3812
3813
|
return null;
|
|
3813
3814
|
}
|
|
@@ -3820,15 +3821,15 @@ function Cp() {
|
|
|
3820
3821
|
return new w("Invalid " + T + " `" + B + "` of type `" + j + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
3821
3822
|
var J = t({}, k[P], E);
|
|
3822
3823
|
for (var q in J) {
|
|
3823
|
-
var
|
|
3824
|
-
if (o(E, q) && typeof
|
|
3825
|
-
return z(A, T, B, q, oe(
|
|
3826
|
-
if (!
|
|
3824
|
+
var ae = E[q];
|
|
3825
|
+
if (o(E, q) && typeof ae != "function")
|
|
3826
|
+
return z(A, T, B, q, oe(ae));
|
|
3827
|
+
if (!ae)
|
|
3827
3828
|
return new w(
|
|
3828
3829
|
"Invalid " + T + " `" + B + "` key `" + q + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(k[P], null, " ") + `
|
|
3829
3830
|
Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
|
|
3830
3831
|
);
|
|
3831
|
-
var R =
|
|
3832
|
+
var R = ae(W, q, A, T, B + "." + q, n);
|
|
3832
3833
|
if (R)
|
|
3833
3834
|
return R;
|
|
3834
3835
|
}
|
|
@@ -4129,7 +4130,7 @@ function xp() {
|
|
|
4129
4130
|
function q($) {
|
|
4130
4131
|
return I($) === i;
|
|
4131
4132
|
}
|
|
4132
|
-
function
|
|
4133
|
+
function ae($) {
|
|
4133
4134
|
return I($) === o;
|
|
4134
4135
|
}
|
|
4135
4136
|
function R($) {
|
|
@@ -4138,7 +4139,7 @@ function xp() {
|
|
|
4138
4139
|
function fe($) {
|
|
4139
4140
|
return I($) === p;
|
|
4140
4141
|
}
|
|
4141
|
-
ue.ContextConsumer = N, ue.ContextProvider = V, ue.Element = D, ue.ForwardRef = H, ue.Fragment = Y, ue.Lazy = z, ue.Memo = Z, ue.Portal = ne, ue.Profiler = Q, ue.StrictMode = de, ue.Suspense = pe, ue.SuspenseList = oe, ue.isAsyncMode = E, ue.isConcurrentMode = K, ue.isContextConsumer = k, ue.isContextProvider = P, ue.isElement = A, ue.isForwardRef = T, ue.isFragment = B, ue.isLazy = W, ue.isMemo = j, ue.isPortal = J, ue.isProfiler = q, ue.isStrictMode =
|
|
4142
|
+
ue.ContextConsumer = N, ue.ContextProvider = V, ue.Element = D, ue.ForwardRef = H, ue.Fragment = Y, ue.Lazy = z, ue.Memo = Z, ue.Portal = ne, ue.Profiler = Q, ue.StrictMode = de, ue.Suspense = pe, ue.SuspenseList = oe, ue.isAsyncMode = E, ue.isConcurrentMode = K, ue.isContextConsumer = k, ue.isContextProvider = P, ue.isElement = A, ue.isForwardRef = T, ue.isFragment = B, ue.isLazy = W, ue.isMemo = j, ue.isPortal = J, ue.isProfiler = q, ue.isStrictMode = ae, ue.isSuspense = R, ue.isSuspenseList = fe, ue.isValidElementType = b, ue.typeOf = I;
|
|
4142
4143
|
}()), ue;
|
|
4143
4144
|
}
|
|
4144
4145
|
process.env.NODE_ENV === "production" ? Tr.exports = Tp() : Tr.exports = xp();
|
|
@@ -4187,12 +4188,12 @@ const ei = (e) => typeof e == "object" && e != null && e.nodeType === 1, ti = (e
|
|
|
4187
4188
|
if (a === "if-needed" && I >= 0 && D >= 0 && V <= v && N <= w && I >= E && V <= k && D >= P && N <= K) return de;
|
|
4188
4189
|
const A = getComputedStyle(oe), T = parseInt(A.borderLeftWidth, 10), B = parseInt(A.borderTopWidth, 10), W = parseInt(A.borderRightWidth, 10), j = parseInt(A.borderBottomWidth, 10);
|
|
4189
4190
|
let J = 0, q = 0;
|
|
4190
|
-
const
|
|
4191
|
+
const ae = "offsetWidth" in oe ? oe.offsetWidth - oe.clientWidth - T - W : 0, R = "offsetHeight" in oe ? oe.offsetHeight - oe.clientHeight - B - j : 0, fe = "offsetWidth" in oe ? oe.offsetWidth === 0 ? 0 : Ae / oe.offsetWidth : 0, $ = "offsetHeight" in oe ? oe.offsetHeight === 0 ? 0 : Te / oe.offsetHeight : 0;
|
|
4191
4192
|
if (g === oe) J = s === "start" ? ne : s === "end" ? ne - v : s === "nearest" ? xn(y, y + v, v, B, j, y + ne, y + ne + C, C) : ne - v / 2, q = l === "start" ? Q : l === "center" ? Q - w / 2 : l === "end" ? Q - w : xn(O, O + w, w, T, W, O + Q, O + Q + b, b), J = Math.max(0, J + y), q = Math.max(0, q + O);
|
|
4192
4193
|
else {
|
|
4193
|
-
J = s === "start" ? ne - E - B : s === "end" ? ne - k + j + R : s === "nearest" ? xn(E, k, Te, B, j + R, ne, ne + C, C) : ne - (E + Te / 2) + R / 2, q = l === "start" ? Q - P - T : l === "center" ? Q - (P + Ae / 2) +
|
|
4194
|
+
J = s === "start" ? ne - E - B : s === "end" ? ne - k + j + R : s === "nearest" ? xn(E, k, Te, B, j + R, ne, ne + C, C) : ne - (E + Te / 2) + R / 2, q = l === "start" ? Q - P - T : l === "center" ? Q - (P + Ae / 2) + ae / 2 : l === "end" ? Q - K + W + ae : xn(P, K, Ae, T, W + ae, Q, Q + b, b);
|
|
4194
4195
|
const { scrollLeft: Pe, scrollTop: De } = oe;
|
|
4195
|
-
J = $ === 0 ? 0 : Math.max(0, Math.min(De + J / $, oe.scrollHeight - Te / $ + R)), q = fe === 0 ? 0 : Math.max(0, Math.min(Pe + q / fe, oe.scrollWidth - Ae / fe +
|
|
4196
|
+
J = $ === 0 ? 0 : Math.max(0, Math.min(De + J / $, oe.scrollHeight - Te / $ + R)), q = fe === 0 ? 0 : Math.max(0, Math.min(Pe + q / fe, oe.scrollWidth - Ae / fe + ae)), ne += De - J, Q += Pe - q;
|
|
4196
4197
|
}
|
|
4197
4198
|
de.push({ el: oe, top: J, left: q });
|
|
4198
4199
|
}
|
|
@@ -4964,7 +4965,7 @@ function Xp(e, t) {
|
|
|
4964
4965
|
}
|
|
4965
4966
|
var ai = Wr(function(e, t) {
|
|
4966
4967
|
ca(e, t);
|
|
4967
|
-
}, 200), Yp = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? _c :
|
|
4968
|
+
}, 200), Yp = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? _c : ie, Gp = "useId" in Ut ? function(t) {
|
|
4968
4969
|
var n = t.id, o = t.labelId, i = t.menuId, r = t.getItemId, a = t.toggleButtonId, s = t.inputId, l = "downshift-" + Ut.useId();
|
|
4969
4970
|
n || (n = l);
|
|
4970
4971
|
var d = ke({
|
|
@@ -5018,7 +5019,7 @@ function Qp(e, t, n, o) {
|
|
|
5018
5019
|
props: p.current
|
|
5019
5020
|
}, f));
|
|
5020
5021
|
}, [p]), g = r.current;
|
|
5021
|
-
return
|
|
5022
|
+
return ie(function() {
|
|
5022
5023
|
var f = Vn(i.current, g == null ? void 0 : g.props), m = g && i.current && !o(f, l);
|
|
5023
5024
|
m && Jp(g, f, l), i.current = l;
|
|
5024
5025
|
}, [l, g, o]), [l, h];
|
|
@@ -5073,7 +5074,7 @@ function tf(e, t, n) {
|
|
|
5073
5074
|
isTouchMove: !1,
|
|
5074
5075
|
isTouchEnd: !1
|
|
5075
5076
|
});
|
|
5076
|
-
return
|
|
5077
|
+
return ie(function() {
|
|
5077
5078
|
if (!e)
|
|
5078
5079
|
return Le;
|
|
5079
5080
|
var i = n.map(function(p) {
|
|
@@ -5108,7 +5109,7 @@ process.env.NODE_ENV !== "production" && (Na = function() {
|
|
|
5108
5109
|
var i = ke(n.reduce(function(a, s) {
|
|
5109
5110
|
return a[s] = {}, a;
|
|
5110
5111
|
}, {}));
|
|
5111
|
-
|
|
5112
|
+
ie(function() {
|
|
5112
5113
|
Object.keys(i.current).forEach(function(a) {
|
|
5113
5114
|
var s = i.current[a];
|
|
5114
5115
|
if (!Object.keys(s).length) {
|
|
@@ -5131,12 +5132,12 @@ process.env.NODE_ENV !== "production" && (Na = function() {
|
|
|
5131
5132
|
function nf(e, t, n, o) {
|
|
5132
5133
|
o === void 0 && (o = {});
|
|
5133
5134
|
var i = o.document, r = er();
|
|
5134
|
-
|
|
5135
|
+
ie(function() {
|
|
5135
5136
|
if (!(!e || r || !i)) {
|
|
5136
5137
|
var a = e(t);
|
|
5137
5138
|
ai(a, i);
|
|
5138
5139
|
}
|
|
5139
|
-
}, n),
|
|
5140
|
+
}, n), ie(function() {
|
|
5140
5141
|
return function() {
|
|
5141
5142
|
ai.cancel(), $p(i);
|
|
5142
5143
|
};
|
|
@@ -5151,7 +5152,7 @@ function rf(e) {
|
|
|
5151
5152
|
var Sa = Le;
|
|
5152
5153
|
process.env.NODE_ENV !== "production" && (Sa = function(t) {
|
|
5153
5154
|
var n = t.props, o = t.state, i = ke(n), r = er();
|
|
5154
|
-
|
|
5155
|
+
ie(function() {
|
|
5155
5156
|
r || (Jr(o, i.current, n), i.current = n);
|
|
5156
5157
|
}, [o, n, r]);
|
|
5157
5158
|
});
|
|
@@ -5350,7 +5351,7 @@ var lf = re({}, Ea, {
|
|
|
5350
5351
|
});
|
|
5351
5352
|
function uf(e, t, n, o) {
|
|
5352
5353
|
var i = ke(), r = Qp(e, t, n, o), a = r[0], s = r[1], l = er();
|
|
5353
|
-
return
|
|
5354
|
+
return ie(function() {
|
|
5354
5355
|
if (Hn(t, "selectedItem")) {
|
|
5355
5356
|
if (!l) {
|
|
5356
5357
|
var d = t.itemToKey(t.selectedItem) !== t.itemToKey(i.current);
|
|
@@ -5491,10 +5492,10 @@ function co(e) {
|
|
|
5491
5492
|
Sa({
|
|
5492
5493
|
props: t,
|
|
5493
5494
|
state: s
|
|
5494
|
-
}),
|
|
5495
|
+
}), ie(function() {
|
|
5495
5496
|
var k = ln(t, "isOpen");
|
|
5496
5497
|
k && w.current && w.current.focus();
|
|
5497
|
-
}, []),
|
|
5498
|
+
}, []), ie(function() {
|
|
5498
5499
|
O || (C.current = n.length);
|
|
5499
5500
|
});
|
|
5500
5501
|
var V = tf(i, ee(function() {
|
|
@@ -5505,9 +5506,9 @@ function co(e) {
|
|
|
5505
5506
|
}, [l, b]), Re(function() {
|
|
5506
5507
|
return [f, v, w];
|
|
5507
5508
|
}, [f.current, v.current, w.current])), D = Na("getInputProps", "getMenuProps");
|
|
5508
|
-
|
|
5509
|
+
ie(function() {
|
|
5509
5510
|
d || (m.current = {});
|
|
5510
|
-
}, [d]),
|
|
5511
|
+
}, [d]), ie(function() {
|
|
5511
5512
|
var k;
|
|
5512
5513
|
!d || !(i != null && i.document) || !(w != null && (k = w.current) != null && k.focus) || i.document.activeElement !== w.current && w.current.focus();
|
|
5513
5514
|
}, [d, i]);
|
|
@@ -5564,7 +5565,7 @@ function co(e) {
|
|
|
5564
5565
|
htmlFor: y.inputId
|
|
5565
5566
|
}, k);
|
|
5566
5567
|
}, [y]), z = ee(function(k, P) {
|
|
5567
|
-
var A, T = k === void 0 ? {} : k, B = T.onMouseLeave, W = T.refKey, j = W === void 0 ? "ref" : W, J = T.ref, q = pt(T, ff),
|
|
5568
|
+
var A, T = k === void 0 ? {} : k, B = T.onMouseLeave, W = T.refKey, j = W === void 0 ? "ref" : W, J = T.ref, q = pt(T, ff), ae = P === void 0 ? {} : P, R = ae.suppressRefError, fe = R === void 0 ? !1 : R;
|
|
5568
5569
|
return D("getMenuProps", fe, j, f), re((A = {}, A[j] = Ht(J, function($) {
|
|
5569
5570
|
f.current = $;
|
|
5570
5571
|
}), A.id = y.menuId, A.role = "listbox", A["aria-labelledby"] = q && q["aria-label"] ? void 0 : "" + y.labelId, A.onMouseLeave = be(B, function() {
|
|
@@ -5573,7 +5574,7 @@ function co(e) {
|
|
|
5573
5574
|
});
|
|
5574
5575
|
}), A), q);
|
|
5575
5576
|
}, [l, D, y]), Z = ee(function(k) {
|
|
5576
|
-
var P, A, T = k === void 0 ? {} : k, B = T.item, W = T.index, j = T.refKey, J = j === void 0 ? "ref" : j, q = T.ref,
|
|
5577
|
+
var P, A, T = k === void 0 ? {} : k, B = T.item, W = T.index, j = T.refKey, J = j === void 0 ? "ref" : j, q = T.ref, ae = T.onMouseMove, R = T.onMouseDown, fe = T.onClick;
|
|
5577
5578
|
T.onPress;
|
|
5578
5579
|
var $ = T.disabled, Pe = pt(T, hf);
|
|
5579
5580
|
$ !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
|
|
@@ -5594,13 +5595,13 @@ function co(e) {
|
|
|
5594
5595
|
return re((P = {}, P[J] = Ht(q, function(Fe) {
|
|
5595
5596
|
Fe && (m.current[y.getItemId(Ye)] = Fe);
|
|
5596
5597
|
}), P["aria-disabled"] = St, P["aria-selected"] = Ye === Xe.highlightedIndex, P.id = y.getItemId(Ye), P.role = "option", P), !St && (A = {}, A[en] = be(Lt, ct), A), {
|
|
5597
|
-
onMouseMove: be(
|
|
5598
|
+
onMouseMove: be(ae, nt),
|
|
5598
5599
|
onMouseDown: be(R, Ke)
|
|
5599
5600
|
}, Pe);
|
|
5600
5601
|
}, [l, y, b, V, N]), ne = ee(function(k) {
|
|
5601
5602
|
var P, A = k === void 0 ? {} : k, T = A.onClick;
|
|
5602
5603
|
A.onPress;
|
|
5603
|
-
var B = A.refKey, W = B === void 0 ? "ref" : B, j = A.ref, J = pt(A, mf), q = b.current.state,
|
|
5604
|
+
var B = A.refKey, W = B === void 0 ? "ref" : B, j = A.ref, J = pt(A, mf), q = b.current.state, ae = function() {
|
|
5604
5605
|
l({
|
|
5605
5606
|
type: Ra
|
|
5606
5607
|
});
|
|
@@ -5608,12 +5609,12 @@ function co(e) {
|
|
|
5608
5609
|
return re((P = {}, P[W] = Ht(j, function(R) {
|
|
5609
5610
|
v.current = R;
|
|
5610
5611
|
}), P["aria-controls"] = y.menuId, P["aria-expanded"] = q.isOpen, P.id = y.toggleButtonId, P.tabIndex = -1, P), !J.disabled && re({}, {
|
|
5611
|
-
onClick: be(T,
|
|
5612
|
+
onClick: be(T, ae)
|
|
5612
5613
|
}), J);
|
|
5613
5614
|
}, [l, b, y]), Q = ee(function(k, P) {
|
|
5614
5615
|
var A, T = k === void 0 ? {} : k, B = T.onKeyDown, W = T.onChange, j = T.onInput, J = T.onBlur;
|
|
5615
5616
|
T.onChangeText;
|
|
5616
|
-
var q = T.onClick,
|
|
5617
|
+
var q = T.onClick, ae = T.refKey, R = ae === void 0 ? "ref" : ae, fe = T.ref, $ = pt(T, gf), Pe = P === void 0 ? {} : P, De = Pe.suppressRefError, st = De === void 0 ? !1 : De;
|
|
5617
5618
|
D("getInputProps", st, R, w);
|
|
5618
5619
|
var Xe = b.current.state, $t = function(Ke) {
|
|
5619
5620
|
var Fe = xr(Ke);
|
|
@@ -5738,7 +5739,9 @@ function Tf({
|
|
|
5738
5739
|
// label,
|
|
5739
5740
|
placeholder: o
|
|
5740
5741
|
}) {
|
|
5741
|
-
const [i, r] = U(e)
|
|
5742
|
+
const [i, r] = U(e);
|
|
5743
|
+
ie(() => r(e), [e]);
|
|
5744
|
+
const a = (f) => {
|
|
5742
5745
|
r(e.filter(Ef(f)));
|
|
5743
5746
|
}, {
|
|
5744
5747
|
isOpen: s,
|
|
@@ -6285,7 +6288,7 @@ function Uf({ children: e }) {
|
|
|
6285
6288
|
i,
|
|
6286
6289
|
r
|
|
6287
6290
|
] = U(Hf), a = t == null ? void 0 : t.config;
|
|
6288
|
-
|
|
6291
|
+
ie(() => {
|
|
6289
6292
|
n != null && n.content && !o && a && !(Object.entries(i).length > 0) && Qd(
|
|
6290
6293
|
n,
|
|
6291
6294
|
a,
|
|
@@ -6360,7 +6363,7 @@ function Xa(e, t, n, o) {
|
|
|
6360
6363
|
function Bf({ field: e, onSelectChange: t, allFields: n }) {
|
|
6361
6364
|
var f;
|
|
6362
6365
|
const { configureState: o, selectedObjectName: i, setConfigureState: r } = Nt(), [a, s] = U(!0), l = (f = o == null ? void 0 : o.read) == null ? void 0 : f.selectedFieldMappings, d = l == null ? void 0 : l[e.mapToName];
|
|
6363
|
-
|
|
6366
|
+
ie(() => {
|
|
6364
6367
|
e._default && !d && i && o && Xa(i, r, e.mapToName, e._default), s(!1);
|
|
6365
6368
|
}, [e, r, i, d, o]);
|
|
6366
6369
|
const p = Re(() => n == null ? void 0 : n.map(
|
|
@@ -6382,7 +6385,7 @@ function Bf({ field: e, onSelectChange: t, allFields: n }) {
|
|
|
6382
6385
|
}
|
|
6383
6386
|
});
|
|
6384
6387
|
},
|
|
6385
|
-
placeholder: "Please select one"
|
|
6388
|
+
placeholder: d || "Please select one"
|
|
6386
6389
|
}
|
|
6387
6390
|
) : /* @__PURE__ */ c(
|
|
6388
6391
|
Ec,
|
|
@@ -6451,7 +6454,7 @@ function Jf() {
|
|
|
6451
6454
|
var p;
|
|
6452
6455
|
if (!e || !o) return [];
|
|
6453
6456
|
const l = o ? Object.values(o[e] || {}).flat() : [];
|
|
6454
|
-
return (((p = t == null ? void 0 : t.read) == null ? void 0 : p.requiredMapFields) || []).concat(l).reduce((h, g) => h.find((m) => m.mapToName === g.mapToName) ? h.map((m) => m.mapToName === g.mapToName ? g : m) : h.concat(g), new Array()).filter(at)
|
|
6457
|
+
return (((p = t == null ? void 0 : t.read) == null ? void 0 : p.requiredMapFields) || []).concat(l).reduce((h, g) => h.find((m) => m.mapToName === g.mapToName) ? h.map((m) => m.mapToName === g.mapToName ? g : m) : h.concat(g), new Array()).filter(at);
|
|
6455
6458
|
}, [t, o, e]);
|
|
6456
6459
|
return s.length ? /* @__PURE__ */ F(We, { children: [
|
|
6457
6460
|
/* @__PURE__ */ c(Zt, { string: "Map the following fields (required)" }),
|
|
@@ -6736,7 +6739,7 @@ var ch = [
|
|
|
6736
6739
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c(s, { ...a, ref: i });
|
|
6737
6740
|
});
|
|
6738
6741
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
6739
|
-
}, {}), ho = "Checkbox", [lh,
|
|
6742
|
+
}, {}), ho = "Checkbox", [lh, pg] = Xf(ho), [uh, dh] = lh(ho), ns = X.forwardRef(
|
|
6740
6743
|
(e, t) => {
|
|
6741
6744
|
const {
|
|
6742
6745
|
__scopeCheckbox: n,
|
|
@@ -7394,7 +7397,7 @@ function Lh() {
|
|
|
7394
7397
|
},
|
|
7395
7398
|
[p, i, r, a, w]
|
|
7396
7399
|
);
|
|
7397
|
-
|
|
7400
|
+
ie(() => {
|
|
7398
7401
|
!y && (i != null && i.content) && !r && H();
|
|
7399
7402
|
}, [y, v, i, r, H]);
|
|
7400
7403
|
const Y = () => {
|
|
@@ -7586,9 +7589,9 @@ function qh({ installation: e, integrationObj: t }) {
|
|
|
7586
7589
|
},
|
|
7587
7590
|
[l, o, i, r, I, g]
|
|
7588
7591
|
);
|
|
7589
|
-
|
|
7592
|
+
ie(() => {
|
|
7590
7593
|
m || N();
|
|
7591
|
-
}, [m, N]),
|
|
7594
|
+
}, [m, N]), ie(() => {
|
|
7592
7595
|
e && N();
|
|
7593
7596
|
}, [e, N]);
|
|
7594
7597
|
const V = Re(() => {
|
|
@@ -7757,7 +7760,7 @@ function Zh({ children: e, resetComponent: t }) {
|
|
|
7757
7760
|
} = tt(), { selectedConnection: f } = Gt(), [m, w] = U(!1), v = r || m, O = (b = i == null ? void 0 : i.content) == null ? void 0 : b.provider, y = Gh(i), C = (I) => {
|
|
7758
7761
|
console.error("Error when creating proxy installation:", I);
|
|
7759
7762
|
};
|
|
7760
|
-
return
|
|
7763
|
+
return ie(() => {
|
|
7761
7764
|
!v && i && y && !s && f && o && (a != null && a.id) && (w(!0), Xh({
|
|
7762
7765
|
apiKey: o,
|
|
7763
7766
|
projectId: n,
|
|
@@ -8093,7 +8096,7 @@ function fm({
|
|
|
8093
8096
|
setSelectedConnection: l
|
|
8094
8097
|
}) {
|
|
8095
8098
|
const d = _e(), [p, h] = U(!1), [g, f] = U(null), m = Ce();
|
|
8096
|
-
|
|
8099
|
+
ie(() => {
|
|
8097
8100
|
if (e && me && p && g != null) {
|
|
8098
8101
|
const v = {
|
|
8099
8102
|
groupName: r,
|
|
@@ -8271,7 +8274,7 @@ function ym({
|
|
|
8271
8274
|
setSelectedConnection: l
|
|
8272
8275
|
}) {
|
|
8273
8276
|
const d = _e(), [p, h] = U(!1), [g, f] = U(null), m = Ce();
|
|
8274
|
-
|
|
8277
|
+
ie(() => {
|
|
8275
8278
|
if (e && me && p && g != null) {
|
|
8276
8279
|
const v = {
|
|
8277
8280
|
groupName: r,
|
|
@@ -8356,7 +8359,7 @@ function wm({
|
|
|
8356
8359
|
providerName: l
|
|
8357
8360
|
}) {
|
|
8358
8361
|
const d = _e(), p = Ce(), [h, g] = U(!1);
|
|
8359
|
-
|
|
8362
|
+
ie(() => {
|
|
8360
8363
|
if (e && me && h) {
|
|
8361
8364
|
const m = {
|
|
8362
8365
|
groupName: i,
|
|
@@ -8443,9 +8446,9 @@ function vs({
|
|
|
8443
8446
|
error: i
|
|
8444
8447
|
}) {
|
|
8445
8448
|
const r = Ce(), { projectId: a } = _e(), [s, l] = U(null), [d, p] = U(null), { setSelectedConnection: h } = Gt(), g = Nm(l, o), f = Om(n, p, g, t), m = Cm(a, r, h);
|
|
8446
|
-
|
|
8449
|
+
ie(() => {
|
|
8447
8450
|
t && !d && f();
|
|
8448
|
-
}, [t, d, f, g, n]),
|
|
8451
|
+
}, [t, d, f, g, n]), ie(() => {
|
|
8449
8452
|
s && m(s).then(() => {
|
|
8450
8453
|
d == null || d.close();
|
|
8451
8454
|
}).catch((v) => {
|
|
@@ -9160,7 +9163,7 @@ function qm({
|
|
|
9160
9163
|
}
|
|
9161
9164
|
function Wm(e) {
|
|
9162
9165
|
const { selectedConnection: t } = Gt();
|
|
9163
|
-
|
|
9166
|
+
ie(() => {
|
|
9164
9167
|
e && t && e(t.id);
|
|
9165
9168
|
}, [e, t]);
|
|
9166
9169
|
}
|
|
@@ -9187,7 +9190,7 @@ function ws({
|
|
|
9187
9190
|
const s = Ce(), [l, d] = U(null), { provider: p } = tt(), { selectedConnection: h, setSelectedConnection: g, connections: f } = Gt();
|
|
9188
9191
|
Jm({ onSuccess: a });
|
|
9189
9192
|
const m = e || p, w = (l == null ? void 0 : l.displayName) ?? Ci(m);
|
|
9190
|
-
if (
|
|
9193
|
+
if (ie(() => {
|
|
9191
9194
|
if (!h && f && f.length > 0) {
|
|
9192
9195
|
const [O] = f;
|
|
9193
9196
|
g(O);
|
|
@@ -9361,13 +9364,16 @@ function eg({
|
|
|
9361
9364
|
/* @__PURE__ */ c(gs, {})
|
|
9362
9365
|
] }) }) });
|
|
9363
9366
|
}
|
|
9364
|
-
function tg() {
|
|
9367
|
+
function tg({ ...e }) {
|
|
9368
|
+
return /* @__PURE__ */ c(eg, { ...e });
|
|
9369
|
+
}
|
|
9370
|
+
function ng() {
|
|
9365
9371
|
const [e, t] = U(1);
|
|
9366
9372
|
return { seed: e, reset: () => {
|
|
9367
9373
|
t(Math.random());
|
|
9368
9374
|
} };
|
|
9369
9375
|
}
|
|
9370
|
-
function
|
|
9376
|
+
function fg({
|
|
9371
9377
|
integration: e,
|
|
9372
9378
|
consumerRef: t,
|
|
9373
9379
|
consumerName: n,
|
|
@@ -9379,7 +9385,7 @@ function pg({
|
|
|
9379
9385
|
fieldMapping: l
|
|
9380
9386
|
}) {
|
|
9381
9387
|
var f;
|
|
9382
|
-
const { projectId: d } = _e(), { errorState: p } = Ot(), { seed: h, reset: g } =
|
|
9388
|
+
const { projectId: d } = _e(), { errorState: p } = Ot(), { seed: h, reset: g } = ng();
|
|
9383
9389
|
return (f = p[ye.INTEGRATION_LIST]) != null && f.apiError ? /* @__PURE__ */ c(ht, { message: "Something went wrong, couldn't find integration information" }) : (
|
|
9384
9390
|
// install integration provider provides all props, integrationObj and installation
|
|
9385
9391
|
/* @__PURE__ */ c(
|
|
@@ -9401,7 +9407,7 @@ function pg({
|
|
|
9401
9407
|
consumerName: n,
|
|
9402
9408
|
groupRef: o,
|
|
9403
9409
|
groupName: i,
|
|
9404
|
-
children: /* @__PURE__ */ c(yp, { projectId: d, children: /* @__PURE__ */ c(Zh, { resetComponent: g, children: /* @__PURE__ */ c(Uf, { children: /* @__PURE__ */ c(
|
|
9410
|
+
children: /* @__PURE__ */ c(yp, { projectId: d, children: /* @__PURE__ */ c(Zh, { resetComponent: g, children: /* @__PURE__ */ c(Uf, { children: /* @__PURE__ */ c(tg, { children: /* @__PURE__ */ c(Wh, {}) }) }) }) })
|
|
9405
9411
|
}
|
|
9406
9412
|
) })
|
|
9407
9413
|
},
|
|
@@ -9409,7 +9415,7 @@ function pg({
|
|
|
9409
9415
|
)
|
|
9410
9416
|
);
|
|
9411
9417
|
}
|
|
9412
|
-
function
|
|
9418
|
+
function rg() {
|
|
9413
9419
|
return /* @__PURE__ */ F(
|
|
9414
9420
|
hn,
|
|
9415
9421
|
{
|
|
@@ -9426,16 +9432,16 @@ function ng() {
|
|
|
9426
9432
|
}
|
|
9427
9433
|
);
|
|
9428
9434
|
}
|
|
9429
|
-
function
|
|
9430
|
-
return
|
|
9435
|
+
function og({ redirectURL: e, children: t }) {
|
|
9436
|
+
return ie(() => {
|
|
9431
9437
|
e && window.location.replace(e);
|
|
9432
|
-
}, [e]), e ? /* @__PURE__ */ c(
|
|
9438
|
+
}, [e]), e ? /* @__PURE__ */ c(rg, {}) : t;
|
|
9433
9439
|
}
|
|
9434
|
-
function
|
|
9440
|
+
function ig({ provider: e }) {
|
|
9435
9441
|
const { appName: t } = _e(), n = `You have successfully connected your ${gt(e)} account to ${t}.`;
|
|
9436
9442
|
return /* @__PURE__ */ c(mo, { text: n });
|
|
9437
9443
|
}
|
|
9438
|
-
function
|
|
9444
|
+
function hg({
|
|
9439
9445
|
provider: e,
|
|
9440
9446
|
consumerRef: t,
|
|
9441
9447
|
consumerName: n,
|
|
@@ -9453,11 +9459,11 @@ function fg({
|
|
|
9453
9459
|
groupRef: o,
|
|
9454
9460
|
groupName: i,
|
|
9455
9461
|
onSuccess: a,
|
|
9456
|
-
children: /* @__PURE__ */ c(
|
|
9462
|
+
children: /* @__PURE__ */ c(og, { redirectURL: r, children: /* @__PURE__ */ c(ig, { provider: e }) })
|
|
9457
9463
|
}
|
|
9458
9464
|
) });
|
|
9459
9465
|
}
|
|
9460
|
-
const
|
|
9466
|
+
const mg = (e, t) => {
|
|
9461
9467
|
const n = Ce(), { projectId: o } = _e(), { integrations: i } = Mi(), [r, a] = U(!1), [s, l] = U(null);
|
|
9462
9468
|
if (!n || !o)
|
|
9463
9469
|
throw new Error("useIsIntegrationInstalled must be used within AmpersandProvider");
|
|
@@ -9469,7 +9475,7 @@ const hg = (e, t) => {
|
|
|
9469
9475
|
(p, h) => (h == null ? void 0 : h.name) === e ? h : p,
|
|
9470
9476
|
{}
|
|
9471
9477
|
), [i, e]);
|
|
9472
|
-
return
|
|
9478
|
+
return ie(() => {
|
|
9473
9479
|
d && me().installationApi.listInstallations({
|
|
9474
9480
|
projectIdOrName: o,
|
|
9475
9481
|
integrationId: d.id,
|
|
@@ -9487,9 +9493,10 @@ const hg = (e, t) => {
|
|
|
9487
9493
|
};
|
|
9488
9494
|
export {
|
|
9489
9495
|
Vd as AmpersandContext,
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9496
|
+
ug as AmpersandProvider,
|
|
9497
|
+
hg as ConnectProvider,
|
|
9498
|
+
Bf as FieldMapping,
|
|
9499
|
+
fg as InstallIntegration,
|
|
9500
|
+
dg as useAmpersandProvider,
|
|
9501
|
+
mg as useIsIntegrationInstalled
|
|
9495
9502
|
};
|
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Config } from '../../generated-sources/api/src';
|
|
2
2
|
import { default as default_2 } from 'react';
|
|
3
|
+
import { HydratedIntegrationFieldExistent } from '../../generated-sources/api/src';
|
|
3
4
|
import { IntegrationFieldMapping } from '../../generated-sources/api/src';
|
|
4
5
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
5
6
|
|
|
@@ -36,10 +37,18 @@ declare interface ConnectProviderProps {
|
|
|
36
37
|
onSuccess?: (connectionID: string) => void;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
declare
|
|
40
|
+
export declare function FieldMapping({ field, onSelectChange, allFields }: FieldMappingProps): JSX_2.Element;
|
|
41
|
+
|
|
42
|
+
declare type FieldMapping_2 = {
|
|
40
43
|
[key: string]: Array<IntegrationFieldMapping>;
|
|
41
44
|
};
|
|
42
45
|
|
|
46
|
+
declare interface FieldMappingProps {
|
|
47
|
+
field: IntegrationFieldMapping;
|
|
48
|
+
onSelectChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
49
|
+
allFields: HydratedIntegrationFieldExistent[];
|
|
50
|
+
}
|
|
51
|
+
|
|
43
52
|
export declare function InstallIntegration({ integration, consumerRef, consumerName, groupRef, groupName, onInstallSuccess, onUpdateSuccess, onUninstallSuccess, fieldMapping, }: InstallIntegrationProps): JSX_2.Element;
|
|
44
53
|
|
|
45
54
|
declare interface InstallIntegrationProps {
|
|
@@ -67,7 +76,7 @@ declare interface InstallIntegrationProps {
|
|
|
67
76
|
* Dynamic field mappings that need to be filled out by a consumer.
|
|
68
77
|
* @experimental
|
|
69
78
|
*/
|
|
70
|
-
fieldMapping?:
|
|
79
|
+
fieldMapping?: FieldMapping_2;
|
|
71
80
|
onInstallSuccess?: (installationId: string, config: Config) => void;
|
|
72
81
|
onUpdateSuccess?: (installationId: string, config: Config) => void;
|
|
73
82
|
onUninstallSuccess?: (installationId: string) => void;
|