@hiver/connector-admin 0.0.10-beta.27 → 0.0.10-beta.29

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":"router.d.ts","sourceRoot":"","sources":["../../../src/app/connectors/router.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AA+DjD,eAAO,MAAM,SAAS,oCAAgD,UAAU,4CAS/E,CAAC"}
1
+ {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../src/app/connectors/router.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAgEjD,eAAO,MAAM,SAAS,oCAAgD,UAAU,4CAS/E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-library/components/custom-connector-card-item/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAgBtD,UAAU,wBAAwB;IAChC,SAAS,EAAE,iBAAiB,CAAC;IAC7B,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,uBAAuB,0EAMjC,wBAAwB,4CAoH1B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-library/components/custom-connector-card-item/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAiBtD,UAAU,wBAAwB;IAChC,SAAS,EAAE,iBAAiB,CAAC;IAC7B,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,uBAAuB,0EAMjC,wBAAwB,4CAyH1B,CAAC"}
@@ -1,4 +1,6 @@
1
1
  export declare const SUCCESS_TOAST: "success";
2
2
  export declare const ERROR_TOAST: "error";
3
3
  export declare const INFO_DARK: "info-dark";
4
+ export declare const ERROR_TOGGLE = "Error in toggling connector state";
5
+ export declare const TOGGLE_DISABLE_SUCCESS = "Connector disabled successfully";
4
6
  //# sourceMappingURL=toast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../src/features/toast-message/constants/toast.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,WAAqB,CAAC;AAChD,eAAO,MAAM,WAAW,SAAmB,CAAC;AAC5C,eAAO,MAAM,SAAS,aAAuB,CAAC"}
1
+ {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../src/features/toast-message/constants/toast.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,WAAqB,CAAC;AAChD,eAAO,MAAM,WAAW,SAAmB,CAAC;AAC5C,eAAO,MAAM,SAAS,aAAuB,CAAC;AAE9C,eAAO,MAAM,YAAY,sCAAsC,CAAC;AAChE,eAAO,MAAM,sBAAsB,oCAAoC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { b1 as s, b2 as e } from "./index-BWOd9jTI.js";
2
+ const t = s.withTypes(), a = e.withTypes();
3
+ export {
4
+ a,
5
+ t as u
6
+ };
@@ -1,8 +1,9 @@
1
- import { s as l, b as i, J as j, j as t, T as c, I, u as b, L as p, K as w, ad as S, ae as v, af as T, ag as y, Y as P, R as m } from "./index-CZK1AZxI.js";
2
- import { useEffect as D } from "react";
3
- import { C as u, d as E, f as k, g as B, h as M, T as Z } from "./showMessage-vZ1FgyTt.js";
4
- import { b as _ } from "./index-BeEKT_9d.js";
5
- const N = "APIs in {{connector}} connector", R = "Following are the list of APIs that you will find in this connector", O = l(i)`
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-BWOd9jTI.js";
2
+ import { useEffect as P } from "react";
3
+ import { a as p, u as D } from "./hooks-DpcVYJXR.js";
4
+ import { C as u, d as E, f as k, g as B, h as M, T as Z } from "./showMessage-Bg-woyGL.js";
5
+ import { b as N } from "./index-BFXKDv3m.js";
6
+ const _ = "APIs in {{connector}} connector", W = "Following are the list of APIs that you will find in this connector", O = l(i)`
6
7
  width: 100%;
7
8
  height: ${(a) => a.height ? a.height : "72px"};
8
9
  gap: 12px;
@@ -10,17 +11,17 @@ const N = "APIs in {{connector}} connector", R = "Following are the list of APIs
10
11
  border: 1px solid ${j.palette.gray.gray6};
11
12
  border-radius: 8px;
12
13
  box-sizing: border-box;
13
- `, W = () => /* @__PURE__ */ t.jsx(i, { gap: "12px", children: Array(3).fill(0).map((a, s) => /* @__PURE__ */ t.jsxs(O, { children: [
14
+ `, R = () => /* @__PURE__ */ t.jsx(i, { gap: "12px", children: Array(3).fill(0).map((a, s) => /* @__PURE__ */ t.jsxs(O, { children: [
14
15
  /* @__PURE__ */ t.jsx(u, { variant: "rounded", width: "862px", height: "10px", animation: "wave" }),
15
16
  /* @__PURE__ */ t.jsx(u, { variant: "rounded", width: "862px", height: "10px", animation: "wave" })
16
17
  ] }, s)) }), F = l(i)`
17
18
  margin-left: 32px;
18
19
  width: 100%;
19
20
  `, G = ({ connectorName: a, apiList: s, isLoading: d = !1 }) => {
20
- const x = N.replace("{{connector}}", a ?? "");
21
- return /* @__PURE__ */ t.jsx(F, { children: d ? /* @__PURE__ */ t.jsx(W, {}) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
21
+ const x = _.replace("{{connector}}", a ?? "");
22
+ return /* @__PURE__ */ t.jsx(F, { children: d ? /* @__PURE__ */ t.jsx(R, {}) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
22
23
  /* @__PURE__ */ t.jsx(c, { variant: "h2", children: x }),
23
- /* @__PURE__ */ t.jsx(c, { variant: "body1", marginBottom: "20px", children: R }),
24
+ /* @__PURE__ */ t.jsx(c, { variant: "body1", marginBottom: "20px", children: W }),
24
25
  /* @__PURE__ */ t.jsx(i, { gap: "12px", children: s.map((n) => /* @__PURE__ */ t.jsxs(
25
26
  i,
26
27
  {
@@ -41,7 +42,7 @@ const N = "APIs in {{connector}} connector", R = "Following are the list of APIs
41
42
  }, U = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.86421%2015.9708C9.20287%2016.3941%209.13423%2017.0118%208.71091%2017.3505C8.28758%2017.6891%207.66987%2017.6205%207.33121%2017.1972L8.86421%2015.9708ZM2.94434%2010.1423L2.17784%2010.7555C1.89104%2010.397%201.89104%209.88757%202.17784%209.52907L2.94434%2010.1423ZM7.33121%203.08735C7.66987%202.66403%208.28758%202.59539%208.71091%202.93405C9.13423%203.27271%209.20287%203.89042%208.86421%204.31375L7.33121%203.08735ZM3.31243%2011.1852C2.77031%2011.1852%202.33084%2010.7457%202.33084%2010.2036C2.33084%209.66149%202.77031%209.22201%203.31243%209.22201L3.31243%2011.1852ZM17.0548%209.22201C17.5969%209.22201%2018.0364%209.66149%2018.0364%2010.2036C18.0364%2010.7457%2017.5969%2011.1852%2017.0548%2011.1852V9.22201ZM7.33121%2017.1972L2.17784%2010.7555L3.71083%209.52907L8.86421%2015.9708L7.33121%2017.1972ZM2.17784%209.52907L7.33121%203.08735L8.86421%204.31375L3.71083%2010.7555L2.17784%209.52907ZM3.31243%209.22201L17.0548%209.22201V11.1852L3.31243%2011.1852L3.31243%209.22201Z'%20fill='%236F7C90'/%3e%3c/svg%3e", V = l(i)`
42
43
  margin: 43px 0 0 229px;
43
44
  position: relative;
44
- `, $ = l(I)`
45
+ `, $ = l(b)`
45
46
  position: absolute;
46
47
  left: -30px;
47
48
  img {
@@ -49,20 +50,20 @@ const N = "APIs in {{connector}} connector", R = "Following are the list of APIs
49
50
  height: 15px;
50
51
  margin: 3.5px 2.5px;
51
52
  }
52
- `, Y = () => {
53
- const a = b(), s = p(E), d = p(k), x = p(B), n = p(M), h = w(), { id: o = "" } = S(), [L] = v(), r = L.get("isEdit") === "true", C = (s == null ? void 0 : s[o]) || null;
54
- D(() => {
55
- h(r ? T(o) : y(o));
53
+ `, Q = () => {
54
+ const a = I(), s = p(E), d = p(k), x = p(B), n = p(M), h = D(), { id: o = "" } = w(), [L] = S(), r = L.get("isEdit") === "true", C = (s == null ? void 0 : s[o]) || null;
55
+ P(() => {
56
+ h(r ? v(o) : T(o));
56
57
  }, [r, h, o]);
57
58
  const f = (g) => {
58
- g == null || g.stopPropagation(), a(P.BASEPATH);
59
+ g == null || g.stopPropagation(), a(y.BASEPATH);
59
60
  }, e = r ? C : d, A = x === m.LOADING || n === m.LOADING;
60
61
  return /* @__PURE__ */ t.jsxs(V, { "data-testid": "connector-config", children: [
61
62
  /* @__PURE__ */ t.jsx(Z, { title: "Back", placement: "bottom", children: /* @__PURE__ */ t.jsx($, { onClick: f, children: /* @__PURE__ */ t.jsx("img", { src: U }) }) }),
62
- e ? /* @__PURE__ */ t.jsx(_, { isConfigSettingsPage: !0, connector: e, isEdit: r }) : null,
63
+ e ? /* @__PURE__ */ t.jsx(N, { isConfigSettingsPage: !0, connector: e, isEdit: r }) : null,
63
64
  /* @__PURE__ */ t.jsx(G, { isLoading: A, apiList: (e == null ? void 0 : e.apiList) || [], connectorName: (e == null ? void 0 : e.name) || "" })
64
65
  ] });
65
66
  };
66
67
  export {
67
- Y as ConnectorConfig
68
+ Q as ConnectorConfig
68
69
  };