@hiver/connector-admin 0.0.10-beta.40 → 0.0.10-beta.41

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,4 +1,4 @@
1
- import { b2 as s, b3 as e } from "./index-0MvnLk-K.js";
1
+ import { b2 as s, b3 as e } from "./index-D8WT8-S_.js";
2
2
  const t = s.withTypes(), a = e.withTypes();
3
3
  export {
4
4
  a,
@@ -1,8 +1,8 @@
1
- import { s as t, o, j as e, u as E, f as T, L as A, A as S, d as N, e as D, g as R, h as $, R as j, T as r, I as b, b as c, B as h, i as C, k as z, l as I } from "./index-0MvnLk-K.js";
1
+ import { s as t, o, j as e, u as E, f as T, L as A, A as S, d as N, e as D, g as R, h as $, R as j, T as r, I as b, b as c, B as h, i as C, k as z, l as I } from "./index-D8WT8-S_.js";
2
2
  import { useEffect as y, useState as w } from "react";
3
- import { E as O, a as B, R as v, C as V, b as U, c as W } from "./index-EIeELExm.js";
4
- import { u as Z, a as x } from "./hooks-CEB9TMW4.js";
5
- import { C as m, s as F, a as P, b as q, c as H, d as G } from "./showMessage-CP6otBbg.js";
3
+ import { E as O, a as B, R as v, C as V, b as U, c as W } from "./index-CW0QrsJa.js";
4
+ import { u as Z, a as x } from "./hooks-BPGmLgk3.js";
5
+ import { C as m, s as F, a as P, b as q, c as H, d as G } from "./showMessage-D4JzOkvN.js";
6
6
  const X = t("li")`
7
7
  width: 252px;
8
8
  height: 187px;
@@ -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-0MvnLk-K.js";
1
+ import { s, B as c, T as u, M as b, u as m, a as S, S as p, j as i, C, b as B, c as v, O as j } from "./index-D8WT8-S_.js";
2
2
  import { useContext as k, useEffect as y } from "react";
3
3
  const z = s(c)`
4
4
  box-sizing: border-box;
@@ -38,7 +38,7 @@ const z = s(c)`
38
38
  }
39
39
  }
40
40
  `, T = ({ sidebarOptions: d = [] }) => {
41
- const { currentSideBar: n, setCurrentSideBar: r } = k(m), x = b(), { pathname: a } = S();
41
+ const { currentSideBar: n, setCurrentSideBar: r } = k(b), x = m(), { pathname: a } = S();
42
42
  y(() => {
43
43
  const t = d.find((o) => o.route === a), e = Object.keys(p).find((o) => p[o].includes(a));
44
44
  t != null && t.value && (t == null ? void 0 : t.value) !== n ? r(t.value) : e && e !== n && r(e);
@@ -62,8 +62,8 @@ const z = s(c)`
62
62
  /* @__PURE__ */ i.jsx(N, { variant: "h3", "data-testid": "custom-connector-heading", children: C }),
63
63
  h()
64
64
  ] }) });
65
- }, w = () => /* @__PURE__ */ i.jsxs(v, { direction: "row", alignItems: "stretch", sx: { minHeight: "100vh" }, children: [
66
- /* @__PURE__ */ i.jsx(T, { sidebarOptions: B }),
65
+ }, w = () => /* @__PURE__ */ i.jsxs(B, { direction: "row", alignItems: "stretch", children: [
66
+ /* @__PURE__ */ i.jsx(T, { sidebarOptions: v }),
67
67
  /* @__PURE__ */ i.jsx(j, {})
68
68
  ] });
69
69
  export {
@@ -1,8 +1,8 @@
1
- import { E as A2, j as I, F as S2, G as l2, J as c2, K as a0, _ as i, N as HA, P as mA, s as U, Q as f, U as qA, V as wA, W as Z, X as C, Y as bA, Z as CA, $ as W2, a0 as x2, a1 as s0, a2 as U2, a3 as OA, a4 as k2, a5 as JA, w as f2, a6 as D2, a7 as c0, a8 as V2, a9 as i0, aa as $2, ab as l0, ac as Y2, ad as d0, ae as f0, af as D0, ag as u0, ah as w0, ai as p0, B as C2, o as H2, T as LA, b as G, i as g2, u as v0, A as d2, aj as M0, R as zA, ak as L0, al as P0, am as U0 } from "./index-0MvnLk-K.js";
1
+ import { E as A2, j as I, F as S2, G as l2, J as c2, K as a0, _ as i, N as HA, P as mA, s as U, Q as f, U as qA, V as wA, W as Z, X as C, Y as bA, Z as CA, $ as W2, a0 as x2, a1 as s0, a2 as U2, a3 as OA, a4 as k2, a5 as JA, w as f2, a6 as D2, a7 as c0, a8 as V2, a9 as i0, aa as $2, ab as l0, ac as Y2, ad as d0, ae as f0, af as D0, ag as u0, ah as w0, ai as p0, B as C2, o as H2, T as LA, b as G, i as g2, u as v0, A as d2, aj as M0, R as zA, ak as L0, al as P0, am as U0 } from "./index-D8WT8-S_.js";
2
2
  import * as p from "react";
3
3
  import { useState as jA, useEffect as F2 } from "react";
4
- import { a as xA, u as _2 } from "./hooks-CEB9TMW4.js";
5
- import { P as A0, T as m2, h as F0, i as h0, f as O0, j as b2, k as x0, I as H0, E as m0, l as C0 } from "./showMessage-CP6otBbg.js";
4
+ import { a as xA, u as _2 } from "./hooks-BPGmLgk3.js";
5
+ import { P as A0, T as m2, h as F0, i as h0, f as O0, j as b2, k as x0, I as H0, E as m0, l as C0 } from "./showMessage-D4JzOkvN.js";
6
6
  const b0 = (A) => {
7
7
  const g = p.useRef({});
8
8
  return p.useEffect(() => {
@@ -1,4 +1,4 @@
1
- import { s as g, b as B, B as I, M as r, j as A, m as v, T as C, n as t, p as u, H as d, q as e, r as s, t as w, v as b } from "./index-0MvnLk-K.js";
1
+ import { s as g, b as B, B as I, M as r, j as A, m as v, T as C, n as t, p as u, H as d, q as e, r as s, t as w, v as b } from "./index-D8WT8-S_.js";
2
2
  import { useContext as X } from "react";
3
3
  const W = g(B)`
4
4
  width: 100%;
@@ -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-BSvTlOZL.js");
30656
+ const { ConnectorView: t } = await import("./index-Bd3wdsY7.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-CsWZW50o.js");
30663
+ const { Dashboard: t } = await import("./index-BbRFdzaj.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-CsWZW50o.js");
30670
+ const { Dashboard: t } = await import("./index-BbRFdzaj.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-CVBbDWVJ.js");
30677
+ const { Agent: t } = await import("./index-D8Hcj2NE.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-Bsjw8Do7.js");
30684
+ const { ConnectorConfig: t } = await import("./index-DRApFbXA.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-AXJ4Zuyh.js");
30693
+ const { Settings: t } = await import("./index-W9vugLtC.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-80ycSOQV.js");
30700
+ const { AuthSuccess: t } = await import("./index-g7h2L9rv.js");
30701
30701
  return { Component: t };
30702
30702
  }
30703
30703
  }
@@ -30825,7 +30825,7 @@ const DR = te(kr)`
30825
30825
  box-shadow: 0px 2px 4px 0px #00000040;
30826
30826
  }
30827
30827
  `, QR = te(Qf)`
30828
- width: 53px;
30828
+ width: 43px;
30829
30829
  height: 43px;
30830
30830
  border-radius: 5px;
30831
30831
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.04);
@@ -1,8 +1,8 @@
1
- import { s as p, b as n, o as j, j as t, i as f, T as d, w as S, u as y, x as I, y as b, z as v, D as T, R as P, A } from "./index-0MvnLk-K.js";
1
+ import { s as p, b as n, o as j, j as t, i as f, T as d, w as S, u as y, x as I, y as b, z as v, D as T, R as P, A } from "./index-D8WT8-S_.js";
2
2
  import { useState as E, useEffect as D } from "react";
3
- import { a as h, u as B } from "./hooks-CEB9TMW4.js";
4
- import { C, d as M, e as k, f as R, g as N, T as _ } from "./showMessage-CP6otBbg.js";
5
- import { c as Z, b as W } from "./index-EIeELExm.js";
3
+ import { a as h, u as B } from "./hooks-BPGmLgk3.js";
4
+ import { C, d as M, e as k, f as R, g as N, T as _ } from "./showMessage-D4JzOkvN.js";
5
+ import { c as Z, b as W } from "./index-CW0QrsJa.js";
6
6
  const q = "APIs in {{connector}} connector", O = "Following are the list of APIs that you will find in this connector", z = "Request new API", F = p(n)`
7
7
  width: 100%;
8
8
  height: ${(s) => s.height ? s.height : "72px"};
@@ -1,9 +1,9 @@
1
- import { s as N, b as j, o as je, T as de, u as Ot, j as C, an as Sn, ao as y, ap as Mt, aq as ct, ar as Vn, B as z, as as Tn, w as Wn, at as Rn, au as Nn, av as Se, i as kt, aw as $, ax as Xn, ay as Zn, az as dt, aA as gt, aB as wn, A as ze, aC as Hn, x as Pn, y as Ln, aD as Dn, aE as On, z as Mn, D as kn, aF as Le, R as he, aG as Jn, aH as bt, aI as Yn, aJ as jn } from "./index-0MvnLk-K.js";
1
+ import { s as N, b as j, o as je, T as de, u as Ot, j as C, an as Sn, ao as y, ap as Mt, aq as ct, ar as Vn, B as z, as as Tn, w as Wn, at as Rn, au as Nn, av as Se, i as kt, aw as $, ax as Xn, ay as Zn, az as dt, aA as gt, aB as wn, A as ze, aC as Hn, x as Pn, y as Ln, aD as Dn, aE as On, z as Mn, D as kn, aF as Le, R as he, aG as Jn, aH as bt, aI as Yn, aJ as jn } from "./index-D8WT8-S_.js";
2
2
  import * as W from "react";
3
3
  import zn, { useState as J, useCallback as L, useLayoutEffect as Un, useRef as te, useMemo as me, createContext as Qn, useContext as _n, Component as Kn, Fragment as Ue, useEffect as ne, forwardRef as $n, useReducer as qn } from "react";
4
4
  import { createPortal as ei } from "react-dom";
5
- import { T as pt, C as It, d as ti, e as ni, f as ii, g as ui, j as mt, S as ai, l as ri } from "./showMessage-CP6otBbg.js";
6
- import { u as et, a as ce } from "./hooks-CEB9TMW4.js";
5
+ import { T as pt, C as It, d as ti, e as ni, f as ii, g as ui, j as mt, S as ai, l as ri } from "./showMessage-D4JzOkvN.js";
6
+ import { u as et, a as ce } from "./hooks-BPGmLgk3.js";
7
7
  import { s as oi, a as li, b as si, c as ci } from "./selectors-BZXXKPzK.js";
8
8
  const di = N(j)`
9
9
  margin-bottom: 36px;
@@ -1,6 +1,6 @@
1
- import { s as p, B as d, a$ as f, b0 as A, b1 as h, A as u, aG as w, aH as l, j as e } from "./index-0MvnLk-K.js";
1
+ import { s as p, B as d, a$ as f, b0 as A, b1 as h, A as u, aG as w, aH as l, j as e } from "./index-D8WT8-S_.js";
2
2
  import { useEffect as r } from "react";
3
- import { u as m, a as c } from "./hooks-CEB9TMW4.js";
3
+ import { u as m, a as c } from "./hooks-BPGmLgk3.js";
4
4
  import { d as S, e as x } from "./selectors-BZXXKPzK.js";
5
5
  const T = p(d)`
6
6
  position: fixed;
package/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b4 as e, b5 as o, b6 as t, b7 as a } from "./index-0MvnLk-K.js";
1
+ import { b4 as e, b5 as o, b6 as t, b7 as a } from "./index-D8WT8-S_.js";
2
2
  export {
3
3
  e as ConnectorsApp,
4
4
  o as setAppConfig,
package/index.umd.js CHANGED
@@ -2231,7 +2231,7 @@ Take a look at the reducer(s) handling this action type: ${f.type}.
2231
2231
  box-shadow: 0px 2px 4px 0px #00000040;
2232
2232
  }
2233
2233
  `,mR=S(u2)`
2234
- width: 53px;
2234
+ width: 43px;
2235
2235
  height: 43px;
2236
2236
  border-radius: 5px;
2237
2237
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.04);
@@ -3159,7 +3159,7 @@ Take a look at the reducer(s) handling this action type: ${f.type}.
3159
3159
  color: #343c45;
3160
3160
  }
3161
3161
  }
3162
- `,kR=({sidebarOptions:A=[]})=>{const{currentSideBar:e,setCurrentSideBar:t}=x.useContext(fi),n=n2(),{pathname:r}=t2();x.useEffect(()=>{const i=A.find(s=>s.route===r),a=Object.keys(Pd).find(s=>Pd[s].includes(r));i!=null&&i.value&&(i==null?void 0:i.value)!==e?t(i.value):a&&a!==e&&t(a)},[r]);const o=(i,a,s)=>{i.stopPropagation(),t(s),n(a)},g=()=>w.jsx(MR,{children:A.map(({id:i,value:a,route:s})=>{const E=e===a;return w.jsx("div",{"data-testid":i,className:E?"active":"",onClick:I=>o(I,s,a),children:a},i)})});return w.jsx(FR,{"data-testid":"sideBarParent",children:w.jsxs(LR,{children:[w.jsx(OR,{variant:"h3","data-testid":"custom-connector-heading",children:CE}),g()]})})},NR=Object.freeze(Object.defineProperty({__proto__:null,ConnectorView:()=>w.jsxs(xA,{direction:"row",alignItems:"stretch",sx:{minHeight:"100vh"},children:[w.jsx(kR,{sidebarOptions:eU}),w.jsx(hS,{})]})},Symbol.toStringTag,{value:"Module"})),UR="Enhance with Custom Connectors",SR="Let us know your use case, and we'll design and deliver a custom connector tailored to your needs within 2-3 working days.",cf="Request new connector",RR="Create your own (coming soon)",HR="Request new API",jR="Request a new connector",uf="Tell us your use case and we will create a connector for you in 2-3 working days.",XR=`Request new connectors to get better customer context and key actions right into your inbox. ${uf}`,VR="Select an API",zR="Select a connector",WR="Feel free to add specific details (Optional)",YR="Submit Request",GR="Request submitted",ZR="Your request has been submitted successfully. We will get back to you within 2-3 working days",qR="Done",KR="+Request new API",JR="Add connector",_R="Edit connector",$R="Enable",AH="Disable",df={CONNECTOR:"connector",API:"api"},br=Q4.withTypes(),ke=n4.withTypes(),N2=S($Q)`
3162
+ `,kR=({sidebarOptions:A=[]})=>{const{currentSideBar:e,setCurrentSideBar:t}=x.useContext(fi),n=n2(),{pathname:r}=t2();x.useEffect(()=>{const i=A.find(s=>s.route===r),a=Object.keys(Pd).find(s=>Pd[s].includes(r));i!=null&&i.value&&(i==null?void 0:i.value)!==e?t(i.value):a&&a!==e&&t(a)},[r]);const o=(i,a,s)=>{i.stopPropagation(),t(s),n(a)},g=()=>w.jsx(MR,{children:A.map(({id:i,value:a,route:s})=>{const E=e===a;return w.jsx("div",{"data-testid":i,className:E?"active":"",onClick:I=>o(I,s,a),children:a},i)})});return w.jsx(FR,{"data-testid":"sideBarParent",children:w.jsxs(LR,{children:[w.jsx(OR,{variant:"h3","data-testid":"custom-connector-heading",children:CE}),g()]})})},NR=Object.freeze(Object.defineProperty({__proto__:null,ConnectorView:()=>w.jsxs(xA,{direction:"row",alignItems:"stretch",children:[w.jsx(kR,{sidebarOptions:eU}),w.jsx(hS,{})]})},Symbol.toStringTag,{value:"Module"})),UR="Enhance with Custom Connectors",SR="Let us know your use case, and we'll design and deliver a custom connector tailored to your needs within 2-3 working days.",cf="Request new connector",RR="Create your own (coming soon)",HR="Request new API",jR="Request a new connector",uf="Tell us your use case and we will create a connector for you in 2-3 working days.",XR=`Request new connectors to get better customer context and key actions right into your inbox. ${uf}`,VR="Select an API",zR="Select a connector",WR="Feel free to add specific details (Optional)",YR="Submit Request",GR="Request submitted",ZR="Your request has been submitted successfully. We will get back to you within 2-3 working days",qR="Done",KR="+Request new API",JR="Add connector",_R="Edit connector",$R="Enable",AH="Disable",df={CONNECTOR:"connector",API:"api"},br=Q4.withTypes(),ke=n4.withTypes(),N2=S($Q)`
3163
3163
  display: block;
3164
3164
  margin: ${A=>A.margin?A.margin:0};
3165
3165
  `,eH=S("li")`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-admin",
3
- "version": "0.0.10-beta.40",
3
+ "version": "0.0.10-beta.41",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",
@@ -1,4 +1,4 @@
1
- import { aK as Ho, aL as Xt, aM as qo, P as Ot, N as Tt, V as Ve, aN as zt, j as L, aO as Xo, _ as C, a8 as zo, X as n, aP as st, ac as uo, $ as yt, aQ as Yt, aR as Yo, Y as Pt, s as ne, U as Et, an as mo, ap as Gt, W as Be, Q as ho, Z as vo, af as Go, aS as Ko, aT as et, G as Qo, F as Zo, J as Kt, aU as Jo, aV as Qt, aW as tt, aX as er, aY as tr, B as go, aZ as or, b as rr, a_ as _e } from "./index-0MvnLk-K.js";
1
+ import { aK as Ho, aL as Xt, aM as qo, P as Ot, N as Tt, V as Ve, aN as zt, j as L, aO as Xo, _ as C, a8 as zo, X as n, aP as st, ac as uo, $ as yt, aQ as Yt, aR as Yo, Y as Pt, s as ne, U as Et, an as mo, ap as Gt, W as Be, Q as ho, Z as vo, af as Go, aS as Ko, aT as et, G as Qo, F as Zo, J as Kt, aU as Jo, aV as Qt, aW as tt, aX as er, aY as tr, B as go, aZ as or, b as rr, a_ as _e } from "./index-D8WT8-S_.js";
2
2
  import * as A from "react";
3
3
  import nr from "react";
4
4
  function ar(e, t = 0, o = 1) {