@hiver/connector-admin 0.0.9 → 0.0.10-beta.0
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/index.d.ts +1 -1
- package/app/connectors/index.d.ts.map +1 -1
- package/app/connectors/pages/auth-success/index.d.ts +2 -0
- package/app/connectors/pages/auth-success/index.d.ts.map +1 -0
- package/app/connectors/pages/auth-success/styles.d.ts +4 -0
- package/app/connectors/pages/auth-success/styles.d.ts.map +1 -0
- package/app/connectors/pages/connector-view/dashboard/index.d.ts.map +1 -1
- package/app/connectors/pages/settings/index.d.ts.map +1 -1
- package/app/connectors/pages/settings/styles.d.ts +1 -0
- package/app/connectors/pages/settings/styles.d.ts.map +1 -1
- package/app/connectors/router.d.ts.map +1 -1
- package/components/ui/form/index.d.ts +19 -0
- package/components/ui/form/index.d.ts.map +1 -0
- package/components/ui/form/styles.d.ts +4 -0
- package/components/ui/form/styles.d.ts.map +1 -0
- package/components/ui/form-fields/index.d.ts.map +1 -1
- package/components/ui/select/style.d.ts +2 -0
- package/components/ui/select/style.d.ts.map +1 -0
- package/constants/api.d.ts +1 -0
- package/constants/api.d.ts.map +1 -1
- package/constants/app-constants.d.ts +2 -0
- package/constants/app-constants.d.ts.map +1 -1
- package/constants/router-paths.d.ts +1 -0
- package/constants/router-paths.d.ts.map +1 -1
- package/context/index.d.ts +7 -0
- package/context/index.d.ts.map +1 -1
- package/context/main-app-provider/index.d.ts.map +1 -1
- package/features/auth/api/index.d.ts +8 -0
- package/features/auth/api/index.d.ts.map +1 -0
- package/features/auth/components/api-executor/index.d.ts +8 -0
- package/features/auth/components/api-executor/index.d.ts.map +1 -0
- package/features/auth/components/api-executor/styles.d.ts +12 -0
- package/features/auth/components/api-executor/styles.d.ts.map +1 -0
- package/features/auth/components/auth-form/index.d.ts +10 -0
- package/features/auth/components/auth-form/index.d.ts.map +1 -0
- package/features/auth/components/auth-form/reducer.d.ts +11 -0
- package/features/auth/components/auth-form/reducer.d.ts.map +1 -0
- package/features/auth/components/auth-form/styles.d.ts +8 -0
- package/features/auth/components/auth-form/styles.d.ts.map +1 -0
- package/features/auth/components/auth-header-skeleton/index.d.ts +2 -0
- package/features/auth/components/auth-header-skeleton/index.d.ts.map +1 -0
- package/features/auth/constants/api.d.ts +6 -0
- package/features/auth/constants/api.d.ts.map +1 -0
- package/features/auth/constants/form-config.d.ts +71 -0
- package/features/auth/constants/form-config.d.ts.map +1 -0
- package/features/auth/constants/index.d.ts +4 -1
- package/features/auth/constants/index.d.ts.map +1 -1
- package/features/auth/store/initial-state.d.ts +19 -0
- package/features/auth/store/initial-state.d.ts.map +1 -0
- package/features/auth/store/selectors.d.ts +12 -0
- package/features/auth/store/selectors.d.ts.map +1 -0
- package/features/auth/store/slice.d.ts +75 -0
- package/features/auth/store/slice.d.ts.map +1 -0
- package/features/auth/types/connector.d.ts +2 -0
- package/features/auth/types/connector.d.ts.map +1 -0
- package/features/auth/types/form.d.ts +24 -0
- package/features/auth/types/form.d.ts.map +1 -0
- package/features/auth/types/request.d.ts +33 -0
- package/features/auth/types/request.d.ts.map +1 -0
- package/features/auth/utils/index.d.ts +13 -0
- package/features/auth/utils/index.d.ts.map +1 -0
- package/features/auth/utils/type-guards.d.ts +8 -0
- package/features/auth/utils/type-guards.d.ts.map +1 -0
- package/features/connector-library/constants/api.d.ts.map +1 -1
- package/features/connector-library/store/initial-state.d.ts +3 -2
- package/features/connector-library/store/initial-state.d.ts.map +1 -1
- package/features/connector-library/store/selectors.d.ts +1 -1
- package/features/connector-library/store/selectors.d.ts.map +1 -1
- package/features/connector-library/store/slice.d.ts +3 -1
- package/features/connector-library/store/slice.d.ts.map +1 -1
- package/features/connector-library/types/connector.d.ts +1 -42
- package/features/connector-library/types/connector.d.ts.map +1 -1
- package/features/connector-library/utils/type-guards.d.ts +3 -2
- package/features/connector-library/utils/type-guards.d.ts.map +1 -1
- package/features/request-new-connector/api/index.d.ts +8 -0
- package/features/request-new-connector/api/index.d.ts.map +1 -0
- package/features/request-new-connector/components/custom-connector-card/index.d.ts +1 -0
- package/features/request-new-connector/components/custom-connector-card/index.d.ts.map +1 -1
- package/features/request-new-connector/components/request-new-modal/index.d.ts +1 -0
- package/features/request-new-connector/components/request-new-modal/index.d.ts.map +1 -1
- package/features/request-new-connector/components/request-new-modal/request-panel.d.ts.map +1 -1
- package/features/request-new-connector/constants/api.d.ts +2 -0
- package/features/request-new-connector/constants/api.d.ts.map +1 -0
- package/features/request-new-connector/constants/index.d.ts +4 -0
- package/features/request-new-connector/constants/index.d.ts.map +1 -1
- package/features/request-new-connector/types/index.d.ts +16 -1
- package/features/request-new-connector/types/index.d.ts.map +1 -1
- package/features/request-new-connector/utils/type-guards.d.ts +3 -0
- package/features/request-new-connector/utils/type-guards.d.ts.map +1 -0
- package/features/toast-message/CloseButton.d.ts +4 -0
- package/features/toast-message/CloseButton.d.ts.map +1 -0
- package/features/toast-message/HiverIconToast.d.ts +7 -0
- package/features/toast-message/HiverIconToast.d.ts.map +1 -0
- package/features/toast-message/__tests__/toastMessage.test.d.ts +2 -0
- package/features/toast-message/__tests__/toastMessage.test.d.ts.map +1 -0
- package/features/toast-message/constants/toast.d.ts +4 -0
- package/features/toast-message/constants/toast.d.ts.map +1 -0
- package/features/toast-message/showMessage.d.ts +13 -0
- package/features/toast-message/showMessage.d.ts.map +1 -0
- package/features/toast-message/style.d.ts +7 -0
- package/features/toast-message/style.d.ts.map +1 -0
- package/{index-CWnqz_7p.js → index-3QhF4nPL.js} +13 -14
- package/index-BG0JDAxl.js +711 -0
- package/{index-CihMwBsW.js → index-BTijOkJN.js} +1 -1
- package/{index-D5knnyWw.js → index-CTf_uj1d.js} +25 -25
- package/{index-0ckwA6Bt.js → index-DHQTzZga.js} +1063 -1028
- package/{index-g_hNAZie.js → index-DwS53blc.js} +10386 -9235
- package/index-MhhY7aRi.js +3772 -0
- package/index.es.js +1 -1
- package/index.umd.js +373 -194
- package/package.json +1 -1
- package/store/hooks.d.ts +4 -0
- package/store/hooks.d.ts.map +1 -1
- package/store/index.d.ts +8 -0
- package/store/index.d.ts.map +1 -1
- package/store/request-connector-api/initial-state.d.ts +9 -0
- package/store/request-connector-api/initial-state.d.ts.map +1 -0
- package/store/request-connector-api/selectors.d.ts +5 -0
- package/store/request-connector-api/selectors.d.ts.map +1 -0
- package/store/request-connector-api/slice.d.ts +39 -0
- package/store/request-connector-api/slice.d.ts.map +1 -0
- package/styled-ui-components-BiFtpk_x.js +2253 -0
- package/testing/mocks/handlers/auth.d.ts +2 -0
- package/testing/mocks/handlers/auth.d.ts.map +1 -0
- package/testing/mocks/handlers/connector-template.d.ts +8 -0
- package/testing/mocks/handlers/connector-template.d.ts.map +1 -1
- package/testing/mocks/handlers/request-connector-api.d.ts +2 -0
- package/testing/mocks/handlers/request-connector-api.d.ts.map +1 -0
- package/testing/mocks/handlers/update-connector.d.ts.map +1 -1
- package/testing/mocks/handlers.d.ts.map +1 -1
- package/testing/setup-store.d.ts +4 -0
- package/testing/setup-store.d.ts.map +1 -1
- package/types/common.d.ts +2 -0
- package/types/common.d.ts.map +1 -0
- package/types/connector.d.ts +60 -0
- package/types/connector.d.ts.map +1 -0
- package/types/json.d.ts +7 -0
- package/types/json.d.ts.map +1 -0
- package/types/router.d.ts +2 -0
- package/types/router.d.ts.map +1 -1
- package/utils/index.d.ts +2 -0
- package/utils/index.d.ts.map +1 -1
- package/utils/type-guards.d.ts +3 -0
- package/utils/type-guards.d.ts.map +1 -0
- package/Typography-BvoDUPsi.js +0 -174
- package/features/auth/components/auth.d.ts +0 -2
- package/features/auth/components/auth.d.ts.map +0 -1
- package/index-CPqWySPe.js +0 -2954
- package/index-xau7jZsj.js +0 -40
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { s as c, S as
|
|
2
|
-
import {
|
|
1
|
+
import { s as c, S as e, I as f, K as A, j as t, a4 as I, R as r, T as p, V as S, X as m, L as b } from "./index-DwS53blc.js";
|
|
2
|
+
import { m as v } from "./index-BG0JDAxl.js";
|
|
3
|
+
import { C as h, d as w, a as y, e as T, f as P, g as k, T as B } from "./styled-ui-components-BiFtpk_x.js";
|
|
3
4
|
import { useRef as E } from "react";
|
|
4
|
-
|
|
5
|
-
const Z = c(n)`
|
|
5
|
+
const M = c(e)`
|
|
6
6
|
margin: 43px 0 0 229px;
|
|
7
7
|
position: relative;
|
|
8
|
-
`,
|
|
8
|
+
`, Z = c(f)`
|
|
9
9
|
position: absolute;
|
|
10
10
|
left: -30px;
|
|
11
11
|
img {
|
|
@@ -13,31 +13,31 @@ const Z = c(n)`
|
|
|
13
13
|
height: 15px;
|
|
14
14
|
margin: 3.5px 2.5px;
|
|
15
15
|
}
|
|
16
|
-
`, _ = "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", R = c(
|
|
16
|
+
`, _ = "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", R = c(e)`
|
|
17
17
|
margin-left: 32px;
|
|
18
|
-
`, N = "APIs in {{connector}} connector", D = "Following are the list of APIs that you will find in this connector", W = c(
|
|
18
|
+
`, N = "APIs in {{connector}} connector", D = "Following are the list of APIs that you will find in this connector", W = c(e)`
|
|
19
19
|
width: 100%;
|
|
20
20
|
height: 72px;
|
|
21
21
|
gap: 12px;
|
|
22
22
|
padding: 16px;
|
|
23
|
-
border: 1px solid ${
|
|
23
|
+
border: 1px solid ${A.palette.gray.gray6};
|
|
24
24
|
border-radius: 8px;
|
|
25
25
|
box-sizing: border-box;
|
|
26
|
-
`, O = () => /* @__PURE__ */ t.jsx(
|
|
27
|
-
/* @__PURE__ */ t.jsx(
|
|
28
|
-
/* @__PURE__ */ t.jsx(
|
|
29
|
-
] }, s)) }),
|
|
30
|
-
var
|
|
31
|
-
const { pathname: l } =
|
|
32
|
-
if (!
|
|
26
|
+
`, O = () => /* @__PURE__ */ t.jsx(e, { gap: "12px", children: Array(3).fill(0).map((n, s) => /* @__PURE__ */ t.jsxs(W, { children: [
|
|
27
|
+
/* @__PURE__ */ t.jsx(h, { variant: "rounded", width: "40%", height: "10px", animation: "wave" }),
|
|
28
|
+
/* @__PURE__ */ t.jsx(h, { variant: "rounded", width: "80%", height: "10px", animation: "wave" })
|
|
29
|
+
] }, s)) }), V = ({ isConfigSettingsPage: n, currentConnector: s }) => {
|
|
30
|
+
var g;
|
|
31
|
+
const { pathname: l } = I(), i = r(w), L = l === m.CARD_SETTINGS, a = r(y), o = E(), x = r(T), u = r(P);
|
|
32
|
+
if (!n)
|
|
33
33
|
return null;
|
|
34
|
-
|
|
35
|
-
const C = (x == null ? void 0 : x.apiList) ?? [], j = N.replace("{{connector}}", ((
|
|
34
|
+
n && s && (o.current = L && (a != null && a[s]) ? a == null ? void 0 : a[s] : i == null ? void 0 : i[s]);
|
|
35
|
+
const C = (x == null ? void 0 : x.apiList) ?? [], j = N.replace("{{connector}}", ((g = o == null ? void 0 : o.current) == null ? void 0 : g.name) ?? "");
|
|
36
36
|
return /* @__PURE__ */ t.jsxs(R, { children: [
|
|
37
37
|
/* @__PURE__ */ t.jsx(p, { variant: "h2", children: j }),
|
|
38
38
|
/* @__PURE__ */ t.jsx(p, { variant: "body1", marginBottom: "20px", children: D }),
|
|
39
|
-
u ===
|
|
40
|
-
|
|
39
|
+
u === S.LOADING ? /* @__PURE__ */ t.jsx(O, {}) : /* @__PURE__ */ t.jsx(e, { gap: "12px", children: C.map((d) => /* @__PURE__ */ t.jsxs(
|
|
40
|
+
e,
|
|
41
41
|
{
|
|
42
42
|
width: "100%",
|
|
43
43
|
height: "72px",
|
|
@@ -54,13 +54,13 @@ const Z = c(n)`
|
|
|
54
54
|
)) })
|
|
55
55
|
] });
|
|
56
56
|
}, H = () => {
|
|
57
|
-
const
|
|
58
|
-
i == null || i.stopPropagation(),
|
|
57
|
+
const n = b(), s = r(k), l = (i) => {
|
|
58
|
+
i == null || i.stopPropagation(), n(m.BASEPATH);
|
|
59
59
|
};
|
|
60
|
-
return /* @__PURE__ */ t.jsxs(
|
|
61
|
-
/* @__PURE__ */ t.jsx(
|
|
62
|
-
/* @__PURE__ */ t.jsx(
|
|
63
|
-
/* @__PURE__ */ t.jsx(
|
|
60
|
+
return /* @__PURE__ */ t.jsxs(M, { children: [
|
|
61
|
+
/* @__PURE__ */ t.jsx(B, { title: "Back", placement: "bottom", children: /* @__PURE__ */ t.jsx(Z, { onClick: l, children: /* @__PURE__ */ t.jsx("img", { src: _ }) }) }),
|
|
62
|
+
/* @__PURE__ */ t.jsx(v, { isConfigSettingsPage: !0, currentConnector: s }),
|
|
63
|
+
/* @__PURE__ */ t.jsx(V, { isConfigSettingsPage: !0, currentConnector: s })
|
|
64
64
|
] });
|
|
65
65
|
};
|
|
66
66
|
export {
|