@genai-fi/base 4.2.2 → 4.3.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/dist/{Button-BeUmwrlS.js → Button-BgSe1MyE.js} +4 -4
- package/dist/{Close-BGAFHd7i.js → Close-Cv_QwhIN.js} +1 -1
- package/dist/DialogQR-DoM8ZHBM.js +87 -0
- package/dist/Feedback.module-C2gI6YmB.js +21 -0
- package/dist/{FlashWifi-DkGhdWqj.js → FlashWifi-slUpI7sB.js} +1 -1
- package/dist/{Portal-CcDjyHU0.js → Portal-MiwrHMB_.js} +5 -5
- package/dist/assets/Feedback.css +1 -0
- package/dist/assets/Help.css +1 -0
- package/dist/assets/InfoPop.css +1 -0
- package/dist/{DialogQR-BIfoHwVy.js → browser-HW-wgeM2.js} +418 -501
- package/dist/components/AlertPara/AlertPara.js +1 -1
- package/dist/components/Application/Application.js +981 -785
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/ConnectionStatus/ConnectionStatus.js +35 -31
- package/dist/components/ConnectionStatus/FlashWifi.js +1 -1
- package/dist/components/Feedback/Experience.d.ts +6 -0
- package/dist/components/Feedback/Experience.js +23 -0
- package/dist/components/Feedback/Feedback.d.ts +10 -0
- package/dist/components/Feedback/Feedback.js +63 -0
- package/dist/components/Feedback/FeedbackForm.d.ts +9 -0
- package/dist/components/Feedback/FeedbackForm.js +95 -0
- package/dist/components/Feedback/Rating.d.ts +6 -0
- package/dist/components/Feedback/Rating.js +31 -0
- package/dist/components/Feedback/Recommend.d.ts +6 -0
- package/dist/components/Feedback/Recommend.js +31 -0
- package/dist/components/Help/Help.d.ts +12 -0
- package/dist/components/Help/Help.js +75 -0
- package/dist/components/InfoPop/InfoPop.d.ts +10 -0
- package/dist/components/InfoPop/InfoPop.js +48 -0
- package/dist/components/LangSelect/LangSelect.js +1 -1
- package/dist/components/Motd/Motd.js +1 -1
- package/dist/components/PieScore/PieScore.js +3 -3
- package/dist/components/QRCode/DialogQR.js +3 -2
- package/dist/components/QRCode/QRCode.js +7 -6
- package/dist/components/SidePanel/SidePanel.js +1 -1
- package/dist/components/Webcam/Webcam.js +9 -9
- package/dist/components/WorkflowLayout/Widget.js +3 -3
- package/dist/{createSvgIcon-DQhMxTx4.js → createSvgIcon-BM4dw4Lw.js} +4 -4
- package/dist/hooks/peer.js +1 -1
- package/dist/main.d.ts +3 -0
- package/dist/main.js +25 -19
- package/dist/{react-D_xU5dL6.js → react-B9NW8BS7.js} +6 -6
- package/dist/util/Observer.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as y from "react";
|
|
2
2
|
import { g as H, a as r, P as t } from "./createTheme-DV959X3d.js";
|
|
3
|
-
import { g as A, r as q, u as J,
|
|
4
|
-
import { u as Y, B as Z,
|
|
3
|
+
import { g as A, r as q, u as J, c as R, a as K, s as b, b as Q, m as X } from "./DefaultPropsProvider-BurgXZzw.js";
|
|
4
|
+
import { u as Y, B as Z, C as oo, c as to } from "./CircularProgress-DgKnRiq7.js";
|
|
5
5
|
import { jsxs as no, jsx as d } from "react/jsx-runtime";
|
|
6
6
|
function ao(o) {
|
|
7
7
|
return H("MuiButton", o);
|
|
@@ -138,7 +138,7 @@ const io = (o) => {
|
|
|
138
138
|
color: "var(--variant-textColor)",
|
|
139
139
|
backgroundColor: "var(--variant-textBg)"
|
|
140
140
|
}
|
|
141
|
-
}, ...Object.entries(o.palette).filter(
|
|
141
|
+
}, ...Object.entries(o.palette).filter(to()).map(([i]) => ({
|
|
142
142
|
props: {
|
|
143
143
|
color: i
|
|
144
144
|
},
|
|
@@ -474,7 +474,7 @@ const io = (o) => {
|
|
|
474
474
|
type: h,
|
|
475
475
|
variant: D = "text",
|
|
476
476
|
...F
|
|
477
|
-
} = g, m = Y(P), $ = V ?? /* @__PURE__ */ d(
|
|
477
|
+
} = g, m = Y(P), $ = V ?? /* @__PURE__ */ d(oo, {
|
|
478
478
|
"aria-labelledby": m,
|
|
479
479
|
color: "inherit",
|
|
480
480
|
size: 16
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c as r } from "./createSvgIcon-
|
|
2
|
+
import { c as r } from "./createSvgIcon-BM4dw4Lw.js";
|
|
3
3
|
const c = r(/* @__PURE__ */ o("path", {
|
|
4
4
|
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
5
5
|
}), "Close");
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { jsx as o, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as m, useCallback as p, useEffect as h } from "react";
|
|
3
|
+
import { q as f } from "./browser-HW-wgeM2.js";
|
|
4
|
+
import { Dialog as g, DialogContent as u, DialogActions as v } from "@mui/material";
|
|
5
|
+
import { useTranslation as _ } from "react-i18next";
|
|
6
|
+
import { c as k } from "./createSvgIcon-BM4dw4Lw.js";
|
|
7
|
+
import "./state/webrtcState.js";
|
|
8
|
+
import "./hooks/peer.js";
|
|
9
|
+
import { Button as s } from "./components/Button/Button.js";
|
|
10
|
+
import "./index-SOhdqzHq.js";
|
|
11
|
+
import "./style/theme.js";
|
|
12
|
+
import "./util/canvas.js";
|
|
13
|
+
import "./FileSaver.min-DhePf63e.js";
|
|
14
|
+
import "./components/BusyButton/BusyButton.js";
|
|
15
|
+
import "./components/WorkflowLayout/lines.js";
|
|
16
|
+
import "./components/WorkflowLayout/svgContext.js";
|
|
17
|
+
import "./components/WorkflowLayout/Widget.js";
|
|
18
|
+
import "./components/IconMenu/context.js";
|
|
19
|
+
import "@emotion/react";
|
|
20
|
+
import './assets/DialogQR.css';const C = "_link_1udre_3", y = "_container_1udre_14", b = "_canvas_1udre_19", x = "_dialog_1udre_30", D = {
|
|
21
|
+
link: C,
|
|
22
|
+
container: y,
|
|
23
|
+
canvas: b,
|
|
24
|
+
dialog: x
|
|
25
|
+
}, w = k(/* @__PURE__ */ o("path", {
|
|
26
|
+
d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"
|
|
27
|
+
}), "ContentCopy");
|
|
28
|
+
function L({ url: t, open: i, onClose: n }) {
|
|
29
|
+
var e;
|
|
30
|
+
const { t: a } = _("translation"), r = m(null), l = p(() => {
|
|
31
|
+
navigator.clipboard.writeText(t);
|
|
32
|
+
}, [t]);
|
|
33
|
+
return h(() => {
|
|
34
|
+
r.current && f.toCanvas(r.current, t, { width: 350 }).catch((d) => console.error(d));
|
|
35
|
+
}, [t, i]), /* @__PURE__ */ c(
|
|
36
|
+
g,
|
|
37
|
+
{
|
|
38
|
+
open: i,
|
|
39
|
+
onClose: n,
|
|
40
|
+
keepMounted: !0,
|
|
41
|
+
className: D.dialog,
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ o(u, { children: /* @__PURE__ */ o(
|
|
44
|
+
"a",
|
|
45
|
+
{
|
|
46
|
+
href: t,
|
|
47
|
+
target: "_blank",
|
|
48
|
+
rel: "noreferrer",
|
|
49
|
+
"data-testid": "qr-dialog-link",
|
|
50
|
+
children: /* @__PURE__ */ o(
|
|
51
|
+
"canvas",
|
|
52
|
+
{
|
|
53
|
+
width: 164,
|
|
54
|
+
height: 164,
|
|
55
|
+
ref: r
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
) }),
|
|
60
|
+
/* @__PURE__ */ c(v, { children: [
|
|
61
|
+
/* @__PURE__ */ o(
|
|
62
|
+
s,
|
|
63
|
+
{
|
|
64
|
+
disabled: !((e = navigator == null ? void 0 : navigator.clipboard) != null && e.writeText),
|
|
65
|
+
onClick: l,
|
|
66
|
+
variant: "outlined",
|
|
67
|
+
startIcon: /* @__PURE__ */ o(w, {}),
|
|
68
|
+
children: a("deploy.actions.copy")
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
/* @__PURE__ */ o(
|
|
72
|
+
s,
|
|
73
|
+
{
|
|
74
|
+
onClick: n,
|
|
75
|
+
variant: "outlined",
|
|
76
|
+
children: a("deploy.actions.close")
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
] })
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
export {
|
|
85
|
+
L as D,
|
|
86
|
+
D as s
|
|
87
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import './assets/Feedback.css';const o = "_star_165oq_1", _ = "_label_165oq_15", n = "_rating_165oq_21", e = "_ratingContainer_165oq_28", t = "_box_165oq_35", a = "_box1_165oq_55", x = "_box2_165oq_66", s = "_box3_165oq_77", b = "_box4_165oq_88", c = "_box5_165oq_99", r = "_filled_165oq_110", i = "_boxContainer_165oq_120", q = "_experienceContainer_165oq_128", l = "_feedback_165oq_135", g = "_messageBox_165oq_149", C = "_thankYouBox_165oq_158", d = {
|
|
2
|
+
star: o,
|
|
3
|
+
label: _,
|
|
4
|
+
rating: n,
|
|
5
|
+
ratingContainer: e,
|
|
6
|
+
box: t,
|
|
7
|
+
box1: a,
|
|
8
|
+
box2: x,
|
|
9
|
+
box3: s,
|
|
10
|
+
box4: b,
|
|
11
|
+
box5: c,
|
|
12
|
+
filled: r,
|
|
13
|
+
boxContainer: i,
|
|
14
|
+
experienceContainer: q,
|
|
15
|
+
feedback: l,
|
|
16
|
+
messageBox: g,
|
|
17
|
+
thankYouBox: C
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
d as s
|
|
21
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as a, useEffect as c } from "react";
|
|
3
|
-
import { c as r } from "./createSvgIcon-
|
|
3
|
+
import { c as r } from "./createSvgIcon-BM4dw4Lw.js";
|
|
4
4
|
const f = r(/* @__PURE__ */ t("path", {
|
|
5
5
|
d: "m1 9 2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9m8 8 3 3 3-3c-1.65-1.66-4.34-1.66-6 0m-4-4 2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13"
|
|
6
6
|
}), "Wifi"), l = r(/* @__PURE__ */ t("path", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
2
|
import { i as H, d as L, P as s, b as W, g as A, a as m } from "./createTheme-DV959X3d.js";
|
|
3
3
|
import { jsx as y, jsxs as G } from "react/jsx-runtime";
|
|
4
|
-
import { i as U,
|
|
4
|
+
import { i as U, T as $, d as k, g as Z, u as Y, c as N, a as q, s as w, m as C } from "./DefaultPropsProvider-BurgXZzw.js";
|
|
5
5
|
import { Global as J, ThemeContext as K } from "@emotion/react";
|
|
6
6
|
import { u as Q, B as X, c as R, C as F, a as ee, b as D, d as B } from "./CircularProgress-DgKnRiq7.js";
|
|
7
7
|
import * as ne from "react-dom";
|
|
@@ -112,14 +112,14 @@ const ue = /* @__PURE__ */ c.createContext();
|
|
|
112
112
|
process.env.NODE_ENV !== "production" && (s.node, s.bool);
|
|
113
113
|
const je = () => c.useContext(ue) ?? !1;
|
|
114
114
|
function xe() {
|
|
115
|
-
const e = P(
|
|
116
|
-
return process.env.NODE_ENV !== "production" && c.useDebugValue(e), e[
|
|
115
|
+
const e = P(k);
|
|
116
|
+
return process.env.NODE_ENV !== "production" && c.useDebugValue(e), e[$] || e;
|
|
117
117
|
}
|
|
118
118
|
function M(e) {
|
|
119
119
|
return /* @__PURE__ */ y(_, {
|
|
120
120
|
...e,
|
|
121
|
-
defaultTheme:
|
|
122
|
-
themeId:
|
|
121
|
+
defaultTheme: k,
|
|
122
|
+
themeId: $
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
process.env.NODE_ENV !== "production" && (M.propTypes = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._star_165oq_1{font-size:3rem;color:#fac22a;cursor:pointer;display:flex;flex-direction:column;align-items:center;width:60px}._star_165oq_1:hover{color:#ffdb4d}._label_165oq_15{font-size:.7rem;color:#444;text-align:center}._rating_165oq_21{display:flex;align-items:flex-start;justify-content:center;gap:.5rem}._ratingContainer_165oq_28 h2{font-size:1rem;margin-top:2rem;color:#444;font-weight:400}._box_165oq_35{width:50px;height:50px;display:flex;align-items:center;justify-content:center;font-size:1.2rem;color:#444;cursor:pointer;border-radius:8px;border-width:1px;border-style:solid;border-color:transparent;box-sizing:border-box;background-color:#f0f0f0;outline:2px dashed transparent;--background-select-color: black}._box1_165oq_55{background-color:#ff4d4d44;border-color:#eea2a2;--background-select-color: #eea2a2}._box1_165oq_55:hover{font-weight:700;background-color:#eea2a2}._box2_165oq_66{background-color:#ff944d44;border-color:#e49c5d;--background-select-color: #e49c5d}._box2_165oq_66:hover{font-weight:700;background-color:#e49c5d}._box3_165oq_77{background-color:#ffdb4d44;border-color:#f7d87b;--background-select-color: #f7d87b}._box3_165oq_77:hover{font-weight:700;background-color:#f7d87b}._box4_165oq_88{background-color:#e3edd8;border-color:#b2da7e;--background-select-color: #b2da7e}._box4_165oq_88:hover{font-weight:700;background-color:#b2da7e}._box5_165oq_99{background-color:#6c64;border-color:#9ce4a2;--background-select-color: #9ce4a2}._box5_165oq_99:hover{font-weight:700;background-color:#9ce4a2}._box_165oq_35._filled_165oq_110{outline-color:#444;border-color:transparent;font-weight:700}._box_165oq_35._filled_165oq_110:hover{background-color:var(--background-select-color)}._boxContainer_165oq_120{display:flex;flex-direction:column;align-items:center;gap:.25rem;max-width:50px}._experienceContainer_165oq_128 h2{font-size:1rem;margin-top:2rem;color:#444;font-weight:400}._feedback_165oq_135 h1{margin-bottom:0}._feedback_165oq_135{display:flex;flex-direction:column;align-items:stretch;-webkit-user-select:none;user-select:none;padding:1rem 2.5rem;max-width:320px;overflow:hidden}._messageBox_165oq_149{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:2rem;justify-content:center}._thankYouBox_165oq_158{display:flex;flex-direction:column;align-items:stretch;justify-content:center}._messageBox_165oq_149 p{color:#444;text-align:center}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._helpButton_p1m35_1{position:absolute;z-index:10;left:-3rem;top:.5rem;color:#0a4bd6;background:#fff6;transition:opacity .3s ease-out;opacity:0}._helpButtonInplace_p1m35_12{color:#0a4bd6;margin-left:8px;transition:opacity .3s ease-out;opacity:.2}._helpButton_p1m35_1:hover{background:#fff}._container_p1m35_23{position:relative;border-radius:6px}._container_p1m35_23:hover ._helpButton_p1m35_1{opacity:1}._inplaceContainer_p1m35_32{display:flex;align-items:center}._inplaceContainer_p1m35_32:hover ._helpButtonInplace_p1m35_12{opacity:1}._active_p1m35_41{box-shadow:0 0 10px #0a4bd6}._helpButtonInside_p1m35_45{left:1rem}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._popper_35oif_1{display:flex;flex-direction:column;padding:1rem 1.5rem;border-radius:6px;box-shadow:2px 2px 4px #a4acbb;font-family:Andika,sans-serif;animation:_fadeIn_35oif_1 .3s ease-out;max-width:250px}._dark_35oif_12{background:#0a4bd6;color:#fff}._light_35oif_17{background:#fff;color:#444}._popper_35oif_1._bottom_35oif_22,._popper_35oif_1._top_35oif_27{margin-top:10px;margin-bottom:10px}._popper_35oif_1._right_35oif_32{margin-left:5px;margin-right:5px}._popper_35oif_1._left_35oif_37{margin-right:5px;margin-left:5px}@keyframes _fadeIn_35oif_1{0%{opacity:0}to{opacity:1}}._popper_35oif_1._right_35oif_32:before{content:"";position:absolute;width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-right:10px solid #0a4bd6;left:0;top:calc(50% - 10px)}._popper_35oif_1._left_35oif_37:before{content:"";position:absolute;width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:10px solid #0a4bd6;right:0;top:calc(50% - 10px)}._popper_35oif_1._bottom_35oif_22:before{content:"";position:absolute;width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:10px solid #0a4bd6;top:0;left:calc(50% - 8px)}._popper_35oif_1._top_35oif_27:before{content:"";position:absolute;width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #0a4bd6;bottom:0;left:calc(50% - 8px)}._popper_35oif_1 h2{margin:0;font-size:1.2rem}._popper_35oif_1 p{margin:0;font-size:.9rem}
|