@placeholderco/placeholder-ui 3.2.9 → 3.3.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/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/layout/ResizeHandle.svelte +393 -0
- package/dist/layout/ResizeHandle.svelte.d.ts +37 -0
- package/package.json +19 -19
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,8 @@ export { default as AppShell } from './layout/AppShell.svelte';
|
|
|
60
60
|
export type { AppShellProps } from './layout/AppShell.svelte';
|
|
61
61
|
export { default as Sidenav } from './layout/Sidenav.svelte';
|
|
62
62
|
export type { SidenavItem, SidenavItemAction, SidenavSection, SidenavProps } from './layout/Sidenav.svelte';
|
|
63
|
+
export { default as ResizeHandle } from './layout/ResizeHandle.svelte';
|
|
64
|
+
export type { ResizeHandleProps, ResizeHandleOrientation, ResizeHandleSide } from './layout/ResizeHandle.svelte';
|
|
63
65
|
export { default as Paper } from './display/Paper.svelte';
|
|
64
66
|
export type { PaperProps } from './display/Paper.svelte';
|
|
65
67
|
export { default as Avatar } from './display/Avatar.svelte';
|
package/dist/index.js
CHANGED
|
@@ -29,6 +29,7 @@ export { default as NavbarItemView } from './layout/NavbarItemView.svelte';
|
|
|
29
29
|
export { default as CustomNavbar } from './layout/CustomNavbar.svelte';
|
|
30
30
|
export { default as AppShell } from './layout/AppShell.svelte';
|
|
31
31
|
export { default as Sidenav } from './layout/Sidenav.svelte';
|
|
32
|
+
export { default as ResizeHandle } from './layout/ResizeHandle.svelte';
|
|
32
33
|
export { default as Paper } from './display/Paper.svelte';
|
|
33
34
|
export { default as Avatar } from './display/Avatar.svelte';
|
|
34
35
|
export { default as Autocomplete } from './form/Autocomplete.svelte';
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
let panelCount = 0;
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script lang="ts">
|
|
6
|
+
import { tick, untrack } from 'svelte';
|
|
7
|
+
|
|
8
|
+
export type ResizeHandleOrientation = 'vertical' | 'horizontal';
|
|
9
|
+
export type ResizeHandleSide = 'start' | 'end';
|
|
10
|
+
|
|
11
|
+
export interface ResizeHandleProps {
|
|
12
|
+
/** Panel size in px, or null to leave it to the layout (bindable) */
|
|
13
|
+
size?: number | null;
|
|
14
|
+
/** The element the handle resizes; measured, never styled (given an id if it has none) */
|
|
15
|
+
panel: HTMLElement | undefined;
|
|
16
|
+
/** Whether the panel is before ('start') or after ('end') the handle */
|
|
17
|
+
side?: ResizeHandleSide;
|
|
18
|
+
/** 'vertical' between columns (sets width) or 'horizontal' between rows (sets height) */
|
|
19
|
+
orientation?: ResizeHandleOrientation;
|
|
20
|
+
/** Minimum size (px) */
|
|
21
|
+
min?: number;
|
|
22
|
+
/** Maximum size (px); without one, the panel's container is the limit */
|
|
23
|
+
max?: number;
|
|
24
|
+
/** Size restored by double-click or Enter */
|
|
25
|
+
defaultSize?: number | null;
|
|
26
|
+
/** Distance per arrow key press (px); Shift moves four times as far */
|
|
27
|
+
step?: number;
|
|
28
|
+
/** Thickness of the grab area */
|
|
29
|
+
thickness?: string;
|
|
30
|
+
/** Accessible name for the handle */
|
|
31
|
+
ariaLabel: string;
|
|
32
|
+
/** Native tooltip text */
|
|
33
|
+
title?: string;
|
|
34
|
+
/** Disable dragging and keyboard resizing */
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/** Callback on every size change, including each frame of a drag */
|
|
37
|
+
onresize?: (size: number | null) => void;
|
|
38
|
+
/** Callback once a drag, key press or reset settles the size */
|
|
39
|
+
onresizeend?: (size: number | null) => void;
|
|
40
|
+
/** Additional CSS classes */
|
|
41
|
+
class?: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
let {
|
|
45
|
+
size = $bindable(null),
|
|
46
|
+
panel,
|
|
47
|
+
side = 'start',
|
|
48
|
+
orientation = 'vertical',
|
|
49
|
+
min = 0,
|
|
50
|
+
max = Infinity,
|
|
51
|
+
defaultSize = null,
|
|
52
|
+
step = 16,
|
|
53
|
+
thickness = '1rem',
|
|
54
|
+
ariaLabel,
|
|
55
|
+
title,
|
|
56
|
+
disabled = false,
|
|
57
|
+
onresize,
|
|
58
|
+
onresizeend,
|
|
59
|
+
class: className = ''
|
|
60
|
+
}: ResizeHandleProps = $props();
|
|
61
|
+
|
|
62
|
+
const vertical = $derived(orientation === 'vertical');
|
|
63
|
+
|
|
64
|
+
let handle: HTMLDivElement;
|
|
65
|
+
/** The panel's size as drawn, which a layout may hold below `size`. */
|
|
66
|
+
let drawn = $state(0);
|
|
67
|
+
/** The panel's container along the drag axis: the accessible maximum when `max` sets none. */
|
|
68
|
+
let room = $state(0);
|
|
69
|
+
let panelId = $state('');
|
|
70
|
+
let dragging = $state(false);
|
|
71
|
+
/** The one pointer driving the drag; any other (a second finger) is ignored. */
|
|
72
|
+
let activePointer: number | null = null;
|
|
73
|
+
let downAt = 0;
|
|
74
|
+
let moved = false;
|
|
75
|
+
/** The pointer's offset from the panel's edge when the drag began, so the edge doesn't jump. */
|
|
76
|
+
let grab = 0;
|
|
77
|
+
let pointer = 0;
|
|
78
|
+
let startSize: number | null = null;
|
|
79
|
+
let frame = 0;
|
|
80
|
+
|
|
81
|
+
const limit = $derived(Number.isFinite(max) ? max : Math.max(min, room));
|
|
82
|
+
|
|
83
|
+
$effect(() => {
|
|
84
|
+
const element = panel;
|
|
85
|
+
const alongX = vertical;
|
|
86
|
+
if (!element) return;
|
|
87
|
+
const container = element.parentElement;
|
|
88
|
+
|
|
89
|
+
const observer = new ResizeObserver(() => {
|
|
90
|
+
drawn = lengthOf(element, alongX);
|
|
91
|
+
if (container) room = lengthOf(container, alongX);
|
|
92
|
+
});
|
|
93
|
+
observer.observe(element);
|
|
94
|
+
if (container) observer.observe(container);
|
|
95
|
+
return () => observer.disconnect();
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
// aria-controls needs the panel's id; give it one only if it has none.
|
|
99
|
+
$effect(() => {
|
|
100
|
+
const element = panel;
|
|
101
|
+
if (!element) return;
|
|
102
|
+
if (element.id) {
|
|
103
|
+
panelId = element.id;
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
const id = `pui-resize-panel-${++panelCount}`;
|
|
108
|
+
element.id = id;
|
|
109
|
+
panelId = id;
|
|
110
|
+
return () => {
|
|
111
|
+
if (element.id === id) element.removeAttribute('id');
|
|
112
|
+
};
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
// The page-wide cursor, and iframes made transparent to the pointer so they can't take the drag.
|
|
116
|
+
$effect(() => {
|
|
117
|
+
if (!dragging) return;
|
|
118
|
+
const root = document.documentElement;
|
|
119
|
+
const resizing = vertical ? 'pui-resizing-x' : 'pui-resizing-y';
|
|
120
|
+
root.classList.add(resizing);
|
|
121
|
+
return () => root.classList.remove(resizing);
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
$effect(() => {
|
|
125
|
+
if (disabled && dragging) untrack(() => void endDrag(false));
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
$effect(() => () => cancelAnimationFrame(frame));
|
|
129
|
+
|
|
130
|
+
function clamp(px: number): number {
|
|
131
|
+
return Math.round(Math.min(max, Math.max(min, px)));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function lengthOf(element: Element, alongX: boolean): number {
|
|
135
|
+
const rect = element.getBoundingClientRect();
|
|
136
|
+
return alongX ? rect.width : rect.height;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function coordinate(event: PointerEvent): number {
|
|
140
|
+
return vertical ? event.clientX : event.clientY;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/** Where the panel starts and ends along the drag axis. */
|
|
144
|
+
function extent(element: HTMLElement): [number, number] {
|
|
145
|
+
const rect = element.getBoundingClientRect();
|
|
146
|
+
return vertical ? [rect.left, rect.right] : [rect.top, rect.bottom];
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function sizeAt(element: HTMLElement, position: number): number {
|
|
150
|
+
const [start, end] = extent(element);
|
|
151
|
+
const edge = position - grab;
|
|
152
|
+
return side === 'start' ? edge - start : end - edge;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
function resetSize(): number | null {
|
|
156
|
+
return defaultSize === null ? null : clamp(defaultSize);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
function update(next: number | null) {
|
|
160
|
+
if (next === size) return;
|
|
161
|
+
size = next;
|
|
162
|
+
onresize?.(next);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/** Applies a size, then reports the one drawn: a layout can hold the panel below what was asked. */
|
|
166
|
+
async function commit(next: number | null) {
|
|
167
|
+
update(next);
|
|
168
|
+
if (next === null) {
|
|
169
|
+
onresizeend?.(null);
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
await tick();
|
|
174
|
+
const settled = panel ? clamp(lengthOf(panel, vertical)) : next;
|
|
175
|
+
update(settled);
|
|
176
|
+
onresizeend?.(settled);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function isActive(event: PointerEvent): boolean {
|
|
180
|
+
return dragging && event.pointerId === activePointer;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function handlePointerDown(event: PointerEvent) {
|
|
184
|
+
if (disabled || dragging || !panel || event.button !== 0) return;
|
|
185
|
+
event.preventDefault();
|
|
186
|
+
handle.focus();
|
|
187
|
+
handle.setPointerCapture(event.pointerId);
|
|
188
|
+
|
|
189
|
+
const [start, end] = extent(panel);
|
|
190
|
+
activePointer = event.pointerId;
|
|
191
|
+
pointer = downAt = coordinate(event);
|
|
192
|
+
grab = pointer - (side === 'start' ? end : start);
|
|
193
|
+
startSize = size;
|
|
194
|
+
moved = false;
|
|
195
|
+
dragging = true;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
function handlePointerMove(event: PointerEvent) {
|
|
199
|
+
if (!isActive(event)) return;
|
|
200
|
+
pointer = coordinate(event);
|
|
201
|
+
moved ||= pointer !== downAt;
|
|
202
|
+
frame ||= requestAnimationFrame(() => {
|
|
203
|
+
frame = 0;
|
|
204
|
+
if (dragging && !disabled && panel) update(clamp(sizeAt(panel, pointer)));
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
function handlePointerEnd(event: PointerEvent) {
|
|
209
|
+
if (isActive(event)) void endDrag(true);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
async function endDrag(keep: boolean) {
|
|
213
|
+
if (!dragging) return;
|
|
214
|
+
dragging = false;
|
|
215
|
+
cancelAnimationFrame(frame);
|
|
216
|
+
frame = 0;
|
|
217
|
+
|
|
218
|
+
const id = activePointer;
|
|
219
|
+
activePointer = null;
|
|
220
|
+
if (id !== null && handle?.hasPointerCapture(id)) handle.releasePointerCapture(id);
|
|
221
|
+
|
|
222
|
+
if (!keep) {
|
|
223
|
+
update(startSize);
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
if (moved && panel) await commit(clamp(sizeAt(panel, pointer)));
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function handleKeydown(event: KeyboardEvent) {
|
|
230
|
+
if (disabled) return;
|
|
231
|
+
|
|
232
|
+
if (event.key === 'Escape') {
|
|
233
|
+
if (dragging) {
|
|
234
|
+
event.preventDefault();
|
|
235
|
+
void endDrag(false);
|
|
236
|
+
}
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
if (dragging) return;
|
|
240
|
+
|
|
241
|
+
// The keys move the handle, so a panel after it grows as the handle moves back.
|
|
242
|
+
const grow = side === 'start' ? 1 : -1;
|
|
243
|
+
const distance = (event.shiftKey ? step * 4 : step) * grow;
|
|
244
|
+
const current = panel ? lengthOf(panel, vertical) : drawn;
|
|
245
|
+
const back = vertical ? 'ArrowLeft' : 'ArrowUp';
|
|
246
|
+
const forward = vertical ? 'ArrowRight' : 'ArrowDown';
|
|
247
|
+
let next: number | null;
|
|
248
|
+
|
|
249
|
+
if (event.key === back) next = clamp(current - distance);
|
|
250
|
+
else if (event.key === forward) next = clamp(current + distance);
|
|
251
|
+
else if (event.key === 'Home') next = clamp(min);
|
|
252
|
+
else if (event.key === 'End') next = clamp(limit);
|
|
253
|
+
else if (event.key === 'Enter') next = resetSize();
|
|
254
|
+
else return;
|
|
255
|
+
|
|
256
|
+
event.preventDefault();
|
|
257
|
+
void commit(next);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
function handleDoubleClick() {
|
|
261
|
+
if (!disabled && !dragging) void commit(resetSize());
|
|
262
|
+
}
|
|
263
|
+
</script>
|
|
264
|
+
|
|
265
|
+
<!-- A focusable separator is a widget (the WAI-ARIA window splitter); Svelte's rules see a static role. -->
|
|
266
|
+
<!-- svelte-ignore a11y_no_noninteractive_tabindex -->
|
|
267
|
+
<!-- svelte-ignore a11y_no_noninteractive_element_interactions -->
|
|
268
|
+
<div
|
|
269
|
+
bind:this={handle}
|
|
270
|
+
class="pui-resize-handle {className}"
|
|
271
|
+
class:horizontal={!vertical}
|
|
272
|
+
class:dragging
|
|
273
|
+
class:disabled
|
|
274
|
+
style="--resize-handle-thickness: {thickness};"
|
|
275
|
+
role="separator"
|
|
276
|
+
aria-orientation={orientation}
|
|
277
|
+
aria-label={ariaLabel}
|
|
278
|
+
aria-controls={panelId || undefined}
|
|
279
|
+
aria-valuenow={Math.round(drawn)}
|
|
280
|
+
aria-valuemin={Math.round(min)}
|
|
281
|
+
aria-valuemax={Math.round(limit)}
|
|
282
|
+
aria-disabled={disabled || undefined}
|
|
283
|
+
tabindex={disabled ? -1 : 0}
|
|
284
|
+
{title}
|
|
285
|
+
onpointerdown={handlePointerDown}
|
|
286
|
+
onpointermove={handlePointerMove}
|
|
287
|
+
onpointerup={handlePointerEnd}
|
|
288
|
+
onpointercancel={handlePointerEnd}
|
|
289
|
+
onlostpointercapture={handlePointerEnd}
|
|
290
|
+
ondblclick={handleDoubleClick}
|
|
291
|
+
onkeydown={handleKeydown}
|
|
292
|
+
>
|
|
293
|
+
<span class="grip"></span>
|
|
294
|
+
</div>
|
|
295
|
+
|
|
296
|
+
<style>
|
|
297
|
+
/* A flex or grid item between the panels; it stretches to their length. */
|
|
298
|
+
.pui-resize-handle {
|
|
299
|
+
position: relative;
|
|
300
|
+
display: flex;
|
|
301
|
+
flex-direction: column;
|
|
302
|
+
align-items: center;
|
|
303
|
+
justify-content: center;
|
|
304
|
+
flex-shrink: 0;
|
|
305
|
+
align-self: stretch;
|
|
306
|
+
width: var(--resize-handle-thickness);
|
|
307
|
+
cursor: col-resize;
|
|
308
|
+
touch-action: none;
|
|
309
|
+
border-radius: var(--ui-radius-sm);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.pui-resize-handle.horizontal {
|
|
313
|
+
flex-direction: row;
|
|
314
|
+
width: auto;
|
|
315
|
+
height: var(--resize-handle-thickness);
|
|
316
|
+
cursor: row-resize;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* The line the panel's edge follows. */
|
|
320
|
+
.pui-resize-handle::before {
|
|
321
|
+
content: '';
|
|
322
|
+
position: absolute;
|
|
323
|
+
top: 0;
|
|
324
|
+
bottom: 0;
|
|
325
|
+
left: calc(50% - 1px);
|
|
326
|
+
width: 2px;
|
|
327
|
+
border-radius: 999px;
|
|
328
|
+
transition: background-color 0.15s ease;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.pui-resize-handle.horizontal::before {
|
|
332
|
+
top: calc(50% - 1px);
|
|
333
|
+
bottom: auto;
|
|
334
|
+
left: 0;
|
|
335
|
+
right: 0;
|
|
336
|
+
width: auto;
|
|
337
|
+
height: 2px;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/* Sticky, so it stays in view beside a panel taller than the window. */
|
|
341
|
+
.grip {
|
|
342
|
+
position: sticky;
|
|
343
|
+
top: 1rem;
|
|
344
|
+
bottom: 1rem;
|
|
345
|
+
width: 0.25rem;
|
|
346
|
+
height: 2.5rem;
|
|
347
|
+
border-radius: 999px;
|
|
348
|
+
background-color: var(--placeholder-color);
|
|
349
|
+
transition: background-color 0.15s ease;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.horizontal .grip {
|
|
353
|
+
position: static;
|
|
354
|
+
width: 2.5rem;
|
|
355
|
+
height: 0.25rem;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.pui-resize-handle:not(.disabled):hover::before,
|
|
359
|
+
.pui-resize-handle:focus-visible::before,
|
|
360
|
+
.pui-resize-handle.dragging::before,
|
|
361
|
+
.pui-resize-handle:not(.disabled):hover .grip,
|
|
362
|
+
.pui-resize-handle:focus-visible .grip,
|
|
363
|
+
.pui-resize-handle.dragging .grip {
|
|
364
|
+
background-color: var(--ui-accent);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.pui-resize-handle:focus-visible {
|
|
368
|
+
outline: 2px solid var(--ui-focus-color);
|
|
369
|
+
outline-offset: -2px;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.pui-resize-handle.disabled {
|
|
373
|
+
cursor: default;
|
|
374
|
+
opacity: 0.5;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
:global(html.pui-resizing-x),
|
|
378
|
+
:global(html.pui-resizing-x *) {
|
|
379
|
+
cursor: col-resize !important;
|
|
380
|
+
user-select: none;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
:global(html.pui-resizing-y),
|
|
384
|
+
:global(html.pui-resizing-y *) {
|
|
385
|
+
cursor: row-resize !important;
|
|
386
|
+
user-select: none;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
:global(html.pui-resizing-x iframe),
|
|
390
|
+
:global(html.pui-resizing-y iframe) {
|
|
391
|
+
pointer-events: none;
|
|
392
|
+
}
|
|
393
|
+
</style>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type ResizeHandleOrientation = 'vertical' | 'horizontal';
|
|
2
|
+
export type ResizeHandleSide = 'start' | 'end';
|
|
3
|
+
export interface ResizeHandleProps {
|
|
4
|
+
/** Panel size in px, or null to leave it to the layout (bindable) */
|
|
5
|
+
size?: number | null;
|
|
6
|
+
/** The element the handle resizes; measured, never styled (given an id if it has none) */
|
|
7
|
+
panel: HTMLElement | undefined;
|
|
8
|
+
/** Whether the panel is before ('start') or after ('end') the handle */
|
|
9
|
+
side?: ResizeHandleSide;
|
|
10
|
+
/** 'vertical' between columns (sets width) or 'horizontal' between rows (sets height) */
|
|
11
|
+
orientation?: ResizeHandleOrientation;
|
|
12
|
+
/** Minimum size (px) */
|
|
13
|
+
min?: number;
|
|
14
|
+
/** Maximum size (px); without one, the panel's container is the limit */
|
|
15
|
+
max?: number;
|
|
16
|
+
/** Size restored by double-click or Enter */
|
|
17
|
+
defaultSize?: number | null;
|
|
18
|
+
/** Distance per arrow key press (px); Shift moves four times as far */
|
|
19
|
+
step?: number;
|
|
20
|
+
/** Thickness of the grab area */
|
|
21
|
+
thickness?: string;
|
|
22
|
+
/** Accessible name for the handle */
|
|
23
|
+
ariaLabel: string;
|
|
24
|
+
/** Native tooltip text */
|
|
25
|
+
title?: string;
|
|
26
|
+
/** Disable dragging and keyboard resizing */
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/** Callback on every size change, including each frame of a drag */
|
|
29
|
+
onresize?: (size: number | null) => void;
|
|
30
|
+
/** Callback once a drag, key press or reset settles the size */
|
|
31
|
+
onresizeend?: (size: number | null) => void;
|
|
32
|
+
/** Additional CSS classes */
|
|
33
|
+
class?: string;
|
|
34
|
+
}
|
|
35
|
+
declare const ResizeHandle: import("svelte").Component<ResizeHandleProps, {}, "size">;
|
|
36
|
+
type ResizeHandle = ReturnType<typeof ResizeHandle>;
|
|
37
|
+
export default ResizeHandle;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@placeholderco/placeholder-ui",
|
|
3
|
-
"version": "3.2
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"description": "A modern, customizable Svelte 5 UI component library with comprehensive theming support. Re-brand it with a single config object.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Placeholderco",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"svelte": "^5.57.3",
|
|
83
83
|
"svelte-check": "^4.7.8",
|
|
84
84
|
"typescript": "^6.0.3",
|
|
85
|
-
"vite": "^8.3.
|
|
85
|
+
"vite": "^8.3.7"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"@codemirror/autocomplete": "^6.20.4",
|
|
@@ -101,23 +101,23 @@
|
|
|
101
101
|
"@codemirror/theme-one-dark": "^6.1.3",
|
|
102
102
|
"@codemirror/view": "^6.43.15",
|
|
103
103
|
"@lezer/highlight": "^1.2.5",
|
|
104
|
-
"@tiptap/core": "^3.
|
|
105
|
-
"@tiptap/extension-bubble-menu": "^3.
|
|
106
|
-
"@tiptap/extension-code-block": "^3.
|
|
107
|
-
"@tiptap/extension-collaboration": "^3.
|
|
108
|
-
"@tiptap/extension-collaboration-caret": "^3.
|
|
109
|
-
"@tiptap/extension-color": "^3.
|
|
110
|
-
"@tiptap/extension-image": "^3.
|
|
111
|
-
"@tiptap/extension-link": "^3.
|
|
112
|
-
"@tiptap/extension-placeholder": "^3.
|
|
113
|
-
"@tiptap/extension-subscript": "^3.
|
|
114
|
-
"@tiptap/extension-superscript": "^3.
|
|
115
|
-
"@tiptap/extension-table": "^3.
|
|
116
|
-
"@tiptap/extension-text-align": "^3.
|
|
117
|
-
"@tiptap/extension-text-style": "^3.
|
|
118
|
-
"@tiptap/extension-underline": "^3.
|
|
119
|
-
"@tiptap/pm": "^3.
|
|
120
|
-
"@tiptap/starter-kit": "^3.
|
|
104
|
+
"@tiptap/core": "^3.33.0",
|
|
105
|
+
"@tiptap/extension-bubble-menu": "^3.33.0",
|
|
106
|
+
"@tiptap/extension-code-block": "^3.33.0",
|
|
107
|
+
"@tiptap/extension-collaboration": "^3.33.0",
|
|
108
|
+
"@tiptap/extension-collaboration-caret": "^3.33.0",
|
|
109
|
+
"@tiptap/extension-color": "^3.33.0",
|
|
110
|
+
"@tiptap/extension-image": "^3.33.0",
|
|
111
|
+
"@tiptap/extension-link": "^3.33.0",
|
|
112
|
+
"@tiptap/extension-placeholder": "^3.33.0",
|
|
113
|
+
"@tiptap/extension-subscript": "^3.33.0",
|
|
114
|
+
"@tiptap/extension-superscript": "^3.33.0",
|
|
115
|
+
"@tiptap/extension-table": "^3.33.0",
|
|
116
|
+
"@tiptap/extension-text-align": "^3.33.0",
|
|
117
|
+
"@tiptap/extension-text-style": "^3.33.0",
|
|
118
|
+
"@tiptap/extension-underline": "^3.33.0",
|
|
119
|
+
"@tiptap/pm": "^3.33.0",
|
|
120
|
+
"@tiptap/starter-kit": "^3.33.0",
|
|
121
121
|
"dayjs": "^1.11.23",
|
|
122
122
|
"svelte-sonner": "^1.2.3",
|
|
123
123
|
"yjs": "^13.6.33"
|