@adroit-app/chat-ui 0.0.0 → 0.1.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.
package/dist/view.js ADDED
@@ -0,0 +1,37 @@
1
+ /** The scales zooming stays between. */
2
+ export const SCALES = { min: 0.1, max: 32 };
3
+ /**
4
+ * The scale that shows `image` whole in `box`, `margin` clear of each
5
+ * edge, never larger than its own size.
6
+ */
7
+ export function fitScale(image, box, margin = 0) {
8
+ if (image.width === 0 || image.height === 0)
9
+ return 1;
10
+ const width = Math.max(box.width - margin * 2, 1);
11
+ const height = Math.max(box.height - margin * 2, 1);
12
+ return Math.max(SCALES.min, Math.min(1, width / image.width, height / image.height));
13
+ }
14
+ /** Pixels a wheel's line and page count as (`WheelEvent.deltaMode` 1 and 2). */
15
+ const WHEEL_UNIT = [1, 10, 20];
16
+ /** How much a wheel turned by `deltaY`, counted in `deltaMode`, zooms. */
17
+ export function wheelFactor(deltaY, deltaMode) {
18
+ return Math.exp(-deltaY * (WHEEL_UNIT[deltaMode] ?? 1) * 0.01);
19
+ }
20
+ /** `view` zoomed by `factor`, keeping the image point under `at` where it is. */
21
+ export function zoomedAt(view, factor, at) {
22
+ const scale = Math.min(SCALES.max, Math.max(SCALES.min, view.scale * factor));
23
+ const ratio = scale / view.scale;
24
+ return { scale, x: at.x - (at.x - view.x) * ratio, y: at.y - (at.y - view.y) * ratio };
25
+ }
26
+ /** `view` moved by `by`, as a drag moves it. */
27
+ export function panned(view, by) {
28
+ return { ...view, x: view.x + by.x, y: view.y + by.y };
29
+ }
30
+ /** `view` with `image` at `scale`, centred in `box`. */
31
+ export function centred(image, box, scale) {
32
+ return {
33
+ scale,
34
+ x: (box.width - image.width * scale) / 2,
35
+ y: (box.height - image.height * scale) / 2,
36
+ };
37
+ }
@@ -0,0 +1,78 @@
1
+ import type { OpenImage } from "@adroit-app/chat-core";
2
+ import { LitElement, type PropertyValues, type TemplateResult } from "lit";
3
+ import { type ImageActions, type ShareItem } from "./image-actions.ts";
4
+ import { type View } from "./view.ts";
5
+ /**
6
+ * One image on its own, as a window shows it: fitted to the window at
7
+ * first, zoomed about the pointer with the wheel or a pinch, with the
8
+ * buttons or + and -, panned by dragging, shown at its own size with 1 and
9
+ * fitted again with 0 or a double click, copied, and shared as far as the
10
+ * host's `actions` go. A `closable` viewer, laid over a page, has a close
11
+ * button and closes on Escape, saying so with `close`.
12
+ */
13
+ export declare class AdroitImageViewer extends LitElement {
14
+ #private;
15
+ static properties: {
16
+ image: {
17
+ attribute: boolean;
18
+ };
19
+ theme: {
20
+ reflect: boolean;
21
+ };
22
+ actions: {
23
+ attribute: boolean;
24
+ };
25
+ closable: {
26
+ type: BooleanConstructor;
27
+ };
28
+ _menu: {
29
+ state: boolean;
30
+ };
31
+ _view: {
32
+ state: boolean;
33
+ };
34
+ _fit: {
35
+ state: boolean;
36
+ };
37
+ _note: {
38
+ state: boolean;
39
+ };
40
+ };
41
+ image: OpenImage | null;
42
+ theme: "light" | "dark" | undefined;
43
+ /** What the host does with the image beyond the page. */
44
+ actions: ImageActions | null;
45
+ closable: boolean;
46
+ /** The More menu is open: opening, showing, copying the path of and sharing the image. */
47
+ _menu: boolean;
48
+ _view: View;
49
+ /** The image follows the window's size, fitted whole. */
50
+ _fit: boolean;
51
+ /** What the last copy did, said for a moment. */
52
+ _note: string | null;
53
+ constructor();
54
+ /** Shows the image whole, never larger than its own size. */
55
+ fit(): void;
56
+ /** Shows the image at its own size, centred. */
57
+ actualSize(): void;
58
+ /** Zooms by `factor` about `at`, the canvas's centre unless given. */
59
+ zoom(factor: number, at?: {
60
+ x: number;
61
+ y: number;
62
+ }): void;
63
+ /** Copies the image to the clipboard: the host's way, or the page's as PNG, which every app pastes. */
64
+ copy(): Promise<void>;
65
+ /** Runs `item` of the share menu, a sheet shown next to `anchor`. */
66
+ share(item: ShareItem["id"], anchor?: DOMRect): Promise<void>;
67
+ connectedCallback(): void;
68
+ disconnectedCallback(): void;
69
+ protected firstUpdated(): void;
70
+ protected updated(changed: PropertyValues<this>): void;
71
+ protected render(): TemplateResult;
72
+ static styles: import("lit").CSSResult[];
73
+ }
74
+ declare global {
75
+ interface HTMLElementTagNameMap {
76
+ "adroit-image-viewer": AdroitImageViewer;
77
+ }
78
+ }
package/dist/viewer.js ADDED
@@ -0,0 +1,496 @@
1
+ import { css, html, LitElement, nothing } from "lit";
2
+ import { icon } from "./icons.js";
3
+ import { shareItems } from "./image-actions.js";
4
+ import { tokens } from "./styles.js";
5
+ import { centred, fitScale, panned, wheelFactor, zoomedAt } from "./view.js";
6
+ /** How much one step of the zoom keys or buttons zooms. */
7
+ const STEP = 1.25;
8
+ /** How far a fitted image stays from the canvas's edges, as Arto's viewer keeps it. */
9
+ const MARGIN = 40;
10
+ /**
11
+ * One image on its own, as a window shows it: fitted to the window at
12
+ * first, zoomed about the pointer with the wheel or a pinch, with the
13
+ * buttons or + and -, panned by dragging, shown at its own size with 1 and
14
+ * fitted again with 0 or a double click, copied, and shared as far as the
15
+ * host's `actions` go. A `closable` viewer, laid over a page, has a close
16
+ * button and closes on Escape, saying so with `close`.
17
+ */
18
+ export class AdroitImageViewer extends LitElement {
19
+ static properties = {
20
+ image: { attribute: false },
21
+ theme: { reflect: true },
22
+ actions: { attribute: false },
23
+ closable: { type: Boolean },
24
+ _menu: { state: true },
25
+ _view: { state: true },
26
+ _fit: { state: true },
27
+ _note: { state: true },
28
+ };
29
+ #natural = { width: 0, height: 0 };
30
+ #drag = null;
31
+ #resize = new ResizeObserver(() => {
32
+ if (this._fit)
33
+ this.fit();
34
+ });
35
+ constructor() {
36
+ super();
37
+ this.image = null;
38
+ this.theme = undefined;
39
+ this.actions = null;
40
+ this.closable = false;
41
+ this._menu = false;
42
+ this._view = { scale: 1, x: 0, y: 0 };
43
+ this._fit = true;
44
+ this._note = null;
45
+ }
46
+ get #src() {
47
+ const image = this.image;
48
+ if (!image)
49
+ return "";
50
+ return image.data
51
+ ? `data:${image.mimeType ?? "image/png"};base64,${image.data}`
52
+ : (image.src ?? "");
53
+ }
54
+ get #box() {
55
+ const canvas = this.renderRoot.querySelector(".canvas");
56
+ return { width: canvas?.clientWidth ?? 0, height: canvas?.clientHeight ?? 0 };
57
+ }
58
+ /** Shows the image whole, never larger than its own size. */
59
+ fit() {
60
+ this._fit = true;
61
+ this._view = centred(this.#natural, this.#box, fitScale(this.#natural, this.#box, MARGIN));
62
+ }
63
+ /** Shows the image at its own size, centred. */
64
+ actualSize() {
65
+ this._fit = false;
66
+ this._view = centred(this.#natural, this.#box, 1);
67
+ }
68
+ /** Zooms by `factor` about `at`, the canvas's centre unless given. */
69
+ zoom(factor, at) {
70
+ const box = this.#box;
71
+ this._fit = false;
72
+ this._view = zoomedAt(this._view, factor, at ?? { x: box.width / 2, y: box.height / 2 });
73
+ }
74
+ /** Copies the image to the clipboard: the host's way, or the page's as PNG, which every app pastes. */
75
+ async copy() {
76
+ const img = this.renderRoot.querySelector(".canvas img");
77
+ await this.#say("copy", async () => {
78
+ if (!img)
79
+ throw new Error("no image");
80
+ const canvas = document.createElement("canvas");
81
+ canvas.width = img.naturalWidth;
82
+ canvas.height = img.naturalHeight;
83
+ const context = canvas.getContext("2d");
84
+ if (!context)
85
+ throw new Error("the image could not be drawn");
86
+ context.drawImage(img, 0, 0);
87
+ if (this.actions?.copyImage) {
88
+ const { data } = context.getImageData(0, 0, canvas.width, canvas.height);
89
+ await this.actions.copyImage({ width: canvas.width, height: canvas.height, rgba: data });
90
+ return "Copied";
91
+ }
92
+ const blob = await new Promise((resolve) => canvas.toBlob(resolve, "image/png"));
93
+ if (!blob)
94
+ throw new Error("the image could not be drawn");
95
+ await navigator.clipboard.write([new ClipboardItem({ "image/png": blob })]);
96
+ return "Copied";
97
+ });
98
+ }
99
+ /** Runs `item` of the share menu, a sheet shown next to `anchor`. */
100
+ async share(item, anchor) {
101
+ const image = this.image;
102
+ this._menu = false;
103
+ // The item goes with the menu: the viewer keeps the keys.
104
+ this.focus();
105
+ if (!image)
106
+ return;
107
+ const actions = this.actions;
108
+ await this.#say(item === "copy-path" ? "copy the path" : "share", async () => {
109
+ switch (item) {
110
+ case "open":
111
+ await actions?.openWithApp?.(image);
112
+ return null;
113
+ case "reveal":
114
+ await actions?.reveal?.(image);
115
+ return null;
116
+ case "copy-path": {
117
+ const path = image.path ?? "";
118
+ if (actions?.copyText)
119
+ await actions.copyText(path);
120
+ else
121
+ await navigator.clipboard.writeText(path);
122
+ return "Path copied";
123
+ }
124
+ case "share":
125
+ await actions?.share?.(image, anchor ?? this.getBoundingClientRect());
126
+ return null;
127
+ }
128
+ });
129
+ }
130
+ /** Says what `act` did, or that it could not `what`, for a moment. */
131
+ async #say(what, act) {
132
+ try {
133
+ this._note = await act();
134
+ }
135
+ catch (error) {
136
+ this._note = `Could not ${what}: ${error instanceof Error ? error.message : String(error)}`;
137
+ }
138
+ if (this._note === null)
139
+ return;
140
+ setTimeout(() => {
141
+ this._note = null;
142
+ }, 2000);
143
+ }
144
+ connectedCallback() {
145
+ super.connectedCallback();
146
+ this.addEventListener("keydown", this.#onKey);
147
+ if (!this.hasAttribute("tabindex"))
148
+ this.tabIndex = 0;
149
+ }
150
+ disconnectedCallback() {
151
+ super.disconnectedCallback();
152
+ this.removeEventListener("keydown", this.#onKey);
153
+ document.removeEventListener("pointerdown", this.#onOutside, true);
154
+ this.#resize.disconnect();
155
+ }
156
+ firstUpdated() {
157
+ const canvas = this.renderRoot.querySelector(".canvas");
158
+ if (canvas)
159
+ this.#resize.observe(canvas);
160
+ }
161
+ updated(changed) {
162
+ if (changed.has("image"))
163
+ this._fit = true;
164
+ if (changed.has("_menu")) {
165
+ // Listened for only while the menu is open, on the document, to hear a press anywhere.
166
+ if (this._menu)
167
+ document.addEventListener("pointerdown", this.#onOutside, true);
168
+ else
169
+ document.removeEventListener("pointerdown", this.#onOutside, true);
170
+ }
171
+ }
172
+ /** Closes the menu on a press anywhere but on it or the button that opens it. */
173
+ #onOutside = (e) => {
174
+ const holder = this.renderRoot.querySelector(".share");
175
+ if (holder && e.composedPath().includes(holder))
176
+ return;
177
+ this._menu = false;
178
+ };
179
+ #onKey = (e) => {
180
+ if (e.key === "Escape") {
181
+ if (this._menu)
182
+ this._menu = false;
183
+ else if (this.closable)
184
+ this.#close();
185
+ else
186
+ return;
187
+ e.preventDefault();
188
+ e.stopPropagation();
189
+ return;
190
+ }
191
+ if (e.altKey)
192
+ return;
193
+ const command = e.metaKey || e.ctrlKey;
194
+ if (command && e.key === "c") {
195
+ e.preventDefault();
196
+ void this.copy();
197
+ return;
198
+ }
199
+ const act = {
200
+ "+": () => this.zoom(STEP),
201
+ "=": () => this.zoom(STEP),
202
+ "-": () => this.zoom(1 / STEP),
203
+ "0": () => this.fit(),
204
+ "1": () => this.actualSize(),
205
+ };
206
+ // As in Arto, Cmd (Ctrl) with +, - and 0 zoom too; 1 stays the page's own.
207
+ const run = command && e.key === "1" ? undefined : act[e.key];
208
+ if (!run)
209
+ return;
210
+ e.preventDefault();
211
+ run();
212
+ };
213
+ #onLoad = (e) => {
214
+ const img = e.target;
215
+ this.#natural = { width: img.naturalWidth, height: img.naturalHeight };
216
+ this.fit();
217
+ };
218
+ #onWheel = (e) => {
219
+ e.preventDefault();
220
+ const rect = e.currentTarget.getBoundingClientRect();
221
+ this.zoom(wheelFactor(e.deltaY, e.deltaMode), {
222
+ x: e.clientX - rect.left,
223
+ y: e.clientY - rect.top,
224
+ });
225
+ };
226
+ #onDoubleClick = () => {
227
+ if (this._fit)
228
+ this.actualSize();
229
+ else
230
+ this.fit();
231
+ };
232
+ /** Moves the image to a window of its own, and closes it here. */
233
+ async #openInWindow() {
234
+ const image = this.image;
235
+ if (!image)
236
+ return;
237
+ this.#close();
238
+ await this.actions?.openInWindow?.(image);
239
+ }
240
+ #close() {
241
+ this.dispatchEvent(new CustomEvent("close", { bubbles: true, composed: true }));
242
+ }
243
+ #onDown = (e) => {
244
+ if (e.button !== 0)
245
+ return;
246
+ this.#drag = { x: e.clientX, y: e.clientY };
247
+ e.currentTarget.setPointerCapture(e.pointerId);
248
+ };
249
+ #onMove = (e) => {
250
+ const from = this.#drag;
251
+ if (!from)
252
+ return;
253
+ this._fit = false;
254
+ this._view = panned(this._view, { x: e.clientX - from.x, y: e.clientY - from.y });
255
+ this.#drag = { x: e.clientX, y: e.clientY };
256
+ };
257
+ #onUp = () => {
258
+ this.#drag = null;
259
+ };
260
+ render() {
261
+ const { scale, x, y } = this._view;
262
+ const items = this.image ? shareItems(this.actions, this.image) : [];
263
+ return html `<div class="viewer">
264
+ <header>
265
+ <span class="name" title=${this.image?.path ?? nothing}>${this.image?.name ?? "Image"}</span>
266
+ <span class="controls">
267
+ <button title="Zoom out (-)" aria-label="Zoom out" @click=${() => this.zoom(1 / STEP)}>
268
+ ${icon("zoomOut", 14)}
269
+ </button>
270
+ <span class="scale" aria-live="polite">${Math.round(scale * 100)}%</span>
271
+ <button title="Zoom in (+)" aria-label="Zoom in" @click=${() => this.zoom(STEP)}>
272
+ ${icon("zoomIn", 14)}
273
+ </button>
274
+ <button
275
+ class=${this._fit ? "on" : ""}
276
+ title="Fit the window (0, or a double click)"
277
+ @click=${() => this.fit()}
278
+ >Fit</button>
279
+ <button title="Actual size (1)" @click=${() => this.actualSize()}>Actual size</button>
280
+ <span class="rule"></span>
281
+ <button class="copy" title="Copy the image (Cmd+C)" aria-label="Copy the image" @click=${() => void this.copy()}>
282
+ ${icon("copy", 14)}
283
+ </button>
284
+ ${items.length > 0
285
+ ? html `<span class="share">
286
+ <button
287
+ class=${this._menu ? "on" : ""}
288
+ title="More"
289
+ aria-label="More"
290
+ aria-haspopup="menu"
291
+ aria-expanded=${this._menu ? "true" : "false"}
292
+ @click=${() => {
293
+ this._menu = !this._menu;
294
+ }}
295
+ >
296
+ ${icon("dots", 14)}
297
+ </button>
298
+ ${this._menu ? this.#menu(items) : nothing}
299
+ </span>`
300
+ : nothing}
301
+ ${this.closable && this.actions?.openInWindow
302
+ ? html `<button class="pop-out" title="Open in a window" aria-label="Open in a window" @click=${() => void this.#openInWindow()}>
303
+ ${icon("appWindow", 14)}
304
+ </button>`
305
+ : nothing}
306
+ ${this.closable
307
+ ? html `<button class="close" title="Close (Esc)" aria-label="Close" @click=${() => this.#close()}>
308
+ ${icon("x", 14)}
309
+ </button>`
310
+ : nothing}
311
+ </span>
312
+ </header>
313
+ <div
314
+ class="canvas"
315
+ @wheel=${this.#onWheel}
316
+ @dblclick=${this.#onDoubleClick}
317
+ @pointerdown=${this.#onDown}
318
+ @pointermove=${this.#onMove}
319
+ @pointerup=${this.#onUp}
320
+ @pointercancel=${this.#onUp}
321
+ >
322
+ <img
323
+ alt=${this.image?.name ?? ""}
324
+ src=${this.#src}
325
+ draggable="false"
326
+ style="transform: translate(${x}px, ${y}px) scale(${scale})"
327
+ @load=${this.#onLoad}
328
+ />
329
+ </div>
330
+ ${this._note ? html `<div class="note" role="status">${this._note}</div>` : nothing}
331
+ </div>`;
332
+ }
333
+ #menu(items) {
334
+ const icons = {
335
+ open: "externalLink",
336
+ reveal: "folderOpen",
337
+ "copy-path": "link",
338
+ share: "share",
339
+ };
340
+ return html `<div class="menu" role="menu">
341
+ ${items.map((item) => html `<button
342
+ role="menuitem"
343
+ data-item=${item.id}
344
+ @click=${(e) => void this.share(item.id, e.currentTarget.getBoundingClientRect())}
345
+ >
346
+ ${icon(icons[item.id], 14)}<span>${item.label}</span>
347
+ </button>`)}
348
+ </div>`;
349
+ }
350
+ static styles = [
351
+ tokens,
352
+ css `
353
+ :host {
354
+ display: block;
355
+ height: 100%;
356
+ background: var(--ground);
357
+ color: var(--text);
358
+ font: calc(12.5 * var(--px)) / 1.4 var(--sans);
359
+ outline: none;
360
+ }
361
+ .viewer {
362
+ display: grid;
363
+ grid-template-rows: auto minmax(0, 1fr);
364
+ height: 100%;
365
+ position: relative;
366
+ }
367
+ header {
368
+ display: flex;
369
+ align-items: center;
370
+ gap: calc(12 * var(--px));
371
+ padding: calc(8 * var(--px)) calc(12 * var(--px));
372
+ border-bottom: 1px solid var(--line);
373
+ background: var(--panel);
374
+ }
375
+ .name {
376
+ flex: 1;
377
+ min-width: 0;
378
+ overflow: hidden;
379
+ text-overflow: ellipsis;
380
+ white-space: nowrap;
381
+ font-weight: 600;
382
+ }
383
+ .controls {
384
+ display: inline-flex;
385
+ align-items: center;
386
+ gap: calc(4 * var(--px));
387
+ }
388
+ .controls button {
389
+ display: inline-flex;
390
+ align-items: center;
391
+ min-width: calc(28 * var(--px));
392
+ height: calc(28 * var(--px));
393
+ justify-content: center;
394
+ padding: 0 calc(8 * var(--px));
395
+ border: 1px solid var(--line-strong);
396
+ border-radius: calc(7 * var(--px));
397
+ background: var(--raised);
398
+ color: var(--text);
399
+ font: inherit;
400
+ cursor: pointer;
401
+ }
402
+ .rule {
403
+ width: 1px;
404
+ height: calc(18 * var(--px));
405
+ margin: 0 calc(4 * var(--px));
406
+ background: var(--line-strong);
407
+ }
408
+ .share {
409
+ position: relative;
410
+ display: inline-flex;
411
+ }
412
+ .menu {
413
+ position: absolute;
414
+ top: calc(100% + calc(4 * var(--px)));
415
+ right: 0;
416
+ z-index: 2;
417
+ display: flex;
418
+ flex-direction: column;
419
+ min-width: calc(220 * var(--px));
420
+ padding: calc(4 * var(--px));
421
+ border: 1px solid var(--line-strong);
422
+ border-radius: calc(8 * var(--px));
423
+ background: var(--panel);
424
+ box-shadow: 0 calc(8 * var(--px)) calc(24 * var(--px)) rgba(0, 0, 0, 0.24);
425
+ }
426
+ .controls .menu button {
427
+ justify-content: flex-start;
428
+ gap: calc(8 * var(--px));
429
+ height: calc(30 * var(--px));
430
+ border: 0;
431
+ background: transparent;
432
+ text-align: left;
433
+ white-space: nowrap;
434
+ }
435
+ .controls .menu button:hover,
436
+ .controls .menu button:focus-visible {
437
+ background: var(--select);
438
+ }
439
+ .controls button.on {
440
+ border-color: var(--run);
441
+ color: var(--run);
442
+ }
443
+ .controls button:focus-visible {
444
+ outline: calc(2 * var(--px)) solid var(--run);
445
+ outline-offset: 1px;
446
+ }
447
+ .icon {
448
+ display: inline-flex;
449
+ }
450
+ .icon svg {
451
+ width: var(--icon);
452
+ height: var(--icon);
453
+ stroke-width: 1.75;
454
+ }
455
+ .scale {
456
+ min-width: calc(44 * var(--px));
457
+ text-align: center;
458
+ color: var(--text-2);
459
+ font-variant-numeric: tabular-nums;
460
+ }
461
+ .canvas {
462
+ position: relative;
463
+ overflow: hidden;
464
+ cursor: grab;
465
+ touch-action: none;
466
+ background:
467
+ repeating-conic-gradient(var(--panel) 0% 25%, var(--ground) 0% 50%) 0 0 /
468
+ calc(16 * var(--px)) calc(16 * var(--px));
469
+ }
470
+ .canvas:active {
471
+ cursor: grabbing;
472
+ }
473
+ img {
474
+ position: absolute;
475
+ top: 0;
476
+ left: 0;
477
+ transform-origin: 0 0;
478
+ user-select: none;
479
+ max-width: none;
480
+ }
481
+ .note {
482
+ position: absolute;
483
+ bottom: calc(12 * var(--px));
484
+ left: 50%;
485
+ transform: translateX(-50%);
486
+ padding: calc(6 * var(--px)) calc(12 * var(--px));
487
+ border-radius: calc(8 * var(--px));
488
+ background: var(--raised);
489
+ border: 1px solid var(--line-strong);
490
+ }
491
+ `,
492
+ ];
493
+ }
494
+ if (!customElements.get("adroit-image-viewer")) {
495
+ customElements.define("adroit-image-viewer", AdroitImageViewer);
496
+ }
package/package.json CHANGED
@@ -1,12 +1,31 @@
1
1
  {
2
2
  "name": "@adroit-app/chat-ui",
3
- "version": "0.0.0",
4
- "description": "Reserved for adroit-chat's @adroit-app/chat-ui; the first release is on its way.",
3
+ "version": "0.1.0",
4
+ "description": "<adroit-chat>, the Lit web component that shows one ACP session, and its Markdown rendering",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/adroit-app/adroit-chat.git",
9
9
  "directory": "packages/chat-ui"
10
10
  },
11
- "files": ["README.md"]
11
+ "type": "module",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
+ }
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "dependencies": {
25
+ "@adroit-app/chat-core": "0.1.0",
26
+ "@agentclientprotocol/sdk": "^2.12.1",
27
+ "@arto-app/markdown": "^0.50.1",
28
+ "@tabler/icons": "^3.55.0",
29
+ "lit": "^3.3.3"
30
+ }
12
31
  }