@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.
Files changed (149) hide show
  1. package/app/connectors/index.d.ts +1 -1
  2. package/app/connectors/index.d.ts.map +1 -1
  3. package/app/connectors/pages/auth-success/index.d.ts +2 -0
  4. package/app/connectors/pages/auth-success/index.d.ts.map +1 -0
  5. package/app/connectors/pages/auth-success/styles.d.ts +4 -0
  6. package/app/connectors/pages/auth-success/styles.d.ts.map +1 -0
  7. package/app/connectors/pages/connector-view/dashboard/index.d.ts.map +1 -1
  8. package/app/connectors/pages/settings/index.d.ts.map +1 -1
  9. package/app/connectors/pages/settings/styles.d.ts +1 -0
  10. package/app/connectors/pages/settings/styles.d.ts.map +1 -1
  11. package/app/connectors/router.d.ts.map +1 -1
  12. package/components/ui/form/index.d.ts +19 -0
  13. package/components/ui/form/index.d.ts.map +1 -0
  14. package/components/ui/form/styles.d.ts +4 -0
  15. package/components/ui/form/styles.d.ts.map +1 -0
  16. package/components/ui/form-fields/index.d.ts.map +1 -1
  17. package/components/ui/select/style.d.ts +2 -0
  18. package/components/ui/select/style.d.ts.map +1 -0
  19. package/constants/api.d.ts +1 -0
  20. package/constants/api.d.ts.map +1 -1
  21. package/constants/app-constants.d.ts +2 -0
  22. package/constants/app-constants.d.ts.map +1 -1
  23. package/constants/router-paths.d.ts +1 -0
  24. package/constants/router-paths.d.ts.map +1 -1
  25. package/context/index.d.ts +7 -0
  26. package/context/index.d.ts.map +1 -1
  27. package/context/main-app-provider/index.d.ts.map +1 -1
  28. package/features/auth/api/index.d.ts +8 -0
  29. package/features/auth/api/index.d.ts.map +1 -0
  30. package/features/auth/components/api-executor/index.d.ts +8 -0
  31. package/features/auth/components/api-executor/index.d.ts.map +1 -0
  32. package/features/auth/components/api-executor/styles.d.ts +12 -0
  33. package/features/auth/components/api-executor/styles.d.ts.map +1 -0
  34. package/features/auth/components/auth-form/index.d.ts +10 -0
  35. package/features/auth/components/auth-form/index.d.ts.map +1 -0
  36. package/features/auth/components/auth-form/reducer.d.ts +11 -0
  37. package/features/auth/components/auth-form/reducer.d.ts.map +1 -0
  38. package/features/auth/components/auth-form/styles.d.ts +8 -0
  39. package/features/auth/components/auth-form/styles.d.ts.map +1 -0
  40. package/features/auth/components/auth-header-skeleton/index.d.ts +2 -0
  41. package/features/auth/components/auth-header-skeleton/index.d.ts.map +1 -0
  42. package/features/auth/constants/api.d.ts +6 -0
  43. package/features/auth/constants/api.d.ts.map +1 -0
  44. package/features/auth/constants/form-config.d.ts +71 -0
  45. package/features/auth/constants/form-config.d.ts.map +1 -0
  46. package/features/auth/constants/index.d.ts +4 -1
  47. package/features/auth/constants/index.d.ts.map +1 -1
  48. package/features/auth/store/initial-state.d.ts +19 -0
  49. package/features/auth/store/initial-state.d.ts.map +1 -0
  50. package/features/auth/store/selectors.d.ts +12 -0
  51. package/features/auth/store/selectors.d.ts.map +1 -0
  52. package/features/auth/store/slice.d.ts +75 -0
  53. package/features/auth/store/slice.d.ts.map +1 -0
  54. package/features/auth/types/connector.d.ts +2 -0
  55. package/features/auth/types/connector.d.ts.map +1 -0
  56. package/features/auth/types/form.d.ts +24 -0
  57. package/features/auth/types/form.d.ts.map +1 -0
  58. package/features/auth/types/request.d.ts +33 -0
  59. package/features/auth/types/request.d.ts.map +1 -0
  60. package/features/auth/utils/index.d.ts +13 -0
  61. package/features/auth/utils/index.d.ts.map +1 -0
  62. package/features/auth/utils/type-guards.d.ts +8 -0
  63. package/features/auth/utils/type-guards.d.ts.map +1 -0
  64. package/features/connector-library/constants/api.d.ts.map +1 -1
  65. package/features/connector-library/store/initial-state.d.ts +3 -2
  66. package/features/connector-library/store/initial-state.d.ts.map +1 -1
  67. package/features/connector-library/store/selectors.d.ts +1 -1
  68. package/features/connector-library/store/selectors.d.ts.map +1 -1
  69. package/features/connector-library/store/slice.d.ts +3 -1
  70. package/features/connector-library/store/slice.d.ts.map +1 -1
  71. package/features/connector-library/types/connector.d.ts +1 -42
  72. package/features/connector-library/types/connector.d.ts.map +1 -1
  73. package/features/connector-library/utils/type-guards.d.ts +3 -2
  74. package/features/connector-library/utils/type-guards.d.ts.map +1 -1
  75. package/features/request-new-connector/api/index.d.ts +8 -0
  76. package/features/request-new-connector/api/index.d.ts.map +1 -0
  77. package/features/request-new-connector/components/custom-connector-card/index.d.ts +1 -0
  78. package/features/request-new-connector/components/custom-connector-card/index.d.ts.map +1 -1
  79. package/features/request-new-connector/components/request-new-modal/index.d.ts +1 -0
  80. package/features/request-new-connector/components/request-new-modal/index.d.ts.map +1 -1
  81. package/features/request-new-connector/components/request-new-modal/request-panel.d.ts.map +1 -1
  82. package/features/request-new-connector/constants/api.d.ts +2 -0
  83. package/features/request-new-connector/constants/api.d.ts.map +1 -0
  84. package/features/request-new-connector/constants/index.d.ts +4 -0
  85. package/features/request-new-connector/constants/index.d.ts.map +1 -1
  86. package/features/request-new-connector/types/index.d.ts +16 -1
  87. package/features/request-new-connector/types/index.d.ts.map +1 -1
  88. package/features/request-new-connector/utils/type-guards.d.ts +3 -0
  89. package/features/request-new-connector/utils/type-guards.d.ts.map +1 -0
  90. package/features/toast-message/CloseButton.d.ts +4 -0
  91. package/features/toast-message/CloseButton.d.ts.map +1 -0
  92. package/features/toast-message/HiverIconToast.d.ts +7 -0
  93. package/features/toast-message/HiverIconToast.d.ts.map +1 -0
  94. package/features/toast-message/__tests__/toastMessage.test.d.ts +2 -0
  95. package/features/toast-message/__tests__/toastMessage.test.d.ts.map +1 -0
  96. package/features/toast-message/constants/toast.d.ts +4 -0
  97. package/features/toast-message/constants/toast.d.ts.map +1 -0
  98. package/features/toast-message/showMessage.d.ts +13 -0
  99. package/features/toast-message/showMessage.d.ts.map +1 -0
  100. package/features/toast-message/style.d.ts +7 -0
  101. package/features/toast-message/style.d.ts.map +1 -0
  102. package/{index-CWnqz_7p.js → index-3QhF4nPL.js} +13 -14
  103. package/index-BG0JDAxl.js +711 -0
  104. package/{index-CihMwBsW.js → index-BTijOkJN.js} +1 -1
  105. package/{index-D5knnyWw.js → index-CTf_uj1d.js} +25 -25
  106. package/{index-0ckwA6Bt.js → index-DHQTzZga.js} +1063 -1028
  107. package/{index-g_hNAZie.js → index-DwS53blc.js} +10386 -9235
  108. package/index-MhhY7aRi.js +3772 -0
  109. package/index.es.js +1 -1
  110. package/index.umd.js +373 -194
  111. package/package.json +1 -1
  112. package/store/hooks.d.ts +4 -0
  113. package/store/hooks.d.ts.map +1 -1
  114. package/store/index.d.ts +8 -0
  115. package/store/index.d.ts.map +1 -1
  116. package/store/request-connector-api/initial-state.d.ts +9 -0
  117. package/store/request-connector-api/initial-state.d.ts.map +1 -0
  118. package/store/request-connector-api/selectors.d.ts +5 -0
  119. package/store/request-connector-api/selectors.d.ts.map +1 -0
  120. package/store/request-connector-api/slice.d.ts +39 -0
  121. package/store/request-connector-api/slice.d.ts.map +1 -0
  122. package/styled-ui-components-BiFtpk_x.js +2253 -0
  123. package/testing/mocks/handlers/auth.d.ts +2 -0
  124. package/testing/mocks/handlers/auth.d.ts.map +1 -0
  125. package/testing/mocks/handlers/connector-template.d.ts +8 -0
  126. package/testing/mocks/handlers/connector-template.d.ts.map +1 -1
  127. package/testing/mocks/handlers/request-connector-api.d.ts +2 -0
  128. package/testing/mocks/handlers/request-connector-api.d.ts.map +1 -0
  129. package/testing/mocks/handlers/update-connector.d.ts.map +1 -1
  130. package/testing/mocks/handlers.d.ts.map +1 -1
  131. package/testing/setup-store.d.ts +4 -0
  132. package/testing/setup-store.d.ts.map +1 -1
  133. package/types/common.d.ts +2 -0
  134. package/types/common.d.ts.map +1 -0
  135. package/types/connector.d.ts +60 -0
  136. package/types/connector.d.ts.map +1 -0
  137. package/types/json.d.ts +7 -0
  138. package/types/json.d.ts.map +1 -0
  139. package/types/router.d.ts +2 -0
  140. package/types/router.d.ts.map +1 -1
  141. package/utils/index.d.ts +2 -0
  142. package/utils/index.d.ts.map +1 -1
  143. package/utils/type-guards.d.ts +3 -0
  144. package/utils/type-guards.d.ts.map +1 -0
  145. package/Typography-BvoDUPsi.js +0 -174
  146. package/features/auth/components/auth.d.ts +0 -2
  147. package/features/auth/components/auth.d.ts.map +0 -1
  148. package/index-CPqWySPe.js +0 -2954
  149. package/index-xau7jZsj.js +0 -40
@@ -1,4 +1,4 @@
1
- import { j as r } from "./index-g_hNAZie.js";
1
+ import { j as r } from "./index-DwS53blc.js";
2
2
  const e = () => /* @__PURE__ */ r.jsx("div", { children: "Agent Dashboard" });
3
3
  export {
4
4
  e as Agent
@@ -1,11 +1,11 @@
1
- import { s as c, S as n, I as b, K as f, j as t, Z as v, R as w, U as m, L as A } from "./index-g_hNAZie.js";
2
- import { C as g, a as r, t as I, b as S, v as y, w as T, x as P, T as k, r as B } from "./index-CPqWySPe.js";
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
- import { T as p } from "./Typography-BvoDUPsi.js";
5
- const Z = c(n)`
5
+ const M = c(e)`
6
6
  margin: 43px 0 0 229px;
7
7
  position: relative;
8
- `, M = c(b)`
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(n)`
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(n)`
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 ${f.palette.gray.gray6};
23
+ border: 1px solid ${A.palette.gray.gray6};
24
24
  border-radius: 8px;
25
25
  box-sizing: border-box;
26
- `, O = () => /* @__PURE__ */ t.jsx(n, { gap: "12px", children: Array(3).fill(0).map((e, s) => /* @__PURE__ */ t.jsxs(W, { children: [
27
- /* @__PURE__ */ t.jsx(g, { variant: "rounded", width: "40%", height: "10px", animation: "wave" }),
28
- /* @__PURE__ */ t.jsx(g, { variant: "rounded", width: "80%", height: "10px", animation: "wave" })
29
- ] }, s)) }), U = ({ isConfigSettingsPage: e, currentConnector: s }) => {
30
- var h;
31
- const { pathname: l } = v(), i = r(I), L = l === m.CARD_SETTINGS, a = r(S), o = E(), x = r(y), u = r(T);
32
- if (!e)
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
- e && 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}}", ((h = o == null ? void 0 : o.current) == null ? void 0 : h.name) ?? "");
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 === w.LOADING ? /* @__PURE__ */ t.jsx(O, {}) : /* @__PURE__ */ t.jsx(n, { gap: "12px", children: C.map((d) => /* @__PURE__ */ t.jsxs(
40
- n,
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 e = A(), s = r(P), l = (i) => {
58
- i == null || i.stopPropagation(), e(m.BASEPATH);
57
+ const n = b(), s = r(k), l = (i) => {
58
+ i == null || i.stopPropagation(), n(m.BASEPATH);
59
59
  };
60
- return /* @__PURE__ */ t.jsxs(Z, { children: [
61
- /* @__PURE__ */ t.jsx(k, { title: "Back", placement: "bottom", children: /* @__PURE__ */ t.jsx(M, { onClick: l, children: /* @__PURE__ */ t.jsx("img", { src: _ }) }) }),
62
- /* @__PURE__ */ t.jsx(B, { isConfigSettingsPage: !0, currentConnector: s }),
63
- /* @__PURE__ */ t.jsx(U, { isConfigSettingsPage: !0, currentConnector: s })
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 {