@mcpview/components 0.13.1 → 0.15.0

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.
Files changed (76) hide show
  1. package/README.md +153 -1
  2. package/esm/preact-components.d.ts +1 -1
  3. package/esm/preact-components.d.ts.map +1 -1
  4. package/esm/preact-controls.d.ts +12 -0
  5. package/esm/preact-controls.d.ts.map +1 -0
  6. package/esm/preact-controls.js +8 -0
  7. package/esm/src/context-row-styles.d.ts +5 -0
  8. package/esm/src/context-row-styles.d.ts.map +1 -0
  9. package/esm/src/context-row-styles.js +101 -0
  10. package/esm/src/interaction-styles.d.ts +5 -0
  11. package/esm/src/interaction-styles.d.ts.map +1 -0
  12. package/esm/src/interaction-styles.js +55 -0
  13. package/esm/src/preact/components.d.ts +31 -1
  14. package/esm/src/preact/components.d.ts.map +1 -1
  15. package/esm/src/preact/components.js +88 -39
  16. package/esm/src/preact/interaction-controls.d.ts +22 -0
  17. package/esm/src/preact/interaction-controls.d.ts.map +1 -0
  18. package/esm/src/preact/interaction-controls.js +25 -0
  19. package/esm/src/preact/interactive-child.d.ts +2 -0
  20. package/esm/src/preact/interactive-child.d.ts.map +1 -0
  21. package/esm/src/preact/interactive-child.js +16 -0
  22. package/esm/src/preact/mod.d.ts +1 -1
  23. package/esm/src/preact/mod.d.ts.map +1 -1
  24. package/esm/src/preact/semantic-element.d.ts.map +1 -1
  25. package/esm/src/preact/semantic-element.js +3 -16
  26. package/esm/src/preact/structural.d.ts.map +1 -1
  27. package/esm/src/preact/structural.js +14 -7
  28. package/esm/src/preact/visual-item-gestures.d.ts +5 -0
  29. package/esm/src/preact/visual-item-gestures.d.ts.map +1 -0
  30. package/esm/src/preact/visual-item-gestures.js +37 -0
  31. package/esm/src/theme.d.ts.map +1 -1
  32. package/esm/src/theme.js +13 -0
  33. package/esm/src/visual-item-gestures.d.ts +40 -0
  34. package/esm/src/visual-item-gestures.d.ts.map +1 -0
  35. package/esm/src/visual-item-gestures.js +474 -0
  36. package/esm/src/visual-item-props.d.ts +45 -0
  37. package/esm/src/visual-item-props.d.ts.map +1 -0
  38. package/esm/src/visual-item-props.js +22 -0
  39. package/package.json +6 -1
  40. package/script/preact-components.d.ts +1 -1
  41. package/script/preact-components.d.ts.map +1 -1
  42. package/script/preact-controls.d.ts +12 -0
  43. package/script/preact-controls.d.ts.map +1 -0
  44. package/script/preact-controls.js +22 -0
  45. package/script/src/context-row-styles.d.ts +5 -0
  46. package/script/src/context-row-styles.d.ts.map +1 -0
  47. package/script/src/context-row-styles.js +104 -0
  48. package/script/src/interaction-styles.d.ts +5 -0
  49. package/script/src/interaction-styles.d.ts.map +1 -0
  50. package/script/src/interaction-styles.js +59 -0
  51. package/script/src/preact/components.d.ts +31 -1
  52. package/script/src/preact/components.d.ts.map +1 -1
  53. package/script/src/preact/components.js +87 -38
  54. package/script/src/preact/interaction-controls.d.ts +22 -0
  55. package/script/src/preact/interaction-controls.d.ts.map +1 -0
  56. package/script/src/preact/interaction-controls.js +29 -0
  57. package/script/src/preact/interactive-child.d.ts +2 -0
  58. package/script/src/preact/interactive-child.d.ts.map +1 -0
  59. package/script/src/preact/interactive-child.js +19 -0
  60. package/script/src/preact/mod.d.ts +1 -1
  61. package/script/src/preact/mod.d.ts.map +1 -1
  62. package/script/src/preact/semantic-element.d.ts.map +1 -1
  63. package/script/src/preact/semantic-element.js +4 -17
  64. package/script/src/preact/structural.d.ts.map +1 -1
  65. package/script/src/preact/structural.js +14 -7
  66. package/script/src/preact/visual-item-gestures.d.ts +5 -0
  67. package/script/src/preact/visual-item-gestures.d.ts.map +1 -0
  68. package/script/src/preact/visual-item-gestures.js +40 -0
  69. package/script/src/theme.d.ts.map +1 -1
  70. package/script/src/theme.js +13 -0
  71. package/script/src/visual-item-gestures.d.ts +40 -0
  72. package/script/src/visual-item-gestures.d.ts.map +1 -0
  73. package/script/src/visual-item-gestures.js +479 -0
  74. package/script/src/visual-item-props.d.ts +45 -0
  75. package/script/src/visual-item-props.d.ts.map +1 -0
  76. package/script/src/visual-item-props.js +25 -0
@@ -0,0 +1,474 @@
1
+ /** Default wait for a possible second click before a mouse click activates. */
2
+ export const VISUAL_ITEM_DOUBLE_CLICK_DELAY_MS = 500;
3
+ /** Default pointer hold duration that toggles an item. */
4
+ export const VISUAL_ITEM_HOLD_DELAY_MS = 550;
5
+ /** Longest delay setTimeout honours; larger values fire after about 1 ms. */
6
+ const MAX_TIMER_DELAY_MS = 2_147_483_647;
7
+ /** Throws a RangeError when a timing option is invalid. Returns the resolved delays. */
8
+ export function resolveVisualItemGestureDelays(options) {
9
+ const doubleClickDelayMs = options.doubleClickDelayMs === undefined
10
+ ? VISUAL_ITEM_DOUBLE_CLICK_DELAY_MS
11
+ : options.doubleClickDelayMs;
12
+ const holdDelayMs = options.holdDelayMs === undefined
13
+ ? VISUAL_ITEM_HOLD_DELAY_MS
14
+ : options.holdDelayMs;
15
+ if (!Number.isFinite(doubleClickDelayMs) || doubleClickDelayMs < 0 ||
16
+ doubleClickDelayMs > MAX_TIMER_DELAY_MS) {
17
+ throw new RangeError(`doubleClickDelayMs must be a finite non-negative number of at most ${MAX_TIMER_DELAY_MS} ms`);
18
+ }
19
+ if (!Number.isFinite(holdDelayMs) || holdDelayMs <= 0 || holdDelayMs > MAX_TIMER_DELAY_MS) {
20
+ throw new RangeError(`holdDelayMs must be a finite number greater than 0 and at most ${MAX_TIMER_DELAY_MS} ms`);
21
+ }
22
+ return { doubleClickDelayMs, holdDelayMs };
23
+ }
24
+ const itemSelector = "[data-visual-item]";
25
+ const surfaceSelector = "[data-visual-selection-surface]";
26
+ const nativeControl = "button, a[href], input, select, textarea, summary, [contenteditable=true]";
27
+ const interactiveControl = `${nativeControl}, [role=button], [role=link]`;
28
+ const excluded = "[data-visual-ignore], [disabled], [aria-disabled=true]";
29
+ const movementThreshold = 8;
30
+ const boundRoots = new WeakSet();
31
+ function isModified(event) {
32
+ return event.shiftKey || event.ctrlKey || event.altKey || event.metaKey;
33
+ }
34
+ function point(event) {
35
+ return { x: event.clientX, y: event.clientY };
36
+ }
37
+ function clipRect(rect, clip) {
38
+ if (clip.right <= clip.left || clip.bottom <= clip.top)
39
+ return undefined;
40
+ const left = Math.max(rect.left, clip.left);
41
+ const top = Math.max(rect.top, clip.top);
42
+ const right = Math.min(rect.right, clip.right);
43
+ const bottom = Math.min(rect.bottom, clip.bottom);
44
+ if (left > right || top > bottom || (left === right && rect.width > 0) ||
45
+ (top === bottom && rect.height > 0))
46
+ return undefined;
47
+ return new DOMRect(left, top, right - left, bottom - top);
48
+ }
49
+ function scrollport(element) {
50
+ const document = element.ownerDocument;
51
+ if (element === document.documentElement)
52
+ return undefined;
53
+ const style = document.defaultView?.getComputedStyle?.(element);
54
+ if (!style || style.display === "contents" || style.display === "inline")
55
+ return undefined;
56
+ const clips = /^(auto|scroll|hidden|clip|overlay)$/;
57
+ const clipX = clips.test(style.overflowX);
58
+ const clipY = clips.test(style.overflowY);
59
+ if (!clipX && !clipY)
60
+ return undefined;
61
+ const bounds = element.getBoundingClientRect();
62
+ let { left, top, right, bottom } = bounds;
63
+ if ("offsetWidth" in element && "offsetHeight" in element) {
64
+ const layout = element;
65
+ const scaleX = layout.offsetWidth > 0 ? bounds.width / layout.offsetWidth : 1;
66
+ const scaleY = layout.offsetHeight > 0 ? bounds.height / layout.offsetHeight : 1;
67
+ left += element.clientLeft * scaleX;
68
+ top += element.clientTop * scaleY;
69
+ right = left + element.clientWidth * scaleX;
70
+ bottom = top + element.clientHeight * scaleY;
71
+ }
72
+ return {
73
+ left: clipX ? left : -Infinity,
74
+ right: clipX ? right : Infinity,
75
+ top: clipY ? top : -Infinity,
76
+ bottom: clipY ? bottom : Infinity,
77
+ };
78
+ }
79
+ function clipToScrollports(rect, element, stopBefore, cache) {
80
+ for (let ancestor = element; ancestor && ancestor !== stopBefore && rect; ancestor = ancestor.parentElement) {
81
+ const clip = cache?.has(ancestor) ? cache.get(ancestor) : scrollport(ancestor);
82
+ cache?.set(ancestor, clip);
83
+ if (clip)
84
+ rect = clipRect(rect, clip);
85
+ }
86
+ return rect;
87
+ }
88
+ function selectionRect(start, end, surface) {
89
+ const doc = surface.ownerDocument;
90
+ const viewport = doc.defaultView?.visualViewport;
91
+ const viewportLeft = viewport?.offsetLeft ?? 0;
92
+ const viewportTop = viewport?.offsetTop ?? 0;
93
+ const rect = new DOMRect(Math.min(start.x, end.x), Math.min(start.y, end.y), Math.abs(end.x - start.x), Math.abs(end.y - start.y));
94
+ const inSurface = clipRect(rect, surface.getBoundingClientRect());
95
+ const inViewport = inSurface && clipRect(inSurface, {
96
+ left: viewportLeft,
97
+ top: viewportTop,
98
+ right: viewportLeft + (viewport?.width ?? doc.documentElement.clientWidth ?? Infinity),
99
+ bottom: viewportTop + (viewport?.height ?? doc.documentElement.clientHeight ?? Infinity),
100
+ });
101
+ return clipToScrollports(inViewport, surface);
102
+ }
103
+ function intersects(bounds, rect) {
104
+ return bounds.width > 0 && bounds.height > 0 &&
105
+ bounds.left < rect.right && bounds.right > rect.left &&
106
+ bounds.top < rect.bottom && bounds.bottom > rect.top;
107
+ }
108
+ /**
109
+ * Delegate drill and context gestures to descendants marked with `data-visual-item`.
110
+ * Mark rectangle surfaces with `data-visual-selection-surface` and use `touch-action: pan-y`
111
+ * there to allow horizontal touch selection alongside vertical scrolling.
112
+ * Mark items where a rectangle can start with `data-visual-selection-start`.
113
+ * Use native buttons or focusable equivalents and expose Shift+Space in their keyboard help.
114
+ * Returns the listener cleanup function.
115
+ */
116
+ export function bindVisualItemGestures(root, options) {
117
+ resolveVisualItemGestureDelays(options);
118
+ const doc = root.ownerDocument;
119
+ const listeners = new AbortController();
120
+ const capture = { capture: true, signal: listeners.signal };
121
+ const passiveCapture = { ...capture, passive: true };
122
+ boundRoots.add(root);
123
+ let press;
124
+ let pending;
125
+ let suppressClick = false;
126
+ let disposed = false;
127
+ let pointerType = "";
128
+ let overlay;
129
+ function owns(element) {
130
+ for (let node = element; node; node = node.parentElement) {
131
+ if (boundRoots.has(node))
132
+ return node === root;
133
+ }
134
+ return false;
135
+ }
136
+ function target(event) {
137
+ const node = event.target;
138
+ if (!node || !("nodeType" in node) || node.nodeType !== 1)
139
+ return null;
140
+ const element = node;
141
+ return owns(element) && !element.closest(excluded) ? element : null;
142
+ }
143
+ function itemFor(element) {
144
+ const item = element.closest(itemSelector);
145
+ const control = element.closest(interactiveControl);
146
+ if (!owns(item) || (control && control !== item && item.contains(control) &&
147
+ !control.hasAttribute("data-visual-activate")))
148
+ return null;
149
+ return item;
150
+ }
151
+ function canToggle(item) {
152
+ return options.onToggle !== undefined && !item.hasAttribute("data-visual-no-toggle");
153
+ }
154
+ function canActivate(item) {
155
+ return options.onActivate !== undefined && !item.hasAttribute("data-visual-no-activate");
156
+ }
157
+ /** A pin-only button: `visualItemProps` marks it `aria-pressed`. Rows and other roles never are. */
158
+ function isPinButton(item) {
159
+ return canToggle(item) && !canActivate(item) && item.hasAttribute("aria-pressed") &&
160
+ (item.localName === "button" || item.getAttribute("role") === "button");
161
+ }
162
+ function id(item) {
163
+ return item.getAttribute("data-visual-item") ?? "";
164
+ }
165
+ function settle(click, activate) {
166
+ if (pending === click)
167
+ pending = undefined;
168
+ clearTimeout(click.timer);
169
+ if (activate && !stale(click.item, click.id) && canActivate(click.item)) {
170
+ options.onActivate?.(click.id);
171
+ }
172
+ }
173
+ function clearPending(activate = false) {
174
+ if (pending)
175
+ settle(pending, activate);
176
+ }
177
+ /**
178
+ * True when the binding was detached, the item no longer is the one that was targeted, or it
179
+ * is no longer attached to the document or became disabled in the meantime.
180
+ */
181
+ function stale(item, targetId) {
182
+ return disposed || !owns(item) || id(item) !== targetId || !item.isConnected ||
183
+ item.closest(excluded) !== null;
184
+ }
185
+ function clearPress() {
186
+ clearTimeout(press?.hold);
187
+ press = undefined;
188
+ overlay?.remove();
189
+ overlay = undefined;
190
+ }
191
+ function onPointerDown(event) {
192
+ if (!event.isPrimary || event.button !== 0 || isModified(event))
193
+ return;
194
+ const element = target(event);
195
+ if (!element)
196
+ return;
197
+ clearPress();
198
+ suppressClick = false;
199
+ pointerType = event.pointerType;
200
+ const item = itemFor(element);
201
+ const surface = element.closest(surfaceSelector);
202
+ const rectangle = options.onAdd && owns(surface) &&
203
+ !element.closest("[draggable=true]") &&
204
+ (item
205
+ ? item.hasAttribute("data-visual-selection-start")
206
+ : !element.closest(interactiveControl));
207
+ if (!item && !rectangle)
208
+ return;
209
+ const active = {
210
+ pointerId: event.pointerId,
211
+ pointerType: event.pointerType,
212
+ start: point(event),
213
+ item,
214
+ surface: rectangle ? surface : null,
215
+ drawing: false,
216
+ };
217
+ press = active;
218
+ if (item && canToggle(item)) {
219
+ const pressedId = id(item);
220
+ active.hold = setTimeout(() => {
221
+ if (press !== active || stale(item, pressedId) || !canToggle(item))
222
+ return;
223
+ if (pending) {
224
+ // Match the element AND the id: virtualized lists recycle nodes.
225
+ if (pending.item === item && pending.id === pressedId)
226
+ clearPending();
227
+ else
228
+ pending.pairable = false;
229
+ }
230
+ suppressClick = true;
231
+ options.onToggle?.(pressedId);
232
+ }, resolveVisualItemGestureDelays(options).holdDelayMs);
233
+ }
234
+ }
235
+ function onPointerMove(event) {
236
+ if (!press || event.pointerId !== press.pointerId)
237
+ return;
238
+ const end = point(event);
239
+ const dx = Math.abs(end.x - press.start.x);
240
+ const dy = Math.abs(end.y - press.start.y);
241
+ if (!press.drawing && Math.max(dx, dy) < movementThreshold)
242
+ return;
243
+ clearTimeout(press.hold);
244
+ if (!press.drawing && (suppressClick || !press.surface ||
245
+ (press.pointerType === "touch" && dx <= dy))) {
246
+ suppressClick = true;
247
+ clearPress();
248
+ return;
249
+ }
250
+ event.preventDefault();
251
+ if (!press.surface)
252
+ return;
253
+ if (!press.drawing) {
254
+ press.drawing = true;
255
+ clearPending();
256
+ overlay = doc.createElement("div");
257
+ overlay.setAttribute("aria-hidden", "true");
258
+ Object.assign(overlay.style, {
259
+ position: "fixed",
260
+ pointerEvents: "none",
261
+ zIndex: "2147483647",
262
+ boxSizing: "border-box",
263
+ border: "1px solid Highlight",
264
+ background: "color-mix(in srgb, Highlight 15%, transparent)",
265
+ });
266
+ doc.body.append(overlay);
267
+ }
268
+ const rect = selectionRect(press.start, end, press.surface);
269
+ if (!overlay)
270
+ return;
271
+ overlay.hidden = !rect;
272
+ if (!rect)
273
+ return;
274
+ Object.assign(overlay.style, {
275
+ left: `${rect.left}px`,
276
+ top: `${rect.top}px`,
277
+ width: `${rect.width}px`,
278
+ height: `${rect.height}px`,
279
+ });
280
+ }
281
+ function onPointerUp(event) {
282
+ if (!press || event.pointerId !== press.pointerId)
283
+ return;
284
+ const { drawing, surface, start } = press;
285
+ clearPress();
286
+ if (!drawing || !surface || !owns(surface))
287
+ return;
288
+ suppressClick = true;
289
+ const rect = selectionRect(start, point(event), surface);
290
+ if (!rect)
291
+ return;
292
+ const matches = new Set();
293
+ const scrollports = new Map();
294
+ for (const item of surface.querySelectorAll(itemSelector)) {
295
+ if (!owns(item) || item.closest(surfaceSelector) !== surface ||
296
+ item.hasAttribute("data-visual-no-toggle") || item.closest(excluded))
297
+ continue;
298
+ const visibility = doc.defaultView?.getComputedStyle?.(item).visibility;
299
+ if (visibility === "hidden" || visibility === "collapse")
300
+ continue;
301
+ const visibleRect = clipToScrollports(rect, item.parentElement, surface, scrollports);
302
+ if (!visibleRect)
303
+ continue;
304
+ const bounds = options.getItemBounds?.(item) ?? item.getBoundingClientRect();
305
+ if (intersects(bounds, visibleRect) && (options.intersectsItem?.(item, visibleRect) ?? true)) {
306
+ matches.add(id(item));
307
+ }
308
+ }
309
+ if (matches.size > 0)
310
+ options.onAdd?.([...matches]);
311
+ }
312
+ function onCancel(event) {
313
+ if (!press || ("pointerId" in event && event.pointerId !== press.pointerId))
314
+ return;
315
+ suppressClick = true;
316
+ clearPress();
317
+ }
318
+ function onDragStart(event) {
319
+ const element = target(event);
320
+ if (press?.surface && element?.localName === "img" &&
321
+ !element.closest("[draggable=true], a[href], [role=link]")) {
322
+ event.preventDefault();
323
+ return;
324
+ }
325
+ onCancel(event);
326
+ }
327
+ function consume(event) {
328
+ event.preventDefault();
329
+ event.stopPropagation();
330
+ }
331
+ function onClick(event) {
332
+ const element = target(event);
333
+ if (!element)
334
+ return;
335
+ const immediate = element.closest("[data-visual-immediate-activate]");
336
+ if (immediate) {
337
+ // The native control owns activation. Discard its row's pending click
338
+ // before that control receives the event.
339
+ if (pending && immediate.closest(itemSelector) === pending.item)
340
+ clearPending();
341
+ return;
342
+ }
343
+ const item = itemFor(element);
344
+ if (isModified(event)) {
345
+ if (item)
346
+ clearPending();
347
+ return;
348
+ }
349
+ if (event.detail > 0 && suppressClick && (item || element.closest(surfaceSelector))) {
350
+ consume(event);
351
+ return;
352
+ }
353
+ if (!item || (!canActivate(item) && !canToggle(item)))
354
+ return;
355
+ consume(event);
356
+ const targetId = id(item);
357
+ const { doubleClickDelayMs } = resolveVisualItemGestureDelays(options);
358
+ if (event.detail === 0 || pointerType === "touch" || !canToggle(item) || doubleClickDelayMs === 0) {
359
+ clearPending(pending?.item !== item);
360
+ // Flushing may have run a callback that detached or recycled this target.
361
+ if (stale(item, targetId))
362
+ return;
363
+ if (canActivate(item))
364
+ options.onActivate?.(targetId);
365
+ // Assistive technology and Enter or Space on a native button: a toggle-only item is a
366
+ // true toggle button. Pointer clicks still need a double-click or a long press.
367
+ else if (event.detail === 0 && isPinButton(item))
368
+ options.onToggle?.(targetId);
369
+ }
370
+ else if (pending?.pairable && pending.item === item && pending.id === targetId) {
371
+ clearPending();
372
+ options.onToggle?.(targetId);
373
+ }
374
+ else {
375
+ // A click that a hold made unpairable is flushed here: the same item is activated now
376
+ // instead of at its deadline. Only one click per item can be pending.
377
+ clearPending(true);
378
+ if (stale(item, targetId))
379
+ return;
380
+ const click = {
381
+ item,
382
+ id: targetId,
383
+ timer: setTimeout(() => settle(click, true), doubleClickDelayMs),
384
+ pairable: true,
385
+ };
386
+ pending = click;
387
+ }
388
+ }
389
+ /** True when a native control turns this key into its own click. */
390
+ function ownsKey(key, element, item) {
391
+ const control = element.closest(nativeControl);
392
+ if (!control)
393
+ return false;
394
+ // An anchor has no native Space activation: a pin-only anchor item handles Space itself.
395
+ return !(key === " " && control === item && control.localName === "a" && !canActivate(item));
396
+ }
397
+ function onKeyDown(event) {
398
+ const element = target(event);
399
+ if (!element)
400
+ return;
401
+ if (event.key !== "Enter" && event.key !== " ")
402
+ return;
403
+ const item = itemFor(element);
404
+ if (!item)
405
+ return;
406
+ if (event.key === " " && event.shiftKey && !event.altKey && !event.ctrlKey &&
407
+ !event.metaKey && canToggle(item)) {
408
+ consume(event);
409
+ clearPending();
410
+ if (!event.repeat)
411
+ options.onToggle?.(id(item));
412
+ }
413
+ else if (!isModified(event) && ownsKey(event.key, element, item)) {
414
+ // Holding Enter on a native pin button would click, and toggle, once per repeat.
415
+ if (event.repeat && isPinButton(item))
416
+ event.preventDefault();
417
+ }
418
+ else if (!isModified(event)) {
419
+ if (!canActivate(item) && !isPinButton(item))
420
+ return;
421
+ consume(event);
422
+ const targetId = id(item);
423
+ clearPending(pending?.item !== item);
424
+ // Flushing may have run a callback that disabled or recycled this target.
425
+ if (event.repeat || stale(item, targetId))
426
+ return;
427
+ if (canActivate(item))
428
+ options.onActivate?.(targetId);
429
+ else if (isPinButton(item))
430
+ options.onToggle?.(targetId);
431
+ }
432
+ }
433
+ root.addEventListener("pointerdown", onPointerDown, passiveCapture);
434
+ doc.addEventListener("pointerdown", (event) => {
435
+ if (!press || event.isPrimary || event.pointerType !== "touch")
436
+ return;
437
+ suppressClick = true;
438
+ clearPress();
439
+ clearPending();
440
+ }, passiveCapture);
441
+ doc.addEventListener("pointermove", onPointerMove, capture);
442
+ doc.addEventListener("pointerup", onPointerUp, passiveCapture);
443
+ doc.addEventListener("pointercancel", onCancel, passiveCapture);
444
+ doc.addEventListener("dragstart", onDragStart, capture);
445
+ root.addEventListener("click", onClick, capture);
446
+ root.addEventListener("keydown", onKeyDown, capture);
447
+ doc.addEventListener("keydown", (event) => {
448
+ if (event.key !== "Escape" || !press?.drawing)
449
+ return;
450
+ consume(event);
451
+ suppressClick = true;
452
+ clearPress();
453
+ }, capture);
454
+ root.addEventListener("contextmenu", (event) => {
455
+ if (press?.pointerType !== "mouse" && press?.item && canToggle(press.item)) {
456
+ event.preventDefault();
457
+ }
458
+ }, capture);
459
+ root.addEventListener("selectstart", (event) => {
460
+ if (press?.surface)
461
+ event.preventDefault();
462
+ }, capture);
463
+ doc.defaultView?.addEventListener("blur", () => {
464
+ clearPress();
465
+ clearPending();
466
+ }, { signal: listeners.signal });
467
+ return () => {
468
+ disposed = true;
469
+ listeners.abort();
470
+ boundRoots.delete(root);
471
+ clearPress();
472
+ clearPending();
473
+ };
474
+ }
@@ -0,0 +1,45 @@
1
+ /** Presentation state for an element using the visual item gestures. */
2
+ export interface VisualItemPropsOptions {
3
+ id: string;
4
+ activation?: {
5
+ label?: string;
6
+ expanded?: boolean;
7
+ controls?: string;
8
+ };
9
+ /**
10
+ * Context pin state. Enables the toggle gestures (Shift+Space, double-click, long press).
11
+ * It is exposed as `data-visual-pinned`. An item with an `activation` opens a detail, so it is
12
+ * not a toggle button and never gets `aria-pressed`. An item without an `activation` is a true
13
+ * toggle button: Enter, Space and assistive-technology clicks toggle it and it exposes
14
+ * `aria-pressed`. A single pointer click does nothing; double-click and long press toggle.
15
+ */
16
+ pinned?: boolean | "mixed";
17
+ /** @deprecated Use `pinned`. */
18
+ pressed?: boolean | "mixed";
19
+ /**
20
+ * Id of a visually hidden element that states the pin status ("Pinned to context"). Emitted as
21
+ * `aria-describedby` when the item can toggle; otherwise the property is omitted, so spreading
22
+ * the result never erases a description you set. To keep your own description, join the ids
23
+ * yourself: `aria-describedby={`help ${statusId}`}` placed after the spread.
24
+ */
25
+ pinnedStatusId?: string;
26
+ selectionStart?: boolean;
27
+ }
28
+ /** Attributes for a focusable visual item with independent activation and context gestures. */
29
+ export declare function visualItemProps({ id, activation, pinned, pressed, pinnedStatusId, selectionStart, }: VisualItemPropsOptions): {
30
+ "data-visual-item": string | undefined;
31
+ "data-visual-no-activate": string | undefined;
32
+ "data-visual-no-toggle": string | undefined;
33
+ "data-visual-selection-start": string | undefined;
34
+ "data-visual-pinned": "true" | "mixed" | "false" | undefined;
35
+ role: "button" | undefined;
36
+ tabIndex: number | undefined;
37
+ "aria-label": string | undefined;
38
+ "aria-pressed"?: boolean | "mixed";
39
+ "aria-describedby"?: string;
40
+ "aria-keyshortcuts": string | undefined;
41
+ "aria-expanded": boolean | undefined;
42
+ "aria-controls": string | undefined;
43
+ title: string | undefined;
44
+ };
45
+ //# sourceMappingURL=visual-item-props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visual-item-props.d.ts","sourceRoot":"","sources":["../../src/src/visual-item-props.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC3B,gCAAgC;IAChC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,+FAA+F;AAC/F,wBAAgB,eAAe,CAAC,EAC9B,EAAE,EACF,UAAU,EACV,MAAM,EACN,OAAO,EACP,cAAc,EACd,cAAc,GACf,EAAE,sBAAsB,GAAG;IAC1B,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,yBAAyB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9C,uBAAuB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5C,6BAA6B,EAAE,MAAM,GAAG,SAAS,CAAC;IAClD,oBAAoB,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;IAC7D,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC3B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,eAAe,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAoBA"}
@@ -0,0 +1,22 @@
1
+ /** Attributes for a focusable visual item with independent activation and context gestures. */
2
+ export function visualItemProps({ id, activation, pinned, pressed, pinnedStatusId, selectionStart, }) {
3
+ const state = pinned ?? pressed;
4
+ const canToggle = state !== undefined;
5
+ const interactive = activation !== undefined || canToggle;
6
+ return {
7
+ "data-visual-item": interactive ? id : undefined,
8
+ "data-visual-no-activate": activation ? undefined : "",
9
+ "data-visual-no-toggle": canToggle ? undefined : "",
10
+ "data-visual-selection-start": (selectionStart ?? canToggle) ? "" : undefined,
11
+ "data-visual-pinned": canToggle ? String(state) : undefined,
12
+ role: interactive ? "button" : undefined,
13
+ tabIndex: interactive ? 0 : undefined,
14
+ "aria-label": activation?.label,
15
+ "aria-keyshortcuts": canToggle ? "Shift+Space" : undefined,
16
+ "aria-expanded": activation?.expanded,
17
+ "aria-controls": activation?.controls,
18
+ title: activation?.label,
19
+ ...(canToggle && !activation ? { "aria-pressed": state } : {}),
20
+ ...(canToggle && pinnedStatusId !== undefined ? { "aria-describedby": pinnedStatusId } : {}),
21
+ };
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpview/components",
3
- "version": "0.13.1",
3
+ "version": "0.15.0",
4
4
  "description": "Optional light-first component runtime for small composable MCP App viewers",
5
5
  "keywords": [
6
6
  "mcp",
@@ -27,6 +27,11 @@
27
27
  "import": "./esm/mod.js",
28
28
  "require": "./script/mod.js"
29
29
  },
30
+ "./preact/controls": {
31
+ "types": "./esm/preact-controls.d.ts",
32
+ "import": "./esm/preact-controls.js",
33
+ "require": "./script/preact-controls.js"
34
+ },
30
35
  "./preact/context": {
31
36
  "types": "./esm/preact-context.d.ts",
32
37
  "import": "./esm/preact-context.js",
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import "./_dnt.polyfills.js";
12
12
  export { Badge, BadgeGroup, Button, Card, CodeBlock, CrossSelection, DataTable, EmptyState, InlineCode, KeyValueList, Message, Metric, MetricGrid, NoticeGroup, renderStatusMessage, Row, Skeleton, Stack, StateMessage, TextInput, Toolbar, } from "./src/preact/components.js";
13
- export type { BadgeGroupProps, BadgeProps, ButtonProps, CardProps, CodeBlockProps, CrossSelectionProps, DataTableColumn, DataTableProps, EmptyStateProps, InlineCodeProps, KeyValueItem, KeyValueLayout, KeyValueListProps, MessageProps, MetricGridProps, MetricItem, MetricProps, NoticeGroupProps, PresentationTone, RowProps, SkeletonProps, StackProps, StateMessageProps, StatusMessageMount, TextInputProps, ToolbarProps, } from "./src/preact/components.js";
13
+ export type { BadgeGroupProps, BadgeProps, ButtonProps, CardProps, CodeBlockProps, CrossSelectionProps, DataTableColumn, DataTableDisclosure, DataTableProps, EmptyStateProps, InlineCodeProps, KeyValueItem, KeyValueLayout, KeyValueListProps, MessageProps, MetricGridProps, MetricItem, MetricProps, NoticeGroupProps, PresentationTone, RowProps, SkeletonProps, StackProps, StateMessageProps, StatusMessageMount, TextInputProps, ToolbarProps, } from "./src/preact/components.js";
14
14
  export { ArtifactRow, DrillHint, LimitGauge, PATH_BAR_DEFAULT_MAX_VISIBLE, PathBar, Slot3D, StaleBanner, TreeList, TypeBadge, } from "./src/preact/structural.js";
15
15
  export type { ArtifactFingerprint, ArtifactRowProps, ArtifactVerification, DrillHintDirection, DrillHintProps, LimitGaugeLimit, LimitGaugeProps, PathBarItem, PathBarProps, Slot3DProps, StaleBannerAction, StaleBannerProps, TreeListNode, TreeListProps, TypeBadgeProps, ViewKind, } from "./src/preact/structural.js";
16
16
  export { IntervalPlot, SeriesChart, Sparkline } from "./src/preact/plots.js";
@@ -1 +1 @@
1
- {"version":3,"file":"preact-components.d.ts","sourceRoot":"","sources":["../src/preact-components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,qBAAqB,CAAC;AAG7B,OAAO,EACL,KAAK,EACL,UAAU,EACV,MAAM,EACN,IAAI,EACJ,SAAS,EACT,cAAc,EACd,SAAS,EACT,UAAU,EACV,UAAU,EACV,YAAY,EACZ,OAAO,EACP,MAAM,EACN,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,GAAG,EACH,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,SAAS,EACT,OAAO,GACR,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,eAAe,EACf,UAAU,EACV,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,eAAe,EACf,eAAe,EACf,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,YAAY,GACb,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,WAAW,EACX,SAAS,EACT,UAAU,EACV,4BAA4B,EAC5B,OAAO,EACP,MAAM,EACN,WAAW,EACX,QAAQ,EACR,SAAS,GACV,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,eAAe,EACf,WAAW,EACX,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,QAAQ,GACT,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7E,YAAY,EACV,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EACf,WAAW,EACX,cAAc,GACf,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,cAAc,EACd,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,cAAc,EACd,eAAe,EACf,YAAY,GACb,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EACV,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACvE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEtF,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,iCAAiC,CAAC"}
1
+ {"version":3,"file":"preact-components.d.ts","sourceRoot":"","sources":["../src/preact-components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,qBAAqB,CAAC;AAG7B,OAAO,EACL,KAAK,EACL,UAAU,EACV,MAAM,EACN,IAAI,EACJ,SAAS,EACT,cAAc,EACd,SAAS,EACT,UAAU,EACV,UAAU,EACV,YAAY,EACZ,OAAO,EACP,MAAM,EACN,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,GAAG,EACH,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,SAAS,EACT,OAAO,GACR,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,eAAe,EACf,UAAU,EACV,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,eAAe,EACf,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,YAAY,GACb,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,WAAW,EACX,SAAS,EACT,UAAU,EACV,4BAA4B,EAC5B,OAAO,EACP,MAAM,EACN,WAAW,EACX,QAAQ,EACR,SAAS,GACV,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,eAAe,EACf,WAAW,EACX,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,QAAQ,GACT,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7E,YAAY,EACV,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EACf,WAAW,EACX,cAAc,GACf,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,cAAc,EACd,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,cAAc,EACd,eAAe,EACf,YAAY,GACb,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EACV,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACvE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEtF,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,iCAAiC,CAAC"}
@@ -0,0 +1,12 @@
1
+ /** Lightweight Preact controls for drill-down and context pinning. @module */
2
+ import "./_dnt.polyfills.js";
3
+ export { ContextPinButton, DisclosureChevron } from "./src/preact/interaction-controls.js";
4
+ export type { ContextPinButtonProps, DisclosureChevronProps, } from "./src/preact/interaction-controls.js";
5
+ export { installMcpViewInteractionStyles, MCP_VIEW_INTERACTION_CSS, } from "./src/interaction-styles.js";
6
+ export { bindVisualItemGestures, VISUAL_ITEM_DOUBLE_CLICK_DELAY_MS, VISUAL_ITEM_HOLD_DELAY_MS, } from "./src/visual-item-gestures.js";
7
+ export type { VisualItemGestureOptions } from "./src/visual-item-gestures.js";
8
+ export { useVisualItemGestures } from "./src/preact/visual-item-gestures.js";
9
+ export { CONTEXT_ROW_OUTLINE, MCP_VIEW_CONTEXT_ROW_CSS } from "./src/context-row-styles.js";
10
+ export { visualItemProps } from "./src/visual-item-props.js";
11
+ export type { VisualItemPropsOptions } from "./src/visual-item-props.js";
12
+ //# sourceMappingURL=preact-controls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preact-controls.d.ts","sourceRoot":"","sources":["../src/preact-controls.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,OAAO,qBAAqB,CAAC;AAE7B,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC3F,YAAY,EACV,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,+BAA+B,EAC/B,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,sBAAsB,EACtB,iCAAiC,EACjC,yBAAyB,GAC1B,MAAM,+BAA+B,CAAC;AACvC,YAAY,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,YAAY,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.visualItemProps = exports.MCP_VIEW_CONTEXT_ROW_CSS = exports.CONTEXT_ROW_OUTLINE = exports.useVisualItemGestures = exports.VISUAL_ITEM_HOLD_DELAY_MS = exports.VISUAL_ITEM_DOUBLE_CLICK_DELAY_MS = exports.bindVisualItemGestures = exports.MCP_VIEW_INTERACTION_CSS = exports.installMcpViewInteractionStyles = exports.DisclosureChevron = exports.ContextPinButton = void 0;
4
+ /** Lightweight Preact controls for drill-down and context pinning. @module */
5
+ require("./_dnt.polyfills.js");
6
+ var interaction_controls_js_1 = require("./src/preact/interaction-controls.js");
7
+ Object.defineProperty(exports, "ContextPinButton", { enumerable: true, get: function () { return interaction_controls_js_1.ContextPinButton; } });
8
+ Object.defineProperty(exports, "DisclosureChevron", { enumerable: true, get: function () { return interaction_controls_js_1.DisclosureChevron; } });
9
+ var interaction_styles_js_1 = require("./src/interaction-styles.js");
10
+ Object.defineProperty(exports, "installMcpViewInteractionStyles", { enumerable: true, get: function () { return interaction_styles_js_1.installMcpViewInteractionStyles; } });
11
+ Object.defineProperty(exports, "MCP_VIEW_INTERACTION_CSS", { enumerable: true, get: function () { return interaction_styles_js_1.MCP_VIEW_INTERACTION_CSS; } });
12
+ var visual_item_gestures_js_1 = require("./src/visual-item-gestures.js");
13
+ Object.defineProperty(exports, "bindVisualItemGestures", { enumerable: true, get: function () { return visual_item_gestures_js_1.bindVisualItemGestures; } });
14
+ Object.defineProperty(exports, "VISUAL_ITEM_DOUBLE_CLICK_DELAY_MS", { enumerable: true, get: function () { return visual_item_gestures_js_1.VISUAL_ITEM_DOUBLE_CLICK_DELAY_MS; } });
15
+ Object.defineProperty(exports, "VISUAL_ITEM_HOLD_DELAY_MS", { enumerable: true, get: function () { return visual_item_gestures_js_1.VISUAL_ITEM_HOLD_DELAY_MS; } });
16
+ var visual_item_gestures_js_2 = require("./src/preact/visual-item-gestures.js");
17
+ Object.defineProperty(exports, "useVisualItemGestures", { enumerable: true, get: function () { return visual_item_gestures_js_2.useVisualItemGestures; } });
18
+ var context_row_styles_js_1 = require("./src/context-row-styles.js");
19
+ Object.defineProperty(exports, "CONTEXT_ROW_OUTLINE", { enumerable: true, get: function () { return context_row_styles_js_1.CONTEXT_ROW_OUTLINE; } });
20
+ Object.defineProperty(exports, "MCP_VIEW_CONTEXT_ROW_CSS", { enumerable: true, get: function () { return context_row_styles_js_1.MCP_VIEW_CONTEXT_ROW_CSS; } });
21
+ var visual_item_props_js_1 = require("./src/visual-item-props.js");
22
+ Object.defineProperty(exports, "visualItemProps", { enumerable: true, get: function () { return visual_item_props_js_1.visualItemProps; } });
@@ -0,0 +1,5 @@
1
+ /** Class for a standalone selected or partially selected visual item. */
2
+ export declare const CONTEXT_ROW_OUTLINE = "mcp-view-context-row-outline";
3
+ /** Opt-in outlines for adjacent selected rows and standalone pinned or pressed items. */
4
+ export declare const MCP_VIEW_CONTEXT_ROW_CSS: string;
5
+ //# sourceMappingURL=context-row-styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-row-styles.d.ts","sourceRoot":"","sources":["../../src/src/context-row-styles.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,eAAO,MAAM,mBAAmB,iCAAiC,CAAC;AAElE,yFAAyF;AACzF,eAAO,MAAM,wBAAwB,EAAE,MAiGtC,CAAC"}