@genai-fi/base 3.0.2 → 4.0.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-CGKw9sMz.js +656 -0
- package/dist/CircularProgress-C6sMwjDC.js +1275 -0
- package/dist/{DefaultPropsProvider-C0Ib4Mye.js → DefaultPropsProvider-D2IJ8Qbs.js} +5 -1
- package/dist/{DialogQR-DVWhImXI.js → DialogQR-CyZcX7ul.js} +9 -5
- package/dist/{FlashWifi-CaAOKd3g.js → FlashWifi-CYp0UP0B.js} +1 -1
- package/dist/Portal-BqkDy0Wc.js +613 -0
- package/dist/SvgLayer-CA0elY7q.js +36 -0
- package/dist/assets/IconButtonDot.css +1 -0
- package/dist/assets/LangSelect.css +1 -0
- package/dist/assets/Loading.css +1 -0
- package/dist/assets/PercentageBar.css +1 -0
- package/dist/assets/PieScore.css +1 -0
- package/dist/assets/SvgLayer.css +1 -0
- package/dist/assets/Widget.css +1 -0
- package/dist/assets/style.css +1 -1
- package/dist/assets/style2.css +1 -0
- package/dist/colours.module.css +4 -0
- package/dist/components/AlertPara/AlertPara.js +1 -1
- package/dist/components/Application/Application.d.ts +10 -0
- package/dist/components/Application/Application.js +1610 -0
- package/dist/components/BusyButton/BusyButton.js +7 -6
- package/dist/components/Button/Button.js +12 -4
- package/dist/components/ConnectionStatus/ConnectionStatus.d.ts +1 -5
- package/dist/components/ConnectionStatus/ConnectionStatus.js +48 -47
- package/dist/components/ConnectionStatus/FlashWifi.js +1 -1
- package/dist/components/ContentLoader/ContentError.js +1 -1
- package/dist/components/ContentLoader/ContentLoader.js +5 -1
- package/dist/components/ContentLoader/ContentProgress.js +1 -1
- package/dist/components/IconButtonDot/IconButtonDot.d.ts +7 -0
- package/dist/components/IconButtonDot/IconButtonDot.js +22 -0
- package/dist/components/IconMenu/IconMenu.d.ts +12 -0
- package/dist/components/IconMenu/IconMenu.js +26 -0
- package/dist/components/IconMenu/IconMenuInline.d.ts +6 -0
- package/dist/components/IconMenu/IconMenuInline.js +12 -0
- package/dist/components/IconMenu/Item.d.ts +9 -0
- package/dist/components/IconMenu/Item.js +34 -0
- package/dist/components/IconMenu/Spacer.d.ts +1 -0
- package/dist/components/IconMenu/Spacer.js +11 -0
- package/dist/components/IconMenu/context.d.ts +1 -0
- package/dist/components/IconMenu/context.js +5 -0
- package/dist/components/IconMenu/index.d.ts +4 -0
- package/dist/components/IconMenu/index.js +10 -0
- package/dist/components/LangSelect/LangSelect.d.ts +12 -0
- package/dist/components/LangSelect/LangSelect.js +46 -0
- package/dist/components/Loading/Loading.d.ts +7 -0
- package/dist/components/Loading/Loading.js +15 -0
- package/dist/components/Motd/Motd.js +1 -1
- package/dist/components/PercentageBar/PercentageBar.d.ts +7 -0
- package/dist/components/PercentageBar/PercentageBar.js +37 -0
- package/dist/components/PieScore/PieScore.d.ts +6 -0
- package/dist/components/PieScore/PieScore.js +10676 -0
- package/dist/components/QRCode/DialogQR.js +8 -4
- package/dist/components/QRCode/QRCode.js +1 -1
- package/dist/components/Webcam/Webcam.js +3 -3
- package/dist/components/WorkflowLayout/Layout.d.ts +7 -0
- package/dist/components/WorkflowLayout/Layout.js +43 -0
- package/dist/components/WorkflowLayout/SvgLayer.d.ts +14 -0
- package/dist/components/WorkflowLayout/SvgLayer.js +5 -0
- package/dist/components/WorkflowLayout/Widget.d.ts +18 -0
- package/dist/components/WorkflowLayout/Widget.js +7413 -0
- package/dist/components/WorkflowLayout/index.d.ts +3 -0
- package/dist/components/WorkflowLayout/index.js +6 -0
- package/dist/components/WorkflowLayout/lines.d.ts +17 -0
- package/dist/components/WorkflowLayout/lines.js +37 -0
- package/dist/{createSvgIcon-BfF8yuCp.js → createSvgIcon-DmrVEdN7.js} +2 -2
- package/dist/{createTheme-BIcG8YPQ.js → createTheme-a85zdZWm.js} +4 -0
- package/dist/hooks/peer.d.ts +25 -2
- package/dist/hooks/peer.js +196 -54
- package/dist/main.d.ts +6 -0
- package/dist/main.js +53 -33
- package/dist/react-D_xU5dL6.js +112 -0
- package/dist/state/webrtcState.js +5 -4
- package/dist/style/theme.js +1 -1
- package/dist/style.module-BAnhZ_KJ.js +9 -0
- package/dist/style.module-BDpZJv9y.js +26 -0
- package/dist/util/Observer.d.ts +7 -0
- package/dist/util/Observer.js +9 -0
- package/dist/{webrtcState-D0nJpE9Z.js → vanilla-BJxibF1U.js} +83 -85
- package/package.json +8 -2
- package/dist/Button-DQwRVw4a.js +0 -1918
- package/dist/react-D-b-Xrzv.js +0 -98
- package/dist/style.module-DSFm2eLD.js +0 -9
package/dist/react-D-b-Xrzv.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import w, { useReducer as v, useEffect as R, useDebugValue as S, useCallback as P, useContext as x, createContext as y } from "react";
|
|
2
|
-
import { g as C, I as h } from "./webrtcState-D0nJpE9Z.js";
|
|
3
|
-
const F = {}, V = y(
|
|
4
|
-
void 0
|
|
5
|
-
);
|
|
6
|
-
function A(t) {
|
|
7
|
-
return x(V) || C();
|
|
8
|
-
}
|
|
9
|
-
const b = (t) => typeof (t == null ? void 0 : t.then) == "function", g = (t) => {
|
|
10
|
-
t.status || (t.status = "pending", t.then(
|
|
11
|
-
(o) => {
|
|
12
|
-
t.status = "fulfilled", t.value = o;
|
|
13
|
-
},
|
|
14
|
-
(o) => {
|
|
15
|
-
t.status = "rejected", t.reason = o;
|
|
16
|
-
}
|
|
17
|
-
));
|
|
18
|
-
}, j = w.use || // A shim for older React versions
|
|
19
|
-
((t) => {
|
|
20
|
-
if (t.status === "pending")
|
|
21
|
-
throw t;
|
|
22
|
-
if (t.status === "fulfilled")
|
|
23
|
-
return t.value;
|
|
24
|
-
throw t.status === "rejected" ? t.reason : (g(t), t);
|
|
25
|
-
}), d = /* @__PURE__ */ new WeakMap(), _ = (t, o) => {
|
|
26
|
-
let s = d.get(t);
|
|
27
|
-
return s || (s = new Promise((r, n) => {
|
|
28
|
-
let l = t;
|
|
29
|
-
const a = (e) => (u) => {
|
|
30
|
-
l === e && r(u);
|
|
31
|
-
}, f = (e) => (u) => {
|
|
32
|
-
l === e && n(u);
|
|
33
|
-
}, c = () => {
|
|
34
|
-
try {
|
|
35
|
-
const e = o();
|
|
36
|
-
b(e) ? (d.set(e, s), l = e, e.then(a(e), f(e)), h(e, c)) : r(e);
|
|
37
|
-
} catch (e) {
|
|
38
|
-
n(e);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
t.then(a(t), f(t)), h(t, c);
|
|
42
|
-
}), d.set(t, s)), s;
|
|
43
|
-
};
|
|
44
|
-
function k(t, o) {
|
|
45
|
-
const { delay: s, unstable_promiseStatus: r = !w.use } = {}, n = A(), [[l, a, f], c] = v(
|
|
46
|
-
(u) => {
|
|
47
|
-
const i = n.get(t);
|
|
48
|
-
return Object.is(u[0], i) && u[1] === n && u[2] === t ? u : [i, n, t];
|
|
49
|
-
},
|
|
50
|
-
void 0,
|
|
51
|
-
() => [n.get(t), n, t]
|
|
52
|
-
);
|
|
53
|
-
let e = l;
|
|
54
|
-
if ((a !== n || f !== t) && (c(), e = n.get(t)), R(() => {
|
|
55
|
-
const u = n.sub(t, () => {
|
|
56
|
-
if (r)
|
|
57
|
-
try {
|
|
58
|
-
const i = n.get(t);
|
|
59
|
-
b(i) && g(
|
|
60
|
-
_(i, () => n.get(t))
|
|
61
|
-
);
|
|
62
|
-
} catch {
|
|
63
|
-
}
|
|
64
|
-
if (typeof s == "number") {
|
|
65
|
-
setTimeout(c, s);
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
c();
|
|
69
|
-
});
|
|
70
|
-
return c(), u;
|
|
71
|
-
}, [n, t, s, r]), S(e), b(e)) {
|
|
72
|
-
const u = _(e, () => n.get(t));
|
|
73
|
-
return r && g(u), j(u);
|
|
74
|
-
}
|
|
75
|
-
return e;
|
|
76
|
-
}
|
|
77
|
-
function E(t, o) {
|
|
78
|
-
const s = A();
|
|
79
|
-
return P(
|
|
80
|
-
(...n) => {
|
|
81
|
-
if ((F ? "production" : void 0) !== "production" && !("write" in t))
|
|
82
|
-
throw new Error("not writable atom");
|
|
83
|
-
return s.set(t, ...n);
|
|
84
|
-
},
|
|
85
|
-
[s, t]
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
function L(t, o) {
|
|
89
|
-
return [
|
|
90
|
-
k(t),
|
|
91
|
-
// We do wrong type assertion here, which results in throwing an error.
|
|
92
|
-
E(t)
|
|
93
|
-
];
|
|
94
|
-
}
|
|
95
|
-
export {
|
|
96
|
-
k as a,
|
|
97
|
-
L as u
|
|
98
|
-
};
|