@marimo-team/islands 0.24.1-dev41 → 0.24.1-dev42
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/{common-DVtMyyCC.js → common-DiHZo6cj.js} +1 -1
- package/dist/main.js +2 -2
- package/dist/{reveal-component-BHpu6-qW.js → reveal-component-UCcAUoNH.js} +1 -1
- package/package.json +1 -1
- package/src/components/chat/acp/agent-panel.tsx +4 -6
- package/src/components/data-table/columns.tsx +130 -132
- package/src/core/codemirror/markdown/commands.ts +1 -1
- package/src/core/codemirror/markdown/completions.ts +15 -17
|
@@ -31807,7 +31807,7 @@ function ZG() {
|
|
|
31807
31807
|
return i.warn("Failed to get version from mount config"), null;
|
|
31808
31808
|
}
|
|
31809
31809
|
}
|
|
31810
|
-
var QG = ZG() || "0.24.1-
|
|
31810
|
+
var QG = ZG() || "0.24.1-dev42", $G = Ti(QG), eK = Ti(!0);
|
|
31811
31811
|
Ti(null);
|
|
31812
31812
|
//#endregion
|
|
31813
31813
|
//#region src/core/meta/code-visibility.ts
|
package/dist/main.js
CHANGED
|
@@ -6,7 +6,7 @@ import { n as x, r as S, t as C } from "./copy-DgAphl4k.js";
|
|
|
6
6
|
import { $ as w, $t as T, A as E, At as D, C as O, Cn as k, Ct as A, D as j, Dn as M, Dt as N, E as P, En as F, Et as I, Ft as L, G as ee, Gn as te, Gt as R, H as ne, Hn as z, Ht as re, I as ie, In as ae, Jn as oe, K as se, Kt as ce, Ln as le, Mn as ue, Nn as de, On as fe, Ot as pe, Pn as me, Pt as he, Q as ge, R as _e, Rn as ve, Rt as ye, Sn as be, St as xe, T as Se, Tt as Ce, U as we, Un as Te, Ut as Ee, V as De, Vn as Oe, Vt as ke, W as Ae, Wn as je, X as Me, Xn as Ne, Y as Pe, Yt as Fe, Z as Ie, Zn as Le, _n as Re, _t as ze, a as Be, an as Ve, at as He, bn as Ue, bt as We, dt as Ge, en as Ke, et as qe, f as Je, gt as Ye, hn as Xe, i as Ze, in as Qe, jn as $e, jt as et, lt as tt, mn as nt, n as rt, nn as it, nt as at, o as ot, p as st, pn as ct, q as lt, qn as ut, rn as dt, rt as ft, s as pt, tn as mt, tt as ht, un as gt, ut as _t, vt, w as yt, xn as bt, xt, yn as St, yt as Ct } from "./html-to-image-DPAZGZSi.js";
|
|
7
7
|
import { o as wt, s as Tt, u as Et } from "./dist-DTSuOdDc.js";
|
|
8
8
|
import { D as Dt, E as Ot, O as kt, S as At, T as jt, _ as Mt, a as Nt, c as Pt, d as Ft, f as It, g as Lt, h as Rt, i as zt, l as Bt, m as Vt, n as Ht, o as Ut, p as Wt, r as Gt, s as Kt, t as qt, u as Jt, v as Yt, w as Xt, x as Zt, y as Qt } from "./spec-6c0_fLYz.js";
|
|
9
|
-
import { $ as $t, $t as en, A as tn, At as nn, B as rn, Bt as an, C as on, Ct as sn, D as cn, Dt as ln, E as un, Et as dn, F as fn, Ft as pn, G as mn, Gt as hn, H as gn, Ht as _n, I as vn, It as yn, J as bn, Jt as xn, K as Sn, Kt as Cn, L as wn, Lt as Tn, M as En, Mt as Dn, N as On, Nt as kn, O as An, P as jn, Pt as Mn, Q as Nn, Qt as Pn, R as Fn, Rt as In, S as Ln, St as Rn, T as zn, Tt as Bn, U as Vn, Ut as Hn, V as Un, Vt as Wn, W as Gn, Wt as Kn, X as qn, Xt as Jn, Y as Yn, Yt as Xn, Z as Zn, Zt as Qn, _ as $n, _t as er, an as tr, b as nr, bt as rr, c as ir, cn as ar, ct as or, d as sr, dn as cr, dt as lr, en as ur, et as dr, f as fr, fn as pr, ft as mr, g as hr, gt as gr, h as _r, ht as vr, i as yr, it as br, j as xr, jt as Sr, k as Cr, ln as wr, lt as Tr, m as Er, mt as Dr, n as Or, nn as kr, nt as Ar, on as jr, p as Mr, pn as Nr, pt as Pr, q as Fr, qt as Ir, r as Lr, rn as Rr, rt as zr, sn as Br, t as Vr, tn as Hr, tt as Ur, u as Wr, un as Gr, ut as Kr, v as qr, vt as Jr, w as Yr, wt as Xr, x as Zr, xt as Qr, y as $r, yt as ei, z as ti, zt as ni } from "./common-
|
|
9
|
+
import { $ as $t, $t as en, A as tn, At as nn, B as rn, Bt as an, C as on, Ct as sn, D as cn, Dt as ln, E as un, Et as dn, F as fn, Ft as pn, G as mn, Gt as hn, H as gn, Ht as _n, I as vn, It as yn, J as bn, Jt as xn, K as Sn, Kt as Cn, L as wn, Lt as Tn, M as En, Mt as Dn, N as On, Nt as kn, O as An, P as jn, Pt as Mn, Q as Nn, Qt as Pn, R as Fn, Rt as In, S as Ln, St as Rn, T as zn, Tt as Bn, U as Vn, Ut as Hn, V as Un, Vt as Wn, W as Gn, Wt as Kn, X as qn, Xt as Jn, Y as Yn, Yt as Xn, Z as Zn, Zt as Qn, _ as $n, _t as er, an as tr, b as nr, bt as rr, c as ir, cn as ar, ct as or, d as sr, dn as cr, dt as lr, en as ur, et as dr, f as fr, fn as pr, ft as mr, g as hr, gt as gr, h as _r, ht as vr, i as yr, it as br, j as xr, jt as Sr, k as Cr, ln as wr, lt as Tr, m as Er, mt as Dr, n as Or, nn as kr, nt as Ar, on as jr, p as Mr, pn as Nr, pt as Pr, q as Fr, qt as Ir, r as Lr, rn as Rr, rt as zr, sn as Br, t as Vr, tn as Hr, tt as Ur, u as Wr, un as Gr, ut as Kr, v as qr, vt as Jr, w as Yr, wt as Xr, x as Zr, xt as Qr, y as $r, yt as ei, z as ti, zt as ni } from "./common-DiHZo6cj.js";
|
|
10
10
|
import { c as ri, i as ii, n as ai, o as oi, t as si } from "./useLifecycle-D-zb2Ha5.js";
|
|
11
11
|
import { t as ci } from "./check-DIJJHY-E.js";
|
|
12
12
|
import { A as li, C as ui, D as di, E as fi, F as pi, I as mi, M as hi, N as gi, P as _i, R as vi, S as yi, a as bi, c as xi, d as Si, i as Ci, j as wi, l as Ti, n as Ei, o as Di, r as Oi, s as ki, t as Ai, u as ji, w as Mi } from "./strings-CoQ5sA4r.js";
|
|
@@ -35263,7 +35263,7 @@ function Gq(e) {
|
|
|
35263
35263
|
}
|
|
35264
35264
|
//#endregion
|
|
35265
35265
|
//#region src/components/editor/renderers/slides-layout/slides-layout.tsx
|
|
35266
|
-
var Kq = q.lazy(() => import("./reveal-component-
|
|
35266
|
+
var Kq = q.lazy(() => import("./reveal-component-UCcAUoNH.js")), qq = (e) => {
|
|
35267
35267
|
let t = (0, Y.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = Nm(A), s = a === "read" || o, c = Nm(qe) > 1, [l, u] = (0, q.useState)(null), d;
|
|
35268
35268
|
t[0] !== i || t[1] !== n ? (d = UU(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
|
|
35269
35269
|
let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
|
|
@@ -4,7 +4,7 @@ import { t as o } from "./react-DMWcHin-.js";
|
|
|
4
4
|
import { t as s } from "./compiler-runtime-CAH9RLw2.js";
|
|
5
5
|
import { Ct as c, ut as l } from "./html-to-image-DPAZGZSi.js";
|
|
6
6
|
import { u } from "./dist-DTSuOdDc.js";
|
|
7
|
-
import { at as d, in as f, l as p, n as m, ot as h, rn as g, sn as _, st as v, t as y, u as b } from "./common-
|
|
7
|
+
import { at as d, in as f, l as p, n as m, ot as h, rn as g, sn as _, st as v, t as y, u as b } from "./common-DiHZo6cj.js";
|
|
8
8
|
import { R as x } from "./strings-CoQ5sA4r.js";
|
|
9
9
|
import { X as S } from "./input-CIaA2N0m.js";
|
|
10
10
|
import { t as C } from "./jsx-runtime-CpoKNRgu.js";
|
package/package.json
CHANGED
|
@@ -334,12 +334,10 @@ const PromptArea = memo<PromptAreaProps>(
|
|
|
334
334
|
// sentence has to begin with '/' to trigger autocomplete
|
|
335
335
|
return {
|
|
336
336
|
triggerCompletionRegex: /^\/(\w+)?/,
|
|
337
|
-
completions: commands.map(
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
}),
|
|
342
|
-
),
|
|
337
|
+
completions: commands.map((prompt): Completion => ({
|
|
338
|
+
label: `/${prompt.name}`,
|
|
339
|
+
info: prompt.description,
|
|
340
|
+
})),
|
|
343
341
|
};
|
|
344
342
|
}, [commands]);
|
|
345
343
|
|
|
@@ -196,150 +196,148 @@ export function generateColumns<T>({
|
|
|
196
196
|
columnKeys.splice(indexColumnIdx, 1);
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
const columns = columnKeys.map(
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
<div
|
|
218
|
-
className={cn(
|
|
219
|
-
"flex flex-row gap-1",
|
|
220
|
-
headerJustify === "center" && "justify-center",
|
|
221
|
-
headerJustify === "right" && "justify-end",
|
|
222
|
-
)}
|
|
223
|
-
>
|
|
224
|
-
<span className="text-xs text-muted-foreground">{dtype}</span>
|
|
225
|
-
{stats && typeof stats.nulls === "number" && stats.nulls > 0 && (
|
|
226
|
-
<span className="text-xs text-muted-foreground">
|
|
227
|
-
(nulls: {stats.nulls})
|
|
228
|
-
</span>
|
|
229
|
-
)}
|
|
230
|
-
</div>
|
|
231
|
-
) : null;
|
|
232
|
-
|
|
233
|
-
const headerName = (
|
|
234
|
-
<span
|
|
199
|
+
const columns = columnKeys.map((key, idx): ColumnDef<T> => ({
|
|
200
|
+
id: key || `${NAMELESS_COLUMN_PREFIX}${idx}`,
|
|
201
|
+
// Use an accessorFn instead of an accessorKey because column names
|
|
202
|
+
// may have periods in them ...
|
|
203
|
+
// https://github.com/TanStack/table/issues/1671
|
|
204
|
+
accessorFn: (row) => {
|
|
205
|
+
return row[key as keyof T];
|
|
206
|
+
},
|
|
207
|
+
enableHiding: !rowHeadersSet.has(key) && key !== "",
|
|
208
|
+
header: ({ column, table }) => {
|
|
209
|
+
const stats = chartSpecModel?.getColumnStats(key);
|
|
210
|
+
const dtype = column.columnDef.meta?.dtype;
|
|
211
|
+
const headerTitle = headerTooltip?.[key];
|
|
212
|
+
const headerJustify = textJustifyColumns?.[key];
|
|
213
|
+
|
|
214
|
+
const dtypeHeader =
|
|
215
|
+
showDataTypes && dtype ? (
|
|
216
|
+
<div
|
|
235
217
|
className={cn(
|
|
236
|
-
"
|
|
237
|
-
|
|
218
|
+
"flex flex-row gap-1",
|
|
219
|
+
headerJustify === "center" && "justify-center",
|
|
220
|
+
headerJustify === "right" && "justify-end",
|
|
238
221
|
)}
|
|
239
222
|
>
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
223
|
+
<span className="text-xs text-muted-foreground">{dtype}</span>
|
|
224
|
+
{stats && typeof stats.nulls === "number" && stats.nulls > 0 && (
|
|
225
|
+
<span className="text-xs text-muted-foreground">
|
|
226
|
+
(nulls: {stats.nulls})
|
|
227
|
+
</span>
|
|
228
|
+
)}
|
|
229
|
+
</div>
|
|
230
|
+
) : null;
|
|
243
231
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
232
|
+
const headerName = (
|
|
233
|
+
<span
|
|
234
|
+
className={cn(
|
|
235
|
+
"font-bold",
|
|
236
|
+
headerTitle && "underline decoration-dotted",
|
|
237
|
+
)}
|
|
238
|
+
>
|
|
239
|
+
{key === "" ? " " : key}
|
|
240
|
+
</span>
|
|
241
|
+
);
|
|
251
242
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
table={table}
|
|
260
|
-
/>
|
|
261
|
-
);
|
|
243
|
+
const headerWithTooltip = headerTitle ? (
|
|
244
|
+
<Tooltip content={headerTitle} delayDuration={300}>
|
|
245
|
+
{headerName}
|
|
246
|
+
</Tooltip>
|
|
247
|
+
) : (
|
|
248
|
+
headerName
|
|
249
|
+
);
|
|
262
250
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
251
|
+
const dataTableColumnHeader = (
|
|
252
|
+
<DataTableColumnHeader
|
|
253
|
+
header={headerWithTooltip}
|
|
254
|
+
subheader={dtypeHeader}
|
|
255
|
+
column={column}
|
|
256
|
+
justify={headerJustify}
|
|
257
|
+
calculateTopKRows={calculateTopKRows}
|
|
258
|
+
table={table}
|
|
259
|
+
/>
|
|
260
|
+
);
|
|
267
261
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
headerJustify === "center" && "items-center",
|
|
273
|
-
headerJustify === "right" && "items-end",
|
|
274
|
-
)}
|
|
275
|
-
>
|
|
276
|
-
{dataTableColumnHeader}
|
|
277
|
-
<TableColumnSummary columnId={key} />
|
|
278
|
-
</div>
|
|
279
|
-
);
|
|
280
|
-
},
|
|
262
|
+
// Row headers have no summaries
|
|
263
|
+
if (rowHeadersSet.has(key)) {
|
|
264
|
+
return dataTableColumnHeader;
|
|
265
|
+
}
|
|
281
266
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
267
|
+
return (
|
|
268
|
+
<div
|
|
269
|
+
className={cn(
|
|
270
|
+
"flex flex-col h-full pt-0.5 pb-3 justify-between items-start",
|
|
271
|
+
headerJustify === "center" && "items-center",
|
|
272
|
+
headerJustify === "right" && "items-end",
|
|
273
|
+
)}
|
|
274
|
+
>
|
|
275
|
+
{dataTableColumnHeader}
|
|
276
|
+
<TableColumnSummary columnId={key} />
|
|
277
|
+
</div>
|
|
278
|
+
);
|
|
279
|
+
},
|
|
287
280
|
|
|
288
|
-
|
|
281
|
+
cell: ({ column, renderValue, getValue, cell }) => {
|
|
282
|
+
function selectCell() {
|
|
283
|
+
if (selection !== "single-cell" && selection !== "multi-cell") {
|
|
284
|
+
return;
|
|
289
285
|
}
|
|
290
286
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
const isCellSelected = cell?.getIsSelected?.() || false;
|
|
294
|
-
const canSelectCell =
|
|
295
|
-
(selection === "single-cell" || selection === "multi-cell") &&
|
|
296
|
-
!isCellSelected;
|
|
297
|
-
|
|
298
|
-
const dataType = column.columnDef.meta?.dataType;
|
|
299
|
-
const isNumeric = isNumericType(dataType);
|
|
300
|
-
const cellStyles = getCellStyleClass({
|
|
301
|
-
justify,
|
|
302
|
-
wrapped,
|
|
303
|
-
canSelectCell,
|
|
304
|
-
isSelected: isCellSelected,
|
|
305
|
-
isNumeric,
|
|
306
|
-
});
|
|
307
|
-
|
|
308
|
-
const renderedCell = renderCellValue({
|
|
309
|
-
column,
|
|
310
|
-
renderValue,
|
|
311
|
-
getValue,
|
|
312
|
-
selectCell,
|
|
313
|
-
cellStyles,
|
|
314
|
-
});
|
|
315
|
-
|
|
316
|
-
// Row headers are bold
|
|
317
|
-
if (rowHeadersSet.has(key)) {
|
|
318
|
-
return <b>{renderedCell}</b>;
|
|
319
|
-
}
|
|
287
|
+
cell.toggleSelected?.();
|
|
288
|
+
}
|
|
320
289
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
290
|
+
const justify = getJustify(key);
|
|
291
|
+
const wrapped = wrappedColumns?.includes(key);
|
|
292
|
+
const isCellSelected = cell?.getIsSelected?.() || false;
|
|
293
|
+
const canSelectCell =
|
|
294
|
+
(selection === "single-cell" || selection === "multi-cell") &&
|
|
295
|
+
!isCellSelected;
|
|
296
|
+
|
|
297
|
+
const dataType = column.columnDef.meta?.dataType;
|
|
298
|
+
const isNumeric = isNumericType(dataType);
|
|
299
|
+
const cellStyles = getCellStyleClass({
|
|
300
|
+
justify,
|
|
301
|
+
wrapped,
|
|
302
|
+
canSelectCell,
|
|
303
|
+
isSelected: isCellSelected,
|
|
304
|
+
isNumeric,
|
|
305
|
+
});
|
|
306
|
+
|
|
307
|
+
const renderedCell = renderCellValue({
|
|
308
|
+
column,
|
|
309
|
+
renderValue,
|
|
310
|
+
getValue,
|
|
311
|
+
selectCell,
|
|
312
|
+
cellStyles,
|
|
313
|
+
});
|
|
314
|
+
|
|
315
|
+
// Row headers are bold
|
|
316
|
+
if (rowHeadersSet.has(key)) {
|
|
317
|
+
return <b>{renderedCell}</b>;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
return renderedCell;
|
|
321
|
+
},
|
|
322
|
+
// Remove any default filtering
|
|
323
|
+
filterFn: undefined,
|
|
324
|
+
// Unnamed index columns and geometry columns are not sortable
|
|
325
|
+
enableSorting: !!key && getMeta(key).dataType !== "geometry",
|
|
326
|
+
meta: {
|
|
327
|
+
...getMeta(key),
|
|
328
|
+
width: columnWidths?.[key],
|
|
329
|
+
},
|
|
330
|
+
// size seeds the width before measurement; minSize/maxSize pin
|
|
331
|
+
// getSize() to the fixed width so the per-paint measurement writeback
|
|
332
|
+
// cannot drift the header width or sticky-pin offsets.
|
|
333
|
+
...(columnWidths?.[key] !== undefined
|
|
334
|
+
? {
|
|
335
|
+
size: columnWidths[key],
|
|
336
|
+
minSize: columnWidths[key],
|
|
337
|
+
maxSize: columnWidths[key],
|
|
338
|
+
}
|
|
339
|
+
: {}),
|
|
340
|
+
}));
|
|
343
341
|
|
|
344
342
|
if (selection === "single" || selection === "multi") {
|
|
345
343
|
columns.unshift({
|
|
@@ -94,23 +94,21 @@ const getLucideIconList = once(async (): Promise<Completion[]> => {
|
|
|
94
94
|
return `https://cdn.jsdelivr.net/npm/lucide-static@0.452.0/icons/${iconName}.svg`;
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
return Object.entries(iconList).map(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}),
|
|
113
|
-
);
|
|
97
|
+
return Object.entries(iconList).map(([iconName, aliases]): Completion => ({
|
|
98
|
+
label: `::${iconName}`,
|
|
99
|
+
displayLabel: iconName,
|
|
100
|
+
type: "lucide-icon",
|
|
101
|
+
boost: 10,
|
|
102
|
+
apply: `::lucide:${iconName}::`,
|
|
103
|
+
detail: aliases.join(", "),
|
|
104
|
+
info: () => {
|
|
105
|
+
const img = document.createElement("img");
|
|
106
|
+
img.src = asSvg(iconName);
|
|
107
|
+
img.style.width = "24px";
|
|
108
|
+
img.style.height = "24px";
|
|
109
|
+
return img;
|
|
110
|
+
},
|
|
111
|
+
}));
|
|
114
112
|
});
|
|
115
113
|
|
|
116
114
|
// Completion provider for LaTeX-style UTF-8 symbols
|