@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.
- package/app/connectors/router.d.ts.map +1 -1
- package/features/connector-library/components/custom-connector-card-item/index.d.ts.map +1 -1
- package/features/toast-message/constants/toast.d.ts +2 -0
- package/features/toast-message/constants/toast.d.ts.map +1 -1
- package/hooks-DpcVYJXR.js +6 -0
- package/{index-8atg-PQb.js → index-5M_E1pZV.js} +18 -17
- package/{index-BeEKT_9d.js → index-BFXKDv3m.js} +131 -127
- package/{index-hGJ_Wux0.js → index-BKhb3wFl.js} +2 -2
- package/{index-CZK1AZxI.js → index-BWOd9jTI.js} +4070 -4092
- package/index-D_r_Y_Wk.js +31 -0
- package/{index-D1YTeZ4C.js → index-Dao6ezy3.js} +24 -22
- package/{index-BXJdy2Ur.js → index-DbemKBA2.js} +1 -1
- package/{index-CDdw9_8X.js → index-Du4S5Yfo.js} +12 -11
- package/index.es.js +1 -1
- package/index.umd.js +166 -166
- package/package.json +1 -1
- package/selectors-BZXXKPzK.js +9 -0
- package/{showMessage-vZ1FgyTt.js → showMessage-Bg-woyGL.js} +50 -48
|
@@ -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;
|
|
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;
|
|
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"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { s as l, b as i, J as j, j as t, T as c, I
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
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
|
-
`,
|
|
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 =
|
|
21
|
-
return /* @__PURE__ */ t.jsx(F, { children: d ? /* @__PURE__ */ t.jsx(
|
|
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:
|
|
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(
|
|
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
|
-
`,
|
|
53
|
-
const a =
|
|
54
|
-
|
|
55
|
-
h(r ?
|
|
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(
|
|
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(
|
|
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
|
-
|
|
68
|
+
Q as ConnectorConfig
|
|
68
69
|
};
|