@go-go-golems/rag-evaluation-site 0.1.0 → 0.1.1
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/app/index.js +22 -22
- package/index.js +20 -288
- package/package.json +1 -1
- package/styles.css +1 -1
- package/{useWidgetPage-B8iwybER.js → useWidgetPage-BdA824UK.js} +947 -636
- package/widgets/ir.d.ts +15 -3
package/app/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { At as e, Ct as t, Dt as n, J as r, P as i, W as a, n as o, t as s, vt as c } from "../useWidgetPage-BdA824UK.js";
|
|
2
2
|
//#region src/app/App.tsx
|
|
3
|
-
var l =
|
|
3
|
+
var l = n(), u = [
|
|
4
4
|
{
|
|
5
5
|
id: "index",
|
|
6
6
|
label: "Overview"
|
|
@@ -14,18 +14,18 @@ var l = e(), u = [
|
|
|
14
14
|
label: "Actions"
|
|
15
15
|
}
|
|
16
16
|
];
|
|
17
|
-
function d({ apiBase:
|
|
18
|
-
let
|
|
19
|
-
async function h(
|
|
20
|
-
if (
|
|
21
|
-
t
|
|
17
|
+
function d({ apiBase: n = "/api/widget", defaultPageId: i = "index" }) {
|
|
18
|
+
let a = S(i), o = n.replace(/\/$/, ""), { page: u, loading: d, error: p, refresh: m } = s(`${o}/pages/${encodeURIComponent(a)}`);
|
|
19
|
+
async function h(t, n) {
|
|
20
|
+
if (t.kind !== "server") {
|
|
21
|
+
e(t, n);
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
|
-
let r = await fetch(`${o}/actions/${encodeURIComponent(
|
|
24
|
+
let r = await fetch(`${o}/actions/${encodeURIComponent(t.name)}`, {
|
|
25
25
|
method: "POST",
|
|
26
26
|
headers: { "Content-Type": "application/json" },
|
|
27
27
|
body: JSON.stringify({
|
|
28
|
-
payload:
|
|
28
|
+
payload: t.payload ?? {},
|
|
29
29
|
context: n
|
|
30
30
|
})
|
|
31
31
|
});
|
|
@@ -37,38 +37,38 @@ function d({ apiBase: e = "/api/widget", defaultPageId: n = "index" }) {
|
|
|
37
37
|
className: "rag-evaluation-site-state",
|
|
38
38
|
title: "RAG Evaluation Site",
|
|
39
39
|
density: "condensed",
|
|
40
|
-
children: /* @__PURE__ */ (0, l.jsx)(
|
|
41
|
-
}) : p ? /* @__PURE__ */ (0, l.jsxs)(
|
|
40
|
+
children: /* @__PURE__ */ (0, l.jsx)(t, { children: "Loading Widget IR…" })
|
|
41
|
+
}) : p ? /* @__PURE__ */ (0, l.jsxs)(c, {
|
|
42
42
|
className: "rag-evaluation-site-state",
|
|
43
43
|
children: ["Failed to load Widget IR page: ", p.message]
|
|
44
|
-
}) : u ? f(u,
|
|
44
|
+
}) : u ? f(u, a, (e, t) => {
|
|
45
45
|
h(e, t);
|
|
46
46
|
}) : /* @__PURE__ */ (0, l.jsx)(r, {
|
|
47
47
|
className: "rag-evaluation-site-state",
|
|
48
48
|
title: "RAG Evaluation Site",
|
|
49
49
|
density: "condensed",
|
|
50
|
-
children: /* @__PURE__ */ (0, l.jsx)(
|
|
50
|
+
children: /* @__PURE__ */ (0, l.jsx)(t, { children: "No Widget IR returned." })
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
function f(e, t,
|
|
54
|
-
let
|
|
53
|
+
function f(e, t, n) {
|
|
54
|
+
let r = h(e.meta), s = /* @__PURE__ */ (0, l.jsx)(o, {
|
|
55
55
|
node: e.root,
|
|
56
|
-
onAction:
|
|
57
|
-
}), c = ["rag-evaluation-site-root", p(e,
|
|
58
|
-
if (!p(e,
|
|
56
|
+
onAction: n
|
|
57
|
+
}), c = ["rag-evaluation-site-root", p(e, r) ? "rag-evaluation-site-root--shell" : "rag-evaluation-site-root--raw"].filter(Boolean).join(" ");
|
|
58
|
+
if (!p(e, r)) return /* @__PURE__ */ (0, l.jsx)("div", {
|
|
59
59
|
className: c,
|
|
60
60
|
"data-rag-page": "RagEvaluationSiteApp",
|
|
61
61
|
"data-page-id": e.id,
|
|
62
62
|
"data-rag-shell": "none",
|
|
63
63
|
children: s
|
|
64
64
|
});
|
|
65
|
-
let d =
|
|
65
|
+
let d = r.navItems?.length ? r.navItems : u, f = r.activeNavItemId ?? t;
|
|
66
66
|
return /* @__PURE__ */ (0, l.jsx)("div", {
|
|
67
67
|
className: c,
|
|
68
68
|
"data-rag-page": "RagEvaluationSiteApp",
|
|
69
69
|
"data-page-id": e.id,
|
|
70
70
|
"data-rag-shell": "default",
|
|
71
|
-
children: /* @__PURE__ */ (0, l.jsx)(
|
|
71
|
+
children: /* @__PURE__ */ (0, l.jsx)(a, {
|
|
72
72
|
className: "rag-evaluation-site-shell",
|
|
73
73
|
header: /* @__PURE__ */ (0, l.jsx)(i, {
|
|
74
74
|
brand: /* @__PURE__ */ (0, l.jsx)("span", {
|
|
@@ -83,7 +83,7 @@ function f(e, t, r) {
|
|
|
83
83
|
onItemSelect: (e) => {
|
|
84
84
|
let t = d.find((t) => t.id === e);
|
|
85
85
|
if (t?.action) {
|
|
86
|
-
|
|
86
|
+
n(t.action, {
|
|
87
87
|
value: e,
|
|
88
88
|
componentType: "AppNav"
|
|
89
89
|
});
|
|
@@ -93,7 +93,7 @@ function f(e, t, r) {
|
|
|
93
93
|
}
|
|
94
94
|
}),
|
|
95
95
|
children: /* @__PURE__ */ (0, l.jsx)("div", {
|
|
96
|
-
className: b(
|
|
96
|
+
className: b(r.maxWidth),
|
|
97
97
|
"data-rag-layout": "PageContent",
|
|
98
98
|
children: s
|
|
99
99
|
})
|
package/index.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { $ as e, A as t,
|
|
2
|
-
import { component as
|
|
3
|
-
import { createElement as
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */ (0,
|
|
7
|
-
className: [
|
|
1
|
+
import { $ as e, A as t, At as n, B as r, C as i, Ct as a, D as ee, Dt as te, E as ne, Et as re, F as ie, G as o, H as s, I as c, J as l, K as u, L as d, M as f, N as p, O as m, Ot as h, P as g, Q as _, R as v, S as y, St as b, T as x, Tt as S, U as C, V as w, W as T, X as E, Y as D, Z as O, _ as k, _t as A, a as j, at as M, b as N, bt as P, c as F, ct as I, d as L, dt as R, et as z, f as B, ft as V, g as H, gt as U, h as W, ht as G, i as K, it as q, j as J, k as Y, kt as ae, l as oe, lt as se, m as ce, mt as le, n as ue, nt as de, o as fe, ot as pe, p as me, pt as he, q as ge, r as _e, rt as ve, s as ye, st as be, t as xe, tt as Se, u as Ce, ut as we, v as Te, vt as Ee, w as De, wt as Oe, x as ke, xt as Ae, y as je, yt as Me, z as Ne } from "./useWidgetPage-BdA824UK.js";
|
|
2
|
+
import { component as Pe, element as Fe, isWidgetNode as Ie, text as Le } from "./ir.js";
|
|
3
|
+
import { createElement as X } from "react";
|
|
4
|
+
var Re = { root: "_root_1mahx_1" }, Z = te();
|
|
5
|
+
function ze({ className: e, children: t, ...n }) {
|
|
6
|
+
return /* @__PURE__ */ (0, Z.jsx)("span", {
|
|
7
|
+
className: [Re.root, e ?? ""].filter(Boolean).join(" "),
|
|
8
8
|
...n,
|
|
9
9
|
children: t
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var Be = { root: "_root_1yizk_1" };
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/components/atoms/CheckboxRow/CheckboxRow.tsx
|
|
15
|
-
function
|
|
16
|
-
return /* @__PURE__ */ (0,
|
|
17
|
-
className: [
|
|
15
|
+
function Ve({ checked: e, onChange: t, className: n, children: r, ...i }) {
|
|
16
|
+
return /* @__PURE__ */ (0, Z.jsxs)("label", {
|
|
17
|
+
className: [Be.root, n ?? ""].filter(Boolean).join(" "),
|
|
18
18
|
"data-rag-atom": "CheckboxRow",
|
|
19
19
|
...i,
|
|
20
|
-
children: [/* @__PURE__ */ (0,
|
|
20
|
+
children: [/* @__PURE__ */ (0, Z.jsx)("input", {
|
|
21
21
|
type: "checkbox",
|
|
22
22
|
checked: e,
|
|
23
23
|
onChange: t
|
|
24
24
|
}), r]
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var Q = {
|
|
28
28
|
root: "_root_1otk8_1",
|
|
29
29
|
compact: "_compact_1otk8_26",
|
|
30
30
|
normal: "_normal_1otk8_30"
|
|
31
31
|
};
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/components/atoms/IconButton/IconButton.tsx
|
|
34
|
-
function
|
|
35
|
-
return /* @__PURE__ */ (0,
|
|
34
|
+
function He({ size: e = "compact", label: t, className: n, children: r, ...i }) {
|
|
35
|
+
return /* @__PURE__ */ (0, Z.jsx)("button", {
|
|
36
36
|
type: "button",
|
|
37
37
|
"aria-label": t,
|
|
38
38
|
title: i.title ?? t,
|
|
39
39
|
className: [
|
|
40
|
-
|
|
41
|
-
e === "compact" ?
|
|
40
|
+
Q.root,
|
|
41
|
+
e === "compact" ? Q.compact : Q.normal,
|
|
42
42
|
n ?? ""
|
|
43
43
|
].filter(Boolean).join(" "),
|
|
44
44
|
"data-rag-atom": "IconButton",
|
|
@@ -46,265 +46,12 @@ function Je({ size: e = "compact", label: t, className: n, children: r, ...i })
|
|
|
46
46
|
children: r
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
var G = {
|
|
50
|
-
root: "_root_72kwi_1",
|
|
51
|
-
folder: "_folder_72kwi_8",
|
|
52
|
-
arrow: "_arrow_72kwi_15"
|
|
53
|
-
};
|
|
54
|
-
//#endregion
|
|
55
|
-
//#region src/components/atoms/UploadGlyph/UploadGlyph.tsx
|
|
56
|
-
function K({ title: e = "Upload file", className: t, ...n }) {
|
|
57
|
-
let r = e ? "rag-upload-glyph-title" : void 0;
|
|
58
|
-
return /* @__PURE__ */ (0, U.jsxs)("svg", {
|
|
59
|
-
className: [G.root, t ?? ""].filter(Boolean).join(" "),
|
|
60
|
-
viewBox: "0 0 40 34",
|
|
61
|
-
role: e ? "img" : "presentation",
|
|
62
|
-
"aria-labelledby": r,
|
|
63
|
-
"data-rag-atom": "UploadGlyph",
|
|
64
|
-
...n,
|
|
65
|
-
children: [
|
|
66
|
-
e && /* @__PURE__ */ (0, U.jsx)("title", {
|
|
67
|
-
id: r,
|
|
68
|
-
children: e
|
|
69
|
-
}),
|
|
70
|
-
/* @__PURE__ */ (0, U.jsx)("path", {
|
|
71
|
-
className: G.folder,
|
|
72
|
-
d: "M2 8 L2 32 L38 32 L38 4 L18 4 L14 8 Z"
|
|
73
|
-
}),
|
|
74
|
-
/* @__PURE__ */ (0, U.jsx)("line", {
|
|
75
|
-
className: G.arrow,
|
|
76
|
-
x1: "20",
|
|
77
|
-
y1: "14",
|
|
78
|
-
x2: "20",
|
|
79
|
-
y2: "26"
|
|
80
|
-
}),
|
|
81
|
-
/* @__PURE__ */ (0, U.jsx)("path", {
|
|
82
|
-
className: G.arrow,
|
|
83
|
-
d: "M15 19 L20 14 L25 19"
|
|
84
|
-
})
|
|
85
|
-
]
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
var q = {
|
|
89
|
-
root: "_root_1gd53_1",
|
|
90
|
-
filled: "_filled_1gd53_13"
|
|
91
|
-
};
|
|
92
|
-
//#endregion
|
|
93
|
-
//#region src/components/atoms/ContextStudioNavIcon/ContextStudioNavIcon.tsx
|
|
94
|
-
function J({ id: e, title: t, className: n, ...r }) {
|
|
95
|
-
let i = t ? `rag-context-studio-nav-icon-${e}` : void 0;
|
|
96
|
-
return /* @__PURE__ */ (0, U.jsxs)("svg", {
|
|
97
|
-
className: [q.root, n ?? ""].filter(Boolean).join(" "),
|
|
98
|
-
viewBox: "0 0 15 15",
|
|
99
|
-
role: t ? "img" : "presentation",
|
|
100
|
-
"aria-labelledby": i,
|
|
101
|
-
"data-rag-atom": "ContextStudioNavIcon",
|
|
102
|
-
"data-icon-id": e,
|
|
103
|
-
...r,
|
|
104
|
-
children: [t && /* @__PURE__ */ (0, U.jsx)("title", {
|
|
105
|
-
id: i,
|
|
106
|
-
children: t
|
|
107
|
-
}), Y(e)]
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
function Y(e) {
|
|
111
|
-
switch (e) {
|
|
112
|
-
case "course": return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
|
|
113
|
-
/* @__PURE__ */ (0, U.jsx)("rect", {
|
|
114
|
-
x: "2",
|
|
115
|
-
y: "1.5",
|
|
116
|
-
width: "11",
|
|
117
|
-
height: "12"
|
|
118
|
-
}),
|
|
119
|
-
/* @__PURE__ */ (0, U.jsx)("line", {
|
|
120
|
-
x1: "4.5",
|
|
121
|
-
y1: "5",
|
|
122
|
-
x2: "10.5",
|
|
123
|
-
y2: "5"
|
|
124
|
-
}),
|
|
125
|
-
/* @__PURE__ */ (0, U.jsx)("line", {
|
|
126
|
-
x1: "4.5",
|
|
127
|
-
y1: "8",
|
|
128
|
-
x2: "10.5",
|
|
129
|
-
y2: "8"
|
|
130
|
-
}),
|
|
131
|
-
/* @__PURE__ */ (0, U.jsx)("line", {
|
|
132
|
-
x1: "4.5",
|
|
133
|
-
y1: "11",
|
|
134
|
-
x2: "8",
|
|
135
|
-
y2: "11"
|
|
136
|
-
})
|
|
137
|
-
] });
|
|
138
|
-
case "slides": return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
|
|
139
|
-
/* @__PURE__ */ (0, U.jsx)("rect", {
|
|
140
|
-
x: "1.5",
|
|
141
|
-
y: "2.5",
|
|
142
|
-
width: "12",
|
|
143
|
-
height: "8.5"
|
|
144
|
-
}),
|
|
145
|
-
/* @__PURE__ */ (0, U.jsx)("line", {
|
|
146
|
-
x1: "6",
|
|
147
|
-
y1: "13",
|
|
148
|
-
x2: "9",
|
|
149
|
-
y2: "13"
|
|
150
|
-
}),
|
|
151
|
-
/* @__PURE__ */ (0, U.jsx)("line", {
|
|
152
|
-
x1: "7.5",
|
|
153
|
-
y1: "11",
|
|
154
|
-
x2: "7.5",
|
|
155
|
-
y2: "13"
|
|
156
|
-
})
|
|
157
|
-
] });
|
|
158
|
-
case "visualize": return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
|
|
159
|
-
/* @__PURE__ */ (0, U.jsx)("rect", {
|
|
160
|
-
className: q.filled,
|
|
161
|
-
x: "1.5",
|
|
162
|
-
y: "4",
|
|
163
|
-
width: "3",
|
|
164
|
-
height: "7"
|
|
165
|
-
}),
|
|
166
|
-
/* @__PURE__ */ (0, U.jsx)("rect", {
|
|
167
|
-
x: "5.5",
|
|
168
|
-
y: "2",
|
|
169
|
-
width: "3",
|
|
170
|
-
height: "9"
|
|
171
|
-
}),
|
|
172
|
-
/* @__PURE__ */ (0, U.jsx)("rect", {
|
|
173
|
-
className: q.filled,
|
|
174
|
-
x: "9.5",
|
|
175
|
-
y: "6",
|
|
176
|
-
width: "3",
|
|
177
|
-
height: "5"
|
|
178
|
-
})
|
|
179
|
-
] });
|
|
180
|
-
case "upload": return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
|
|
181
|
-
/* @__PURE__ */ (0, U.jsx)("path", { d: "M2 9 L2 13 L13 13 L13 9" }),
|
|
182
|
-
/* @__PURE__ */ (0, U.jsx)("line", {
|
|
183
|
-
x1: "7.5",
|
|
184
|
-
y1: "2",
|
|
185
|
-
x2: "7.5",
|
|
186
|
-
y2: "9.5"
|
|
187
|
-
}),
|
|
188
|
-
/* @__PURE__ */ (0, U.jsx)("path", { d: "M4.5 5 L7.5 2 L10.5 5" })
|
|
189
|
-
] });
|
|
190
|
-
case "transcript": return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [
|
|
191
|
-
/* @__PURE__ */ (0, U.jsx)("rect", {
|
|
192
|
-
x: "1.5",
|
|
193
|
-
y: "2",
|
|
194
|
-
width: "12",
|
|
195
|
-
height: "11"
|
|
196
|
-
}),
|
|
197
|
-
/* @__PURE__ */ (0, U.jsx)("line", {
|
|
198
|
-
x1: "4",
|
|
199
|
-
y1: "5",
|
|
200
|
-
x2: "11",
|
|
201
|
-
y2: "5"
|
|
202
|
-
}),
|
|
203
|
-
/* @__PURE__ */ (0, U.jsx)("line", {
|
|
204
|
-
x1: "4",
|
|
205
|
-
y1: "7.5",
|
|
206
|
-
x2: "11",
|
|
207
|
-
y2: "7.5"
|
|
208
|
-
}),
|
|
209
|
-
/* @__PURE__ */ (0, U.jsx)("line", {
|
|
210
|
-
x1: "4",
|
|
211
|
-
y1: "10",
|
|
212
|
-
x2: "8",
|
|
213
|
-
y2: "10"
|
|
214
|
-
})
|
|
215
|
-
] });
|
|
216
|
-
case "comments": return /* @__PURE__ */ (0, U.jsx)("path", { d: "M2 2 L13 2 L13 9 L7 9 L4 12 L4 9 L2 9 Z" });
|
|
217
|
-
case "handout": return /* @__PURE__ */ (0, U.jsxs)(U.Fragment, { children: [/* @__PURE__ */ (0, U.jsx)("path", { d: "M3 1.5 L10 1.5 L12.5 4 L12.5 13.5 L3 13.5 Z" }), /* @__PURE__ */ (0, U.jsx)("path", { d: "M10 1.5 L10 4 L12.5 4" })] });
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
var X = {
|
|
221
|
-
root: "_root_zaedc_1",
|
|
222
|
-
input: "_input_zaedc_38",
|
|
223
|
-
icon: "_icon_zaedc_42",
|
|
224
|
-
title: "_title_zaedc_48",
|
|
225
|
-
description: "_description_zaedc_52"
|
|
226
|
-
};
|
|
227
|
-
//#endregion
|
|
228
|
-
//#region src/components/molecules/FileDropZone/FileDropZone.tsx
|
|
229
|
-
function Z(e) {
|
|
230
|
-
return e ? Array.from(e) : [];
|
|
231
|
-
}
|
|
232
|
-
function Q({ title: e = "Drop a file here", description: t = "or choose a file", icon: n, accept: r, multiple: i = !1, disabled: a = !1, active: o = !1, inputAriaLabel: s = "Choose file to upload", onFilesSelected: c, className: l, onDragEnter: u, onDragOver: d, onDragLeave: f, onKeyDown: p, ...m }) {
|
|
233
|
-
let h = He(null), [g, _] = Ue(!1), v = o || g;
|
|
234
|
-
function y() {
|
|
235
|
-
a || h.current?.click();
|
|
236
|
-
}
|
|
237
|
-
function b(e) {
|
|
238
|
-
!a && e.length > 0 && c?.(e);
|
|
239
|
-
}
|
|
240
|
-
function x(e) {
|
|
241
|
-
u?.(e), !(e.defaultPrevented || a) && (e.preventDefault(), _(!0));
|
|
242
|
-
}
|
|
243
|
-
function S(e) {
|
|
244
|
-
d?.(e), !(e.defaultPrevented || a) && (e.preventDefault(), _(!0));
|
|
245
|
-
}
|
|
246
|
-
function C(e) {
|
|
247
|
-
f?.(e), !a && (e.currentTarget.contains(e.relatedTarget) || _(!1));
|
|
248
|
-
}
|
|
249
|
-
function w(e) {
|
|
250
|
-
e.preventDefault(), _(!1), b(Z(e.dataTransfer.files));
|
|
251
|
-
}
|
|
252
|
-
function T(e) {
|
|
253
|
-
p?.(e), !(e.defaultPrevented || a) && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), y());
|
|
254
|
-
}
|
|
255
|
-
return /* @__PURE__ */ (0, U.jsxs)("div", {
|
|
256
|
-
className: [X.root, l ?? ""].filter(Boolean).join(" "),
|
|
257
|
-
role: "button",
|
|
258
|
-
tabIndex: a ? void 0 : 0,
|
|
259
|
-
"aria-disabled": a || void 0,
|
|
260
|
-
"data-active": v ? "true" : void 0,
|
|
261
|
-
"data-disabled": a ? "true" : void 0,
|
|
262
|
-
"data-rag-molecule": "FileDropZone",
|
|
263
|
-
onClick: y,
|
|
264
|
-
onDragEnter: x,
|
|
265
|
-
onDragOver: S,
|
|
266
|
-
onDragLeave: C,
|
|
267
|
-
onDrop: w,
|
|
268
|
-
onKeyDown: T,
|
|
269
|
-
...m,
|
|
270
|
-
children: [
|
|
271
|
-
/* @__PURE__ */ (0, U.jsx)("input", {
|
|
272
|
-
ref: h,
|
|
273
|
-
className: X.input,
|
|
274
|
-
type: "file",
|
|
275
|
-
accept: r,
|
|
276
|
-
multiple: i,
|
|
277
|
-
disabled: a,
|
|
278
|
-
"aria-label": s,
|
|
279
|
-
onChange: (e) => {
|
|
280
|
-
b(Z(e.currentTarget.files)), e.currentTarget.value = "";
|
|
281
|
-
}
|
|
282
|
-
}),
|
|
283
|
-
/* @__PURE__ */ (0, U.jsx)("div", {
|
|
284
|
-
className: X.icon,
|
|
285
|
-
"aria-hidden": "true",
|
|
286
|
-
children: n ?? /* @__PURE__ */ (0, U.jsx)(K, { title: "" })
|
|
287
|
-
}),
|
|
288
|
-
/* @__PURE__ */ (0, U.jsx)(V, {
|
|
289
|
-
as: "div",
|
|
290
|
-
size: "body",
|
|
291
|
-
weight: "bold",
|
|
292
|
-
className: X.title,
|
|
293
|
-
children: e
|
|
294
|
-
}),
|
|
295
|
-
t && /* @__PURE__ */ (0, U.jsx)(H, {
|
|
296
|
-
className: X.description,
|
|
297
|
-
children: t
|
|
298
|
-
})
|
|
299
|
-
]
|
|
300
|
-
});
|
|
301
|
-
}
|
|
302
49
|
//#endregion
|
|
303
50
|
//#region src/components/organisms/CourseStudioShell/courseStudioNav.ts
|
|
304
51
|
function $(e) {
|
|
305
|
-
return
|
|
52
|
+
return X(D, { id: e });
|
|
306
53
|
}
|
|
307
|
-
var
|
|
54
|
+
var Ue = [
|
|
308
55
|
{
|
|
309
56
|
id: "present",
|
|
310
57
|
label: "Present",
|
|
@@ -355,21 +102,6 @@ var Ye = [
|
|
|
355
102
|
}
|
|
356
103
|
];
|
|
357
104
|
//#endregion
|
|
358
|
-
|
|
359
|
-
function Xe({ title: e = "Drop a .json file here", description: t = "or paste below · max 200k tokens", accept: n = "application/json,.json", disabled: r = !1, active: i = !1, onFilesSelected: a, ...o }) {
|
|
360
|
-
return /* @__PURE__ */ (0, U.jsx)(Q, {
|
|
361
|
-
title: e,
|
|
362
|
-
description: t,
|
|
363
|
-
accept: n,
|
|
364
|
-
disabled: r,
|
|
365
|
-
active: i,
|
|
366
|
-
onFilesSelected: a,
|
|
367
|
-
inputAriaLabel: "Choose context-window JSON file",
|
|
368
|
-
"data-rag-organism": "ContextUploadDropArea",
|
|
369
|
-
...o
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
//#endregion
|
|
373
|
-
export { r as AnchoredCommentCard, we as AnchoredCommentRail, xe as AnnotationBadge, Me as AnnotationNoteCard, R as AnnotationRailPanel, h as AppNav, u as AppShell, N as Button, ce as CONTEXT_ACCENT, ve as CONTEXT_INK, Te as CONTEXT_RED, ne as CONTEXT_WINDOW_LIMIT, H as Caption, le as CheckList, qe as CheckboxRow, S as CodeText, t as ContextBudgetBar, pe as ContextDiagramPanel, re as ContextKindSwatch, I as ContextLegend, _ as ContextStackDiagram, L as ContextStripDiagram, J as ContextStudioNavIcon, a as ContextTreemap, Xe as ContextUploadDropArea, _e as CourseLessonPanel, se as CourseSlidePanel, x as CourseStepNav, P as CourseStudioShell, T as DashboardGrid, g as DataTable, ue as Divider, ye as DocumentListPanel, O as DocumentPreviewToolbar, me as ErrorCallout, ae as FigureBlock, Q as FileDropZone, Ie as FormRow, Se as HandoutDocumentShell, Je as IconButton, te as Inline, A as KeyPointList, Ne as KeyValueStrip, B as MarkdownArticle, v as MetadataGrid, p as Panel, Ae as PersonSummary, ee as ScrollRegion, b as SectionBlock, be as SelectInput, M as SidebarNav, c as SidebarShell, d as SlideShell, m as SplitPane, l as Stack, Pe as StatusText, Fe as StepList, n as TabList, V as Text, k as TextInput, o as TranscriptMessageCard, Oe as TranscriptReaderPanel, f as TranscriptRoleBadge, C as TranscriptSessionHeader, de as TranscriptWorkspacePanel, K as UploadGlyph, Ge as VisuallyHidden, he as WidgetRenderer, ie as anchoredCommentFixtures, w as bindAction, Le as component, y as contextCourseFixture, e as contextHandoutFixture, fe as contextKindOrder, D as contextSlides, De as contextWindowFillRatio, ge as contextWindowSnapshots, Ce as contextWindowTokenTotal, Ye as courseStudioNavSections, s as dispatchWidgetAction, Re as element, z as getContextKindLabel, ke as getContextKindSpec, E as isContextPartKind, ze as isWidgetNode, j as renderCell, oe as renderRenderable, je as rowKey, Be as text, F as transcriptFixture, Ee as useWidgetPage };
|
|
105
|
+
export { x as AnchoredCommentCard, F as AnchoredCommentRail, O as AnnotationBadge, ne as AnnotationNoteCard, Ce as AnnotationRailPanel, g as AppNav, T as AppShell, Me as Button, se as CONTEXT_ACCENT, we as CONTEXT_INK, R as CONTEXT_RED, z as CONTEXT_WINDOW_LIMIT, a as Caption, y as CheckList, Ve as CheckboxRow, re as CodeText, f as ContextBudgetBar, B as ContextDiagramPanel, e as ContextKindSwatch, p as ContextLegend, t as ContextStackDiagram, J as ContextStripDiagram, D as ContextStudioNavIcon, Y as ContextTreemap, _e as ContextUploadDropArea, ye as CourseLessonPanel, fe as CourseSlidePanel, De as CourseStepNav, j as CourseStudioShell, o as DashboardGrid, ie as DataTable, Oe as Divider, W as DocumentListPanel, ce as DocumentPreviewToolbar, Ee as ErrorCallout, je as FigureBlock, me as FileDropZone, w as FormRow, K as HandoutDocumentShell, He as IconButton, u as Inline, Te as KeyPointList, i as KeyValueStrip, H as MarkdownArticle, c as MetadataGrid, l as Panel, N as PersonSummary, C as ScrollRegion, r as SectionBlock, A as SelectInput, k as SidebarNav, d as SidebarShell, v as SlideShell, Ne as SplitPane, ge as Stack, S as StatusText, ke as StepList, s as TabList, h as Text, U as TextInput, m as TranscriptMessageCard, L as TranscriptReaderPanel, _ as TranscriptRoleBadge, ee as TranscriptSessionHeader, oe as TranscriptWorkspacePanel, E as UploadGlyph, ze as VisuallyHidden, ue as WidgetRenderer, Se as anchoredCommentFixtures, ae as bindAction, Pe as component, de as contextCourseFixture, ve as contextHandoutFixture, V as contextKindOrder, q as contextSlides, M as contextWindowFillRatio, pe as contextWindowSnapshots, be as contextWindowTokenTotal, Ue as courseStudioNavSections, n as dispatchWidgetAction, Fe as element, he as getContextKindLabel, le as getContextKindSpec, G as isContextPartKind, Ie as isWidgetNode, P as renderCell, Ae as renderRenderable, b as rowKey, Le as text, I as transcriptFixture, xe as useWidgetPage };
|
|
374
106
|
|
|
375
107
|
//# sourceMappingURL=index.js.map
|