@warkypublic/svelix 0.1.40 → 0.1.42
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/components/ContentEditor/subcomponents/TextEditor.svelte +14 -29
- package/dist/components/Gridler/adapters/GridlerResolveSpecAdapter.d.ts +1 -0
- package/dist/components/Gridler/adapters/GridlerResolveSpecAdapter.js +6 -3
- package/dist/components/Gridler/adapters/GridlerRestHeaderSpecAdapter.d.ts +1 -0
- package/dist/components/Gridler/adapters/GridlerRestHeaderSpecAdapter.js +6 -3
- package/dist/components/Gridler/components/Gridler.svelte +3 -3
- package/dist/components/Gridler/components/Gridler.svelte.d.ts +1 -1
- package/dist/components/Gridler/components/GridlerCanvas.svelte +2 -2
- package/dist/components/Gridler/components/GridlerCanvas.svelte.d.ts +1 -1
- package/dist/components/Gridler/components/GridlerFull.svelte +40 -6
- package/dist/components/Gridler/components/GridlerFull.svelte.d.ts +18 -4
- package/dist/components/Gridler/types.d.ts +19 -1
- package/dist/components/SvarkGrid/internal/SvarkGridView.svelte +3 -5
- package/dist/components/Types/generic_grid.d.ts +18 -0
- package/llm/COMPONENT_GUIDE.md +170 -0
- package/package.json +28 -28
|
@@ -147,33 +147,18 @@
|
|
|
147
147
|
|
|
148
148
|
const contentPaddingClass = $derived(hideHeader ? 'p-0' : 'p-4');
|
|
149
149
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
chain: () => {
|
|
153
|
-
focus: () => {
|
|
154
|
-
toggleHeading: (opts: { level: number }) => { run: () => void };
|
|
155
|
-
setParagraph: () => { run: () => void };
|
|
156
|
-
toggleBold: () => { run: () => void };
|
|
157
|
-
toggleItalic: () => { run: () => void };
|
|
158
|
-
toggleUnderline: () => { run: () => void };
|
|
159
|
-
toggleBulletList: () => { run: () => void };
|
|
160
|
-
toggleOrderedList: () => { run: () => void };
|
|
161
|
-
toggleTaskList: () => { run: () => void };
|
|
162
|
-
toggleBlockquote: () => { run: () => void };
|
|
163
|
-
toggleCodeBlock: () => { run: () => void };
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
};
|
|
150
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
151
|
+
function echain(editor: TipexEditor): any { return echain(editor) ?? {}; }
|
|
167
152
|
</script>
|
|
168
153
|
|
|
169
|
-
{#snippet controlComponent(editor:
|
|
154
|
+
{#snippet controlComponent(editor: TipexEditor)}
|
|
170
155
|
<div class="tipex-controller">
|
|
171
156
|
<div class="tipex-basic-controller-wrapper">
|
|
172
157
|
<button
|
|
173
158
|
type="button"
|
|
174
159
|
class="tipex-edit-button tipex-button-extra tipex-button-rigid"
|
|
175
160
|
class:active={editor?.isActive('heading', { level: 1 })}
|
|
176
|
-
onclick={() => editor
|
|
161
|
+
onclick={() => echain(editor).toggleHeading({ level: 1 }).run()}
|
|
177
162
|
aria-label="Heading 1"
|
|
178
163
|
title="Heading 1"
|
|
179
164
|
>
|
|
@@ -183,7 +168,7 @@ type TipexControlEditor = {
|
|
|
183
168
|
type="button"
|
|
184
169
|
class="tipex-edit-button tipex-button-extra tipex-button-rigid"
|
|
185
170
|
class:active={editor?.isActive('heading', { level: 2 })}
|
|
186
|
-
onclick={() => editor
|
|
171
|
+
onclick={() => echain(editor).toggleHeading({ level: 2 }).run()}
|
|
187
172
|
aria-label="Heading 2"
|
|
188
173
|
title="Heading 2"
|
|
189
174
|
>
|
|
@@ -193,7 +178,7 @@ type TipexControlEditor = {
|
|
|
193
178
|
type="button"
|
|
194
179
|
class="tipex-edit-button tipex-button-extra tipex-button-rigid"
|
|
195
180
|
class:active={editor?.isActive('paragraph')}
|
|
196
|
-
onclick={() => editor
|
|
181
|
+
onclick={() => echain(editor).setParagraph().run()}
|
|
197
182
|
aria-label="Paragraph"
|
|
198
183
|
title="Paragraph"
|
|
199
184
|
>
|
|
@@ -206,7 +191,7 @@ type TipexControlEditor = {
|
|
|
206
191
|
type="button"
|
|
207
192
|
class="tipex-edit-button tipex-button-extra tipex-button-rigid"
|
|
208
193
|
class:active={editor?.isActive('bold')}
|
|
209
|
-
onclick={() => editor
|
|
194
|
+
onclick={() => echain(editor).toggleBold().run()}
|
|
210
195
|
aria-label="Bold"
|
|
211
196
|
title="Bold"
|
|
212
197
|
>
|
|
@@ -216,7 +201,7 @@ type TipexControlEditor = {
|
|
|
216
201
|
type="button"
|
|
217
202
|
class="tipex-edit-button tipex-button-extra tipex-button-rigid"
|
|
218
203
|
class:active={editor?.isActive('italic')}
|
|
219
|
-
onclick={() => editor
|
|
204
|
+
onclick={() => echain(editor).toggleItalic().run()}
|
|
220
205
|
aria-label="Italic"
|
|
221
206
|
title="Italic"
|
|
222
207
|
>
|
|
@@ -226,7 +211,7 @@ type TipexControlEditor = {
|
|
|
226
211
|
type="button"
|
|
227
212
|
class="tipex-edit-button tipex-button-extra tipex-button-rigid"
|
|
228
213
|
class:active={editor?.isActive('underline')}
|
|
229
|
-
onclick={() => editor
|
|
214
|
+
onclick={() => echain(editor).toggleUnderline().run()}
|
|
230
215
|
aria-label="Underline"
|
|
231
216
|
title="Underline"
|
|
232
217
|
>
|
|
@@ -239,7 +224,7 @@ type TipexControlEditor = {
|
|
|
239
224
|
type="button"
|
|
240
225
|
class="tipex-edit-button tipex-button-extra tipex-button-rigid"
|
|
241
226
|
class:active={editor?.isActive('bulletList')}
|
|
242
|
-
onclick={() => editor
|
|
227
|
+
onclick={() => echain(editor).toggleBulletList().run()}
|
|
243
228
|
aria-label="Bullet list"
|
|
244
229
|
title="Bullet list"
|
|
245
230
|
>
|
|
@@ -251,7 +236,7 @@ type TipexControlEditor = {
|
|
|
251
236
|
type="button"
|
|
252
237
|
class="tipex-edit-button tipex-button-extra tipex-button-rigid"
|
|
253
238
|
class:active={editor?.isActive('orderedList')}
|
|
254
|
-
onclick={() => editor
|
|
239
|
+
onclick={() => echain(editor).toggleOrderedList().run()}
|
|
255
240
|
aria-label="Ordered list"
|
|
256
241
|
title="Ordered list"
|
|
257
242
|
>
|
|
@@ -263,7 +248,7 @@ type TipexControlEditor = {
|
|
|
263
248
|
type="button"
|
|
264
249
|
class="tipex-edit-button tipex-button-extra tipex-button-rigid"
|
|
265
250
|
class:active={editor?.isActive('taskList')}
|
|
266
|
-
onclick={() => editor
|
|
251
|
+
onclick={() => echain(editor).toggleTaskList().run()}
|
|
267
252
|
aria-label="Task list"
|
|
268
253
|
title="Task list"
|
|
269
254
|
>
|
|
@@ -279,7 +264,7 @@ type TipexControlEditor = {
|
|
|
279
264
|
type="button"
|
|
280
265
|
class="tipex-edit-button tipex-button-extra tipex-button-rigid"
|
|
281
266
|
class:active={editor?.isActive('blockquote')}
|
|
282
|
-
onclick={() => editor
|
|
267
|
+
onclick={() => echain(editor).toggleBlockquote().run()}
|
|
283
268
|
aria-label="Blockquote"
|
|
284
269
|
title="Blockquote"
|
|
285
270
|
>
|
|
@@ -291,7 +276,7 @@ type TipexControlEditor = {
|
|
|
291
276
|
type="button"
|
|
292
277
|
class="tipex-edit-button tipex-button-extra tipex-button-rigid"
|
|
293
278
|
class:active={editor?.isActive('codeBlock')}
|
|
294
|
-
onclick={() => editor
|
|
279
|
+
onclick={() => echain(editor).toggleCodeBlock().run()}
|
|
295
280
|
aria-label="Code block"
|
|
296
281
|
title="Code block"
|
|
297
282
|
>
|
|
@@ -4,6 +4,7 @@ export declare class GridlerResolveSpecAdapter {
|
|
|
4
4
|
private readonly client;
|
|
5
5
|
private readonly schema;
|
|
6
6
|
private readonly entity;
|
|
7
|
+
private readonly configExtraOptions;
|
|
7
8
|
readonly uniqueID: string;
|
|
8
9
|
constructor(config: GridlerAdapterConfig);
|
|
9
10
|
readPage(limit: number, cursorForward?: string, sort?: SortOption[], filters?: FilterOption[], fields?: string[], extraOptions?: Partial<Options>): Promise<GridlerPageResult>;
|
|
@@ -4,18 +4,21 @@ export class GridlerResolveSpecAdapter {
|
|
|
4
4
|
client;
|
|
5
5
|
schema;
|
|
6
6
|
entity;
|
|
7
|
+
configExtraOptions;
|
|
7
8
|
uniqueID;
|
|
8
9
|
constructor(config) {
|
|
9
10
|
this.client = new ResolveSpecClient({ baseUrl: config.url, token: config.token });
|
|
10
11
|
this.schema = config.schema;
|
|
11
12
|
this.entity = config.entity;
|
|
12
13
|
this.uniqueID = config.uniqueID ?? 'id';
|
|
14
|
+
this.configExtraOptions = config.extraOptions ?? {};
|
|
13
15
|
}
|
|
14
16
|
async readPage(limit, cursorForward, sort, filters, fields, extraOptions) {
|
|
17
|
+
const merged = { ...this.configExtraOptions, ...extraOptions };
|
|
15
18
|
const options = {
|
|
16
|
-
...
|
|
17
|
-
sort: sort ??
|
|
18
|
-
filters: filters ??
|
|
19
|
+
...merged,
|
|
20
|
+
sort: sort ?? merged.sort ?? [],
|
|
21
|
+
filters: filters ?? merged.filters ?? [],
|
|
19
22
|
limit,
|
|
20
23
|
...(cursorForward != null ? { cursor_forward: cursorForward } : {}),
|
|
21
24
|
...(fields?.length ? { columns: fields } : {}),
|
|
@@ -4,6 +4,7 @@ export declare class GridlerRestHeaderSpecAdapter {
|
|
|
4
4
|
private readonly client;
|
|
5
5
|
private readonly schema;
|
|
6
6
|
private readonly entity;
|
|
7
|
+
private readonly configExtraOptions;
|
|
7
8
|
readonly uniqueID: string;
|
|
8
9
|
constructor(config: GridlerAdapterConfig);
|
|
9
10
|
readPage(limit: number, cursorForward?: string, sort?: SortOption[], filters?: FilterOption[], fields?: string[], extraOptions?: Partial<Options>): Promise<GridlerPageResult>;
|
|
@@ -4,18 +4,21 @@ export class GridlerRestHeaderSpecAdapter {
|
|
|
4
4
|
client;
|
|
5
5
|
schema;
|
|
6
6
|
entity;
|
|
7
|
+
configExtraOptions;
|
|
7
8
|
uniqueID;
|
|
8
9
|
constructor(config) {
|
|
9
10
|
this.client = new HeaderSpecClient({ baseUrl: config.url, token: config.token });
|
|
10
11
|
this.schema = config.schema;
|
|
11
12
|
this.entity = config.entity;
|
|
12
13
|
this.uniqueID = config.uniqueID ?? 'id';
|
|
14
|
+
this.configExtraOptions = config.extraOptions ?? {};
|
|
13
15
|
}
|
|
14
16
|
async readPage(limit, cursorForward, sort, filters, fields, extraOptions) {
|
|
17
|
+
const merged = { ...this.configExtraOptions, ...extraOptions };
|
|
15
18
|
const options = {
|
|
16
|
-
...
|
|
17
|
-
sort: sort ??
|
|
18
|
-
filters: filters ??
|
|
19
|
+
...merged,
|
|
20
|
+
sort: sort ?? merged.sort ?? [],
|
|
21
|
+
filters: filters ?? merged.filters ?? [],
|
|
19
22
|
limit,
|
|
20
23
|
...(cursorForward != null ? { cursor_forward: cursorForward } : {}),
|
|
21
24
|
...(fields?.length ? { columns: fields } : {}),
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
column?: GridlerColumn;
|
|
29
29
|
}) => void;
|
|
30
30
|
onRowClick?: (row: number) => void;
|
|
31
|
-
onRowContextMenu?: (row: number) => void;
|
|
31
|
+
onRowContextMenu?: (row: number, x: number, y: number) => void;
|
|
32
32
|
/** Resolve raw row data by row index for populating onCellEvent. */
|
|
33
33
|
getRowData?: (row: number) => Record<string, unknown> | undefined;
|
|
34
34
|
children?: Snippet;
|
|
@@ -472,8 +472,8 @@
|
|
|
472
472
|
onCellEvent?.("contextmenu", getRowData?.(item[1]) ?? {}, columns[item[0]] ?? { id: "", title: "" }, { x, y });
|
|
473
473
|
onGridEvent?.("contextmenu", getRowData?.(item[1]) ?? {}, columns[item[0]] ?? { id: "", title: "" }, { x, y });
|
|
474
474
|
}}
|
|
475
|
-
onRowContextMenu={(row) => {
|
|
476
|
-
onRowContextMenu?.(row);
|
|
475
|
+
onRowContextMenu={(row, x, y) => {
|
|
476
|
+
onRowContextMenu?.(row, x, y);
|
|
477
477
|
}}
|
|
478
478
|
onColumnResized={(col, newWidth) => {
|
|
479
479
|
columns[col].width = newWidth;
|
|
@@ -14,7 +14,7 @@ export interface Props extends Partial<GridlerProps> {
|
|
|
14
14
|
column?: GridlerColumn;
|
|
15
15
|
}) => void;
|
|
16
16
|
onRowClick?: (row: number) => void;
|
|
17
|
-
onRowContextMenu?: (row: number) => void;
|
|
17
|
+
onRowContextMenu?: (row: number, x: number, y: number) => void;
|
|
18
18
|
/** Resolve raw row data by row index for populating onCellEvent. */
|
|
19
19
|
getRowData?: (row: number) => Record<string, unknown> | undefined;
|
|
20
20
|
children?: Snippet;
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
onSelectionChange?: (sel: Selection) => void;
|
|
59
59
|
onCellDblClick?: (item: Item, cell: GridlerCell) => void;
|
|
60
60
|
onRowClick?: (row: number) => void;
|
|
61
|
-
onRowContextMenu?: (row: number) => void;
|
|
61
|
+
onRowContextMenu?: (row: number, x: number, y: number) => void;
|
|
62
62
|
onColumnMoved?: (from: number, to: number) => void;
|
|
63
63
|
onCellEdited?: (item: Item, cell: GridlerCell) => void;
|
|
64
64
|
onDelete?: (sel: Selection) => void;
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
const row = getRowFromOffsetY(e.offsetY);
|
|
481
481
|
if (row !== null) {
|
|
482
482
|
e.preventDefault();
|
|
483
|
-
onRowContextMenu?.(row);
|
|
483
|
+
onRowContextMenu?.(row, e.clientX, e.clientY);
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
if (e.offsetX < rowMarkerWidth) return;
|
|
@@ -27,7 +27,7 @@ interface Props {
|
|
|
27
27
|
onSelectionChange?: (sel: Selection) => void;
|
|
28
28
|
onCellDblClick?: (item: Item, cell: GridlerCell) => void;
|
|
29
29
|
onRowClick?: (row: number) => void;
|
|
30
|
-
onRowContextMenu?: (row: number) => void;
|
|
30
|
+
onRowContextMenu?: (row: number, x: number, y: number) => void;
|
|
31
31
|
onColumnMoved?: (from: number, to: number) => void;
|
|
32
32
|
onCellEdited?: (item: Item, cell: GridlerCell) => void;
|
|
33
33
|
onDelete?: (sel: Selection) => void;
|
|
@@ -88,10 +88,12 @@
|
|
|
88
88
|
row: number,
|
|
89
89
|
rowData: Record<string, unknown> | undefined,
|
|
90
90
|
) => void;
|
|
91
|
-
/** Called on row context-menu with the row index
|
|
91
|
+
/** Called on row context-menu with the row index, resolved row data, and click coordinates. */
|
|
92
92
|
onRowContextMenu?: (
|
|
93
93
|
row: number,
|
|
94
94
|
rowData: Record<string, unknown> | undefined,
|
|
95
|
+
x: number,
|
|
96
|
+
y: number,
|
|
95
97
|
) => void;
|
|
96
98
|
|
|
97
99
|
// ── Server-side fetching ──────────────────────────────────────────────────
|
|
@@ -120,13 +122,25 @@
|
|
|
120
122
|
/** Called when a server fetch fails. */
|
|
121
123
|
onLoadError?: (error: string) => void;
|
|
122
124
|
|
|
125
|
+
/**
|
|
126
|
+
* Bindable. Reflects the server-reported total row count.
|
|
127
|
+
* Updated after every successful page fetch; 0 until the first response.
|
|
128
|
+
* Read-only from the parent — do not write this value.
|
|
129
|
+
*/
|
|
130
|
+
total?: number;
|
|
131
|
+
/**
|
|
132
|
+
* Bindable. `true` while any server fetch is in flight (initial load or next-page).
|
|
133
|
+
* Read-only from the parent — do not write this value.
|
|
134
|
+
*/
|
|
135
|
+
loading?: boolean;
|
|
136
|
+
|
|
123
137
|
/**
|
|
124
138
|
* Extra items appended to the built-in context menu (Refresh, Clear Search, Clear Filters, Clear Sort).
|
|
125
139
|
* Pass a separator item `{ id: 'sep', kind: 'separator', label: '' }` to group your items.
|
|
126
140
|
*/
|
|
127
141
|
menuItems?: GridlerContextMenuItem[];
|
|
128
142
|
/** Called when any context menu item is selected (built-in or custom). */
|
|
129
|
-
onMenuItemSelect?: (item: GridlerContextMenuItem) => void;
|
|
143
|
+
onMenuItemSelect?: (item: GridlerContextMenuItem, rowData?: Record<string, unknown>) => void;
|
|
130
144
|
|
|
131
145
|
children?: Snippet;
|
|
132
146
|
}
|
|
@@ -150,6 +164,8 @@
|
|
|
150
164
|
serverSideSearch = false,
|
|
151
165
|
searchColumns,
|
|
152
166
|
onLoadError,
|
|
167
|
+
total = $bindable(0),
|
|
168
|
+
loading = $bindable(false),
|
|
153
169
|
// GridCommonProps filters/sort (generic types)
|
|
154
170
|
filters,
|
|
155
171
|
onFilterChange,
|
|
@@ -285,6 +301,7 @@
|
|
|
285
301
|
// ── Context menu ───────────────────────────────────────────────────────────
|
|
286
302
|
|
|
287
303
|
let refreshTrigger = $state(0);
|
|
304
|
+
let contextMenuRowData = $state<Record<string, unknown> | undefined>(undefined);
|
|
288
305
|
let menu = $state<{
|
|
289
306
|
show: (
|
|
290
307
|
id: string,
|
|
@@ -347,8 +364,8 @@
|
|
|
347
364
|
label: item.label,
|
|
348
365
|
icon: item.icon,
|
|
349
366
|
onClick: () => {
|
|
350
|
-
item.onselect?.();
|
|
351
|
-
onMenuItemSelect?.(item);
|
|
367
|
+
item.onselect?.(contextMenuRowData);
|
|
368
|
+
onMenuItemSelect?.(item, contextMenuRowData);
|
|
352
369
|
},
|
|
353
370
|
});
|
|
354
371
|
}
|
|
@@ -523,6 +540,9 @@
|
|
|
523
540
|
let serverFetchVersion = 0;
|
|
524
541
|
let serverLoading = $state(false);
|
|
525
542
|
let serverAllLoaded = $state(false);
|
|
543
|
+
|
|
544
|
+
$effect(() => { total = serverTotal; });
|
|
545
|
+
$effect(() => { loading = serverLoading; });
|
|
526
546
|
let serverError = $state<string | null>(null);
|
|
527
547
|
|
|
528
548
|
type Adapter = GridlerResolveSpecAdapter | GridlerRestHeaderSpecAdapter;
|
|
@@ -535,6 +555,7 @@
|
|
|
535
555
|
schema: resolvedSchema,
|
|
536
556
|
entity: resolvedEntity,
|
|
537
557
|
uniqueID: resolvedUniqueID,
|
|
558
|
+
extraOptions: dataSourceOptions?.extraOptions,
|
|
538
559
|
};
|
|
539
560
|
return dataSource === "headerspec"
|
|
540
561
|
? new GridlerRestHeaderSpecAdapter(config)
|
|
@@ -703,8 +724,10 @@
|
|
|
703
724
|
onRowClick?.(row, resolveRowData(row));
|
|
704
725
|
}
|
|
705
726
|
|
|
706
|
-
function handleRowContextMenu(row: number) {
|
|
707
|
-
|
|
727
|
+
function handleRowContextMenu(row: number, x: number, y: number) {
|
|
728
|
+
contextMenuRowData = resolveRowData(row);
|
|
729
|
+
menu?.show("gridler-menu", { x, y, items: buildMenuItems() });
|
|
730
|
+
onRowContextMenu?.(row, contextMenuRowData, x, y);
|
|
708
731
|
}
|
|
709
732
|
|
|
710
733
|
// ── Selection → selectedItems bridge ──────────────────────────────────────
|
|
@@ -794,6 +817,7 @@
|
|
|
794
817
|
item?: Record<string, unknown>;
|
|
795
818
|
column?: GridlerColumn;
|
|
796
819
|
}) {
|
|
820
|
+
contextMenuRowData = undefined;
|
|
797
821
|
if (onMenuClick) {
|
|
798
822
|
await onMenuClick(
|
|
799
823
|
d?.item,
|
|
@@ -805,6 +829,16 @@
|
|
|
805
829
|
if (!d) return;
|
|
806
830
|
menu?.show("gridler-menu", { x: d.x, y: d.y, items: buildMenuItems() });
|
|
807
831
|
}
|
|
832
|
+
|
|
833
|
+
// ── Public API ────────────────────────────────────────────────────────────
|
|
834
|
+
|
|
835
|
+
export function getSelectedRows(): Record<string, unknown>[] {
|
|
836
|
+
return internalSelectedItems;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
export function getLoadedData(): Record<string, unknown>[] {
|
|
840
|
+
return isServerMode ? serverData : filteredDataState;
|
|
841
|
+
}
|
|
808
842
|
</script>
|
|
809
843
|
|
|
810
844
|
<BetterMenu bind:this={menu}>
|
|
@@ -30,8 +30,8 @@ export interface Props extends Omit<Partial<GridlerProps>, "columns" | "rows" |
|
|
|
30
30
|
onRowDblClick?: (row: number, rowData: Record<string, unknown> | undefined) => void;
|
|
31
31
|
/** Called on row click with the row index and resolved row data. */
|
|
32
32
|
onRowClick?: (row: number, rowData: Record<string, unknown> | undefined) => void;
|
|
33
|
-
/** Called on row context-menu with the row index
|
|
34
|
-
onRowContextMenu?: (row: number, rowData: Record<string, unknown> | undefined) => void;
|
|
33
|
+
/** Called on row context-menu with the row index, resolved row data, and click coordinates. */
|
|
34
|
+
onRowContextMenu?: (row: number, rowData: Record<string, unknown> | undefined, x: number, y: number) => void;
|
|
35
35
|
/** Rows per cursor-forward page. Defaults to 200. */
|
|
36
36
|
pageSize?: number;
|
|
37
37
|
/**
|
|
@@ -52,15 +52,29 @@ export interface Props extends Omit<Partial<GridlerProps>, "columns" | "rows" |
|
|
|
52
52
|
searchColumns?: string[];
|
|
53
53
|
/** Called when a server fetch fails. */
|
|
54
54
|
onLoadError?: (error: string) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Bindable. Reflects the server-reported total row count.
|
|
57
|
+
* Updated after every successful page fetch; 0 until the first response.
|
|
58
|
+
* Read-only from the parent — do not write this value.
|
|
59
|
+
*/
|
|
60
|
+
total?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Bindable. `true` while any server fetch is in flight (initial load or next-page).
|
|
63
|
+
* Read-only from the parent — do not write this value.
|
|
64
|
+
*/
|
|
65
|
+
loading?: boolean;
|
|
55
66
|
/**
|
|
56
67
|
* Extra items appended to the built-in context menu (Refresh, Clear Search, Clear Filters, Clear Sort).
|
|
57
68
|
* Pass a separator item `{ id: 'sep', kind: 'separator', label: '' }` to group your items.
|
|
58
69
|
*/
|
|
59
70
|
menuItems?: GridlerContextMenuItem[];
|
|
60
71
|
/** Called when any context menu item is selected (built-in or custom). */
|
|
61
|
-
onMenuItemSelect?: (item: GridlerContextMenuItem) => void;
|
|
72
|
+
onMenuItemSelect?: (item: GridlerContextMenuItem, rowData?: Record<string, unknown>) => void;
|
|
62
73
|
children?: Snippet;
|
|
63
74
|
}
|
|
64
|
-
declare const GridlerFull: import("svelte").Component<Props, {
|
|
75
|
+
declare const GridlerFull: import("svelte").Component<Props, {
|
|
76
|
+
getSelectedRows: () => Record<string, unknown>[];
|
|
77
|
+
getLoadedData: () => Record<string, unknown>[];
|
|
78
|
+
}, "loading" | "total">;
|
|
65
79
|
type GridlerFull = ReturnType<typeof GridlerFull>;
|
|
66
80
|
export default GridlerFull;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { GridColumn, GridCommonProps, GridColumnSortOrder, GridColumnFilters } from '../Types/generic_grid';
|
|
2
|
+
import type { Options } from '@warkypublic/resolvespec-js';
|
|
2
3
|
export type { GridColumnSortOrder, GridColumnFilters };
|
|
3
4
|
export type Item = [col: number, row: number];
|
|
4
5
|
export interface GridlerAdapterConfig {
|
|
@@ -8,6 +9,23 @@ export interface GridlerAdapterConfig {
|
|
|
8
9
|
entity: string;
|
|
9
10
|
/** Row field whose value is passed as cursor_forward on subsequent requests. Defaults to 'id'. */
|
|
10
11
|
uniqueID?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Default ResolveSpec options applied to every request. Grid-controlled sort, filters, limit,
|
|
14
|
+
* cursor, and columns always take precedence over values set here.
|
|
15
|
+
*
|
|
16
|
+
* Key fields:
|
|
17
|
+
* - `preload` — eager-load relations. Each entry specifies `relation`, optional `columns`,
|
|
18
|
+
* `filters`, `sort`, `limit`, `recursive`, `sql_joins`, etc.
|
|
19
|
+
* - `omit_columns` — columns to exclude from the response.
|
|
20
|
+
* - `computedColumns` — server-side computed expressions: `{ name, expression }`.
|
|
21
|
+
* - `customOperators` — raw SQL WHERE fragments (AND-combined): `{ name, sql }`.
|
|
22
|
+
* - `parameters` — named query parameters passed to the server: `{ name, value, sequence? }`.
|
|
23
|
+
* - `filters` — default server-side filters applied before any grid filters.
|
|
24
|
+
* - `sort` — default sort order, overridden when the user sorts a column.
|
|
25
|
+
* - `fetch_row_number` — column name whose row number is returned in metadata.
|
|
26
|
+
* - `offset` — static row offset (cursor pagination is used by the adapter; avoid mixing).
|
|
27
|
+
*/
|
|
28
|
+
extraOptions?: Partial<Options>;
|
|
11
29
|
}
|
|
12
30
|
export interface GridlerPageResult {
|
|
13
31
|
data: Record<string, unknown>[];
|
|
@@ -155,7 +173,7 @@ export interface GridlerContextMenuItem {
|
|
|
155
173
|
icon?: string;
|
|
156
174
|
/** Use 'separator' to render a divider line. */
|
|
157
175
|
kind?: 'item' | 'separator';
|
|
158
|
-
onselect?: () => void;
|
|
176
|
+
onselect?: (rowData?: Record<string, unknown>) => void;
|
|
159
177
|
}
|
|
160
178
|
export declare const DEFAULT_THEME: GridlerTheme;
|
|
161
179
|
export declare const DEFAULT_THEME_DARK: GridlerTheme;
|
|
@@ -376,12 +376,10 @@
|
|
|
376
376
|
contextMenuY = ev.clientY;
|
|
377
377
|
|
|
378
378
|
const ctxRowId = (resolved?.id ?? selectedIds[0] ?? null) as string | number | null;
|
|
379
|
-
const ctxRow =
|
|
380
|
-
|
|
381
|
-
(ctxRowId != null
|
|
379
|
+
const ctxRow: Record<string, unknown> | null =
|
|
380
|
+
ctxRowId != null
|
|
382
381
|
? data.find((item) => String(item?.[uniqueID]) === String(ctxRowId)) ?? null
|
|
383
|
-
: null
|
|
384
|
-
null;
|
|
382
|
+
: null;
|
|
385
383
|
|
|
386
384
|
contextMenuRowId = ctxRowId;
|
|
387
385
|
contextMenuRow = ctxRow;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Options as ResolveSpecOptions } from '@warkypublic/resolvespec-js';
|
|
1
2
|
export type GridColumnFormat = "text" | "number" | "currency" | "percentage" | "date" | "datetime" | "markdown" | "image" | "uri" | "bubble" | "drilldown";
|
|
2
3
|
/**
|
|
3
4
|
* GridEventType represents the various events that can occur on the grid level, such as clicking, hovering, loading, scrolling, resizing, and changes to sorting, filtering, searching, selection, column arrangement, data, and settings. These events can be used to trigger callbacks for handling user interactions and updates to the grid.
|
|
@@ -72,6 +73,23 @@ export interface GridCommonProps<RowDataType = unknown, CellType = unknown> {
|
|
|
72
73
|
uniqueID?: string;
|
|
73
74
|
headers?: Record<string, string>;
|
|
74
75
|
hotfields?: string[];
|
|
76
|
+
/**
|
|
77
|
+
* Default ResolveSpec options sent with every request. Grid-controlled sort, filters, limit,
|
|
78
|
+
* cursor, and columns always take precedence over values set here.
|
|
79
|
+
*
|
|
80
|
+
* Key fields:
|
|
81
|
+
* - `preload` — eager-load relations. Each entry specifies `relation`, optional `columns`,
|
|
82
|
+
* `filters`, `sort`, `limit`, `recursive`, `sql_joins`, etc.
|
|
83
|
+
* - `omit_columns` — columns to exclude from the response.
|
|
84
|
+
* - `computedColumns` — server-side computed expressions: `{ name, expression }`.
|
|
85
|
+
* - `customOperators` — raw SQL WHERE fragments (AND-combined): `{ name, sql }`.
|
|
86
|
+
* - `parameters` — named query parameters passed to the server: `{ name, value, sequence? }`.
|
|
87
|
+
* - `filters` — default server-side filters applied before any grid filters.
|
|
88
|
+
* - `sort` — default sort order, overridden when the user sorts a column.
|
|
89
|
+
* - `fetch_row_number` — column name whose row number is returned in metadata.
|
|
90
|
+
* - `offset` — static row offset (cursor pagination is used by the adapter; avoid mixing).
|
|
91
|
+
*/
|
|
92
|
+
extraOptions?: Partial<ResolveSpecOptions>;
|
|
75
93
|
};
|
|
76
94
|
data?: RowDataType[] | (() => Promise<RowDataType[]>);
|
|
77
95
|
onDataChange?: (data: RowDataType[]) => Promise<void>;
|
package/llm/COMPONENT_GUIDE.md
CHANGED
|
@@ -478,6 +478,176 @@ Story behavior worth preserving:
|
|
|
478
478
|
- search highlighting and fixed columns are first-class usage patterns
|
|
479
479
|
- theme overrides are an expected integration point, not a niche feature
|
|
480
480
|
|
|
481
|
+
### GridlerFull: server-driven Gridler with adapters
|
|
482
|
+
|
|
483
|
+
`GridlerFull` wraps `Gridler` and handles paging, sorting, filtering, and search against a
|
|
484
|
+
ResolveSpec or HeaderSpec API. Configure via `dataSource` + `dataSourceOptions`.
|
|
485
|
+
|
|
486
|
+
```svelte
|
|
487
|
+
<script lang="ts">
|
|
488
|
+
import { GridlerFull } from '@warkypublic/svelix';
|
|
489
|
+
import type { GridlerColumn } from '@warkypublic/svelix';
|
|
490
|
+
|
|
491
|
+
const columns: GridlerColumn[] = [
|
|
492
|
+
{ id: 'id', title: 'ID', width: 60 },
|
|
493
|
+
{ id: 'name', title: 'Name', width: 180 },
|
|
494
|
+
{ id: 'email', title: 'Email', width: 220 },
|
|
495
|
+
];
|
|
496
|
+
</script>
|
|
497
|
+
|
|
498
|
+
<GridlerFull
|
|
499
|
+
{columns}
|
|
500
|
+
dataSource="resolvespec"
|
|
501
|
+
dataSourceOptions={{
|
|
502
|
+
url: 'https://api.example.com',
|
|
503
|
+
authToken: 'Bearer …',
|
|
504
|
+
schema: 'public',
|
|
505
|
+
entity: 'users',
|
|
506
|
+
uniqueID: 'id',
|
|
507
|
+
hotfields: ['role'],
|
|
508
|
+
extraOptions: {
|
|
509
|
+
preload: [
|
|
510
|
+
{
|
|
511
|
+
relation: 'department',
|
|
512
|
+
columns: ['id', 'name'],
|
|
513
|
+
},
|
|
514
|
+
],
|
|
515
|
+
filters: [{ column: 'active', operator: 'eq', value: true }],
|
|
516
|
+
sort: [{ column: 'created_at', direction: 'desc' }],
|
|
517
|
+
computedColumns: [{ name: 'full_name', expression: "first_name || ' ' || last_name" }],
|
|
518
|
+
customOperators: [{ name: 'tenant', sql: "tenant_id = '123'" }],
|
|
519
|
+
parameters: [{ name: 'p_role', value: 'admin' }],
|
|
520
|
+
},
|
|
521
|
+
}}
|
|
522
|
+
height={480}
|
|
523
|
+
pageSize={50}
|
|
524
|
+
/>
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
#### `dataSource` values
|
|
528
|
+
|
|
529
|
+
| Value | Adapter class | Transport |
|
|
530
|
+
|----------------|----------------------------------|--------------------|
|
|
531
|
+
| `resolvespec` | `GridlerResolveSpecAdapter` | JSON request body |
|
|
532
|
+
| `headerspec` | `GridlerRestHeaderSpecAdapter` | HTTP headers |
|
|
533
|
+
|
|
534
|
+
#### `dataSourceOptions.extraOptions` — all fields
|
|
535
|
+
|
|
536
|
+
These are `Partial<Options>` from `@warkypublic/resolvespec-js`. Grid-controlled values
|
|
537
|
+
(sort, filters, limit, cursor, columns) always win over anything set here.
|
|
538
|
+
|
|
539
|
+
| Field | Type | Purpose |
|
|
540
|
+
|-------------------|-----------------------|------------------------------------------------------------------|
|
|
541
|
+
| `preload` | `PreloadOption[]` | Eager-load related entities. See `PreloadOption` fields below. |
|
|
542
|
+
| `omit_columns` | `string[]` | Exclude these columns from every response. |
|
|
543
|
+
| `computedColumns` | `ComputedColumn[]` | Server-side SQL expressions: `{ name, expression }`. |
|
|
544
|
+
| `customOperators` | `CustomOperator[]` | Raw SQL WHERE fragments (AND-combined): `{ name, sql }`. |
|
|
545
|
+
| `parameters` | `Parameter[]` | Named query params: `{ name, value, sequence? }`. |
|
|
546
|
+
| `filters` | `FilterOption[]` | Default filters prepended before any grid column filters. |
|
|
547
|
+
| `sort` | `SortOption[]` | Default sort, overridden when the user clicks a column header. |
|
|
548
|
+
| `fetch_row_number`| `string` | Column whose absolute row number is returned in metadata. |
|
|
549
|
+
| `offset` | `number` | Static row offset — avoid mixing with cursor pagination. |
|
|
550
|
+
|
|
551
|
+
##### `PreloadOption` key fields
|
|
552
|
+
|
|
553
|
+
| Field | Purpose |
|
|
554
|
+
|----------------------|------------------------------------------------------|
|
|
555
|
+
| `relation` | Relation name (required). |
|
|
556
|
+
| `table_name` | Override the table resolved from the relation. |
|
|
557
|
+
| `columns` | Columns to select on the related table. |
|
|
558
|
+
| `omit_columns` | Columns to exclude on the related table. |
|
|
559
|
+
| `filters` | Filters applied to the related table. |
|
|
560
|
+
| `sort` | Sort order for the related rows. |
|
|
561
|
+
| `limit` | Max related rows per parent row. |
|
|
562
|
+
| `recursive` | Self-referential recursive load. |
|
|
563
|
+
| `primary_key` | Override primary key used for the join. |
|
|
564
|
+
| `related_key` | Foreign key on the related table. |
|
|
565
|
+
| `foreign_key` | Foreign key on the parent table. |
|
|
566
|
+
| `recursive_child_key`| Key used for the recursive child join. |
|
|
567
|
+
| `sql_joins` | Raw SQL JOIN clauses. |
|
|
568
|
+
| `join_aliases` | Aliases for the SQL joins. |
|
|
569
|
+
| `computed_ql` | Map of computed column name → SQL expression. |
|
|
570
|
+
| `where` | Raw SQL WHERE fragment for the relation. |
|
|
571
|
+
| `updatable` | Marks the preloaded relation as updatable. |
|
|
572
|
+
|
|
573
|
+
#### Bindable state props
|
|
574
|
+
|
|
575
|
+
| Prop | Type | Description |
|
|
576
|
+
|-----------|-----------|-----------------------------------------------------------------------------|
|
|
577
|
+
| `total` | `number` | Server-reported total row count. Updated after every successful page fetch. |
|
|
578
|
+
| `loading` | `boolean` | `true` while any fetch is in flight (initial load or next-page append). |
|
|
579
|
+
|
|
580
|
+
Both are read-only from the parent's perspective — bind them to a variable, do not pass a value in:
|
|
581
|
+
|
|
582
|
+
```svelte
|
|
583
|
+
<script lang="ts">
|
|
584
|
+
let total = $state(0);
|
|
585
|
+
let loading = $state(false);
|
|
586
|
+
</script>
|
|
587
|
+
|
|
588
|
+
<GridlerFull bind:total bind:loading {columns} dataSource="resolvespec" {dataSourceOptions} />
|
|
589
|
+
|
|
590
|
+
{#if loading}<span>Loading…</span>{/if}
|
|
591
|
+
<span>{total} rows</span>
|
|
592
|
+
```
|
|
593
|
+
|
|
594
|
+
#### Row/cell callbacks (GridlerFull enriches with row data)
|
|
595
|
+
|
|
596
|
+
| Callback | Signature | Notes |
|
|
597
|
+
|---|---|---|
|
|
598
|
+
| `onCellDblClick` | `(item: Item, cell: GridlerCell, rowData?)` | Double-click on a cell. |
|
|
599
|
+
| `onRowDblClick` | `(row: number, rowData?)` | Double-click on a row (fires alongside `onCellDblClick`). |
|
|
600
|
+
| `onRowClick` | `(row: number, rowData?)` | Single click on a body row. |
|
|
601
|
+
| `onRowContextMenu` | `(row: number, rowData?, x: number, y: number)` | Right-click on a body row. `x`/`y` are viewport pixel coordinates. |
|
|
602
|
+
| `onDataChange` | `(data: Record<string, unknown>[]) => Promise<void>` | Fires after an inline cell edit mutates local `dataState`. Server mode: not called. |
|
|
603
|
+
| `onColumnsChange` | `(columns: GridlerColumn[]) => void` | Fires when `manageColumns` reorders columns. |
|
|
604
|
+
| `onSearchValueChange` | `(value: string) => void` | Fires on every search input change. |
|
|
605
|
+
| `onLoadError` | `(error: string) => void` | Fires on any adapter fetch failure. |
|
|
606
|
+
| `onMenuItemSelect` | `(item: GridlerContextMenuItem, rowData?) => void` | Fires for both built-in and custom context menu items. |
|
|
607
|
+
|
|
608
|
+
`rowData` is `Record<string, unknown> | undefined` — it maps to the loaded row object for the clicked row index, or `undefined` if the row has not been loaded yet.
|
|
609
|
+
|
|
610
|
+
#### Context menu customisation
|
|
611
|
+
|
|
612
|
+
```svelte
|
|
613
|
+
<GridlerFull
|
|
614
|
+
{columns}
|
|
615
|
+
menuItems={[
|
|
616
|
+
{ id: 'edit', label: 'Edit', icon: 'pencil' },
|
|
617
|
+
{ id: 'sep', kind: 'separator', label: '' },
|
|
618
|
+
{ id: 'delete', label: 'Delete', icon: 'trash', onselect: (row) => handleDelete(row) },
|
|
619
|
+
]}
|
|
620
|
+
onMenuItemSelect={(item, rowData) => console.log(item.id, rowData)}
|
|
621
|
+
/>
|
|
622
|
+
```
|
|
623
|
+
|
|
624
|
+
Built-in items (Refresh, Clear Search, Clear Filters, Clear Sort) appear first; custom `menuItems` are appended after a divider.
|
|
625
|
+
|
|
626
|
+
#### Public methods
|
|
627
|
+
|
|
628
|
+
| Method | Returns | Description |
|
|
629
|
+
|---|---|---|
|
|
630
|
+
| `getSelectedRows()` | `Record<string, unknown>[]` | Currently selected row objects. |
|
|
631
|
+
| `getLoadedData()` | `Record<string, unknown>[]` | All rows in the current data set (filtered local data or full server page buffer). |
|
|
632
|
+
|
|
633
|
+
```svelte
|
|
634
|
+
<script lang="ts">
|
|
635
|
+
import { GridlerFull } from '@warkypublic/svelix';
|
|
636
|
+
|
|
637
|
+
let grid: ReturnType<typeof GridlerFull>;
|
|
638
|
+
</script>
|
|
639
|
+
|
|
640
|
+
<GridlerFull bind:this={grid} {columns} {dataSourceOptions} />
|
|
641
|
+
|
|
642
|
+
<button onclick={() => console.log(grid.getSelectedRows())}>Log selection</button>
|
|
643
|
+
```
|
|
644
|
+
|
|
645
|
+
Key behaviors:
|
|
646
|
+
- `extraOptions` is stored on the adapter at construction time; changing `dataSourceOptions` recreates the adapter and triggers a full refetch.
|
|
647
|
+
- Call-time `extraOptions` passed directly to `readPage` override the config-level defaults; specific params (sort, filters, limit, cursor, columns) override both.
|
|
648
|
+
- `hotfields` are fetched alongside column fields but not rendered — use them for fields needed by filters or computed logic.
|
|
649
|
+
- Use `headerspec` when the API endpoint only accepts query options via HTTP headers instead of a JSON body.
|
|
650
|
+
|
|
481
651
|
### SvarkGrid: adapter-backed tabular data
|
|
482
652
|
|
|
483
653
|
Based on:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warkypublic/svelix",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.42",
|
|
4
4
|
"description": "Svelte 5 component library with Skeleton UI and Tailwind CSS",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"exports": {
|
|
@@ -26,43 +26,43 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@changesets/cli": "^2.31.0",
|
|
29
|
-
"@chromatic-com/storybook": "^5.1
|
|
30
|
-
"@eslint/compat": "^2.0
|
|
29
|
+
"@chromatic-com/storybook": "^5.2.1",
|
|
30
|
+
"@eslint/compat": "^2.1.0",
|
|
31
31
|
"@eslint/js": "^10.0.1",
|
|
32
|
-
"@playwright/test": "^1.
|
|
33
|
-
"@sentry/svelte": "^10.
|
|
32
|
+
"@playwright/test": "^1.60.0",
|
|
33
|
+
"@sentry/svelte": "^10.53.1",
|
|
34
34
|
"@skeletonlabs/skeleton": "^4.15.2",
|
|
35
35
|
"@skeletonlabs/skeleton-svelte": "^4.15.2",
|
|
36
|
-
"@storybook/addon-a11y": "^10.
|
|
37
|
-
"@storybook/addon-docs": "^10.
|
|
36
|
+
"@storybook/addon-a11y": "^10.4.0",
|
|
37
|
+
"@storybook/addon-docs": "^10.4.0",
|
|
38
38
|
"@storybook/addon-svelte-csf": "^5.1.2",
|
|
39
|
-
"@storybook/addon-vitest": "^10.
|
|
40
|
-
"@storybook/sveltekit": "^10.
|
|
39
|
+
"@storybook/addon-vitest": "^10.4.0",
|
|
40
|
+
"@storybook/sveltekit": "^10.4.0",
|
|
41
41
|
"@storybook/test": "^8.6.15",
|
|
42
42
|
"@sveltejs/adapter-auto": "^7.0.1",
|
|
43
|
-
"@sveltejs/kit": "^2.
|
|
43
|
+
"@sveltejs/kit": "^2.60.1",
|
|
44
44
|
"@sveltejs/package": "^2.5.7",
|
|
45
|
-
"@sveltejs/vite-plugin-svelte": "^7.
|
|
46
|
-
"@tailwindcss/vite": "^4.
|
|
45
|
+
"@sveltejs/vite-plugin-svelte": "^7.1.2",
|
|
46
|
+
"@tailwindcss/vite": "^4.3.0",
|
|
47
47
|
"@tanstack/svelte-virtual": "^3.13.24",
|
|
48
|
-
"@types/node": "^25.
|
|
49
|
-
"@vitest/browser-playwright": "^4.1.
|
|
50
|
-
"@vitest/coverage-v8": "^4.1.
|
|
51
|
-
"eslint": "^10.
|
|
48
|
+
"@types/node": "^25.8.0",
|
|
49
|
+
"@vitest/browser-playwright": "^4.1.6",
|
|
50
|
+
"@vitest/coverage-v8": "^4.1.6",
|
|
51
|
+
"eslint": "^10.4.0",
|
|
52
52
|
"eslint-plugin-svelte": "^3.17.1",
|
|
53
|
-
"globals": "^17.
|
|
54
|
-
"playwright": "^1.
|
|
55
|
-
"publint": "^0.3.
|
|
56
|
-
"storybook": "^10.
|
|
57
|
-
"svelte": "^5.55.
|
|
58
|
-
"svelte-check": "^4.4.
|
|
59
|
-
"tailwindcss": "^4.
|
|
53
|
+
"globals": "^17.6.0",
|
|
54
|
+
"playwright": "^1.60.0",
|
|
55
|
+
"publint": "^0.3.21",
|
|
56
|
+
"storybook": "^10.4.0",
|
|
57
|
+
"svelte": "^5.55.7",
|
|
58
|
+
"svelte-check": "^4.4.8",
|
|
59
|
+
"tailwindcss": "^4.3.0",
|
|
60
60
|
"tslib": "^2.8.1",
|
|
61
61
|
"typescript": "^6.0.3",
|
|
62
|
-
"typescript-eslint": "^8.59.
|
|
63
|
-
"vite": "^8.0.
|
|
62
|
+
"typescript-eslint": "^8.59.3",
|
|
63
|
+
"vite": "^8.0.13",
|
|
64
64
|
"vite-plugin-monaco-editor": "^1.1.0",
|
|
65
|
-
"vitest": "^4.1.
|
|
65
|
+
"vitest": "^4.1.6"
|
|
66
66
|
},
|
|
67
67
|
"svelte": "./dist/index.js",
|
|
68
68
|
"types": "./dist/index.d.ts",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"@warkypublic/artemis-kit": "^1.0.10",
|
|
82
82
|
"carta-md": "^4.11.2",
|
|
83
83
|
"github-markdown-css": "^5.9.0",
|
|
84
|
-
"isomorphic-dompurify": "^3.
|
|
85
|
-
"katex": "^0.16.
|
|
84
|
+
"isomorphic-dompurify": "^3.13.0",
|
|
85
|
+
"katex": "^0.16.47",
|
|
86
86
|
"monaco-editor": "^0.55.1"
|
|
87
87
|
},
|
|
88
88
|
"scripts": {
|