@hiver/connector-admin 0.0.10-beta.30 → 0.0.10-beta.31
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/app/connectors/pages/settings/index.d.ts.map +1 -1
- package/{hooks-ifkdv1ol.js → hooks-MZd1GsNF.js} +1 -1
- package/{index-B9g6rlBA.js → index-BMdQzix0.js} +4 -4
- package/{index-COXinNcD.js → index-B_45YDAC.js} +4 -4
- package/index-C699HiGI.js +31 -0
- package/{index-D-USZBk6.js → index-CWf-npec.js} +1 -1
- package/{index-DZlhP0UN.js → index-CmQqlhh1.js} +7 -7
- package/{index-BjaVn1Co.js → index-D_dto-Xq.js} +3 -3
- package/{index-BnpcGmOR.js → index-DeVZ1e49.js} +5 -5
- package/{index-CL0sq41h.js → index-qO17t5S6.js} +1 -1
- package/index.es.js +1 -1
- package/index.umd.js +104 -104
- package/package.json +1 -1
- package/{showMessage-Dp8_L6W6.js → showMessage-zBPYtvgs.js} +1 -1
- package/index-BxLkVcij.js +0 -31
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/app/connectors/pages/settings/index.tsx"],"names":[],"mappings":"AAuBA,eAAO,MAAM,QAAQ,+
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/app/connectors/pages/settings/index.tsx"],"names":[],"mappings":"AAuBA,eAAO,MAAM,QAAQ,+CAoGpB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as $A, j as I, e as g0, f as M2, g as r2, h as Q0, _ as w, i as a2, k as s2, s as r, l as u, m as c2, n as UA, o as AA, P as g, p as i2, q as R, r as z2, t as k2, v as B0, w as L2, x as FA, y as b2, z as VA, I as j2, A as q2, D as I0, E as X2, F as E0, G as e0, H as o0, J as K, u as t0, K as r0, L as n0, N as U2, Q as a0, R as s0, U as c0, V as i0, W as m2, T as b, X as l2, b as k, B as iA, Y as xA, Z as l0, $ as d0, a0 as f0, a1 as D0, a2 as w0 } from "./index-
|
|
1
|
+
import { d as $A, j as I, e as g0, f as M2, g as r2, h as Q0, _ as w, i as a2, k as s2, s as r, l as u, m as c2, n as UA, o as AA, P as g, p as i2, q as R, r as z2, t as k2, v as B0, w as L2, x as FA, y as b2, z as VA, I as j2, A as q2, D as I0, E as X2, F as E0, G as e0, H as o0, J as K, u as t0, K as r0, L as n0, N as U2, Q as a0, R as s0, U as c0, V as i0, W as m2, T as b, X as l2, b as k, B as iA, Y as xA, Z as l0, $ as d0, a0 as f0, a1 as D0, a2 as w0 } from "./index-CmQqlhh1.js";
|
|
2
2
|
import * as v from "react";
|
|
3
3
|
import { useEffect as WA, useState as uA } from "react";
|
|
4
|
-
import { S as u0, E as p0, a as v0, R as R2, C as M0, b as L0, c as P0, d as F0, T as U0, e as x0, f as H0, g as h0, h as O0, i as Y0, j as k0, k as b0, l as X0, m as m0, M as N0, n as N2 } from "./index-
|
|
5
|
-
import { u as x2, a as rA } from "./hooks-
|
|
6
|
-
import { P as Z2, C as P2, s as S2, a as G0, b as T0, c as W2, d as y0, e as V0, E as K0 } from "./showMessage-
|
|
4
|
+
import { S as u0, E as p0, a as v0, R as R2, C as M0, b as L0, c as P0, d as F0, T as U0, e as x0, f as H0, g as h0, h as O0, i as Y0, j as k0, k as b0, l as X0, m as m0, M as N0, n as N2 } from "./index-D_dto-Xq.js";
|
|
5
|
+
import { u as x2, a as rA } from "./hooks-MZd1GsNF.js";
|
|
6
|
+
import { P as Z2, C as P2, s as S2, a as G0, b as T0, c as W2, d as y0, e as V0, E as K0 } from "./showMessage-zBPYtvgs.js";
|
|
7
7
|
const J0 = (A) => {
|
|
8
8
|
const C = v.useRef({});
|
|
9
9
|
return v.useEffect(() => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as l, b as i, J as j, j as t, T as c, I as b, u as I, ab as w, ac as S, ad as v, ae as T, W as y, N as m } from "./index-
|
|
1
|
+
import { s as l, b as i, J as j, j as t, T as c, I as b, u as I, ab as w, ac as S, ad as v, ae as T, W as y, N as m } from "./index-CmQqlhh1.js";
|
|
2
2
|
import { useEffect as P } from "react";
|
|
3
|
-
import { a as p, u as D } from "./hooks-
|
|
4
|
-
import { C as u, d as E, f as k, g as B, h as M, T as Z } from "./showMessage-
|
|
5
|
-
import { b as N } from "./index-
|
|
3
|
+
import { a as p, u as D } from "./hooks-MZd1GsNF.js";
|
|
4
|
+
import { C as u, d as E, f as k, g as B, h as M, T as Z } from "./showMessage-zBPYtvgs.js";
|
|
5
|
+
import { b as N } from "./index-D_dto-Xq.js";
|
|
6
6
|
const _ = "APIs in {{connector}} connector", W = "Following are the list of APIs that you will find in this connector", O = l(i)`
|
|
7
7
|
width: 100%;
|
|
8
8
|
height: ${(a) => a.height ? a.height : "72px"};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { s as p, B as d, a$ as f, aA as a, b0 as l, N as h, aG as m, aH as u, j as e } from "./index-CmQqlhh1.js";
|
|
2
|
+
import { useEffect as n } from "react";
|
|
3
|
+
import { u as A, a as r } from "./hooks-MZd1GsNF.js";
|
|
4
|
+
import { d as S, e as w } from "./selectors-BZXXKPzK.js";
|
|
5
|
+
const g = p(d)`
|
|
6
|
+
position: fixed;
|
|
7
|
+
z-index: 1000;
|
|
8
|
+
background-color: #fff;
|
|
9
|
+
width: 100vw;
|
|
10
|
+
height: 100vh;
|
|
11
|
+
padding: 20px;
|
|
12
|
+
`, C = () => {
|
|
13
|
+
const o = A(), t = r(S), s = r(w);
|
|
14
|
+
return n(() => {
|
|
15
|
+
if (window.opener) {
|
|
16
|
+
const c = new URLSearchParams(window.location.search).get(f), i = localStorage.getItem(a);
|
|
17
|
+
i && (o(l({ data: { token: c }, connectorId: i })), localStorage.removeItem(a));
|
|
18
|
+
}
|
|
19
|
+
}, [o]), n(() => {
|
|
20
|
+
window.opener && t && window.opener.postMessage(
|
|
21
|
+
s === h.FAILED ? m : u,
|
|
22
|
+
window.location.origin
|
|
23
|
+
);
|
|
24
|
+
}, [t, s]), /* @__PURE__ */ e.jsxs(g, { children: [
|
|
25
|
+
/* @__PURE__ */ e.jsx("h1", { children: "Authentication Complete" }),
|
|
26
|
+
/* @__PURE__ */ e.jsx("p", { children: "Redirecting..." })
|
|
27
|
+
] });
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
C as AuthSuccess
|
|
31
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as g, b as B, B as I, M as r, j as A, a3 as v, T as C, a4 as t, a5 as u, a6 as d, a7 as e, a8 as s, a9 as w, aa as b } from "./index-
|
|
1
|
+
import { s as g, b as B, B as I, M as r, j as A, a3 as v, T as C, a4 as t, a5 as u, a6 as d, a7 as e, a8 as s, a9 as w, aa as b } from "./index-CmQqlhh1.js";
|
|
2
2
|
import { useContext as X } from "react";
|
|
3
3
|
const W = g(B)`
|
|
4
4
|
width: 100%;
|
|
@@ -30653,35 +30653,35 @@ const Fk = (e) => lk(
|
|
|
30653
30653
|
{
|
|
30654
30654
|
path: qt.BASEPATH,
|
|
30655
30655
|
lazy: async () => {
|
|
30656
|
-
const { ConnectorView: t } = await import("./index-
|
|
30656
|
+
const { ConnectorView: t } = await import("./index-qO17t5S6.js");
|
|
30657
30657
|
return { Component: t };
|
|
30658
30658
|
},
|
|
30659
30659
|
children: [
|
|
30660
30660
|
{
|
|
30661
30661
|
index: !0,
|
|
30662
30662
|
lazy: async () => {
|
|
30663
|
-
const { Dashboard: t } = await import("./index-
|
|
30663
|
+
const { Dashboard: t } = await import("./index-BMdQzix0.js");
|
|
30664
30664
|
return { Component: t };
|
|
30665
30665
|
}
|
|
30666
30666
|
},
|
|
30667
30667
|
{
|
|
30668
30668
|
path: qt.DASHBOARD,
|
|
30669
30669
|
lazy: async () => {
|
|
30670
|
-
const { Dashboard: t } = await import("./index-
|
|
30670
|
+
const { Dashboard: t } = await import("./index-BMdQzix0.js");
|
|
30671
30671
|
return { Component: t };
|
|
30672
30672
|
}
|
|
30673
30673
|
},
|
|
30674
30674
|
{
|
|
30675
30675
|
path: qt.AGENT,
|
|
30676
30676
|
lazy: async () => {
|
|
30677
|
-
const { Agent: t } = await import("./index-
|
|
30677
|
+
const { Agent: t } = await import("./index-CWf-npec.js");
|
|
30678
30678
|
return { Component: t };
|
|
30679
30679
|
}
|
|
30680
30680
|
},
|
|
30681
30681
|
{
|
|
30682
30682
|
path: `${qt.API_VIEW}/:id`,
|
|
30683
30683
|
lazy: async () => {
|
|
30684
|
-
const { ConnectorConfig: t } = await import("./index-
|
|
30684
|
+
const { ConnectorConfig: t } = await import("./index-B_45YDAC.js");
|
|
30685
30685
|
return { Component: t };
|
|
30686
30686
|
}
|
|
30687
30687
|
}
|
|
@@ -30690,14 +30690,14 @@ const Fk = (e) => lk(
|
|
|
30690
30690
|
{
|
|
30691
30691
|
path: `${qt.CONNECTOR_SETTINGS}/:id`,
|
|
30692
30692
|
lazy: async () => {
|
|
30693
|
-
const { Settings: t } = await import("./index-
|
|
30693
|
+
const { Settings: t } = await import("./index-DeVZ1e49.js");
|
|
30694
30694
|
return { Component: t };
|
|
30695
30695
|
}
|
|
30696
30696
|
},
|
|
30697
30697
|
{
|
|
30698
30698
|
path: qt.AUTH_SUCCESS,
|
|
30699
30699
|
lazy: async () => {
|
|
30700
|
-
const { AuthSuccess: t } = await import("./index-
|
|
30700
|
+
const { AuthSuccess: t } = await import("./index-C699HiGI.js");
|
|
30701
30701
|
return { Component: t };
|
|
30702
30702
|
}
|
|
30703
30703
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as K, k as Z, s as l, t as he, _ as p, G as ge, n as J, f as me, af as be, j as a, o as M, P as o, H as se, l as m, p as ee, ag as xe, ah as fe, A as ie, m as re, ai as Ce, e as we, aj as Ee, q as ae, ak as ke, al as ye, B as H, J as G, T as q, b as f, Y as oe, I as ce, u as Te, N as Le, am as ve, W as O } from "./index-
|
|
1
|
+
import { i as K, k as Z, s as l, t as he, _ as p, G as ge, n as J, f as me, af as be, j as a, o as M, P as o, H as se, l as m, p as ee, ag as xe, ah as fe, A as ie, m as re, ai as Ce, e as we, aj as Ee, q as ae, ak as ke, al as ye, B as H, J as G, T as q, b as f, Y as oe, I as ce, u as Te, N as Le, am as ve, W as O } from "./index-CmQqlhh1.js";
|
|
2
2
|
import * as j from "react";
|
|
3
3
|
import { useState as Se } from "react";
|
|
4
|
-
import { a as _e, u as Re } from "./hooks-
|
|
5
|
-
import { T as Y, i as Ne, e as ne, j as De, I as Oe, k as je, E as Be } from "./showMessage-
|
|
4
|
+
import { a as _e, u as Re } from "./hooks-MZd1GsNF.js";
|
|
5
|
+
import { T as Y, i as Ne, e as ne, j as De, I as Oe, k as je, E as Be } from "./showMessage-zBPYtvgs.js";
|
|
6
6
|
function Pe(e) {
|
|
7
7
|
return K("PrivateSwitchBase", e);
|
|
8
8
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { s as N, b as j, J as Je, T as de, j as C, an as Fn, ao as x, ap as Dt, aq as lt, ar as Bn, B as z, as as Sn, at as Vn, au as Tn, av as Be, Y as Ot, aw as se, ax as Rn, ay as Wn, az as st, aA as Nn, aB as ct, N as Ye, aC as Xn, u as Zn, ab as wn, ac as Hn, aD as Pn, aE as Ln, ad as Dn, ae as On, aF as dt, W as Mn, aG as kn, aH as gt, aI as Jn, aJ as Yn } from "./index-
|
|
1
|
+
import { s as N, b as j, J as Je, T as de, j as C, an as Fn, ao as x, ap as Dt, aq as lt, ar as Bn, B as z, as as Sn, at as Vn, au as Tn, av as Be, Y as Ot, aw as se, ax as Rn, ay as Wn, az as st, aA as Nn, aB as ct, N as Ye, aC as Xn, u as Zn, ab as wn, ac as Hn, aD as Pn, aE as Ln, ad as Dn, ae as On, aF as dt, W as Mn, aG as kn, aH as gt, aI as Jn, aJ as Yn } from "./index-CmQqlhh1.js";
|
|
2
2
|
import * as R from "react";
|
|
3
3
|
import jn, { useState as J, useCallback as L, useLayoutEffect as zn, useRef as ee, useMemo as me, createContext as Un, useContext as Qn, Component as _n, Fragment as je, useEffect as te, forwardRef as Kn, useReducer as $n } from "react";
|
|
4
4
|
import { createPortal as qn } from "react-dom";
|
|
5
|
-
import { T as ei, C as bt, d as ti, f as ni, g as ii, h as ui, e as pt, S as ai, E as ri } from "./showMessage-
|
|
6
|
-
import { u as $e, a as ce } from "./hooks-
|
|
5
|
+
import { T as ei, C as bt, d as ti, f as ni, g as ii, h as ui, e as pt, S as ai, E as ri } from "./showMessage-zBPYtvgs.js";
|
|
6
|
+
import { u as $e, a as ce } from "./hooks-MZd1GsNF.js";
|
|
7
7
|
import { s as oi, a as li, b as si, c as ci } from "./selectors-BZXXKPzK.js";
|
|
8
8
|
const di = "Custom Connectors", gi = "Salesforce API connector", bi = "Settings", It = [di, gi, bi], pi = N(j)`
|
|
9
9
|
margin-bottom: 36px;
|
|
@@ -3792,13 +3792,13 @@ const Tr = N(de)`
|
|
|
3792
3792
|
}, [l, d, s]), te(() => {
|
|
3793
3793
|
let h, f;
|
|
3794
3794
|
const g = (p) => {
|
|
3795
|
-
h && p.origin === window.location.origin && (p.data === kn || p.data === gt) && (clearTimeout(f),
|
|
3795
|
+
h && p.origin === window.location.origin && (p.data === kn || p.data === gt) && (clearTimeout(f), h.close(), d(dt(p.data === gt ? se.SUCCESS : se.FAILED)));
|
|
3796
3796
|
};
|
|
3797
3797
|
if (t) {
|
|
3798
3798
|
h = window.open(t, "_blank");
|
|
3799
3799
|
const p = 5 * 60 * 1e3;
|
|
3800
3800
|
f = setTimeout(() => {
|
|
3801
|
-
d(dt(se.FAILED));
|
|
3801
|
+
h == null || h.close(), d(dt(se.FAILED));
|
|
3802
3802
|
}, p), window.addEventListener("message", g);
|
|
3803
3803
|
}
|
|
3804
3804
|
return () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s, B as c, T as u, M as m, u as b, a as S, S as p, j as i, C, b as v, c as B, O as j } from "./index-
|
|
1
|
+
import { s, B as c, T as u, M as m, u as b, a as S, S as p, j as i, C, b as v, c as B, O as j } from "./index-CmQqlhh1.js";
|
|
2
2
|
import { useContext as k, useEffect as y } from "react";
|
|
3
3
|
const z = s(c)`
|
|
4
4
|
box-sizing: border-box;
|
package/index.es.js
CHANGED