@w6w/embed 0.2.24 → 0.2.27
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/{CreateFunctionModal-DScxp_LN.js → CreateFunctionModal-B3LpcuI9.js} +2 -2
- package/dist/{CreateFunctionModal-DScxp_LN.js.map → CreateFunctionModal-B3LpcuI9.js.map} +1 -1
- package/dist/DocumentFormModal-DieWYFi4.js +175 -0
- package/dist/DocumentFormModal-DieWYFi4.js.map +1 -0
- package/dist/{ImportSpecModal-Cpzp8ndt.js → ImportSpecModal-xwTzj4KB.js} +22 -21
- package/dist/{ImportSpecModal-Cpzp8ndt.js.map → ImportSpecModal-xwTzj4KB.js.map} +1 -1
- package/dist/ModelRoutesManager-DtByS4mE.js +422 -0
- package/dist/ModelRoutesManager-DtByS4mE.js.map +1 -0
- package/dist/{WorkflowEditor-LesBKjb2.js → WorkflowEditor-CvWkVmFn.js} +6 -6
- package/dist/{WorkflowEditor-LesBKjb2.js.map → WorkflowEditor-CvWkVmFn.js.map} +1 -1
- package/dist/ai-keys-D676ly41.js +53 -0
- package/dist/ai-keys-D676ly41.js.map +1 -0
- package/dist/{apps-CYUgEfGf.js → apps-FMcQfyL2.js} +2 -2
- package/dist/{apps-CYUgEfGf.js.map → apps-FMcQfyL2.js.map} +1 -1
- package/dist/chrome/ImportSpecModal.d.ts +2 -0
- package/dist/credentials-4Nf2GfMc.js +212 -0
- package/dist/credentials-4Nf2GfMc.js.map +1 -0
- package/dist/editor-apps-HEOclsxL.js +152 -0
- package/dist/{editor-apps-LZmDWMqf.js.map → editor-apps-HEOclsxL.js.map} +1 -1
- package/dist/{editor-tools-DHyWiG21.js → editor-tools-CVYTsVFN.js} +326 -326
- package/dist/editor-tools-CVYTsVFN.js.map +1 -0
- package/dist/editor.mjs +1 -1
- package/dist/editors.mjs +11 -11
- package/dist/{endpoints-DSRo1Lc5.js → endpoints-DArAqoLT.js} +15 -15
- package/dist/endpoints-DArAqoLT.js.map +1 -0
- package/dist/forms/ModelRoutesManager.d.ts +8 -0
- package/dist/forms.mjs +128 -133
- package/dist/forms.mjs.map +1 -1
- package/dist/index.mjs +14 -14
- package/dist/lib/callable-descriptors.d.ts +1 -1
- package/dist/lib/document-upload.d.ts +8 -0
- package/dist/lists/ConnectionList.d.ts +3 -1
- package/dist/lists/CredentialCreate.d.ts +25 -0
- package/dist/lists/CredentialDetail.d.ts +5 -1
- package/dist/lists/CredentialList.d.ts +3 -1
- package/dist/lists/MyAiKeys.d.ts +5 -0
- package/dist/lists/TagChips.d.ts +4 -0
- package/dist/lists.d.ts +4 -0
- package/dist/lists.mjs +1703 -1107
- package/dist/lists.mjs.map +1 -1
- package/dist/models-CI0vLJ6o.js +346 -0
- package/dist/models-CI0vLJ6o.js.map +1 -0
- package/dist/rail.mjs +1 -1
- package/dist/repos/ai-keys.d.ts +14 -0
- package/dist/repos/credentials.d.ts +28 -14
- package/dist/repos/index.d.ts +1 -0
- package/dist/repos/models.d.ts +53 -4
- package/dist/repos.mjs +223 -204
- package/dist/repos.mjs.map +1 -1
- package/dist/{spec-export-DGigBUsP.js → spec-export-DMMET5VM.js} +2 -2
- package/dist/{spec-export-DGigBUsP.js.map → spec-export-DMMET5VM.js.map} +1 -1
- package/dist/{spec-import-SWOonsNr.js → spec-import-0B6oUewa.js} +5 -5
- package/dist/{spec-import-SWOonsNr.js.map → spec-import-0B6oUewa.js.map} +1 -1
- package/dist/{workflows-BK6IM4if.js → workflows-Dz8LMjnt.js} +37 -34
- package/dist/workflows-Dz8LMjnt.js.map +1 -0
- package/package.json +5 -5
- package/src/styles.css +23 -0
- package/dist/DocumentFormModal-Br4s8wmi.js +0 -89
- package/dist/DocumentFormModal-Br4s8wmi.js.map +0 -1
- package/dist/ModelRoutesManager-Bv6qefnq.js +0 -345
- package/dist/ModelRoutesManager-Bv6qefnq.js.map +0 -1
- package/dist/credentials-Cn92LGhJ.js +0 -171
- package/dist/credentials-Cn92LGhJ.js.map +0 -1
- package/dist/editor-apps-LZmDWMqf.js +0 -152
- package/dist/editor-tools-DHyWiG21.js.map +0 -1
- package/dist/endpoints-DSRo1Lc5.js.map +0 -1
- package/dist/models-CK1KHd39.js +0 -311
- package/dist/models-CK1KHd39.js.map +0 -1
- package/dist/workflows-BK6IM4if.js.map +0 -1
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { jsxs as C, jsx as f, Fragment as X } from "react/jsx-runtime";
|
|
2
|
-
import { u as ee, a as te, b as ne, c as re, d as oe } from "./apps-CYUgEfGf.js";
|
|
3
|
-
import { H as _ } from "./workflows-BK6IM4if.js";
|
|
4
|
-
import { ExecutionDetail as se, ExecutionStats as ie, ExecutionFilters as le, ExecutionList as ce, useW6WApi as ue } from "@w6w/ui";
|
|
5
|
-
import { useRef as E, useState as R, useEffect as B, useLayoutEffect as ae, useCallback as L, useMemo as fe } from "react";
|
|
6
|
-
import { useQuery as de } from "@tanstack/react-query";
|
|
7
|
-
const pe = 300;
|
|
8
|
-
function Y(o) {
|
|
9
|
-
for (let r = (o == null ? void 0 : o.parentElement) ?? null; r; r = r.parentElement) {
|
|
10
|
-
const l = getComputedStyle(r).overflowY;
|
|
11
|
-
if ((l === "auto" || l === "scroll") && r.scrollHeight > r.clientHeight)
|
|
12
|
-
return r;
|
|
13
|
-
}
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
function Se(o) {
|
|
17
|
-
var A, F, N;
|
|
18
|
-
const { scope: r, showKind: l, filters: n, onFiltersChange: m, onOpenInEditor: d } = o, S = E(n);
|
|
19
|
-
S.current = n;
|
|
20
|
-
const [u, a] = R(n.q), p = E(null), [s, b] = R(null);
|
|
21
|
-
B(() => {
|
|
22
|
-
a(n.q);
|
|
23
|
-
}, [n.q]), B(
|
|
24
|
-
() => () => {
|
|
25
|
-
p.current && clearTimeout(p.current);
|
|
26
|
-
},
|
|
27
|
-
[]
|
|
28
|
-
);
|
|
29
|
-
const h = ee(r, n), j = te(r, n), I = ne(s), c = re(), D = oe(), [T, y] = R(null), g = E(null), w = E(null), H = (s == null ? void 0 : s.id) ?? null;
|
|
30
|
-
ae(() => {
|
|
31
|
-
var t;
|
|
32
|
-
const e = g.current;
|
|
33
|
-
if (e) {
|
|
34
|
-
if (H !== null) {
|
|
35
|
-
const i = Y(e);
|
|
36
|
-
i ? i.scrollTop = 0 : e.getBoundingClientRect().top < 0 && ((t = e.scrollIntoView) == null || t.call(e, { block: "start" }));
|
|
37
|
-
} else if (w.current) {
|
|
38
|
-
const { parent: i, top: O } = w.current;
|
|
39
|
-
w.current = null, i ? i.scrollTop = O : window.scrollTo(0, O);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}, [H]);
|
|
43
|
-
const M = E(s);
|
|
44
|
-
M.current = s;
|
|
45
|
-
const x = L((e) => {
|
|
46
|
-
if (M.current === null) {
|
|
47
|
-
const t = Y(g.current);
|
|
48
|
-
w.current = { parent: t, top: t ? t.scrollTop : window.scrollY };
|
|
49
|
-
}
|
|
50
|
-
b(e);
|
|
51
|
-
}, []), v = ((A = h.data) == null ? void 0 : A.executions) ?? [], q = n.offset, V = ((F = h.data) == null ? void 0 : F.hasMore) ?? !1, K = (e) => {
|
|
52
|
-
m({ ...e, offset: 0 });
|
|
53
|
-
}, W = (e) => {
|
|
54
|
-
if (e.q === u) {
|
|
55
|
-
K(e);
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
a(e.q), p.current && clearTimeout(p.current), p.current = setTimeout(() => {
|
|
59
|
-
p.current = null, m({ ...S.current, q: e.q, offset: 0 });
|
|
60
|
-
}, pe);
|
|
61
|
-
}, $ = () => m({ ...n, q: u, offset: Math.max(0, q - _) }), G = () => m({ ...n, q: u, offset: q + _ }), U = L(
|
|
62
|
-
(e) => {
|
|
63
|
-
const t = v.find((i) => i.id === e);
|
|
64
|
-
t && x(t);
|
|
65
|
-
},
|
|
66
|
-
[v, x]
|
|
67
|
-
), k = (e) => {
|
|
68
|
-
c.mutate(e, {
|
|
69
|
-
onSuccess: (t) => {
|
|
70
|
-
t ? x(t) : b(null);
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
}, P = c.isPending ? ((N = c.variables) == null ? void 0 : N.id) ?? null : null, Z = (e, t) => {
|
|
74
|
-
y(null), D(e, t).then((i) => {
|
|
75
|
-
i ? x(i) : y(`${t} is no longer available.`);
|
|
76
|
-
}).catch(() => y(`Couldn't open ${t}.`));
|
|
77
|
-
}, Q = c.isError ? /* @__PURE__ */ C("p", { className: "error", "data-testid": "history-rerun-error", children: [
|
|
78
|
-
"Couldn't re-run: ",
|
|
79
|
-
c.error instanceof Error ? c.error.message : String(c.error)
|
|
80
|
-
] }) : null, z = {
|
|
81
|
-
status: n.status,
|
|
82
|
-
kind: n.kind,
|
|
83
|
-
from: n.from,
|
|
84
|
-
to: n.to,
|
|
85
|
-
q: u
|
|
86
|
-
}, J = (s == null ? void 0 : s.kind) === "workflow" && d ? () => d(s) : void 0;
|
|
87
|
-
return s ? /* @__PURE__ */ C("div", { ref: g, children: [
|
|
88
|
-
Q,
|
|
89
|
-
T && /* @__PURE__ */ f("p", { className: "error", "data-testid": "history-find-error", children: T }),
|
|
90
|
-
/* @__PURE__ */ f(
|
|
91
|
-
se,
|
|
92
|
-
{
|
|
93
|
-
execution: I.data ?? null,
|
|
94
|
-
loading: I.isLoading,
|
|
95
|
-
errorMessage: I.isError ? "This execution is no longer available." : void 0,
|
|
96
|
-
onBack: () => {
|
|
97
|
-
c.reset(), y(null), b(null);
|
|
98
|
-
},
|
|
99
|
-
onOpenExecution: (e) => Z(s.callableId, e),
|
|
100
|
-
onRerun: () => k(s),
|
|
101
|
-
rerunning: P !== null,
|
|
102
|
-
onOpenInEditor: J
|
|
103
|
-
}
|
|
104
|
-
)
|
|
105
|
-
] }) : /* @__PURE__ */ C(X, { children: [
|
|
106
|
-
/* @__PURE__ */ f(ie, { stats: j.data ?? null }),
|
|
107
|
-
/* @__PURE__ */ f(le, { showKind: l, value: z, onChange: W }),
|
|
108
|
-
h.isError && /* @__PURE__ */ f("p", { className: "error", "data-testid": "history-error", children: "Couldn't load execution history." }),
|
|
109
|
-
Q,
|
|
110
|
-
/* @__PURE__ */ f("div", { ref: g, children: /* @__PURE__ */ f(
|
|
111
|
-
ce,
|
|
112
|
-
{
|
|
113
|
-
items: v,
|
|
114
|
-
showCallable: l,
|
|
115
|
-
loading: h.isLoading,
|
|
116
|
-
hasPrev: q > 0,
|
|
117
|
-
hasNext: V,
|
|
118
|
-
onPrev: $,
|
|
119
|
-
onNext: G,
|
|
120
|
-
onSelect: U,
|
|
121
|
-
onRerun: (e) => {
|
|
122
|
-
const t = v.find((i) => i.id === e);
|
|
123
|
-
t && k(t);
|
|
124
|
-
},
|
|
125
|
-
rerunningId: P
|
|
126
|
-
}
|
|
127
|
-
) })
|
|
128
|
-
] });
|
|
129
|
-
}
|
|
130
|
-
const me = /* @__PURE__ */ new Map();
|
|
131
|
-
function Ee(o) {
|
|
132
|
-
var u;
|
|
133
|
-
const r = ue(), l = (u = r.listAppsByIds) == null ? void 0 : u.bind(r), n = [...o].sort().join(","), d = de({
|
|
134
|
-
queryKey: ["editor-apps", n],
|
|
135
|
-
queryFn: ({ signal: a }) => l ? l(o, { signal: a }) : Promise.resolve([]),
|
|
136
|
-
enabled: o.length > 0 && typeof l == "function"
|
|
137
|
-
}).data;
|
|
138
|
-
return { byId: fe(
|
|
139
|
-
() => d ? new Map(d.map((a) => [a.id, a])) : me,
|
|
140
|
-
[d]
|
|
141
|
-
) };
|
|
142
|
-
}
|
|
143
|
-
function be(o) {
|
|
144
|
-
const { byId: r } = Ee(o ? [o] : []);
|
|
145
|
-
return o ? r.get(o) : void 0;
|
|
146
|
-
}
|
|
147
|
-
export {
|
|
148
|
-
Se as H,
|
|
149
|
-
Ee as a,
|
|
150
|
-
be as u
|
|
151
|
-
};
|
|
152
|
-
//# sourceMappingURL=editor-apps-LZmDWMqf.js.map
|