@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
@@ -0,0 +1,26 @@
1
+ import './assets/style.css';const n = "#078092", e = "rgb(174, 37, 174)", o = "#444", _ = "#555", l = "#E996E9", t = "_menuContainer_1m72l_3", m = "_free_1m72l_18 _menuContainer_1m72l_3", c = "_left_1m72l_26 _menuContainer_1m72l_3", i = "_right_1m72l_38 _menuContainer_1m72l_3", r = "_top_1m72l_50 _menuContainer_1m72l_3", s = "_bottom_1m72l_62 _menuContainer_1m72l_3", a = "_menuSpacerRow_1m72l_74", u = "_menuSpacerColumn_1m72l_81", g = "_logoRow_1m72l_88", d = "_logoColumn_1m72l_101", C = "_selected_1m72l_114", p = "_selectedItem_1m72l_118", b = "_inline_1m72l_122", S = "_inlineSelected_1m72l_131 _inline_1m72l_122", f = "_inlineTip_1m72l_136", k = "_inlineBar_1m72l_140", w = {
2
+ bgColourful1: n,
3
+ secondary: e,
4
+ backgroundDark2: o,
5
+ backgroundDark3: _,
6
+ secondaryLight: l,
7
+ menuContainer: t,
8
+ free: m,
9
+ left: c,
10
+ right: i,
11
+ top: r,
12
+ bottom: s,
13
+ menuSpacerRow: a,
14
+ menuSpacerColumn: u,
15
+ logoRow: g,
16
+ logoColumn: d,
17
+ selected: C,
18
+ selectedItem: p,
19
+ inline: b,
20
+ inlineSelected: S,
21
+ inlineTip: f,
22
+ inlineBar: k
23
+ };
24
+ export {
25
+ w as s
26
+ };
@@ -0,0 +1,7 @@
1
+ import { Atom } from 'jotai';
2
+ interface Props {
3
+ node: Atom<unknown>;
4
+ onChange: (value: unknown) => void;
5
+ }
6
+ export default function RecoilObserver({ node, onChange }: Props): null;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ import { useEffect as u } from "react";
2
+ import { u as o } from "../react-D_xU5dL6.js";
3
+ function s({ node: t, onChange: e }) {
4
+ const r = o(t);
5
+ return u(() => e(r), [e, r]), null;
6
+ }
7
+ export {
8
+ s as default
9
+ };
@@ -1,4 +1,4 @@
1
- const P = {}, Y = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Z = (e) => "init" in e, $ = (e) => !!e.write, C = (e) => "v" in e || "e" in e, U = (e) => {
1
+ const P = {}, X = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Y = (e) => "init" in e, $ = (e) => !!e.write, Z = (e) => "v" in e || "e" in e, U = (e) => {
2
2
  if ("e" in e)
3
3
  throw e.e;
4
4
  if ((P ? "production" : void 0) !== "production" && !("v" in e))
@@ -7,10 +7,10 @@ const P = {}, Y = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Z = (e)
7
7
  }, V = /* @__PURE__ */ new WeakMap(), B = (e) => {
8
8
  var n;
9
9
  return j(e) && !!((n = V.get(e)) != null && n[0]);
10
- }, te = (e) => {
10
+ }, ee = (e) => {
11
11
  const n = V.get(e);
12
12
  n != null && n[0] && (n[0] = !1, n[1].forEach((r) => r()));
13
- }, F = (e, n) => {
13
+ }, k = (e, n) => {
14
14
  let r = V.get(e);
15
15
  if (!r) {
16
16
  r = [!0, /* @__PURE__ */ new Set()], V.set(e, r);
@@ -20,7 +20,7 @@ const P = {}, Y = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Z = (e)
20
20
  e.then(l, l);
21
21
  }
22
22
  r[1].add(n);
23
- }, j = (e) => typeof (e == null ? void 0 : e.then) == "function", H = (e, n, r) => {
23
+ }, j = (e) => typeof (e == null ? void 0 : e.then) == "function", F = (e, n, r) => {
24
24
  r.p.has(e) || (r.p.add(e), n.then(
25
25
  () => {
26
26
  r.p.delete(e);
@@ -33,9 +33,9 @@ const P = {}, Y = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Z = (e)
33
33
  const l = r(e), _ = "v" in l, f = l.v;
34
34
  if (j(n))
35
35
  for (const u of l.d.keys())
36
- H(e, n, r(u));
37
- l.v = n, delete l.e, (!_ || !Object.is(f, l.v)) && (++l.n, j(f) && te(f));
38
- }, k = (e, n, r) => {
36
+ F(e, n, r(u));
37
+ l.v = n, delete l.e, (!_ || !Object.is(f, l.v)) && (++l.n, j(f) && ee(f));
38
+ }, C = (e, n, r) => {
39
39
  var l;
40
40
  const _ = /* @__PURE__ */ new Set();
41
41
  for (const f of ((l = r.get(e)) == null ? void 0 : l.t) || [])
@@ -43,7 +43,7 @@ const P = {}, Y = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Z = (e)
43
43
  for (const f of n.p)
44
44
  _.add(f);
45
45
  return _;
46
- }, ne = () => {
46
+ }, te = () => {
47
47
  const e = /* @__PURE__ */ new Set(), n = () => {
48
48
  e.forEach((r) => r());
49
49
  };
@@ -61,19 +61,19 @@ const P = {}, Y = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Z = (e)
61
61
  u == null || u.delete(_), u.size || n.delete(f);
62
62
  };
63
63
  }, r;
64
- }, re = (e) => (e.c || (e.c = K()), e.m || (e.m = K()), e.u || (e.u = K()), e.f || (e.f = ne()), e), ie = Symbol(), oe = (e = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new Set(), _ = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Set(), u = {}, p = (a, ...w) => a.read(...w), b = (a, ...w) => a.write(...w), E = (a, w) => {
64
+ }, ne = (e) => (e.c || (e.c = K()), e.m || (e.m = K()), e.u || (e.u = K()), e.f || (e.f = te()), e), re = Symbol(), ie = (e = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new Set(), _ = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Set(), u = {}, w = (a, ...S) => a.read(...S), E = (a, ...S) => a.write(...S), b = (a, S) => {
65
65
  var y;
66
- return (y = a.unstable_onInit) == null ? void 0 : y.call(a, w);
67
- }, A = (a, w) => {
66
+ return (y = a.unstable_onInit) == null ? void 0 : y.call(a, S);
67
+ }, A = (a, S) => {
68
68
  var y;
69
- return (y = a.onMount) == null ? void 0 : y.call(a, w);
69
+ return (y = a.onMount) == null ? void 0 : y.call(a, S);
70
70
  }, ...g) => {
71
71
  const a = g[0] || ((t) => {
72
72
  if ((P ? "production" : void 0) !== "production" && !t)
73
73
  throw new Error("Atom is undefined or null");
74
74
  let d = e.get(t);
75
- return d || (d = { d: /* @__PURE__ */ new Map(), p: /* @__PURE__ */ new Set(), n: 0 }, e.set(t, d), E == null || E(t, M)), d;
76
- }), w = g[1] || (() => {
75
+ return d || (d = { d: /* @__PURE__ */ new Map(), p: /* @__PURE__ */ new Set(), n: 0 }, e.set(t, d), b == null || b(t, M)), d;
76
+ }), S = g[1] || (() => {
77
77
  const t = [], d = (c) => {
78
78
  try {
79
79
  c();
@@ -108,23 +108,23 @@ const P = {}, Y = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Z = (e)
108
108
  continue;
109
109
  }
110
110
  d.add(i);
111
- for (const h of k(i, s, n))
111
+ for (const h of C(i, s, n))
112
112
  d.has(h) || o.push(h);
113
113
  }
114
114
  for (let i = t.length - 1; i >= 0; --i) {
115
115
  const [s, h] = t[i];
116
- let S = !1;
116
+ let p = !1;
117
117
  for (const D of h.d.keys())
118
118
  if (D !== s && l.has(D)) {
119
- S = !0;
119
+ p = !0;
120
120
  break;
121
121
  }
122
- S && (T(s), W(s)), r.delete(s);
122
+ p && (T(s), W(s)), r.delete(s);
123
123
  }
124
124
  }), T = g[3] || ((t) => {
125
125
  var d;
126
126
  const c = a(t);
127
- if (C(c) && (n.has(t) && r.get(t) !== c.n || Array.from(c.d).every(
127
+ if (Z(c) && (n.has(t) && r.get(t) !== c.n || Array.from(c.d).every(
128
128
  ([v, O]) => (
129
129
  // Recursively, read the atom state of the dependency, and
130
130
  // check if the atom epoch number is unchanged
@@ -135,44 +135,44 @@ const P = {}, Y = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Z = (e)
135
135
  c.d.clear();
136
136
  let o = !0;
137
137
  const i = () => {
138
- n.has(t) && (W(t), y(), w());
138
+ n.has(t) && (W(t), y(), S());
139
139
  }, s = (v) => {
140
140
  var O;
141
- if (Y(t, v)) {
142
- const X = a(v);
143
- if (!C(X))
144
- if (Z(v))
141
+ if (X(t, v)) {
142
+ const Q = a(v);
143
+ if (!Z(Q))
144
+ if (Y(v))
145
145
  G(v, v.init, a);
146
146
  else
147
147
  throw new Error("no atom init");
148
- return U(X);
148
+ return U(Q);
149
149
  }
150
150
  const x = T(v);
151
151
  try {
152
152
  return U(x);
153
153
  } finally {
154
- c.d.set(v, x.n), B(c.v) && H(t, c.v, x), (O = n.get(v)) == null || O.t.add(t), o || i();
154
+ c.d.set(v, x.n), B(c.v) && F(t, c.v, x), (O = n.get(v)) == null || O.t.add(t), o || i();
155
155
  }
156
156
  };
157
- let h, S;
157
+ let h, p;
158
158
  const D = {
159
159
  get signal() {
160
160
  return h || (h = new AbortController()), h.signal;
161
161
  },
162
162
  get setSelf() {
163
- return (P ? "production" : void 0) !== "production" && !$(t) && console.warn("setSelf function cannot be used with read-only atom"), !S && $(t) && (S = (...v) => {
163
+ return (P ? "production" : void 0) !== "production" && !$(t) && console.warn("setSelf function cannot be used with read-only atom"), !p && $(t) && (p = (...v) => {
164
164
  if ((P ? "production" : void 0) !== "production" && o && console.warn("setSelf function cannot be called in sync"), !o)
165
165
  try {
166
166
  return I(t, ...v);
167
167
  } finally {
168
- y(), w();
168
+ y(), S();
169
169
  }
170
- }), S;
170
+ }), p;
171
171
  }
172
172
  }, N = c.n;
173
173
  try {
174
- const v = p(t, s, D);
175
- return G(t, v, a), j(v) && (F(v, () => h == null ? void 0 : h.abort()), v.then(
174
+ const v = w(t, s, D);
175
+ return G(t, v, a), j(v) && (k(v, () => h == null ? void 0 : h.abort()), v.then(
176
176
  i,
177
177
  i
178
178
  )), c;
@@ -185,7 +185,7 @@ const P = {}, Y = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Z = (e)
185
185
  const d = [t];
186
186
  for (; d.length; ) {
187
187
  const c = d.pop(), o = a(c);
188
- for (const i of k(c, o, n)) {
188
+ for (const i of C(c, o, n)) {
189
189
  const s = a(i);
190
190
  r.set(i, s.n), d.push(i);
191
191
  }
@@ -193,23 +193,23 @@ const P = {}, Y = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Z = (e)
193
193
  }), I = g[5] || ((t, ...d) => {
194
194
  let c = !0;
195
195
  const o = (s) => U(T(s)), i = (s, ...h) => {
196
- var S;
196
+ var p;
197
197
  const D = a(s);
198
198
  try {
199
- if (Y(t, s)) {
200
- if (!Z(s))
199
+ if (X(t, s)) {
200
+ if (!Y(s))
201
201
  throw new Error("atom not writable");
202
202
  const N = D.n, v = h[0];
203
- G(s, v, a), W(s), N !== D.n && (l.add(s), (S = u.c) == null || S.call(u, s), J(s));
203
+ G(s, v, a), W(s), N !== D.n && (l.add(s), (p = u.c) == null || p.call(u, s), J(s));
204
204
  return;
205
205
  } else
206
206
  return I(s, ...h);
207
207
  } finally {
208
- c || (y(), w());
208
+ c || (y(), S());
209
209
  }
210
210
  };
211
211
  try {
212
- return b(t, o, i, ...d);
212
+ return E(t, o, i, ...d);
213
213
  } finally {
214
214
  c = !1;
215
215
  }
@@ -244,19 +244,19 @@ const P = {}, Y = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Z = (e)
244
244
  }, n.set(t, o), (d = u.m) == null || d.call(u, t), $(t)) {
245
245
  const i = () => {
246
246
  let s = !0;
247
- const h = (...S) => {
247
+ const h = (...p) => {
248
248
  try {
249
- return I(t, ...S);
249
+ return I(t, ...p);
250
250
  } finally {
251
- s || (y(), w());
251
+ s || (y(), S());
252
252
  }
253
253
  };
254
254
  try {
255
- const S = A(t, h);
256
- S && (o.u = () => {
255
+ const p = A(t, h);
256
+ p && (o.u = () => {
257
257
  s = !0;
258
258
  try {
259
- S();
259
+ p();
260
260
  } finally {
261
261
  s = !1;
262
262
  }
@@ -285,7 +285,7 @@ const P = {}, Y = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Z = (e)
285
285
  return;
286
286
  }
287
287
  return o;
288
- }), ee = [
288
+ }), m = [
289
289
  // store state
290
290
  e,
291
291
  n,
@@ -295,13 +295,13 @@ const P = {}, Y = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Z = (e)
295
295
  f,
296
296
  u,
297
297
  // atom interceptors
298
- p,
299
- b,
298
+ w,
300
299
  E,
300
+ b,
301
301
  A,
302
302
  // building-block functions
303
303
  a,
304
- w,
304
+ S,
305
305
  y,
306
306
  T,
307
307
  J,
@@ -315,39 +315,39 @@ const P = {}, Y = (e, n) => e.unstable_is ? e.unstable_is(n) : n === e, Z = (e)
315
315
  try {
316
316
  return I(t, ...d);
317
317
  } finally {
318
- y(), w();
318
+ y(), S();
319
319
  }
320
320
  },
321
321
  sub: (t, d) => {
322
322
  const o = z(t).l;
323
- return o.add(d), w(), () => {
324
- o.delete(d), R(t), w();
323
+ return o.add(d), S(), () => {
324
+ o.delete(d), R(t), S();
325
325
  };
326
326
  }
327
327
  };
328
- return Object.defineProperty(M, ie, { value: ee }), M;
329
- }, m = oe, se = re, ue = F, q = {};
330
- let ce = 0;
331
- function Q(e, n) {
332
- const r = `atom${++ce}`, l = {
328
+ return Object.defineProperty(M, re, { value: m }), M;
329
+ }, H = ie, oe = ne, ae = k, q = {};
330
+ let se = 0;
331
+ function ue(e, n) {
332
+ const r = `atom${++se}`, l = {
333
333
  toString() {
334
334
  return (q ? "production" : void 0) !== "production" && this.debugLabel ? r + ":" + this.debugLabel : r;
335
335
  }
336
336
  };
337
- return typeof e == "function" ? l.read = e : (l.init = e, l.read = le, l.write = de), l;
337
+ return typeof e == "function" ? l.read = e : (l.init = e, l.read = ce, l.write = le), l;
338
338
  }
339
- function le(e) {
339
+ function ce(e) {
340
340
  return e(this);
341
341
  }
342
- function de(e, n, r) {
342
+ function le(e, n, r) {
343
343
  return n(
344
344
  this,
345
345
  typeof r == "function" ? r(e(this)) : r
346
346
  );
347
347
  }
348
- const fe = () => {
348
+ const de = () => {
349
349
  let e = 0;
350
- const n = se({}), r = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), _ = m(
350
+ const n = oe({}), r = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), _ = H(
351
351
  r,
352
352
  l,
353
353
  void 0,
@@ -356,51 +356,49 @@ const fe = () => {
356
356
  void 0,
357
357
  n,
358
358
  void 0,
359
- (p, b, E, ...A) => e ? E(p, ...A) : p.write(b, E, ...A)
359
+ (w, E, b, ...A) => e ? b(w, ...A) : w.write(E, b, ...A)
360
360
  ), f = /* @__PURE__ */ new Set();
361
- return n.m.add(void 0, (p) => {
362
- f.add(p);
363
- const b = r.get(p);
364
- b.m = l.get(p);
365
- }), n.u.add(void 0, (p) => {
366
- f.delete(p);
367
- const b = r.get(p);
368
- delete b.m;
361
+ return n.m.add(void 0, (w) => {
362
+ f.add(w);
363
+ const E = r.get(w);
364
+ E.m = l.get(w);
365
+ }), n.u.add(void 0, (w) => {
366
+ f.delete(w);
367
+ const E = r.get(w);
368
+ delete E.m;
369
369
  }), Object.assign(_, {
370
370
  // store dev methods (these are tentative and subject to change without notice)
371
371
  dev4_get_internal_weak_map: () => (console.log("Deprecated: Use devstore from the devtools library"), r),
372
372
  dev4_get_mounted_atoms: () => f,
373
- dev4_restore_atoms: (p) => {
374
- const b = {
373
+ dev4_restore_atoms: (w) => {
374
+ const E = {
375
375
  read: () => null,
376
- write: (E, A) => {
376
+ write: (b, A) => {
377
377
  ++e;
378
378
  try {
379
- for (const [g, a] of p)
379
+ for (const [g, a] of w)
380
380
  "init" in g && A(g, a);
381
381
  } finally {
382
382
  --e;
383
383
  }
384
384
  }
385
385
  };
386
- _.set(b);
386
+ _.set(E);
387
387
  }
388
388
  });
389
389
  };
390
- function ae() {
391
- return (q ? "production" : void 0) !== "production" ? fe() : m();
390
+ function fe() {
391
+ return (q ? "production" : void 0) !== "production" ? de() : H();
392
392
  }
393
393
  let L;
394
394
  function ve() {
395
- return L || (L = ae(), (q ? "production" : void 0) !== "production" && (globalThis.__JOTAI_DEFAULT_STORE__ || (globalThis.__JOTAI_DEFAULT_STORE__ = L), globalThis.__JOTAI_DEFAULT_STORE__ !== L && console.warn(
395
+ return L || (L = fe(), (q ? "production" : void 0) !== "production" && (globalThis.__JOTAI_DEFAULT_STORE__ || (globalThis.__JOTAI_DEFAULT_STORE__ = L), globalThis.__JOTAI_DEFAULT_STORE__ !== L && console.warn(
396
396
  "Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"
397
397
  ))), L;
398
398
  }
399
- const _e = Q("disabled"), he = Q(void 0), we = Q("unset");
400
399
  export {
401
- ue as I,
402
- we as a,
403
- ve as g,
404
- he as i,
405
- _e as w
400
+ ae as I,
401
+ ue as a,
402
+ fe as c,
403
+ ve as g
406
404
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genai-fi/base",
3
- "version": "3.0.2",
3
+ "version": "4.0.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
@@ -40,9 +40,12 @@
40
40
  "@emotion/styled": "^11.14.0",
41
41
  "@mui/icons-material": "^7.1.0",
42
42
  "@mui/material": "^7.1.0",
43
+ "@mui/x-charts": "^8.5.2",
43
44
  "react": "^19.1.0",
44
45
  "react-dom": "^19.1.0",
45
- "react-i18next": "^15.5.1"
46
+ "react-i18next": "^15.5.1",
47
+ "react-router": "^7.6.2",
48
+ "react-router-dom": "^7.6.2"
46
49
  },
47
50
  "devDependencies": {
48
51
  "@emotion/react": "^11.14.0",
@@ -50,6 +53,7 @@
50
53
  "@ladle/react": "^5.0.3",
51
54
  "@mui/icons-material": "^7.1.0",
52
55
  "@mui/material": "^7.1.0",
56
+ "@mui/x-charts": "^8.5.2",
53
57
  "@testing-library/jest-dom": "^6.6.3",
54
58
  "@testing-library/react": "^16.3.0",
55
59
  "@testing-library/user-event": "^14.6.1",
@@ -71,6 +75,8 @@
71
75
  "react": "^19.1.0",
72
76
  "react-dom": "^19.1.0",
73
77
  "react-i18next": "^15.5.1",
78
+ "react-router": "^7.6.2",
79
+ "react-router-dom": "^7.6.2",
74
80
  "typescript": "^5.8.3",
75
81
  "vite": "^6.3.5",
76
82
  "vite-plugin-dts": "^4.5.0",