@genai-fi/base 4.0.0 → 4.0.2
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/README.md +6 -9
- package/dist/{DialogQR-CyZcX7ul.js → DialogQR-wJru73YO.js} +3 -2
- package/dist/{SvgLayer-CA0elY7q.js → SvgLayer-DQQ6Pb5G.js} +12 -11
- package/dist/assets/Widget.css +1 -1
- package/dist/components/QRCode/DialogQR.js +3 -2
- package/dist/components/QRCode/QRCode.js +1 -1
- package/dist/components/WorkflowLayout/Layout.js +24 -23
- package/dist/components/WorkflowLayout/SvgLayer.js +1 -1
- package/dist/components/WorkflowLayout/Widget.d.ts +2 -1
- package/dist/components/WorkflowLayout/Widget.js +901 -893
- package/dist/components/WorkflowLayout/index.d.ts +2 -1
- package/dist/components/WorkflowLayout/index.js +9 -4
- package/dist/components/WorkflowLayout/lines.js +15 -13
- package/dist/hooks/peer.js +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.js +41 -36
- package/dist/services/peer2peer/Peer2Peer.js +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { default as WorkflowLayout } from './Layout';
|
|
2
|
-
export type
|
|
2
|
+
export { type IConnection, extractNodesFromElements, generateLines } from './lines';
|
|
3
3
|
export { Widget } from './Widget';
|
|
4
|
+
export { default as SvgLayer, type ILine } from './SvgLayer';
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import {
|
|
1
|
+
import { default as r } from "./Layout.js";
|
|
2
|
+
import { extractNodesFromElements as a, generateLines as f } from "./lines.js";
|
|
3
|
+
import { Widget as s } from "./Widget.js";
|
|
4
|
+
import { S as p } from "../../SvgLayer-DQQ6Pb5G.js";
|
|
3
5
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
p as SvgLayer,
|
|
7
|
+
s as Widget,
|
|
8
|
+
r as WorkflowLayout,
|
|
9
|
+
a as extractNodesFromElements,
|
|
10
|
+
f as generateLines
|
|
6
11
|
};
|
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
var d, f;
|
|
2
|
+
const g = ((f = (d = globalThis == null ? void 0 : globalThis.process) == null ? void 0 : d.env) == null ? void 0 : f.NODE_ENV) === "test";
|
|
3
|
+
function a(s, h) {
|
|
2
4
|
var o;
|
|
3
5
|
const n = h || /* @__PURE__ */ new Map();
|
|
4
6
|
for (let r = 0; r < s.children.length; ++r) {
|
|
5
|
-
const
|
|
7
|
+
const i = s.children[r], t = i.getAttribute("data-widget");
|
|
6
8
|
if (t === "container")
|
|
7
|
-
|
|
9
|
+
a(i, n);
|
|
8
10
|
else if (t) {
|
|
9
11
|
n.has(t) || n.set(t, []);
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
+
const e = i.offsetWidth, c = i.offsetHeight;
|
|
13
|
+
(g || e > 0 && c > 0) && ((o = n.get(t)) == null || o.push({ x: i.offsetLeft, y: i.offsetTop, width: e, height: c, id: i.id || "noid" }));
|
|
12
14
|
}
|
|
13
15
|
}
|
|
14
16
|
return n;
|
|
15
17
|
}
|
|
16
|
-
function
|
|
18
|
+
function l(s, h) {
|
|
17
19
|
const n = [];
|
|
18
20
|
for (const o of h) {
|
|
19
|
-
const r = s.get(o.start) || [],
|
|
21
|
+
const r = s.get(o.start) || [], i = s.get(o.end) || [];
|
|
20
22
|
for (const t of r)
|
|
21
|
-
for (const
|
|
23
|
+
for (const e of i)
|
|
22
24
|
n.push({
|
|
23
25
|
id1: t.id,
|
|
24
|
-
id2:
|
|
26
|
+
id2: e.id,
|
|
25
27
|
x1: o.startPoint === "left" ? t.x : o.startPoint === "right" ? t.x + t.width : t.x + t.width / 2,
|
|
26
|
-
x2: o.endPoint === "left" ?
|
|
28
|
+
x2: o.endPoint === "left" ? e.x : o.endPoint === "right" ? e.x + e.width : e.x + e.width / 2,
|
|
27
29
|
y1: o.startPoint === "top" ? t.y : o.startPoint === "bottom" ? t.y + t.height : t.y + t.height / 2,
|
|
28
|
-
y2: o.endPoint === "top" ?
|
|
30
|
+
y2: o.endPoint === "top" ? e.y : o.endPoint === "bottom" ? e.y + e.height : e.y + e.height / 2,
|
|
29
31
|
direction: o.startPoint === "top" || o.startPoint === "bottom" ? "vertical" : "horizontal"
|
|
30
32
|
});
|
|
31
33
|
}
|
|
32
34
|
return n;
|
|
33
35
|
}
|
|
34
36
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
a as extractNodesFromElements,
|
|
38
|
+
l as generateLines
|
|
37
39
|
};
|
package/dist/hooks/peer.js
CHANGED
package/dist/main.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export { default as AlertPara } from './components/AlertPara/AlertPara';
|
|
|
19
19
|
export { default as QRCode } from './components/QRCode/QRCode';
|
|
20
20
|
export { default as Webcam } from './components/Webcam/Webcam';
|
|
21
21
|
export { default as ContentLoader } from './components/ContentLoader/ContentLoader';
|
|
22
|
-
export { WorkflowLayout, type IConnection, Widget } from './components/WorkflowLayout';
|
|
22
|
+
export { WorkflowLayout, type IConnection, Widget, SvgLayer, type ILine, generateLines, extractNodesFromElements, } from './components/WorkflowLayout';
|
|
23
23
|
export { default as LangSelect } from './components/LangSelect/LangSelect';
|
|
24
24
|
export { IconMenu, IconMenuInline, IconMenuItem, Spacer } from './components/IconMenu';
|
|
25
25
|
export { default as PercentageBar } from './components/PercentageBar/PercentageBar';
|
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as o } from "./components/ConnectionStatus/ConnectionStatus.js";
|
|
2
2
|
import { Button as t, LargeButton as f } from "./components/Button/Button.js";
|
|
3
3
|
import { default as s } from "./hooks/peer.js";
|
|
4
4
|
import { default as u } from "./services/peer2peer/Peer2Peer.js";
|
|
@@ -6,58 +6,63 @@ import { useID as n } from "./hooks/id.js";
|
|
|
6
6
|
import { useOnlyOnce as d } from "./hooks/onlyOnce.js";
|
|
7
7
|
import { default as i } from "./hooks/random.js";
|
|
8
8
|
import { theme as v } from "./style/theme.js";
|
|
9
|
-
import { default as
|
|
10
|
-
import { canvasFromDataTransfer as
|
|
9
|
+
import { default as g } from "./util/randomId.js";
|
|
10
|
+
import { canvasFromDataTransfer as P, canvasFromFile as S, canvasFromImage as B, canvasFromURL as y, canvasesFromFiles as T, cropTo as b, urlFromDataTransfer as A } from "./util/canvas.js";
|
|
11
11
|
import { createZipBlob as D, loadZipFile as M, saveZipFile as R } from "./util/zip.js";
|
|
12
12
|
import { useTabActive as Z } from "./hooks/useTabActive.js";
|
|
13
13
|
import { default as h } from "./components/Spinner/Spinner.js";
|
|
14
14
|
import { default as w } from "./components/Privacy/Privacy.js";
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
15
|
+
import { default as N } from "./components/BusyButton/BusyButton.js";
|
|
16
|
+
import { default as U } from "./components/AlertPara/AlertPara.js";
|
|
17
|
+
import { default as q } from "./components/QRCode/QRCode.js";
|
|
18
|
+
import { default as G } from "./components/Webcam/Webcam.js";
|
|
19
|
+
import { default as J } from "./components/ContentLoader/ContentLoader.js";
|
|
20
20
|
import { default as V } from "./components/WorkflowLayout/Layout.js";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
21
|
+
import { extractNodesFromElements as Y, generateLines as _ } from "./components/WorkflowLayout/lines.js";
|
|
22
|
+
import { Widget as ee } from "./components/WorkflowLayout/Widget.js";
|
|
23
|
+
import { S as oe } from "./SvgLayer-DQQ6Pb5G.js";
|
|
24
|
+
import { default as te } from "./components/LangSelect/LangSelect.js";
|
|
25
|
+
import { default as me } from "./components/IconMenu/Spacer.js";
|
|
26
|
+
import { default as pe } from "./components/IconMenu/IconMenu.js";
|
|
27
|
+
import { default as le } from "./components/IconMenu/IconMenuInline.js";
|
|
28
|
+
import { default as xe } from "./components/IconMenu/Item.js";
|
|
29
|
+
import { default as ce } from "./components/PercentageBar/PercentageBar.js";
|
|
30
|
+
import { default as Fe } from "./components/PieScore/PieScore.js";
|
|
31
|
+
import { default as Ie } from "./components/Application/Application.js";
|
|
30
32
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
U as AlertPara,
|
|
34
|
+
Ie as Application,
|
|
35
|
+
N as BusyButton,
|
|
34
36
|
t as Button,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
o as ConnectionStatus,
|
|
38
|
+
J as ContentLoader,
|
|
39
|
+
pe as IconMenu,
|
|
40
|
+
le as IconMenuInline,
|
|
41
|
+
xe as IconMenuItem,
|
|
42
|
+
te as LangSelect,
|
|
41
43
|
f as LargeButton,
|
|
42
44
|
u as Peer2Peer,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
ce as PercentageBar,
|
|
46
|
+
Fe as PieScore,
|
|
45
47
|
w as Privacy,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
q as QRCode,
|
|
49
|
+
me as Spacer,
|
|
48
50
|
h as Spinner,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
oe as SvgLayer,
|
|
52
|
+
G as Webcam,
|
|
53
|
+
ee as Widget,
|
|
51
54
|
V as WorkflowLayout,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
P as canvasFromDataTransfer,
|
|
56
|
+
S as canvasFromFile,
|
|
57
|
+
B as canvasFromImage,
|
|
55
58
|
y as canvasFromURL,
|
|
56
59
|
T as canvasesFromFiles,
|
|
57
60
|
D as createZipBlob,
|
|
58
61
|
b as cropTo,
|
|
62
|
+
Y as extractNodesFromElements,
|
|
63
|
+
_ as generateLines,
|
|
59
64
|
M as loadZipFile,
|
|
60
|
-
|
|
65
|
+
g as randomId,
|
|
61
66
|
R as saveZipFile,
|
|
62
67
|
v as theme,
|
|
63
68
|
A as urlFromDataTransfer,
|
|
@@ -3232,7 +3232,7 @@ class wt {
|
|
|
3232
3232
|
port: this.port,
|
|
3233
3233
|
debug: 0,
|
|
3234
3234
|
config: {
|
|
3235
|
-
iceServers:
|
|
3235
|
+
iceServers: this.ice.iceServers.slice(0, 1),
|
|
3236
3236
|
sdpSemantics: "unified-plan",
|
|
3237
3237
|
iceTransportPolicy: this.relay || (t = this.options) != null && t.forceTURN ? "relay" : void 0
|
|
3238
3238
|
}
|