@hiver/connector-admin 0.0.10-beta.36 → 0.0.10-beta.37

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/app/connectors/pages/auth-success/index.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,+CA+BvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/app/connectors/pages/auth-success/index.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,+CAiCvB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { b1 as s, b2 as e } from "./index-Cj2C4-5p.js";
1
+ import { b1 as s, b2 as e } from "./index-C6yN7YPM.js";
2
2
  const t = s.withTypes(), a = e.withTypes();
3
3
  export {
4
4
  a,
@@ -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-Cj2C4-5p.js";
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-C6yN7YPM.js";
2
2
  import { useEffect as P } from "react";
3
- import { a as p, u as D } from "./hooks-DrjCeTKE.js";
4
- import { C as u, d as E, f as k, g as B, h as M, T as Z } from "./showMessage-Bz-2w4K5.js";
5
- import { b as N } from "./index-8n2VTSnS.js";
3
+ import { a as p, u as D } from "./hooks-BFJR7RrV.js";
4
+ import { C as u, d as E, f as k, g as B, h as M, T as Z } from "./showMessage-I1os1XOz.js";
5
+ import { b as N } from "./index-BTXbB2YE.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"};
@@ -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-Cj2C4-5p.js";
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-C6yN7YPM.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-DrjCeTKE.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-Bz-2w4K5.js";
4
+ import { a as _e, u as Re } from "./hooks-BFJR7RrV.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-I1os1XOz.js";
6
6
  function Ie(e) {
7
7
  return K("PrivateSwitchBase", e);
8
8
  }
@@ -0,0 +1,29 @@
1
+ import { s as p, B as d, a_ as f, a$ as h, b0 as u, N as A, aF as l, aG as w, j as s } from "./index-C6yN7YPM.js";
2
+ import { useEffect as r } from "react";
3
+ import { u as g, a as c } from "./hooks-BFJR7RrV.js";
4
+ import { d as S, e as m } from "./selectors-BZXXKPzK.js";
5
+ const x = 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 t = g(), n = c(S), i = c(m);
14
+ return r(() => {
15
+ const a = new URLSearchParams(window.location.search), e = a.get(f), o = a.get(h);
16
+ console.log("Debug::AuthSUccess++++", { openenr: window.opener, verificationToken: e, connectorId: o }), window.opener && o && e && (console.log("Debug:: Dispatching++++++"), t(u({ data: { token: e }, connectorId: o })));
17
+ }, [t]), r(() => {
18
+ window.opener && n && window.opener.postMessage(
19
+ i === A.FAILED ? l : w,
20
+ window.location.origin
21
+ );
22
+ }, [n, i]), /* @__PURE__ */ s.jsxs(x, { children: [
23
+ /* @__PURE__ */ s.jsx("h1", { children: "Authentication Complete" }),
24
+ /* @__PURE__ */ s.jsx("p", { children: "Redirecting..." })
25
+ ] });
26
+ };
27
+ export {
28
+ C as AuthSuccess
29
+ };
@@ -1,9 +1,9 @@
1
- import { s as N, b as j, J as Ye, T as de, u as Dt, j as C, an as Bn, ao as y, ap as Ot, aq as st, ar as Sn, B as z, as as Vn, at as Tn, au as Wn, av as Se, Y as Mt, aw as se, ax as Rn, ay as Nn, az as ct, aA as dt, N as je, aB as Xn, ab as Zn, ac as wn, aC as Hn, aD as Pn, ad as Ln, ae as Dn, aE as gt, W as he, aF as On, aG as bt, aH as Mn, aI as kn } from "./index-Cj2C4-5p.js";
1
+ import { s as N, b as j, J as Ye, T as de, u as Dt, j as C, an as Bn, ao as y, ap as Ot, aq as st, ar as Sn, B as z, as as Vn, at as Tn, au as Wn, av as Se, Y as Mt, aw as se, ax as Rn, ay as Nn, az as ct, aA as dt, N as je, aB as Xn, ab as Zn, ac as wn, aC as Hn, aD as Pn, ad as Ln, ae as Dn, aE as gt, W as he, aF as On, aG as bt, aH as Mn, aI as kn } from "./index-C6yN7YPM.js";
2
2
  import * as W from "react";
3
3
  import Jn, { useState as J, useCallback as L, useLayoutEffect as Yn, useRef as ee, useMemo as me, createContext as jn, useContext as zn, Component as Un, Fragment as ze, useEffect as te, forwardRef as Qn, useReducer as _n } from "react";
4
4
  import { createPortal as Kn } from "react-dom";
5
- import { T as $n, C as pt, d as qn, f as ei, g as ti, h as ni, e as It, S as ii, E as ui } from "./showMessage-Bz-2w4K5.js";
6
- import { u as qe, a as ce } from "./hooks-DrjCeTKE.js";
5
+ import { T as $n, C as pt, d as qn, f as ei, g as ti, h as ni, e as It, S as ii, E as ui } from "./showMessage-I1os1XOz.js";
6
+ import { u as qe, a as ce } from "./hooks-BFJR7RrV.js";
7
7
  import { s as ai, a as ri, b as oi, c as li } from "./selectors-BZXXKPzK.js";
8
8
  const si = N(j)`
9
9
  margin-bottom: 36px;
@@ -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-Cj2C4-5p.js";
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-C6yN7YPM.js";
2
2
  import { useContext as k, useEffect as y } from "react";
3
3
  const z = s(c)`
4
4
  box-sizing: border-box;
@@ -30653,35 +30653,35 @@ const kk = (e) => ck(
30653
30653
  {
30654
30654
  path: qt.BASEPATH,
30655
30655
  lazy: async () => {
30656
- const { ConnectorView: t } = await import("./index-CvjND-XY.js");
30656
+ const { ConnectorView: t } = await import("./index-ByINv0pL.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-Bqb0PJkg.js");
30663
+ const { Dashboard: t } = await import("./index-COPHwSHj.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-Bqb0PJkg.js");
30670
+ const { Dashboard: t } = await import("./index-COPHwSHj.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-kqBktNiG.js");
30677
+ const { Agent: t } = await import("./index-CMhTs1Ac.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-CTlSXwZ5.js");
30684
+ const { ConnectorConfig: t } = await import("./index-B8pYbzu_.js");
30685
30685
  return { Component: t };
30686
30686
  }
30687
30687
  }
@@ -30690,14 +30690,14 @@ const kk = (e) => ck(
30690
30690
  {
30691
30691
  path: `${qt.CONNECTOR_SETTINGS}/:id`,
30692
30692
  lazy: async () => {
30693
- const { Settings: t } = await import("./index-CK1J0zzw.js");
30693
+ const { Settings: t } = await import("./index-BZL6iswr.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-BfLxkRTf.js");
30700
+ const { AuthSuccess: t } = await import("./index-BYS7XI6N.js");
30701
30701
  return { Component: t };
30702
30702
  }
30703
30703
  }
@@ -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-Cj2C4-5p.js";
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-C6yN7YPM.js";
2
2
  import { useContext as X } from "react";
3
3
  const W = g(B)`
4
4
  width: 100%;
@@ -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-Cj2C4-5p.js";
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-C6yN7YPM.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-8n2VTSnS.js";
5
- import { u as x2, a as rA } from "./hooks-DrjCeTKE.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-Bz-2w4K5.js";
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-BTXbB2YE.js";
5
+ import { u as x2, a as rA } from "./hooks-BFJR7RrV.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-I1os1XOz.js";
7
7
  const J0 = (A) => {
8
8
  const C = v.useRef({});
9
9
  return v.useEffect(() => {
package/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b3 as e, b4 as o, b5 as t, b6 as a } from "./index-Cj2C4-5p.js";
1
+ import { b3 as e, b4 as o, b5 as t, b6 as a } from "./index-C6yN7YPM.js";
2
2
  export {
3
3
  e as ConnectorsApp,
4
4
  o as setAppConfig,
package/index.umd.js CHANGED
@@ -3774,4 +3774,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3774
3774
  width: 100vw;
3775
3775
  height: 100vh;
3776
3776
  padding: 20px;
3777
- `,sW=Object.freeze(Object.defineProperty({__proto__:null,AuthSuccess:()=>{const A=vr(),e=je(qz),t=je(Zz);return x.useEffect(()=>{if(window.opener){const n=new URLSearchParams(window.location.search),r=n.get(DN),o=n.get(PN);o&&r&&A(ci({data:{token:r},connectorId:o}))}},[A]),x.useEffect(()=>{window.opener&&e&&window.opener.postMessage(t===jA.FAILED?hd:oE,window.location.origin)},[e,t]),w.jsxs(aW,{children:[w.jsx("h1",{children:"Authentication Complete"}),w.jsx("p",{children:"Redirecting..."})]})}},Symbol.toStringTag,{value:"Module"}));mt.ConnectorsApp=DR,mt.setAppConfig=kO,mt.setAppUgId=SO,mt.setAppUserId=NO,Object.defineProperty(mt,Symbol.toStringTag,{value:"Module"})});
3777
+ `,sW=Object.freeze(Object.defineProperty({__proto__:null,AuthSuccess:()=>{const A=vr(),e=je(qz),t=je(Zz);return x.useEffect(()=>{const n=new URLSearchParams(window.location.search),r=n.get(DN),o=n.get(PN);console.log("Debug::AuthSUccess++++",{openenr:window.opener,verificationToken:r,connectorId:o}),window.opener&&o&&r&&(console.log("Debug:: Dispatching++++++"),A(ci({data:{token:r},connectorId:o})))},[A]),x.useEffect(()=>{window.opener&&e&&window.opener.postMessage(t===jA.FAILED?hd:oE,window.location.origin)},[e,t]),w.jsxs(aW,{children:[w.jsx("h1",{children:"Authentication Complete"}),w.jsx("p",{children:"Redirecting..."})]})}},Symbol.toStringTag,{value:"Module"}));mt.ConnectorsApp=DR,mt.setAppConfig=kO,mt.setAppUgId=SO,mt.setAppUserId=NO,Object.defineProperty(mt,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-admin",
3
- "version": "0.0.10-beta.36",
3
+ "version": "0.0.10-beta.37",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",
@@ -1,4 +1,4 @@
1
- import { aJ as Ho, aK as Xt, aL as qo, k as Ot, i as Tt, n as Ve, aM as zt, j as L, aN as Xo, _ as C, E as zo, P as n, aO as st, H as uo, r as yt, aP as Yt, aQ as Yo, p as Pt, s as ne, m as Et, an as mo, ap as Gt, o as Be, l as ho, q as vo, ai as Go, aR as Ko, aS as et, f as Jo, e as Qo, g as Kt, aT as Zo, aU as Jt, aV as tt, aW as er, aX as tr, B as go, aY as or, b as rr, aZ as _e } from "./index-Cj2C4-5p.js";
1
+ import { aJ as Ho, aK as Xt, aL as qo, k as Ot, i as Tt, n as Ve, aM as zt, j as L, aN as Xo, _ as C, E as zo, P as n, aO as st, H as uo, r as yt, aP as Yt, aQ as Yo, p as Pt, s as ne, m as Et, an as mo, ap as Gt, o as Be, l as ho, q as vo, ai as Go, aR as Ko, aS as et, f as Jo, e as Qo, g as Kt, aT as Zo, aU as Jt, aV as tt, aW as er, aX as tr, B as go, aY as or, b as rr, aZ as _e } from "./index-C6yN7YPM.js";
2
2
  import * as $ from "react";
3
3
  import nr from "react";
4
4
  function ar(e, t = 0, o = 1) {
package/index-BfLxkRTf.js DELETED
@@ -1,31 +0,0 @@
1
- import { s as p, B as d, a_ as f, a$ as h, b0 as A, N as u, aF as w, aG as l, j as e } from "./index-Cj2C4-5p.js";
2
- import { useEffect as r } from "react";
3
- import { u as m, a as c } from "./hooks-DrjCeTKE.js";
4
- import { d as S, e as x } from "./selectors-BZXXKPzK.js";
5
- const T = p(d)`
6
- position: fixed;
7
- z-index: 1000;
8
- background-color: #fff;
9
- width: 100vw;
10
- height: 100vh;
11
- padding: 20px;
12
- `, D = () => {
13
- const o = m(), t = c(S), s = c(x);
14
- return r(() => {
15
- if (window.opener) {
16
- const i = new URLSearchParams(window.location.search), n = i.get(f), a = i.get(h);
17
- a && n && o(A({ data: { token: n }, connectorId: a }));
18
- }
19
- }, [o]), r(() => {
20
- window.opener && t && window.opener.postMessage(
21
- s === u.FAILED ? w : l,
22
- window.location.origin
23
- );
24
- }, [t, s]), /* @__PURE__ */ e.jsxs(T, { children: [
25
- /* @__PURE__ */ e.jsx("h1", { children: "Authentication Complete" }),
26
- /* @__PURE__ */ e.jsx("p", { children: "Redirecting..." })
27
- ] });
28
- };
29
- export {
30
- D as AuthSuccess
31
- };