@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
@@ -1,9 +1,9 @@
1
- import { d as $A, j as I, e as R2, f as L2, g as i2, h as E0, _ as f, i as _A, k as A2, s as r, l as D, m as C2, n as PA, o as R, P as C, p as g2, q as gA, r as Z2, t as X2, v as e0, w as P2, x as OA, y as N2, z as JA, I as h2, A as l2, D as o0, E as G2, F as t0, G as r0, H as n0, J as a0, K as s0, L as i0, N as c0, Q as Z, u as l0, R as H2, U as iA, V as d0, W as f0, X as b2, Y as D0, Z as w0, $ as u0, a0 as p0, a1 as T2, T as Y, a2 as d2, b as k, B as cA, a3 as kA, a4 as v0, a5 as M0, a6 as L0, a7 as P0, a8 as x0 } from "./index-udWvwRi2.js";
1
+ import { d as $A, j as I, e as R2, f as L2, g as i2, h as E0, _ as f, i as _A, k as A2, s as r, l as D, m as C2, n as PA, o as R, P as C, p as g2, q as gA, r as Z2, t as X2, v as e0, w as P2, x as OA, y as N2, z as JA, I as h2, A as l2, D as o0, E as G2, F as t0, G as r0, H as n0, J as a0, K as s0, L as i0, N as c0, Q as Z, u as l0, R as H2, U as iA, V as d0, W as f0, X as b2, Y as D0, Z as w0, $ as u0, a0 as p0, a1 as T2, T as Y, a2 as d2, b as k, B as cA, a3 as kA, a4 as v0, a5 as M0, a6 as L0, a7 as P0, a8 as x0 } from "./index-CFzc44V0.js";
2
2
  import * as p from "react";
3
3
  import { useEffect as WA, useState as LA } from "react";
4
- import { S as F0, E as U0, a as h0, R as S2, C as H0, b as b0, c as O0, d as k0, T as m0, e as Y0, f as X0, g as N0, h as G0, i as T0, j as y0, k as V0, l as K0, m as y2 } from "./index-d1KjLfbR.js";
5
- import { P as W2, C as x2, s as $2, a as J0, b as j0, c as _2, d as z0, T as q0 } from "./selectors-BxwrtEYH.js";
6
- import { s as R0, E as Z0 } from "./showMessage-G5E0XiXs.js";
4
+ import { S as F0, E as U0, a as h0, R as S2, C as H0, b as b0, c as O0, d as k0, T as m0, e as Y0, f as X0, g as N0, h as G0, i as T0, j as y0, k as V0, l as K0, m as y2 } from "./index-n9pprR8F.js";
5
+ import { P as W2, C as x2, s as $2, a as J0, b as j0, c as _2, d as z0, T as q0 } from "./styled-ui-components-CXuEXO04.js";
6
+ import { s as R0, E as Z0 } from "./showMessage-BwdQL76c.js";
7
7
  const S0 = (A) => {
8
8
  const g = p.useRef({});
9
9
  return p.useEffect(() => {
@@ -1,4 +1,4 @@
1
- import { s as g, b as B, B as I, M as r, j as A, a9 as v, T as C, aa as t, ab as u, ac as d, ad as e, ae as s, af as b, ag as w } from "./index-udWvwRi2.js";
1
+ import { s as g, b as B, B as I, M as r, j as A, a9 as v, T as C, aa as t, ab as u, ac as d, ad as e, ae as s, af as b, ag as w } from "./index-CFzc44V0.js";
2
2
  import { useContext as X } from "react";
3
3
  const W = g(B)`
4
4
  width: 100%;
@@ -1,10 +1,10 @@
1
- import { i as F, k as z, s as d, t as ie, _ as x, G as re, n as M, f as ce, al as de, j as s, o as q, P as t, H as W, l as m, p as Q, q as D, am as le, an as pe, m as ue, B as H, Q as $, T as X, b as _, a3 as G, U as he, R as ge, u as be, I as fe, X as Ce, ao as we, a1 as k } from "./index-udWvwRi2.js";
2
- import { h as xe, T as U } from "./selectors-BxwrtEYH.js";
1
+ import { i as F, k as q, s as d, t as ie, _ as x, G as re, n as z, f as ce, an as de, j as s, o as M, P as t, H as W, l as m, p as Q, q as D, ao as le, ap as pe, m as ue, B as H, Q as $, T as X, b as _, a3 as G, U as he, R as ge, u as be, I as fe, X as Ce, aq as we, a1 as k } from "./index-CFzc44V0.js";
2
+ import { g as xe, T as U } from "./styled-ui-components-CXuEXO04.js";
3
3
  import * as Z from "react";
4
4
  function Ee(e) {
5
5
  return F("PrivateSwitchBase", e);
6
6
  }
7
- z("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
7
+ q("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
8
8
  const me = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked", "disabled", "disableFocusRipple", "edge", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"], Te = (e) => {
9
9
  const {
10
10
  classes: a,
@@ -53,7 +53,7 @@ const me = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
53
53
  inputProps: R,
54
54
  inputRef: N,
55
55
  name: O,
56
- onBlur: S,
56
+ onBlur: y,
57
57
  onChange: L,
58
58
  onFocus: o,
59
59
  readOnly: u,
@@ -61,7 +61,7 @@ const me = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
61
61
  tabIndex: K,
62
62
  type: v,
63
63
  value: A
64
- } = a, ee = M(a, me), [B, te] = ce({
64
+ } = a, ee = z(a, me), [B, te] = ce({
65
65
  controlled: l,
66
66
  default: !!f,
67
67
  name: "SwitchBase",
@@ -69,27 +69,27 @@ const me = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
69
69
  }), w = de(), oe = (g) => {
70
70
  o && o(g), w && w.onFocus && w.onFocus(g);
71
71
  }, ae = (g) => {
72
- S && S(g), w && w.onBlur && w.onBlur(g);
72
+ y && y(g), w && w.onBlur && w.onBlur(g);
73
73
  }, se = (g) => {
74
74
  if (g.nativeEvent.defaultPrevented)
75
75
  return;
76
76
  const j = g.target.checked;
77
77
  te(j), L && L(g, j);
78
78
  };
79
- let y = E;
80
- w && typeof y > "u" && (y = w.disabled);
79
+ let S = E;
80
+ w && typeof S > "u" && (S = w.disabled);
81
81
  const ne = v === "checkbox" || v === "radio", I = x({}, a, {
82
82
  checked: B,
83
- disabled: y,
83
+ disabled: S,
84
84
  disableFocusRipple: C,
85
85
  edge: h
86
86
  }), P = Te(I);
87
87
  return /* @__PURE__ */ s.jsxs(Le, x({
88
88
  component: "span",
89
- className: q(P.root, b),
89
+ className: M(P.root, b),
90
90
  centerRipple: !0,
91
91
  focusRipple: !C,
92
- disabled: y,
92
+ disabled: S,
93
93
  tabIndex: null,
94
94
  role: void 0,
95
95
  onFocus: oe,
@@ -102,7 +102,7 @@ const me = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
102
102
  checked: l,
103
103
  defaultChecked: f,
104
104
  className: P.input,
105
- disabled: y,
105
+ disabled: S,
106
106
  id: ne ? T : void 0,
107
107
  name: O,
108
108
  onChange: se,
@@ -220,10 +220,10 @@ process.env.NODE_ENV !== "production" && (V.propTypes = {
220
220
  */
221
221
  value: t.any
222
222
  });
223
- function ye(e) {
223
+ function Se(e) {
224
224
  return F("MuiSwitch", e);
225
225
  }
226
- const c = z("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), Se = ["className", "color", "edge", "size", "sx"], ve = (e) => {
226
+ const c = q("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), ye = ["className", "color", "edge", "size", "sx"], ve = (e) => {
227
227
  const {
228
228
  classes: a,
229
229
  edge: n,
@@ -237,7 +237,7 @@ const c = z("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
237
237
  thumb: ["thumb"],
238
238
  track: ["track"],
239
239
  input: ["input"]
240
- }, E = Q(f, ye, a);
240
+ }, E = Q(f, Se, a);
241
241
  return x({}, a, E);
242
242
  }, _e = d("span", {
243
243
  name: "MuiSwitch",
@@ -407,7 +407,7 @@ const c = z("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
407
407
  edge: b = !1,
408
408
  size: f = "medium",
409
409
  sx: E
410
- } = i, C = M(i, Se), h = x({}, i, {
410
+ } = i, C = z(i, ye), h = x({}, i, {
411
411
  color: r,
412
412
  edge: b,
413
413
  size: f
@@ -416,7 +416,7 @@ const c = z("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
416
416
  ownerState: h
417
417
  });
418
418
  return /* @__PURE__ */ s.jsxs(_e, {
419
- className: q(p.root, l),
419
+ className: M(p.root, l),
420
420
  sx: E,
421
421
  ownerState: h,
422
422
  children: [/* @__PURE__ */ s.jsx(Re, x({
@@ -585,9 +585,9 @@ const Ge = "Enhance with Custom Connectors", Ze = "Let us know your use case, an
585
585
  `, Fe = d(_)`
586
586
  align-items: center;
587
587
  flex-direction: row;
588
- `, ze = d(Y)`
588
+ `, qe = d(Y)`
589
589
  margin-left: 10px;
590
- `, Me = d(_)`
590
+ `, ze = d(_)`
591
591
  flex-direction: row;
592
592
  align-items: center;
593
593
  justify-content: center;
@@ -595,7 +595,7 @@ const Ge = "Enhance with Custom Connectors", Ze = "Let us know your use case, an
595
595
  height: 38px;
596
596
  position: relative;
597
597
  margin-left: 10px;
598
- `, qe = d(H)`
598
+ `, Me = d(H)`
599
599
  margin-left: 30px;
600
600
  width: 50px;
601
601
  aspect-ratio: 1;
@@ -640,11 +640,11 @@ const Ge = "Enhance with Custom Connectors", Ze = "Let us know your use case, an
640
640
  o == null || o.stopPropagation(), p(`${k.BASEPATH}${k.CONNECTOR_SETTINGS}/${u}`);
641
641
  }, O = (o, u) => {
642
642
  o == null || o.stopPropagation(), p(`${k.BASEPATH}${k.CONNECTOR_SETTINGS}/${u}?isEdit=true`);
643
- }, S = (o, u = "") => {
643
+ }, y = (o, u = "") => {
644
644
  o == null || o.preventDefault(), o == null || o.stopPropagation(), !i && p(`${k.BASEPATH}${k.API_VIEW}/${u}?isEdit=true`);
645
645
  };
646
646
  let L = !1;
647
- return "isEnabled" in e && typeof e.isEnabled == "boolean" && (L = e.isEnabled), /* @__PURE__ */ s.jsxs(De, { "data-testid": r, className: "connector-grid", onClick: (o) => S(o, r), children: [
647
+ return "isEnabled" in e && (L = e.isEnabled), /* @__PURE__ */ s.jsxs(De, { "data-testid": r, className: "connector-grid", onClick: (o) => y(o, r), children: [
648
648
  /* @__PURE__ */ s.jsxs(_, { className: `connector-flex ${i ? "connector-settings" : ""}`, width: "100%", children: [
649
649
  /* @__PURE__ */ s.jsxs(_, { flexDirection: "row", alignItems: "center", children: [
650
650
  i ? /* @__PURE__ */ s.jsx("img", { src: f ?? "", className: "logoIcon", width: "28xp", height: "28px", alt: b }) : null,
@@ -654,7 +654,7 @@ const Ge = "Enhance with Custom Connectors", Ze = "Let us know your use case, an
654
654
  i ? null : /* @__PURE__ */ s.jsx(G, { variant: "text", onClick: (o) => R(o, r), children: $e }),
655
655
  /* @__PURE__ */ s.jsx(U, { title: Be, placement: "bottom", children: /* @__PURE__ */ s.jsx(fe, { onClick: (o) => O(o, r), children: /* @__PURE__ */ s.jsx("img", { src: Qe, className: "settingsIcon" }) }) }),
656
656
  (C == null ? void 0 : C[r]) !== Ce.LOADING ? /* @__PURE__ */ s.jsx(U, { title: L ? je : Pe, placement: "bottom", children: /* @__PURE__ */ s.jsx(
657
- ze,
657
+ qe,
658
658
  {
659
659
  id: `switch_${r}`,
660
660
  checked: L,
@@ -662,14 +662,14 @@ const Ge = "Enhance with Custom Connectors", Ze = "Let us know your use case, an
662
662
  onChange: (o) => T(o, r)
663
663
  }
664
664
  ) }) : /* @__PURE__ */ s.jsx(
665
- Me,
665
+ ze,
666
666
  {
667
667
  width: "58px",
668
668
  height: "38px",
669
669
  alignItems: "center",
670
670
  flexDirection: "row",
671
671
  justifyContent: "center",
672
- children: /* @__PURE__ */ s.jsx(qe, { "data-testid": "loading" })
672
+ children: /* @__PURE__ */ s.jsx(Me, { "data-testid": "loading" })
673
673
  }
674
674
  )
675
675
  ] })
package/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
- import { b5 as e, b6 as o, b7 as t, b8 as a } from "./index-udWvwRi2.js";
1
+ import { b7 as e, b8 as a, b9 as o, ba as t } from "./index-CFzc44V0.js";
2
2
  export {
3
3
  e as ConnectorsApp,
4
- o as setAppConfig,
5
- t as setAppUgId,
6
- a as setAppUserId
4
+ a as setAppConfig,
5
+ o as setAppUgId,
6
+ t as setAppUserId
7
7
  };