@hiver/connector-admin 0.0.10-beta.21 → 0.0.10-beta.22

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 (106) hide show
  1. package/app/connectors/index.d.ts.map +1 -1
  2. package/app/connectors/pages/api-view/index.d.ts.map +1 -1
  3. package/app/connectors/pages/connector-view/dashboard/index.d.ts.map +1 -1
  4. package/app/connectors/pages/settings/index.d.ts.map +1 -1
  5. package/app/style.d.ts +1 -0
  6. package/app/style.d.ts.map +1 -1
  7. package/features/auth/api/index.d.ts +1 -0
  8. package/features/auth/api/index.d.ts.map +1 -1
  9. package/features/auth/constants/api.d.ts +1 -0
  10. package/features/auth/constants/api.d.ts.map +1 -1
  11. package/features/auth/store/initial-state.d.ts +3 -0
  12. package/features/auth/store/initial-state.d.ts.map +1 -1
  13. package/features/auth/store/selectors.d.ts +3 -0
  14. package/features/auth/store/selectors.d.ts.map +1 -1
  15. package/features/auth/store/slice.d.ts +16 -1
  16. package/features/auth/store/slice.d.ts.map +1 -1
  17. package/features/connector-library/api/index.d.ts +2 -1
  18. package/features/connector-library/api/index.d.ts.map +1 -1
  19. package/features/connector-library/components/connector-enabled-modal/index.d.ts.map +1 -0
  20. package/features/connector-library/components/connector-enabled-modal/styles.d.ts.map +1 -0
  21. package/features/connector-library/components/library-card-list/__tests__/library-card-list.test.d.ts.map +1 -0
  22. package/features/connector-library/components/library-card-list/index.d.ts.map +1 -0
  23. package/features/connector-library/components/library-card-list/styles.d.ts.map +1 -0
  24. package/features/connector-library/components/library-card-skeleton/index.d.ts.map +1 -0
  25. package/features/connector-library/components/library-card-skeleton/styles.d.ts.map +1 -0
  26. package/features/connector-library/components/library-edit-list/index.d.ts.map +1 -0
  27. package/features/connector-library/components/library-edit-list/styles.d.ts.map +1 -0
  28. package/features/connector-library/constants/api.d.ts +2 -1
  29. package/features/connector-library/constants/api.d.ts.map +1 -1
  30. package/features/connector-library/constants/content-page.d.ts.map +1 -0
  31. package/features/connector-library/store/initial-state.d.ts +10 -4
  32. package/features/connector-library/store/initial-state.d.ts.map +1 -1
  33. package/features/connector-library/store/selectors.d.ts +8 -2
  34. package/features/connector-library/store/selectors.d.ts.map +1 -1
  35. package/features/connector-library/store/slice.d.ts +36 -10
  36. package/features/connector-library/store/slice.d.ts.map +1 -1
  37. package/features/connector-library/types/connector.d.ts +13 -0
  38. package/features/connector-library/types/connector.d.ts.map +1 -0
  39. package/features/{connector-library → request-new-connector}/components/custom-connector-card-item/index.d.ts +2 -2
  40. package/features/request-new-connector/components/custom-connector-card-item/index.d.ts.map +1 -0
  41. package/features/request-new-connector/components/custom-connector-card-item/styles.d.ts.map +1 -0
  42. package/features/request-new-connector/components/custom-connector-card-list/__tests__/custom-connector-card.test.d.ts.map +1 -0
  43. package/features/request-new-connector/components/custom-connector-card-list/index.d.ts.map +1 -0
  44. package/features/request-new-connector/components/custom-connector-card-list/style.d.ts.map +1 -0
  45. package/{index-CgM3_xKm.js → index-BlrvUmkp.js} +1 -1
  46. package/{index-jpnMq7or.js → index-BneVFyJr.js} +131 -131
  47. package/index-Bp6DI_TD.js +68 -0
  48. package/{index-udWvwRi2.js → index-CFzc44V0.js} +4343 -3267
  49. package/{index-D988MMVn.js → index-Dtvwlgbj.js} +4 -4
  50. package/{index-Bz-7s9bi.js → index-R6dQb-2e.js} +1 -1
  51. package/{index-d1KjLfbR.js → index-n9pprR8F.js} +25 -25
  52. package/index.es.js +4 -4
  53. package/index.umd.js +1298 -214
  54. package/package.json +1 -1
  55. package/{showMessage-G5E0XiXs.js → showMessage-BwdQL76c.js} +3 -3
  56. package/store/hooks.d.ts +0 -2
  57. package/store/hooks.d.ts.map +1 -1
  58. package/store/index.d.ts +0 -4
  59. package/store/index.d.ts.map +1 -1
  60. package/{selectors-BxwrtEYH.js → styled-ui-components-CXuEXO04.js} +148 -149
  61. package/testing/mocks/handlers/connector-template.d.ts.map +1 -1
  62. package/testing/setup-store.d.ts +0 -2
  63. package/testing/setup-store.d.ts.map +1 -1
  64. package/types/connector.d.ts +5 -5
  65. package/types/connector.d.ts.map +1 -1
  66. package/features/connector-library/components/custom-connector-card-item/index.d.ts.map +0 -1
  67. package/features/connector-library/components/custom-connector-card-item/styles.d.ts.map +0 -1
  68. package/features/connector-library/components/custom-connector-card-list/__tests__/custom-connector-card.test.d.ts.map +0 -1
  69. package/features/connector-library/components/custom-connector-card-list/index.d.ts.map +0 -1
  70. package/features/connector-library/components/custom-connector-card-list/style.d.ts.map +0 -1
  71. package/features/template-library/api/index.d.ts +0 -7
  72. package/features/template-library/api/index.d.ts.map +0 -1
  73. package/features/template-library/components/connector-enabled-modal/index.d.ts.map +0 -1
  74. package/features/template-library/components/connector-enabled-modal/styles.d.ts.map +0 -1
  75. package/features/template-library/components/library-card-list/__tests__/library-card-list.test.d.ts.map +0 -1
  76. package/features/template-library/components/library-card-list/index.d.ts.map +0 -1
  77. package/features/template-library/components/library-card-list/styles.d.ts.map +0 -1
  78. package/features/template-library/components/library-card-skeleton/index.d.ts.map +0 -1
  79. package/features/template-library/components/library-card-skeleton/styles.d.ts.map +0 -1
  80. package/features/template-library/components/library-edit-list/index.d.ts.map +0 -1
  81. package/features/template-library/components/library-edit-list/styles.d.ts.map +0 -1
  82. package/features/template-library/constants/api.d.ts +0 -3
  83. package/features/template-library/constants/api.d.ts.map +0 -1
  84. package/features/template-library/constants/content-page.d.ts.map +0 -1
  85. package/features/template-library/store/initial-state.d.ts +0 -15
  86. package/features/template-library/store/initial-state.d.ts.map +0 -1
  87. package/features/template-library/store/selectors.d.ts +0 -9
  88. package/features/template-library/store/selectors.d.ts.map +0 -1
  89. package/features/template-library/store/slice.d.ts +0 -41
  90. package/features/template-library/store/slice.d.ts.map +0 -1
  91. package/index-DmZlHIzb.js +0 -68
  92. package/style.css +0 -1
  93. /package/features/{template-library → connector-library}/components/connector-enabled-modal/index.d.ts +0 -0
  94. /package/features/{template-library → connector-library}/components/connector-enabled-modal/styles.d.ts +0 -0
  95. /package/features/{template-library → connector-library}/components/library-card-list/__tests__/library-card-list.test.d.ts +0 -0
  96. /package/features/{template-library → connector-library}/components/library-card-list/index.d.ts +0 -0
  97. /package/features/{template-library → connector-library}/components/library-card-list/styles.d.ts +0 -0
  98. /package/features/{template-library → connector-library}/components/library-card-skeleton/index.d.ts +0 -0
  99. /package/features/{template-library → connector-library}/components/library-card-skeleton/styles.d.ts +0 -0
  100. /package/features/{template-library → connector-library}/components/library-edit-list/index.d.ts +0 -0
  101. /package/features/{template-library → connector-library}/components/library-edit-list/styles.d.ts +0 -0
  102. /package/features/{template-library → connector-library}/constants/content-page.d.ts +0 -0
  103. /package/features/{connector-library → request-new-connector}/components/custom-connector-card-item/styles.d.ts +0 -0
  104. /package/features/{connector-library → request-new-connector}/components/custom-connector-card-list/__tests__/custom-connector-card.test.d.ts +0 -0
  105. /package/features/{connector-library → request-new-connector}/components/custom-connector-card-list/index.d.ts +0 -0
  106. /package/features/{connector-library → request-new-connector}/components/custom-connector-card-list/style.d.ts +0 -0
@@ -0,0 +1,68 @@
1
+ import { s as p, b as s, Q as f, j as t, T as r, I as A, u as I, U as c, ah as b, ai as v, R as w, aj as S, ak as T, al as y, am as P, a1 as D, X as m } from "./index-CFzc44V0.js";
2
+ import { useEffect as k } from "react";
3
+ import { C as u, e as E, f as B, T as M } from "./styled-ui-components-CXuEXO04.js";
4
+ import { b as Z } from "./index-n9pprR8F.js";
5
+ const _ = "APIs in {{connector}} connector", N = "Following are the list of APIs that you will find in this connector", R = p(s)`
6
+ width: 100%;
7
+ height: ${(e) => e.height ? e.height : "72px"};
8
+ gap: 12px;
9
+ padding: 16px;
10
+ border: 1px solid ${f.palette.gray.gray6};
11
+ border-radius: 8px;
12
+ box-sizing: border-box;
13
+ `, O = () => /* @__PURE__ */ t.jsx(s, { gap: "12px", children: Array(3).fill(0).map((e, i) => /* @__PURE__ */ t.jsxs(R, { children: [
14
+ /* @__PURE__ */ t.jsx(u, { variant: "rounded", width: "862px", height: "10px", animation: "wave" }),
15
+ /* @__PURE__ */ t.jsx(u, { variant: "rounded", width: "862px", height: "10px", animation: "wave" })
16
+ ] }, i)) }), W = p(s)`
17
+ margin-left: 32px;
18
+ width: 100%;
19
+ `, F = ({ connectorName: e, apiList: i, isLoading: l = !1 }) => {
20
+ const d = _.replace("{{connector}}", e ?? "");
21
+ return /* @__PURE__ */ t.jsx(W, { children: l ? /* @__PURE__ */ t.jsx(O, {}) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
22
+ /* @__PURE__ */ t.jsx(r, { variant: "h2", children: d }),
23
+ /* @__PURE__ */ t.jsx(r, { variant: "body1", marginBottom: "20px", children: N }),
24
+ /* @__PURE__ */ t.jsx(s, { gap: "12px", children: i.map((n) => /* @__PURE__ */ t.jsxs(
25
+ s,
26
+ {
27
+ width: "100%",
28
+ height: "72px",
29
+ border: "1px solid #E0E0E0",
30
+ borderRadius: "5px",
31
+ padding: "12px",
32
+ gap: "10px",
33
+ children: [
34
+ /* @__PURE__ */ t.jsx(r, { variant: "body1_medium", children: n.name }),
35
+ /* @__PURE__ */ t.jsx(r, { variant: "body2", children: n.description })
36
+ ]
37
+ },
38
+ n.keyName
39
+ )) })
40
+ ] }) });
41
+ }, 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", G = p(s)`
42
+ margin: 43px 0 0 229px;
43
+ position: relative;
44
+ `, V = p(A)`
45
+ position: absolute;
46
+ left: -30px;
47
+ img {
48
+ width: 15px;
49
+ height: 15px;
50
+ margin: 3.5px 2.5px;
51
+ }
52
+ `, X = () => {
53
+ const e = I(), i = c(b), l = c(E), d = c(v), n = c(B), x = w(), { id: h = "" } = S(), [L] = T(), o = L.get("isEdit") === "true";
54
+ k(() => {
55
+ x(o ? y(h) : P(h));
56
+ }, [o, x, h]);
57
+ const C = (g) => {
58
+ g == null || g.stopPropagation(), e(D.BASEPATH);
59
+ }, a = o ? i : l, j = d === m.LOADING || n === m.LOADING;
60
+ return /* @__PURE__ */ t.jsxs(G, { "data-testid": "connector-config", children: [
61
+ /* @__PURE__ */ t.jsx(M, { title: "Back", placement: "bottom", children: /* @__PURE__ */ t.jsx(V, { onClick: C, children: /* @__PURE__ */ t.jsx("img", { src: U }) }) }),
62
+ a ? /* @__PURE__ */ t.jsx(Z, { isConfigSettingsPage: !0, connector: a, isEdit: o }) : /* @__PURE__ */ t.jsx("div", { children: "Loading..." }),
63
+ /* @__PURE__ */ t.jsx(F, { isLoading: j, apiList: (a == null ? void 0 : a.apiList) || [], connectorName: (a == null ? void 0 : a.name) || "" })
64
+ ] });
65
+ };
66
+ export {
67
+ X as ConnectorConfig
68
+ };