@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.
- package/app/connectors/index.d.ts.map +1 -1
- package/app/connectors/pages/api-view/index.d.ts.map +1 -1
- 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/style.d.ts +1 -0
- package/app/style.d.ts.map +1 -1
- package/features/auth/api/index.d.ts +1 -0
- package/features/auth/api/index.d.ts.map +1 -1
- package/features/auth/constants/api.d.ts +1 -0
- package/features/auth/constants/api.d.ts.map +1 -1
- package/features/auth/store/initial-state.d.ts +3 -0
- package/features/auth/store/initial-state.d.ts.map +1 -1
- package/features/auth/store/selectors.d.ts +3 -0
- package/features/auth/store/selectors.d.ts.map +1 -1
- package/features/auth/store/slice.d.ts +16 -1
- package/features/auth/store/slice.d.ts.map +1 -1
- package/features/connector-library/api/index.d.ts +2 -1
- package/features/connector-library/api/index.d.ts.map +1 -1
- package/features/connector-library/components/connector-enabled-modal/index.d.ts.map +1 -0
- package/features/connector-library/components/connector-enabled-modal/styles.d.ts.map +1 -0
- package/features/connector-library/components/library-card-list/__tests__/library-card-list.test.d.ts.map +1 -0
- package/features/connector-library/components/library-card-list/index.d.ts.map +1 -0
- package/features/connector-library/components/library-card-list/styles.d.ts.map +1 -0
- package/features/connector-library/components/library-card-skeleton/index.d.ts.map +1 -0
- package/features/connector-library/components/library-card-skeleton/styles.d.ts.map +1 -0
- package/features/connector-library/components/library-edit-list/index.d.ts.map +1 -0
- package/features/connector-library/components/library-edit-list/styles.d.ts.map +1 -0
- package/features/connector-library/constants/api.d.ts +2 -1
- package/features/connector-library/constants/api.d.ts.map +1 -1
- package/features/connector-library/constants/content-page.d.ts.map +1 -0
- package/features/connector-library/store/initial-state.d.ts +10 -4
- package/features/connector-library/store/initial-state.d.ts.map +1 -1
- package/features/connector-library/store/selectors.d.ts +8 -2
- package/features/connector-library/store/selectors.d.ts.map +1 -1
- package/features/connector-library/store/slice.d.ts +36 -10
- package/features/connector-library/store/slice.d.ts.map +1 -1
- package/features/connector-library/types/connector.d.ts +13 -0
- package/features/connector-library/types/connector.d.ts.map +1 -0
- package/features/{connector-library → request-new-connector}/components/custom-connector-card-item/index.d.ts +2 -2
- package/features/request-new-connector/components/custom-connector-card-item/index.d.ts.map +1 -0
- package/features/request-new-connector/components/custom-connector-card-item/styles.d.ts.map +1 -0
- package/features/request-new-connector/components/custom-connector-card-list/__tests__/custom-connector-card.test.d.ts.map +1 -0
- package/features/request-new-connector/components/custom-connector-card-list/index.d.ts.map +1 -0
- package/features/request-new-connector/components/custom-connector-card-list/style.d.ts.map +1 -0
- package/{index-CgM3_xKm.js → index-BlrvUmkp.js} +1 -1
- package/{index-jpnMq7or.js → index-BneVFyJr.js} +131 -131
- package/index-Bp6DI_TD.js +68 -0
- package/{index-udWvwRi2.js → index-CFzc44V0.js} +4343 -3267
- package/{index-D988MMVn.js → index-Dtvwlgbj.js} +4 -4
- package/{index-Bz-7s9bi.js → index-R6dQb-2e.js} +1 -1
- package/{index-d1KjLfbR.js → index-n9pprR8F.js} +25 -25
- package/index.es.js +4 -4
- package/index.umd.js +1298 -214
- package/package.json +1 -1
- package/{showMessage-G5E0XiXs.js → showMessage-BwdQL76c.js} +3 -3
- package/store/hooks.d.ts +0 -2
- package/store/hooks.d.ts.map +1 -1
- package/store/index.d.ts +0 -4
- package/store/index.d.ts.map +1 -1
- package/{selectors-BxwrtEYH.js → styled-ui-components-CXuEXO04.js} +148 -149
- package/testing/mocks/handlers/connector-template.d.ts.map +1 -1
- package/testing/setup-store.d.ts +0 -2
- package/testing/setup-store.d.ts.map +1 -1
- package/types/connector.d.ts +5 -5
- package/types/connector.d.ts.map +1 -1
- package/features/connector-library/components/custom-connector-card-item/index.d.ts.map +0 -1
- package/features/connector-library/components/custom-connector-card-item/styles.d.ts.map +0 -1
- package/features/connector-library/components/custom-connector-card-list/__tests__/custom-connector-card.test.d.ts.map +0 -1
- package/features/connector-library/components/custom-connector-card-list/index.d.ts.map +0 -1
- package/features/connector-library/components/custom-connector-card-list/style.d.ts.map +0 -1
- package/features/template-library/api/index.d.ts +0 -7
- package/features/template-library/api/index.d.ts.map +0 -1
- package/features/template-library/components/connector-enabled-modal/index.d.ts.map +0 -1
- package/features/template-library/components/connector-enabled-modal/styles.d.ts.map +0 -1
- package/features/template-library/components/library-card-list/__tests__/library-card-list.test.d.ts.map +0 -1
- package/features/template-library/components/library-card-list/index.d.ts.map +0 -1
- package/features/template-library/components/library-card-list/styles.d.ts.map +0 -1
- package/features/template-library/components/library-card-skeleton/index.d.ts.map +0 -1
- package/features/template-library/components/library-card-skeleton/styles.d.ts.map +0 -1
- package/features/template-library/components/library-edit-list/index.d.ts.map +0 -1
- package/features/template-library/components/library-edit-list/styles.d.ts.map +0 -1
- package/features/template-library/constants/api.d.ts +0 -3
- package/features/template-library/constants/api.d.ts.map +0 -1
- package/features/template-library/constants/content-page.d.ts.map +0 -1
- package/features/template-library/store/initial-state.d.ts +0 -15
- package/features/template-library/store/initial-state.d.ts.map +0 -1
- package/features/template-library/store/selectors.d.ts +0 -9
- package/features/template-library/store/selectors.d.ts.map +0 -1
- package/features/template-library/store/slice.d.ts +0 -41
- package/features/template-library/store/slice.d.ts.map +0 -1
- package/index-DmZlHIzb.js +0 -68
- package/style.css +0 -1
- /package/features/{template-library → connector-library}/components/connector-enabled-modal/index.d.ts +0 -0
- /package/features/{template-library → connector-library}/components/connector-enabled-modal/styles.d.ts +0 -0
- /package/features/{template-library → connector-library}/components/library-card-list/__tests__/library-card-list.test.d.ts +0 -0
- /package/features/{template-library → connector-library}/components/library-card-list/index.d.ts +0 -0
- /package/features/{template-library → connector-library}/components/library-card-list/styles.d.ts +0 -0
- /package/features/{template-library → connector-library}/components/library-card-skeleton/index.d.ts +0 -0
- /package/features/{template-library → connector-library}/components/library-card-skeleton/styles.d.ts +0 -0
- /package/features/{template-library → connector-library}/components/library-edit-list/index.d.ts +0 -0
- /package/features/{template-library → connector-library}/components/library-edit-list/styles.d.ts +0 -0
- /package/features/{template-library → connector-library}/constants/content-page.d.ts +0 -0
- /package/features/{connector-library → request-new-connector}/components/custom-connector-card-item/styles.d.ts +0 -0
- /package/features/{connector-library → request-new-connector}/components/custom-connector-card-list/__tests__/custom-connector-card.test.d.ts +0 -0
- /package/features/{connector-library → request-new-connector}/components/custom-connector-card-list/index.d.ts +0 -0
- /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-
|
|
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-
|
|
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 "./
|
|
6
|
-
import { s as R0, E as Z0 } from "./showMessage-
|
|
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-
|
|
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
|
|
2
|
-
import {
|
|
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
|
-
|
|
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:
|
|
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 =
|
|
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
|
-
|
|
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
|
|
80
|
-
w && typeof
|
|
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:
|
|
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:
|
|
89
|
+
className: M(P.root, b),
|
|
90
90
|
centerRipple: !0,
|
|
91
91
|
focusRipple: !C,
|
|
92
|
-
disabled:
|
|
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:
|
|
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
|
|
223
|
+
function Se(e) {
|
|
224
224
|
return F("MuiSwitch", e);
|
|
225
225
|
}
|
|
226
|
-
const c =
|
|
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,
|
|
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 =
|
|
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:
|
|
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
|
-
`,
|
|
588
|
+
`, qe = d(Y)`
|
|
589
589
|
margin-left: 10px;
|
|
590
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
},
|
|
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 &&
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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 {
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
a as setAppConfig,
|
|
5
|
+
o as setAppUgId,
|
|
6
|
+
t as setAppUserId
|
|
7
7
|
};
|