@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.
Files changed (82) hide show
  1. package/dist/Button-CGKw9sMz.js +656 -0
  2. package/dist/CircularProgress-C6sMwjDC.js +1275 -0
  3. package/dist/{DefaultPropsProvider-C0Ib4Mye.js → DefaultPropsProvider-D2IJ8Qbs.js} +5 -1
  4. package/dist/{DialogQR-DVWhImXI.js → DialogQR-CyZcX7ul.js} +9 -5
  5. package/dist/{FlashWifi-CaAOKd3g.js → FlashWifi-CYp0UP0B.js} +1 -1
  6. package/dist/Portal-BqkDy0Wc.js +613 -0
  7. package/dist/SvgLayer-CA0elY7q.js +36 -0
  8. package/dist/assets/IconButtonDot.css +1 -0
  9. package/dist/assets/LangSelect.css +1 -0
  10. package/dist/assets/Loading.css +1 -0
  11. package/dist/assets/PercentageBar.css +1 -0
  12. package/dist/assets/PieScore.css +1 -0
  13. package/dist/assets/SvgLayer.css +1 -0
  14. package/dist/assets/Widget.css +1 -0
  15. package/dist/assets/style.css +1 -1
  16. package/dist/assets/style2.css +1 -0
  17. package/dist/colours.module.css +4 -0
  18. package/dist/components/AlertPara/AlertPara.js +1 -1
  19. package/dist/components/Application/Application.d.ts +10 -0
  20. package/dist/components/Application/Application.js +1610 -0
  21. package/dist/components/BusyButton/BusyButton.js +7 -6
  22. package/dist/components/Button/Button.js +12 -4
  23. package/dist/components/ConnectionStatus/ConnectionStatus.d.ts +1 -5
  24. package/dist/components/ConnectionStatus/ConnectionStatus.js +48 -47
  25. package/dist/components/ConnectionStatus/FlashWifi.js +1 -1
  26. package/dist/components/ContentLoader/ContentError.js +1 -1
  27. package/dist/components/ContentLoader/ContentLoader.js +5 -1
  28. package/dist/components/ContentLoader/ContentProgress.js +1 -1
  29. package/dist/components/IconButtonDot/IconButtonDot.d.ts +7 -0
  30. package/dist/components/IconButtonDot/IconButtonDot.js +22 -0
  31. package/dist/components/IconMenu/IconMenu.d.ts +12 -0
  32. package/dist/components/IconMenu/IconMenu.js +26 -0
  33. package/dist/components/IconMenu/IconMenuInline.d.ts +6 -0
  34. package/dist/components/IconMenu/IconMenuInline.js +12 -0
  35. package/dist/components/IconMenu/Item.d.ts +9 -0
  36. package/dist/components/IconMenu/Item.js +34 -0
  37. package/dist/components/IconMenu/Spacer.d.ts +1 -0
  38. package/dist/components/IconMenu/Spacer.js +11 -0
  39. package/dist/components/IconMenu/context.d.ts +1 -0
  40. package/dist/components/IconMenu/context.js +5 -0
  41. package/dist/components/IconMenu/index.d.ts +4 -0
  42. package/dist/components/IconMenu/index.js +10 -0
  43. package/dist/components/LangSelect/LangSelect.d.ts +12 -0
  44. package/dist/components/LangSelect/LangSelect.js +46 -0
  45. package/dist/components/Loading/Loading.d.ts +7 -0
  46. package/dist/components/Loading/Loading.js +15 -0
  47. package/dist/components/Motd/Motd.js +1 -1
  48. package/dist/components/PercentageBar/PercentageBar.d.ts +7 -0
  49. package/dist/components/PercentageBar/PercentageBar.js +37 -0
  50. package/dist/components/PieScore/PieScore.d.ts +6 -0
  51. package/dist/components/PieScore/PieScore.js +10676 -0
  52. package/dist/components/QRCode/DialogQR.js +8 -4
  53. package/dist/components/QRCode/QRCode.js +1 -1
  54. package/dist/components/Webcam/Webcam.js +3 -3
  55. package/dist/components/WorkflowLayout/Layout.d.ts +7 -0
  56. package/dist/components/WorkflowLayout/Layout.js +43 -0
  57. package/dist/components/WorkflowLayout/SvgLayer.d.ts +14 -0
  58. package/dist/components/WorkflowLayout/SvgLayer.js +5 -0
  59. package/dist/components/WorkflowLayout/Widget.d.ts +18 -0
  60. package/dist/components/WorkflowLayout/Widget.js +7413 -0
  61. package/dist/components/WorkflowLayout/index.d.ts +3 -0
  62. package/dist/components/WorkflowLayout/index.js +6 -0
  63. package/dist/components/WorkflowLayout/lines.d.ts +17 -0
  64. package/dist/components/WorkflowLayout/lines.js +37 -0
  65. package/dist/{createSvgIcon-BfF8yuCp.js → createSvgIcon-DmrVEdN7.js} +2 -2
  66. package/dist/{createTheme-BIcG8YPQ.js → createTheme-a85zdZWm.js} +4 -0
  67. package/dist/hooks/peer.d.ts +25 -2
  68. package/dist/hooks/peer.js +196 -54
  69. package/dist/main.d.ts +6 -0
  70. package/dist/main.js +53 -33
  71. package/dist/react-D_xU5dL6.js +112 -0
  72. package/dist/state/webrtcState.js +5 -4
  73. package/dist/style/theme.js +1 -1
  74. package/dist/style.module-BAnhZ_KJ.js +9 -0
  75. package/dist/style.module-BDpZJv9y.js +26 -0
  76. package/dist/util/Observer.d.ts +7 -0
  77. package/dist/util/Observer.js +9 -0
  78. package/dist/{webrtcState-D0nJpE9Z.js → vanilla-BJxibF1U.js} +83 -85
  79. package/package.json +8 -2
  80. package/dist/Button-DQwRVw4a.js +0 -1918
  81. package/dist/react-D-b-Xrzv.js +0 -98
  82. package/dist/style.module-DSFm2eLD.js +0 -9
@@ -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
- };
@@ -1,9 +0,0 @@
1
- import './assets/style.css';const t = "_title_1bpz2_3", e = "_content_1bpz2_8", r = "_errorTitle_1bpz2_18", o = "_errorContent_1bpz2_23", n = {
2
- title: t,
3
- content: e,
4
- errorTitle: r,
5
- errorContent: o
6
- };
7
- export {
8
- n as s
9
- };