@lostgradient/cinder 0.13.0 → 0.14.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/CHANGELOG.md +10 -0
- package/components.json +49 -1
- package/dist/components/chat/index.js +93 -93
- package/dist/components/chat-conversation-header/index.js +3 -3
- package/dist/components/diff-viewer/index.js +32 -32
- package/dist/components/json-schema-editor/index.js +32 -32
- package/dist/components/markdown-editor/index.js +20 -20
- package/dist/components/review-editor/index.js +88 -88
- package/dist/components/selectable-row/index.d.ts +5 -0
- package/dist/components/selectable-row/index.js +288 -0
- package/dist/components/selectable-row/selectable-row.css +128 -0
- package/dist/components/selectable-row/selectable-row.css.d.ts +1 -0
- package/dist/components/selectable-row/selectable-row.schema.d.ts +3 -0
- package/dist/components/selectable-row/selectable-row.schema.js +155 -0
- package/dist/components/selectable-row/selectable-row.svelte.d.ts +24 -0
- package/dist/components/selectable-row/selectable-row.types.d.ts +84 -0
- package/dist/components/selectable-row/selectable-row.variables.d.ts +2 -0
- package/dist/components/selectable-row/selectable-row.variables.js +68 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3934 -3709
- package/dist/server/components/chat/index.js +2 -2
- package/dist/server/components/chat-conversation-header/index.js +2 -2
- package/dist/server/components/diff-viewer/index.js +2 -2
- package/dist/server/components/json-schema-editor/index.js +2 -2
- package/dist/server/components/markdown-editor/index.js +1 -1
- package/dist/server/components/review-editor/index.js +51 -51
- package/dist/server/components/selectable-row/index.js +12 -0
- package/dist/server/components/side-navigation/index.js +2 -2
- package/dist/server/index.js +32 -27
- package/dist/server/{index.server-3w72dxz7.js → index.server-0jhra85x.js} +4 -4
- package/dist/server/index.server-1gzbrhhh.js +151 -0
- package/dist/server/{index.server-ck3fwrab.js → index.server-46cjwcqw.js} +1 -1
- package/dist/server/{index.server-2zdbz3rj.js → index.server-8rmtb8vx.js} +4 -4
- package/dist/server/{index.server-grgv455a.js → index.server-9ra3xv88.js} +26 -26
- package/dist/server/{index.server-4x4hgvqe.js → index.server-f2me5abn.js} +114 -114
- package/dist/server/{index.server-2s5h1d05.js → index.server-nphtb2ey.js} +1 -1
- package/dist/server/{index.server-p071e531.js → index.server-t1x9h8cb.js} +1 -1
- package/dist/server/{index.server-v3arexq8.js → index.server-vhyjjx9z.js} +32 -32
- package/package.json +33 -1
- package/src/components/selectable-row/index.ts +12 -0
- package/src/components/selectable-row/selectable-row.css +128 -0
- package/src/components/selectable-row/selectable-row.examples.json +13 -0
- package/src/components/selectable-row/selectable-row.schema.json +95 -0
- package/src/components/selectable-row/selectable-row.schema.ts +104 -0
- package/src/components/selectable-row/selectable-row.svelte +95 -0
- package/src/components/selectable-row/selectable-row.types.ts +97 -0
- package/src/components/selectable-row/selectable-row.variables.json +8 -0
- package/src/components/selectable-row/selectable-row.variables.ts +10 -0
- package/src/index.ts +9 -0
- package/src/styles/components.css +1 -0
|
@@ -116,15 +116,15 @@ function Chat_date_separator($$renderer, $$props) {
|
|
|
116
116
|
role: "separator",
|
|
117
117
|
"aria-label": `Messages from ${formattedDate()}`,
|
|
118
118
|
...rest
|
|
119
|
-
}, "svelte-
|
|
119
|
+
}, "svelte-yjps9c")}><span class="chat-date-separator-line svelte-yjps9c" aria-hidden="true"></span> `);
|
|
120
120
|
if (isValidDate()) {
|
|
121
121
|
$$renderer2.push("<!--[0-->");
|
|
122
|
-
$$renderer2.push(`<time class="chat-date-separator-text svelte-
|
|
122
|
+
$$renderer2.push(`<time class="chat-date-separator-text svelte-yjps9c"${$.attr("datetime", isoDate())}>${$.escape(formattedDate())}</time>`);
|
|
123
123
|
} else {
|
|
124
124
|
$$renderer2.push("<!--[-1-->");
|
|
125
|
-
$$renderer2.push(`<span class="chat-date-separator-text svelte-
|
|
125
|
+
$$renderer2.push(`<span class="chat-date-separator-text svelte-yjps9c">${$.escape(formattedDate())}</span>`);
|
|
126
126
|
}
|
|
127
|
-
$$renderer2.push(`<!--]--> <span class="chat-date-separator-line svelte-
|
|
127
|
+
$$renderer2.push(`<!--]--> <span class="chat-date-separator-line svelte-yjps9c" aria-hidden="true"></span></div>`);
|
|
128
128
|
}, Chat_date_separator);
|
|
129
129
|
}
|
|
130
130
|
// src/components/chat/message/chat-message.svelte
|
|
@@ -280,7 +280,7 @@ function Message_content($$renderer, $$props) {
|
|
|
280
280
|
$$renderer2.push(`<div${$3.attributes({
|
|
281
281
|
class: $3.clsx(classNames("message-content", streaming && "message-content-streaming", className)),
|
|
282
282
|
...rest
|
|
283
|
-
}, "svelte-
|
|
283
|
+
}, "svelte-1fl6wp0")}>`);
|
|
284
284
|
if (displayContent()) {
|
|
285
285
|
$$renderer2.push("<!--[0-->");
|
|
286
286
|
Markdown_preview($$renderer2, { content: displayContent() });
|
|
@@ -290,21 +290,21 @@ function Message_content($$renderer, $$props) {
|
|
|
290
290
|
$$renderer2.push(`<!--]--> `);
|
|
291
291
|
if (streaming && streamingTail()) {
|
|
292
292
|
$$renderer2.push("<!--[0-->");
|
|
293
|
-
$$renderer2.push(`<span class="message-content-tail svelte-
|
|
293
|
+
$$renderer2.push(`<span class="message-content-tail svelte-1fl6wp0">${$3.escape(streamingTail())}</span>`);
|
|
294
294
|
} else {
|
|
295
295
|
$$renderer2.push("<!--[-1-->");
|
|
296
296
|
}
|
|
297
297
|
$$renderer2.push(`<!--]--> `);
|
|
298
298
|
if (streaming) {
|
|
299
299
|
$$renderer2.push("<!--[0-->");
|
|
300
|
-
$$renderer2.push(`<span class="message-content-cursor svelte-
|
|
300
|
+
$$renderer2.push(`<span class="message-content-cursor svelte-1fl6wp0" aria-hidden="true"></span>`);
|
|
301
301
|
} else {
|
|
302
302
|
$$renderer2.push("<!--[-1-->");
|
|
303
303
|
}
|
|
304
304
|
$$renderer2.push(`<!--]--> `);
|
|
305
305
|
if (isTruncated()) {
|
|
306
306
|
$$renderer2.push("<!--[0-->");
|
|
307
|
-
$$renderer2.push(`<span class="message-content-ellipsis svelte-
|
|
307
|
+
$$renderer2.push(`<span class="message-content-ellipsis svelte-1fl6wp0" aria-hidden="true">...</span>`);
|
|
308
308
|
} else {
|
|
309
309
|
$$renderer2.push("<!--[-1-->");
|
|
310
310
|
}
|
|
@@ -335,7 +335,7 @@ import * as $5 from "svelte/internal/server";
|
|
|
335
335
|
function Tool_payload_code($$renderer, $$props) {
|
|
336
336
|
$$renderer.component(($$renderer2) => {
|
|
337
337
|
let { code, class: className } = $$props;
|
|
338
|
-
$$renderer2.push(`<div${$5.attr_class($5.clsx(classNames("tool-payload-code", className)), "svelte-
|
|
338
|
+
$$renderer2.push(`<div${$5.attr_class($5.clsx(classNames("tool-payload-code", className)), "svelte-ef3zja")}>`);
|
|
339
339
|
Code_block($$renderer2, { code, language: "json" });
|
|
340
340
|
$$renderer2.push(`<!----></div>`);
|
|
341
341
|
}, Tool_payload_code);
|
|
@@ -370,7 +370,7 @@ function Tool_call_group($$renderer, $$props) {
|
|
|
370
370
|
class: $6.clsx(classNames("tool-call-group", className)),
|
|
371
371
|
"data-status": status(),
|
|
372
372
|
...rest
|
|
373
|
-
}, "svelte-
|
|
373
|
+
}, "svelte-1yhki54")}><button type="button" class="tool-call-header svelte-1yhki54"${$6.attr("aria-expanded", expanded)}${$6.attr("aria-controls", detailsId())}${$6.attr("aria-label", `Toggle tool call details for ${pair.call.name}`)}><span class="tool-call-icon svelte-1yhki54" aria-hidden="true">`);
|
|
374
374
|
if (isError()) {
|
|
375
375
|
$$renderer2.push("<!--[0-->");
|
|
376
376
|
X($$renderer2, { class: "cinder-icon-xs" });
|
|
@@ -384,7 +384,7 @@ function Tool_call_group($$renderer, $$props) {
|
|
|
384
384
|
$$renderer2.push("<!--[-1-->");
|
|
385
385
|
Ellipsis($$renderer2, { class: "cinder-icon-xs" });
|
|
386
386
|
}
|
|
387
|
-
$$renderer2.push(`<!--]--></span> <span class="tool-call-name svelte-
|
|
387
|
+
$$renderer2.push(`<!--]--></span> <span class="tool-call-name svelte-1yhki54">${$6.escape(pair.call.name)}</span> <span class="tool-call-status svelte-1yhki54" role="status" aria-live="polite">`);
|
|
388
388
|
if (isError()) {
|
|
389
389
|
$$renderer2.push("<!--[0-->");
|
|
390
390
|
$$renderer2.push(`Failed`);
|
|
@@ -398,23 +398,23 @@ function Tool_call_group($$renderer, $$props) {
|
|
|
398
398
|
$$renderer2.push("<!--[-1-->");
|
|
399
399
|
$$renderer2.push(`Pending`);
|
|
400
400
|
}
|
|
401
|
-
$$renderer2.push(`<!--]--></span> <span class="tool-call-chevron svelte-
|
|
401
|
+
$$renderer2.push(`<!--]--></span> <span class="tool-call-chevron svelte-1yhki54" aria-hidden="true"${$6.attr("data-expanded", expanded)}>`);
|
|
402
402
|
Chevron_down($$renderer2, { class: "cinder-icon-xs" });
|
|
403
403
|
$$renderer2.push(`<!----></span></button> `);
|
|
404
404
|
if (expanded) {
|
|
405
405
|
$$renderer2.push("<!--[0-->");
|
|
406
|
-
$$renderer2.push(`<div${$6.attr("id", detailsId())} class="tool-call-details svelte-
|
|
406
|
+
$$renderer2.push(`<div${$6.attr("id", detailsId())} class="tool-call-details svelte-1yhki54" role="region" aria-label="Tool details"><div class="tool-call-section svelte-1yhki54"><h4 class="tool-call-section-title svelte-1yhki54">Arguments</h4> `);
|
|
407
407
|
Tool_payload_code($$renderer2, { code: formattedArguments() });
|
|
408
408
|
$$renderer2.push(`<!----></div> `);
|
|
409
409
|
if (hasResult()) {
|
|
410
410
|
$$renderer2.push("<!--[0-->");
|
|
411
|
-
$$renderer2.push(`<div class="tool-call-section svelte-
|
|
411
|
+
$$renderer2.push(`<div class="tool-call-section svelte-1yhki54"${$6.attr("data-error", isError() || undefined)}><h4 class="tool-call-section-title svelte-1yhki54">Result</h4> `);
|
|
412
412
|
if (isError()) {
|
|
413
413
|
$$renderer2.push("<!--[0-->");
|
|
414
|
-
$$renderer2.push(`<div class="tool-call-error svelte-
|
|
414
|
+
$$renderer2.push(`<div class="tool-call-error svelte-1yhki54" role="alert">${$6.escape(errorMessage() || formattedResult())}</div>`);
|
|
415
415
|
} else if (isActionRequired()) {
|
|
416
416
|
$$renderer2.push("<!--[1-->");
|
|
417
|
-
$$renderer2.push(`<div class="tool-call-action svelte-
|
|
417
|
+
$$renderer2.push(`<div class="tool-call-action svelte-1yhki54" role="status">${$6.escape(actionMessage())}</div>`);
|
|
418
418
|
} else {
|
|
419
419
|
$$renderer2.push("<!--[-1-->");
|
|
420
420
|
Tool_payload_code($$renderer2, { code: formattedResult() });
|
|
@@ -458,10 +458,10 @@ function Tool_result_part($$renderer, $$props) {
|
|
|
458
458
|
}
|
|
459
459
|
return stringify(result().content);
|
|
460
460
|
});
|
|
461
|
-
$$renderer2.push(`<div class="chat-message-tool-result svelte-
|
|
461
|
+
$$renderer2.push(`<div class="chat-message-tool-result svelte-18g2pp8"${$8.attr("data-error", isError() || undefined)}${$8.attr("data-action-required", isActionRequired() || undefined)}>`);
|
|
462
462
|
if (isError()) {
|
|
463
463
|
$$renderer2.push("<!--[0-->");
|
|
464
|
-
$$renderer2.push(`<div class="chat-message-tool-error svelte-
|
|
464
|
+
$$renderer2.push(`<div class="chat-message-tool-error svelte-18g2pp8" role="alert">${$8.escape(formatted())}</div>`);
|
|
465
465
|
} else if (isActionRequired()) {
|
|
466
466
|
$$renderer2.push("<!--[1-->");
|
|
467
467
|
$$renderer2.push(`<div class="chat-message-tool-action" role="status">${$8.escape(formatted())}</div>`);
|
|
@@ -501,7 +501,7 @@ function Tool_approval_part($$renderer, $$props) {
|
|
|
501
501
|
handleDeny();
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
$$renderer2.push(`<div class="chat-tool-approval svelte-
|
|
504
|
+
$$renderer2.push(`<div class="chat-tool-approval svelte-18jvs4u" role="group" tabindex="-1"${$9.attr("aria-labelledby", labelId())}${$9.attr("aria-describedby", descId())} data-cinder-tool-approval=""${$9.attr("data-cinder-status", isApproved() ? "approved" : isDenied() ? "denied" : "pending")}><div class="chat-tool-approval-header svelte-18jvs4u"><span class="chat-tool-approval-icon svelte-18jvs4u" aria-hidden="true">`);
|
|
505
505
|
if (isApproved()) {
|
|
506
506
|
$$renderer2.push("<!--[0-->");
|
|
507
507
|
$$renderer2.push(`✓`);
|
|
@@ -512,28 +512,28 @@ function Tool_approval_part($$renderer, $$props) {
|
|
|
512
512
|
$$renderer2.push("<!--[-1-->");
|
|
513
513
|
$$renderer2.push(`⚠`);
|
|
514
514
|
}
|
|
515
|
-
$$renderer2.push(`<!--]--></span> <span${$9.attr("id", labelId())} class="chat-tool-approval-title svelte-
|
|
515
|
+
$$renderer2.push(`<!--]--></span> <span${$9.attr("id", labelId())} class="chat-tool-approval-title svelte-18jvs4u">`);
|
|
516
516
|
if (isApproved()) {
|
|
517
517
|
$$renderer2.push("<!--[0-->");
|
|
518
|
-
$$renderer2.push(`Approved: <code class="chat-tool-approval-name svelte-
|
|
518
|
+
$$renderer2.push(`Approved: <code class="chat-tool-approval-name svelte-18jvs4u">${$9.escape(part.toolName)}</code>`);
|
|
519
519
|
} else if (isDenied()) {
|
|
520
520
|
$$renderer2.push("<!--[1-->");
|
|
521
|
-
$$renderer2.push(`Denied: <code class="chat-tool-approval-name svelte-
|
|
521
|
+
$$renderer2.push(`Denied: <code class="chat-tool-approval-name svelte-18jvs4u">${$9.escape(part.toolName)}</code>`);
|
|
522
522
|
} else {
|
|
523
523
|
$$renderer2.push("<!--[-1-->");
|
|
524
|
-
$$renderer2.push(`Action required: <code class="chat-tool-approval-name svelte-
|
|
524
|
+
$$renderer2.push(`Action required: <code class="chat-tool-approval-name svelte-18jvs4u">${$9.escape(part.toolName)}</code>`);
|
|
525
525
|
}
|
|
526
|
-
$$renderer2.push(`<!--]--></span></div> <p${$9.attr("id", descId())} class="chat-tool-approval-message svelte-
|
|
526
|
+
$$renderer2.push(`<!--]--></span></div> <p${$9.attr("id", descId())} class="chat-tool-approval-message svelte-18jvs4u">${$9.escape(actionMessage())}</p> `);
|
|
527
527
|
if (actionSchema() !== undefined) {
|
|
528
528
|
$$renderer2.push("<!--[0-->");
|
|
529
|
-
$$renderer2.push(`<details class="chat-tool-approval-args svelte-
|
|
529
|
+
$$renderer2.push(`<details class="chat-tool-approval-args svelte-18jvs4u"><summary class="chat-tool-approval-args-toggle svelte-18jvs4u">View parameters</summary> <pre class="chat-tool-approval-args-code svelte-18jvs4u"><code>${$9.escape(actionSchema())}</code></pre></details>`);
|
|
530
530
|
} else {
|
|
531
531
|
$$renderer2.push("<!--[-1-->");
|
|
532
532
|
}
|
|
533
533
|
$$renderer2.push(`<!--]--> `);
|
|
534
534
|
if (isPending()) {
|
|
535
535
|
$$renderer2.push("<!--[0-->");
|
|
536
|
-
$$renderer2.push(`<div class="chat-tool-approval-actions svelte-
|
|
536
|
+
$$renderer2.push(`<div class="chat-tool-approval-actions svelte-18jvs4u"><button type="button" class="chat-tool-approval-btn chat-tool-approval-btn-approve svelte-18jvs4u"${$9.attr("disabled", onapprove === undefined, true)}>Approve</button> <button type="button" class="chat-tool-approval-btn chat-tool-approval-btn-deny svelte-18jvs4u"${$9.attr("disabled", ondeny === undefined, true)}>Reject</button></div>`);
|
|
537
537
|
} else {
|
|
538
538
|
$$renderer2.push("<!--[-1-->");
|
|
539
539
|
}
|
|
@@ -558,14 +558,14 @@ function Reasoning_part($$renderer, $$props) {
|
|
|
558
558
|
ontoggle?.();
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
$$renderer2.push(`<div class="chat-reasoning svelte-
|
|
561
|
+
$$renderer2.push(`<div class="chat-reasoning svelte-amu8ms" data-cinder-reasoning=""${$10.attr("data-cinder-streaming", part.streaming ? "" : undefined)}${$10.attr("data-cinder-expanded", expanded ? "" : undefined)}><button type="button" class="chat-reasoning-toggle svelte-amu8ms"${$10.attr("id", labelId())}${$10.attr("aria-expanded", expanded)}${$10.attr("aria-controls", contentId())}${$10.attr("disabled", part.streaming, true)}><span class="chat-reasoning-label svelte-amu8ms" aria-hidden="true">`);
|
|
562
562
|
if (part.streaming) {
|
|
563
563
|
$$renderer2.push("<!--[0-->");
|
|
564
|
-
$$renderer2.push(`<span class="chat-reasoning-dot svelte-
|
|
564
|
+
$$renderer2.push(`<span class="chat-reasoning-dot svelte-amu8ms" aria-hidden="true"></span>`);
|
|
565
565
|
} else {
|
|
566
566
|
$$renderer2.push("<!--[-1-->");
|
|
567
567
|
}
|
|
568
|
-
$$renderer2.push(`<!--]--> Reasoning${$10.escape(tokenDisplay())}</span> <span class="sr-only svelte-
|
|
568
|
+
$$renderer2.push(`<!--]--> Reasoning${$10.escape(tokenDisplay())}</span> <span class="sr-only svelte-amu8ms">`);
|
|
569
569
|
if (part.streaming) {
|
|
570
570
|
$$renderer2.push("<!--[0-->");
|
|
571
571
|
$$renderer2.push(`Reasoning in progress`);
|
|
@@ -576,7 +576,7 @@ function Reasoning_part($$renderer, $$props) {
|
|
|
576
576
|
$$renderer2.push("<!--[-1-->");
|
|
577
577
|
$$renderer2.push(`Expand reasoning`);
|
|
578
578
|
}
|
|
579
|
-
$$renderer2.push(`<!--]--></span> <span class="chat-reasoning-chevron svelte-
|
|
579
|
+
$$renderer2.push(`<!--]--></span> <span class="chat-reasoning-chevron svelte-amu8ms" aria-hidden="true">${$10.escape(expanded ? "▲" : "▼")}</span></button> <div class="chat-reasoning-body svelte-amu8ms"><div${$10.attr("id", contentId())} class="chat-reasoning-content svelte-amu8ms"${$10.attr("aria-hidden", !expanded)}${$10.attr("aria-live", part.streaming ? "off" : undefined)}${$10.attr("aria-busy", part.streaming ? true : undefined)}>${$10.escape(part.content)}</div></div> <div class="sr-only svelte-amu8ms" aria-live="polite" aria-atomic="true">${$10.escape(announcementText())}</div></div>`);
|
|
580
580
|
}, Reasoning_part);
|
|
581
581
|
}
|
|
582
582
|
|
|
@@ -592,10 +592,10 @@ function Step_part($$renderer, $$props) {
|
|
|
592
592
|
done: "complete",
|
|
593
593
|
error: "failed"
|
|
594
594
|
};
|
|
595
|
-
$$renderer2.push(`<li class="chat-step svelte-
|
|
595
|
+
$$renderer2.push(`<li class="chat-step svelte-axyl7m"${$11.attr("data-cinder-step-status", part.status)}${$11.attr("aria-current", part.status === "running" ? "step" : undefined)}><span class="chat-step-indicator svelte-axyl7m" aria-hidden="true">${$11.escape(statusIcon[part.status])}</span> <span class="chat-step-body svelte-axyl7m"><span class="chat-step-title svelte-axyl7m">${$11.escape(part.title)} <span class="sr-only svelte-axyl7m">— ${$11.escape(statusLabel[part.status])}</span></span> `);
|
|
596
596
|
if (part.content) {
|
|
597
597
|
$$renderer2.push("<!--[0-->");
|
|
598
|
-
$$renderer2.push(`<span class="chat-step-content svelte-
|
|
598
|
+
$$renderer2.push(`<span class="chat-step-content svelte-axyl7m">${$11.escape(part.content)}</span>`);
|
|
599
599
|
} else {
|
|
600
600
|
$$renderer2.push("<!--[-1-->");
|
|
601
601
|
}
|
|
@@ -611,7 +611,7 @@ function Suggestion_part($$renderer, $$props) {
|
|
|
611
611
|
function handleClick() {
|
|
612
612
|
onsuggestionselect?.(part.label);
|
|
613
613
|
}
|
|
614
|
-
$$renderer2.push(`<button type="button" class="chat-suggestion-chip svelte-
|
|
614
|
+
$$renderer2.push(`<button type="button" class="chat-suggestion-chip svelte-121wu00" data-cinder-suggestion=""${$12.attr("tabindex", tabindex)}>${$12.escape(part.label)}</button>`);
|
|
615
615
|
}, Suggestion_part);
|
|
616
616
|
}
|
|
617
617
|
|
|
@@ -674,23 +674,23 @@ function Image_lightbox($$renderer, $$props) {
|
|
|
674
674
|
}
|
|
675
675
|
if (open && currentImage()) {
|
|
676
676
|
$$renderer2.push("<!--[0-->");
|
|
677
|
-
$$renderer2.push(`<div class="lightbox-overlay svelte-
|
|
677
|
+
$$renderer2.push(`<div class="lightbox-overlay svelte-1mzmrlo" role="dialog" aria-modal="true" aria-label="Image viewer" tabindex="-1"><button type="button" class="lightbox-close svelte-1mzmrlo" aria-label="Close image viewer">`);
|
|
678
678
|
X($$renderer2, { size: 20 });
|
|
679
679
|
$$renderer2.push(`<!----></button> `);
|
|
680
680
|
if (hasMultiple()) {
|
|
681
681
|
$$renderer2.push("<!--[0-->");
|
|
682
|
-
$$renderer2.push(`<button type="button" class="lightbox-nav lightbox-nav-previous svelte-
|
|
682
|
+
$$renderer2.push(`<button type="button" class="lightbox-nav lightbox-nav-previous svelte-1mzmrlo" aria-label="Previous image">`);
|
|
683
683
|
Chevron_left($$renderer2, { size: 24 });
|
|
684
684
|
$$renderer2.push(`<!----></button>`);
|
|
685
685
|
} else {
|
|
686
686
|
$$renderer2.push("<!--[-1-->");
|
|
687
687
|
}
|
|
688
|
-
$$renderer2.push(`<!--]--> <div class="lightbox-image-container svelte-
|
|
688
|
+
$$renderer2.push(`<!--]--> <div class="lightbox-image-container svelte-1mzmrlo"><img${$13.attr("src", currentImage().src)}${$13.attr("alt", currentImage().alt)} class="lightbox-image svelte-1mzmrlo" decoding="async"/></div> `);
|
|
689
689
|
if (hasMultiple()) {
|
|
690
690
|
$$renderer2.push("<!--[0-->");
|
|
691
|
-
$$renderer2.push(`<button type="button" class="lightbox-nav lightbox-nav-next svelte-
|
|
691
|
+
$$renderer2.push(`<button type="button" class="lightbox-nav lightbox-nav-next svelte-1mzmrlo" aria-label="Next image">`);
|
|
692
692
|
Chevron_right($$renderer2, { size: 24 });
|
|
693
|
-
$$renderer2.push(`<!----></button> <div class="lightbox-counter svelte-
|
|
693
|
+
$$renderer2.push(`<!----></button> <div class="lightbox-counter svelte-1mzmrlo" aria-live="polite" aria-atomic="true">${$13.escape(counterText())}</div>`);
|
|
694
694
|
} else {
|
|
695
695
|
$$renderer2.push("<!--[-1-->");
|
|
696
696
|
}
|
|
@@ -751,16 +751,16 @@ function Message_attachments($$renderer, $$props) {
|
|
|
751
751
|
"aria-label": "Message attachments",
|
|
752
752
|
"data-count": validImages().length,
|
|
753
753
|
...rest
|
|
754
|
-
}, "svelte-
|
|
754
|
+
}, "svelte-q0kt6l")}><!--[-->`);
|
|
755
755
|
const each_array = $14.ensure_array_like(validImages());
|
|
756
756
|
for (let loopIndex = 0, $$length = each_array.length;loopIndex < $$length; loopIndex++) {
|
|
757
757
|
let { image, url } = each_array[loopIndex];
|
|
758
758
|
const displayIndex = loopIndex + 1;
|
|
759
759
|
const alt = getAltText(image, displayIndex);
|
|
760
|
-
$$renderer3.push(`<figure class="message-attachment svelte-
|
|
760
|
+
$$renderer3.push(`<figure class="message-attachment svelte-q0kt6l" role="listitem"><button type="button" class="message-attachment-button svelte-q0kt6l"${$14.attr("aria-label", `View image: ${alt}`)}><img${$14.attr("src", url)}${$14.attr("alt", alt)}${$14.attr("loading", loading)} decoding="async" class="message-attachment-image svelte-q0kt6l" onload="this.__e=event" onerror="this.__e=event"/></button> `);
|
|
761
761
|
if (alt && alt !== `Image attachment ${displayIndex}`) {
|
|
762
762
|
$$renderer3.push("<!--[0-->");
|
|
763
|
-
$$renderer3.push(`<figcaption class="sr-only svelte-
|
|
763
|
+
$$renderer3.push(`<figcaption class="sr-only svelte-q0kt6l">${$14.escape(alt)}</figcaption>`);
|
|
764
764
|
} else {
|
|
765
765
|
$$renderer3.push("<!--[-1-->");
|
|
766
766
|
}
|
|
@@ -869,7 +869,7 @@ function Chat_message_parts_renderer($$renderer, $$props) {
|
|
|
869
869
|
Image_part($$renderer2, { parts: unit.images });
|
|
870
870
|
} else if (unit.kind === "steps") {
|
|
871
871
|
$$renderer2.push("<!--[1-->");
|
|
872
|
-
$$renderer2.push(`<ol class="chat-step-list svelte-
|
|
872
|
+
$$renderer2.push(`<ol class="chat-step-list svelte-1hi7bxi" aria-label="Steps"><!--[-->`);
|
|
873
873
|
const each_array_1 = $16.ensure_array_like(unit.steps);
|
|
874
874
|
for (let $$index = 0, $$length2 = each_array_1.length;$$index < $$length2; $$index++) {
|
|
875
875
|
let step = each_array_1[$$index];
|
|
@@ -878,7 +878,7 @@ function Chat_message_parts_renderer($$renderer, $$props) {
|
|
|
878
878
|
$$renderer2.push(`<!--]--></ol>`);
|
|
879
879
|
} else if (unit.kind === "suggestions") {
|
|
880
880
|
$$renderer2.push("<!--[2-->");
|
|
881
|
-
$$renderer2.push(`<div class="chat-suggestions svelte-
|
|
881
|
+
$$renderer2.push(`<div class="chat-suggestions svelte-1hi7bxi" role="toolbar" aria-label="Suggested replies" data-cinder-suggested-replies=""><!--[-->`);
|
|
882
882
|
const each_array_2 = $16.ensure_array_like(unit.suggestions);
|
|
883
883
|
for (let index = 0, $$length2 = each_array_2.length;index < $$length2; index++) {
|
|
884
884
|
let suggestion = each_array_2[index];
|
|
@@ -1020,25 +1020,25 @@ function Chat_message($$renderer, $$props) {
|
|
|
1020
1020
|
"data-search-match": searchMatch || undefined,
|
|
1021
1021
|
"data-tool-pair": isToolCall() && toolPair() ? "" : undefined,
|
|
1022
1022
|
...rest
|
|
1023
|
-
}, "svelte-
|
|
1023
|
+
}, "svelte-q1hoql")}><article${$17.attr("id", messageId())} class="chat-message svelte-q1hoql"${$17.attr("aria-labelledby", isToolCall() && toolPair() ? undefined : roleId())}${$17.attr("aria-label", isToolCall() && toolPair() ? `Tool call: ${toolPair().call.name}` : undefined)}${$17.attr("tabindex", tabindex)}><header class="chat-message-header svelte-q1hoql"><span${$17.attr("id", roleId())} class="chat-message-role svelte-q1hoql">${$17.escape(roleLabel())}</span> `);
|
|
1024
1024
|
if (status) {
|
|
1025
1025
|
$$renderer2.push("<!--[0-->");
|
|
1026
|
-
$$renderer2.push(`<div class="chat-message-status svelte-
|
|
1026
|
+
$$renderer2.push(`<div class="chat-message-status svelte-q1hoql">`);
|
|
1027
1027
|
status($$renderer2);
|
|
1028
1028
|
$$renderer2.push(`<!----></div>`);
|
|
1029
1029
|
} else {
|
|
1030
1030
|
$$renderer2.push("<!--[-1-->");
|
|
1031
1031
|
}
|
|
1032
|
-
$$renderer2.push(`<!--]--></header> <div class="chat-message-body svelte-
|
|
1032
|
+
$$renderer2.push(`<!--]--></header> <div class="chat-message-body svelte-q1hoql">`);
|
|
1033
1033
|
if (isEditing) {
|
|
1034
1034
|
$$renderer2.push("<!--[0-->");
|
|
1035
|
-
$$renderer2.push(`<div class="chat-message-edit svelte-
|
|
1035
|
+
$$renderer2.push(`<div class="chat-message-edit svelte-q1hoql"><textarea class="chat-message-edit-textarea svelte-q1hoql" autofocus="" aria-label="Edit message content"${$17.attr("rows", Math.min(Math.max(editContent.split(`
|
|
1036
1036
|
`).length, 2), 10))}>`);
|
|
1037
1037
|
const $$body = $17.escape(editContent);
|
|
1038
1038
|
if ($$body) {
|
|
1039
1039
|
$$renderer2.push(`${$$body}`);
|
|
1040
1040
|
} else {}
|
|
1041
|
-
$$renderer2.push(`</textarea> <div class="chat-message-edit-actions svelte-
|
|
1041
|
+
$$renderer2.push(`</textarea> <div class="chat-message-edit-actions svelte-q1hoql"><button type="button" class="chat-message-edit-save svelte-q1hoql">Save & Resend</button> <button type="button" class="chat-message-edit-cancel svelte-q1hoql">Cancel</button></div></div>`);
|
|
1042
1042
|
} else {
|
|
1043
1043
|
$$renderer2.push("<!--[-1-->");
|
|
1044
1044
|
Chat_message_parts_renderer($$renderer2, {
|
|
@@ -1055,7 +1055,7 @@ function Chat_message($$renderer, $$props) {
|
|
|
1055
1055
|
$$renderer2.push(`<!----> `);
|
|
1056
1056
|
if (hasMarkdownBody() && textContent().length > TRUNCATE_THRESHOLD) {
|
|
1057
1057
|
$$renderer2.push("<!--[0-->");
|
|
1058
|
-
$$renderer2.push(`<button type="button" class="chat-message-expand svelte-
|
|
1058
|
+
$$renderer2.push(`<button type="button" class="chat-message-expand svelte-q1hoql">${$17.escape(expanded ? "Show less" : "Show more")}</button>`);
|
|
1059
1059
|
} else {
|
|
1060
1060
|
$$renderer2.push("<!--[-1-->");
|
|
1061
1061
|
}
|
|
@@ -1071,7 +1071,7 @@ function Chat_message($$renderer, $$props) {
|
|
|
1071
1071
|
$$renderer2.push(`<!--]--> `);
|
|
1072
1072
|
if (isFailed() && onretry) {
|
|
1073
1073
|
$$renderer2.push("<!--[0-->");
|
|
1074
|
-
$$renderer2.push(`<div class="chat-message-failed-actions svelte-
|
|
1074
|
+
$$renderer2.push(`<div class="chat-message-failed-actions svelte-q1hoql"><span class="chat-message-failed-label svelte-q1hoql" role="alert">Failed to send</span> <button type="button" class="chat-message-retry svelte-q1hoql">`);
|
|
1075
1075
|
Rotate_ccw($$renderer2, { class: "cinder-icon-xs" });
|
|
1076
1076
|
$$renderer2.push(`<!----> Retry</button></div>`);
|
|
1077
1077
|
} else {
|
|
@@ -1080,7 +1080,7 @@ function Chat_message($$renderer, $$props) {
|
|
|
1080
1080
|
$$renderer2.push(`<!--]--></article> `);
|
|
1081
1081
|
if (actions || showDefaultActions && textContent() || canEdit()) {
|
|
1082
1082
|
$$renderer2.push("<!--[0-->");
|
|
1083
|
-
$$renderer2.push(`<footer class="chat-message-footer svelte-
|
|
1083
|
+
$$renderer2.push(`<footer class="chat-message-footer svelte-q1hoql" role="none"><div class="chat-message-actions svelte-q1hoql" role="group" aria-label="Message actions">`);
|
|
1084
1084
|
if (actions) {
|
|
1085
1085
|
$$renderer2.push("<!--[0-->");
|
|
1086
1086
|
actions($$renderer2);
|
|
@@ -1156,13 +1156,13 @@ function Chat_attachment_preview($$renderer, $$props) {
|
|
|
1156
1156
|
return name.slice(0, maxLength - 1) + "…";
|
|
1157
1157
|
return base.slice(0, availableLength) + "…" + ext;
|
|
1158
1158
|
});
|
|
1159
|
-
$$renderer2.push(`<div${$18.attr_class($18.clsx(classNames("chat-attachment-preview", className)), "svelte-
|
|
1159
|
+
$$renderer2.push(`<div${$18.attr_class($18.clsx(classNames("chat-attachment-preview", className)), "svelte-rnpw0r")}${$18.attr("data-kind", attachment.kind)}${$18.attr("data-error", attachment.status === "error" || undefined)}${$18.attr("data-pending", attachment.status === "pending" || undefined)}>`);
|
|
1160
1160
|
if (attachment.kind === "image") {
|
|
1161
1161
|
$$renderer2.push("<!--[0-->");
|
|
1162
|
-
$$renderer2.push(`<img${$18.attr("src", attachment.previewUrl)}${$18.attr("alt", attachment.file.name)} class="chat-attachment-preview-image svelte-
|
|
1162
|
+
$$renderer2.push(`<img${$18.attr("src", attachment.previewUrl)}${$18.attr("alt", attachment.file.name)} class="chat-attachment-preview-image svelte-rnpw0r"/>`);
|
|
1163
1163
|
} else {
|
|
1164
1164
|
$$renderer2.push("<!--[-1-->");
|
|
1165
|
-
$$renderer2.push(`<div class="chat-attachment-preview-file svelte-
|
|
1165
|
+
$$renderer2.push(`<div class="chat-attachment-preview-file svelte-rnpw0r"><div class="chat-attachment-preview-icon svelte-rnpw0r">`);
|
|
1166
1166
|
if (attachment.kind === "code") {
|
|
1167
1167
|
$$renderer2.push("<!--[0-->");
|
|
1168
1168
|
File_code($$renderer2, { class: "cinder-icon-sm" });
|
|
@@ -1170,26 +1170,26 @@ function Chat_attachment_preview($$renderer, $$props) {
|
|
|
1170
1170
|
$$renderer2.push("<!--[-1-->");
|
|
1171
1171
|
File_text($$renderer2, { class: "cinder-icon-sm" });
|
|
1172
1172
|
}
|
|
1173
|
-
$$renderer2.push(`<!--]--></div> <div class="chat-attachment-preview-info svelte-
|
|
1173
|
+
$$renderer2.push(`<!--]--></div> <div class="chat-attachment-preview-info svelte-rnpw0r"><span class="chat-attachment-preview-name svelte-rnpw0r"${$18.attr("title", attachment.file.name)}>${$18.escape(truncatedName())}</span> <span class="chat-attachment-preview-meta svelte-rnpw0r">`);
|
|
1174
1174
|
if (extension()) {
|
|
1175
1175
|
$$renderer2.push("<!--[0-->");
|
|
1176
|
-
$$renderer2.push(`<span class="chat-attachment-preview-ext svelte-
|
|
1176
|
+
$$renderer2.push(`<span class="chat-attachment-preview-ext svelte-rnpw0r">${$18.escape(extension())}</span>`);
|
|
1177
1177
|
} else {
|
|
1178
1178
|
$$renderer2.push("<!--[-1-->");
|
|
1179
1179
|
}
|
|
1180
|
-
$$renderer2.push(`<!--]--> <span class="chat-attachment-preview-size svelte-
|
|
1180
|
+
$$renderer2.push(`<!--]--> <span class="chat-attachment-preview-size svelte-rnpw0r">${$18.escape(formatBytes(attachment.file.size))}</span></span></div></div>`);
|
|
1181
1181
|
}
|
|
1182
1182
|
$$renderer2.push(`<!--]--> `);
|
|
1183
1183
|
if (attachment.status === "error") {
|
|
1184
1184
|
$$renderer2.push("<!--[0-->");
|
|
1185
|
-
$$renderer2.push(`<span class="chat-attachment-preview-error-badge svelte-
|
|
1185
|
+
$$renderer2.push(`<span class="chat-attachment-preview-error-badge svelte-rnpw0r"${$18.attr("aria-label", attachment.error ?? "Attachment error")}>!</span>`);
|
|
1186
1186
|
} else {
|
|
1187
1187
|
$$renderer2.push("<!--[-1-->");
|
|
1188
1188
|
}
|
|
1189
1189
|
$$renderer2.push(`<!--]--> `);
|
|
1190
1190
|
if (attachment.status === "pending") {
|
|
1191
1191
|
$$renderer2.push("<!--[0-->");
|
|
1192
|
-
$$renderer2.push(`<div class="chat-attachment-preview-loading svelte-
|
|
1192
|
+
$$renderer2.push(`<div class="chat-attachment-preview-loading svelte-rnpw0r" role="status" aria-label="Reading file"><div class="chat-attachment-preview-loading-bar svelte-rnpw0r"></div></div>`);
|
|
1193
1193
|
} else {
|
|
1194
1194
|
$$renderer2.push("<!--[-1-->");
|
|
1195
1195
|
}
|
|
@@ -1518,7 +1518,7 @@ function Chat_input($$renderer, $$props) {
|
|
|
1518
1518
|
"aria-label": "Chat message composer",
|
|
1519
1519
|
"aria-busy": sending || undefined,
|
|
1520
1520
|
...rest
|
|
1521
|
-
}, "svelte-
|
|
1521
|
+
}, "svelte-besje3")}>`);
|
|
1522
1522
|
if (isFormActionMode()) {
|
|
1523
1523
|
$$renderer2.push("<!--[0-->");
|
|
1524
1524
|
$$renderer2.push(`<input type="hidden"${$19.attr("name", name)}${$19.attr("value", value)}/>`);
|
|
@@ -1528,13 +1528,13 @@ function Chat_input($$renderer, $$props) {
|
|
|
1528
1528
|
$$renderer2.push(`<!--]--> `);
|
|
1529
1529
|
if (attachments.length > 0) {
|
|
1530
1530
|
$$renderer2.push("<!--[0-->");
|
|
1531
|
-
$$renderer2.push(`<div class="chat-input-attachments svelte-
|
|
1531
|
+
$$renderer2.push(`<div class="chat-input-attachments svelte-besje3" role="list" aria-label="Attached files"><!--[-->`);
|
|
1532
1532
|
const each_array = $19.ensure_array_like(attachments);
|
|
1533
1533
|
for (let $$index = 0, $$length = each_array.length;$$index < $$length; $$index++) {
|
|
1534
1534
|
let attachment = each_array[$$index];
|
|
1535
|
-
$$renderer2.push(`<div class="chat-input-attachment-wrapper svelte-
|
|
1535
|
+
$$renderer2.push(`<div class="chat-input-attachment-wrapper svelte-besje3" role="listitem">`);
|
|
1536
1536
|
Chat_attachment_preview($$renderer2, { attachment });
|
|
1537
|
-
$$renderer2.push(`<!----> <button type="button" class="chat-input-attachment-remove svelte-
|
|
1537
|
+
$$renderer2.push(`<!----> <button type="button" class="chat-input-attachment-remove svelte-besje3"${$19.attr("aria-label", `Remove ${attachment.file.name}`)}>`);
|
|
1538
1538
|
X($$renderer2, { class: "cinder-icon-xs" });
|
|
1539
1539
|
$$renderer2.push(`<!----></button></div>`);
|
|
1540
1540
|
}
|
|
@@ -1542,15 +1542,15 @@ function Chat_input($$renderer, $$props) {
|
|
|
1542
1542
|
} else {
|
|
1543
1543
|
$$renderer2.push("<!--[-1-->");
|
|
1544
1544
|
}
|
|
1545
|
-
$$renderer2.push(`<!--]--> <div class="chat-input-editor-container svelte-
|
|
1545
|
+
$$renderer2.push(`<!--]--> <div class="chat-input-editor-container svelte-besje3"><textarea${$19.attr("id", `${id}-editor`)}${$19.attr("placeholder", placeholder)}${$19.attr("role", composerRole)}${$19.attr("aria-label", resolvedComposerLabel())}${$19.attr("aria-expanded", composerAriaExpanded)}${$19.attr("aria-controls", composerAriaControls)}${$19.attr("aria-activedescendant", composerAriaActiveDescendant)}${$19.attr("aria-autocomplete", composerAriaAutocomplete)}${$19.attr("disabled", disabled, true)}${$19.attr("readonly", sending, true)} class="chat-input-editor svelte-besje3"${$19.attr("aria-describedby", shortcutDescriptionId())} rows="1">`);
|
|
1546
1546
|
const $$body = $19.escape(value);
|
|
1547
1547
|
if ($$body) {
|
|
1548
1548
|
$$renderer2.push(`${$$body}`);
|
|
1549
1549
|
} else {}
|
|
1550
|
-
$$renderer2.push(`</textarea></div> <div class="chat-input-footer svelte-
|
|
1550
|
+
$$renderer2.push(`</textarea></div> <div class="chat-input-footer svelte-besje3"><div class="chat-input-footer-left svelte-besje3">`);
|
|
1551
1551
|
if (allowAttachments) {
|
|
1552
1552
|
$$renderer2.push("<!--[0-->");
|
|
1553
|
-
$$renderer2.push(`<input${$19.attr("id", `${id}-file-picker`)} type="file"${$19.attr("accept", acceptedTypes.join(","))} multiple="" class="sr-only svelte-
|
|
1553
|
+
$$renderer2.push(`<input${$19.attr("id", `${id}-file-picker`)} type="file"${$19.attr("accept", acceptedTypes.join(","))} multiple="" class="sr-only svelte-besje3" aria-label="Attach files"${$19.attr("tabindex", -1)}/> `);
|
|
1554
1554
|
Button($$renderer2, {
|
|
1555
1555
|
type: "button",
|
|
1556
1556
|
variant: "ghost",
|
|
@@ -1567,7 +1567,7 @@ function Chat_input($$renderer, $$props) {
|
|
|
1567
1567
|
} else {
|
|
1568
1568
|
$$renderer2.push("<!--[-1-->");
|
|
1569
1569
|
}
|
|
1570
|
-
$$renderer2.push(`<!--]--> <span${$19.attr("id", shortcutDescriptionId())} class="sr-only svelte-
|
|
1570
|
+
$$renderer2.push(`<!--]--> <span${$19.attr("id", shortcutDescriptionId())} class="sr-only svelte-besje3">`);
|
|
1571
1571
|
if (showStopButton()) {
|
|
1572
1572
|
$$renderer2.push("<!--[0-->");
|
|
1573
1573
|
$$renderer2.push(`Response is streaming. Use the stop button to stop generation.`);
|
|
@@ -1578,11 +1578,11 @@ function Chat_input($$renderer, $$props) {
|
|
|
1578
1578
|
$$renderer2.push(`<!--]--></span> `);
|
|
1579
1579
|
if (!showStopButton()) {
|
|
1580
1580
|
$$renderer2.push("<!--[0-->");
|
|
1581
|
-
$$renderer2.push(`<span${$19.attr("id", hintId())} class="chat-input-hint svelte-
|
|
1581
|
+
$$renderer2.push(`<span${$19.attr("id", hintId())} class="chat-input-hint svelte-besje3" aria-hidden="true"><kbd class="svelte-besje3">Enter</kbd> to send, <kbd class="svelte-besje3">Shift</kbd>+<kbd class="svelte-besje3">Enter</kbd> for newline</span>`);
|
|
1582
1582
|
} else {
|
|
1583
1583
|
$$renderer2.push("<!--[-1-->");
|
|
1584
1584
|
}
|
|
1585
|
-
$$renderer2.push(`<!--]--></div> <div class="chat-input-footer-right svelte-
|
|
1585
|
+
$$renderer2.push(`<!--]--></div> <div class="chat-input-footer-right svelte-besje3">`);
|
|
1586
1586
|
if (actions) {
|
|
1587
1587
|
$$renderer2.push("<!--[0-->");
|
|
1588
1588
|
actions($$renderer2);
|
|
@@ -1593,15 +1593,15 @@ function Chat_input($$renderer, $$props) {
|
|
|
1593
1593
|
$$renderer2.push(`<!--]--> `);
|
|
1594
1594
|
if (showStopButton()) {
|
|
1595
1595
|
$$renderer2.push("<!--[0-->");
|
|
1596
|
-
$$renderer2.push(`<button type="button" class="chat-input-send svelte-
|
|
1596
|
+
$$renderer2.push(`<button type="button" class="chat-input-send svelte-besje3" data-stop="" aria-label="Stop generating"${$19.attr("aria-describedby", shortcutDescriptionId())}>`);
|
|
1597
1597
|
Square($$renderer2, { class: "cinder-icon-sm" });
|
|
1598
1598
|
$$renderer2.push(`<!----></button>`);
|
|
1599
1599
|
} else {
|
|
1600
1600
|
$$renderer2.push("<!--[-1-->");
|
|
1601
|
-
$$renderer2.push(`<button type="submit" class="chat-input-send svelte-
|
|
1601
|
+
$$renderer2.push(`<button type="submit" class="chat-input-send svelte-besje3"${$19.attr("disabled", !canSubmit(), true)}${$19.attr("aria-label", sending ? "Sending message" : "Send message")}${$19.attr("aria-describedby", shortcutDescriptionId())}>`);
|
|
1602
1602
|
if (sending) {
|
|
1603
1603
|
$$renderer2.push("<!--[0-->");
|
|
1604
|
-
$$renderer2.push(`<svg class="chat-input-spinner svelte-
|
|
1604
|
+
$$renderer2.push(`<svg class="chat-input-spinner svelte-besje3" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true"><circle class="spinner-track svelte-besje3" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="spinner-head svelte-besje3" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>`);
|
|
1605
1605
|
} else {
|
|
1606
1606
|
$$renderer2.push("<!--[-1-->");
|
|
1607
1607
|
Arrow_up($$renderer2, { class: "cinder-icon-sm" });
|
|
@@ -1611,11 +1611,11 @@ function Chat_input($$renderer, $$props) {
|
|
|
1611
1611
|
$$renderer2.push(`<!--]--></div></div> `);
|
|
1612
1612
|
if (error) {
|
|
1613
1613
|
$$renderer2.push("<!--[0-->");
|
|
1614
|
-
$$renderer2.push(`<p${$19.attr("id", errorId())} class="chat-input-error svelte-
|
|
1614
|
+
$$renderer2.push(`<p${$19.attr("id", errorId())} class="chat-input-error svelte-besje3" role="alert">${$19.escape(error)}</p>`);
|
|
1615
1615
|
} else {
|
|
1616
1616
|
$$renderer2.push("<!--[-1-->");
|
|
1617
1617
|
}
|
|
1618
|
-
$$renderer2.push(`<!--]--> <div aria-live="polite" aria-atomic="true" class="sr-only svelte-
|
|
1618
|
+
$$renderer2.push(`<!--]--> <div aria-live="polite" aria-atomic="true" class="sr-only svelte-besje3">${$19.escape(announcer.message)}</div></form>`);
|
|
1619
1619
|
$19.bind_props($$props, {
|
|
1620
1620
|
value,
|
|
1621
1621
|
focus,
|
|
@@ -2116,12 +2116,12 @@ function Chat_jump_controls($$renderer, $$props) {
|
|
|
2116
2116
|
}
|
|
2117
2117
|
if (showJumpButton) {
|
|
2118
2118
|
$$renderer2.push("<!--[0-->");
|
|
2119
|
-
$$renderer2.push(`<button type="button" class="chat-jump-button svelte-
|
|
2119
|
+
$$renderer2.push(`<button type="button" class="chat-jump-button svelte-118zsb3"${$24.attr("aria-label", unreadCount > 0 ? `Jump to ${unreadCount} new message${unreadCount !== 1 ? "s" : ""}` : "Jump to latest")}>`);
|
|
2120
2120
|
Chevron_down($$renderer2, { class: "cinder-icon-sm" });
|
|
2121
2121
|
$$renderer2.push(`<!----> `);
|
|
2122
2122
|
if (unreadCount > 0) {
|
|
2123
2123
|
$$renderer2.push("<!--[0-->");
|
|
2124
|
-
$$renderer2.push(`<span class="chat-jump-badge svelte-
|
|
2124
|
+
$$renderer2.push(`<span class="chat-jump-badge svelte-118zsb3"${$24.attr("data-large", hasLargeCount || undefined)}>${$24.escape(displayUnreadCount)}</span>`);
|
|
2125
2125
|
} else {
|
|
2126
2126
|
$$renderer2.push("<!--[-1-->");
|
|
2127
2127
|
}
|
|
@@ -2132,7 +2132,7 @@ function Chat_jump_controls($$renderer, $$props) {
|
|
|
2132
2132
|
$$renderer2.push(`<!--]--> `);
|
|
2133
2133
|
if (hasNewMessageIndicator && !showJumpButton) {
|
|
2134
2134
|
$$renderer2.push("<!--[0-->");
|
|
2135
|
-
$$renderer2.push(`<button type="button" class="chat-new-indicator svelte-
|
|
2135
|
+
$$renderer2.push(`<button type="button" class="chat-new-indicator svelte-118zsb3"${$24.attr("aria-label", `Jump to ${$24.stringify(displayUnreadCount)} new message${unreadCount !== 1 ? "s" : ""}`)}>`);
|
|
2136
2136
|
Chevron_down($$renderer2, { class: "cinder-icon-xs" });
|
|
2137
2137
|
$$renderer2.push(`<!----> <span aria-hidden="true">${$24.escape(displayUnreadCount)} new message${$24.escape(unreadCount !== 1 ? "s" : "")}</span></button>`);
|
|
2138
2138
|
} else {
|
|
@@ -2164,10 +2164,10 @@ function Chat_history_trigger($$renderer, $$props) {
|
|
|
2164
2164
|
function focus(options = undefined) {
|
|
2165
2165
|
buttonElement?.focus(options);
|
|
2166
2166
|
}
|
|
2167
|
-
$$renderer2.push(`<div class="chat-history-trigger svelte-
|
|
2167
|
+
$$renderer2.push(`<div class="chat-history-trigger svelte-1f86cqz" data-cinder-history-trigger=""><button type="button" class="chat-history-trigger-button svelte-1f86cqz"${$25.attr("disabled", loading, true)}${$25.attr("aria-busy", loading ? "true" : undefined)}>${$25.escape(loading ? loadingLabel : label)}</button> `);
|
|
2168
2168
|
if (loading) {
|
|
2169
2169
|
$$renderer2.push("<!--[0-->");
|
|
2170
|
-
$$renderer2.push(`<span class="sr-only svelte-
|
|
2170
|
+
$$renderer2.push(`<span class="sr-only svelte-1f86cqz" role="status">${$25.escape(loadingLabel)}</span>`);
|
|
2171
2171
|
} else {
|
|
2172
2172
|
$$renderer2.push("<!--[-1-->");
|
|
2173
2173
|
}
|
|
@@ -2231,20 +2231,20 @@ function Chat_search_bar($$renderer, $$props) {
|
|
|
2231
2231
|
}
|
|
2232
2232
|
}
|
|
2233
2233
|
}
|
|
2234
|
-
$$renderer2.push(`<div class="chat-search-bar svelte-
|
|
2234
|
+
$$renderer2.push(`<div class="chat-search-bar svelte-dxopi2" role="search" aria-label="Search messages"><span class="chat-search-icon svelte-dxopi2" aria-hidden="true">`);
|
|
2235
2235
|
Search($$renderer2, { class: "cinder-icon-sm" });
|
|
2236
|
-
$$renderer2.push(`<!----></span> <input type="search" class="chat-search-input svelte-
|
|
2236
|
+
$$renderer2.push(`<!----></span> <input type="search" class="chat-search-input svelte-dxopi2" placeholder="Search messages…"${$27.attr("value", query)} autocomplete="off" aria-label="Search messages"${$27.attr("aria-controls", hasQuery() ? searchResultsId() : undefined)}/> `);
|
|
2237
2237
|
if (hasQuery()) {
|
|
2238
2238
|
$$renderer2.push("<!--[0-->");
|
|
2239
|
-
$$renderer2.push(`<span${$27.attr("id", searchResultsId())} class="chat-search-match-count svelte-
|
|
2239
|
+
$$renderer2.push(`<span${$27.attr("id", searchResultsId())} class="chat-search-match-count svelte-dxopi2" aria-live="polite" aria-atomic="true">${$27.escape(matchLabel())}</span>`);
|
|
2240
2240
|
} else {
|
|
2241
2241
|
$$renderer2.push("<!--[-1-->");
|
|
2242
2242
|
}
|
|
2243
|
-
$$renderer2.push(`<!--]--> <div class="chat-search-navigation svelte-
|
|
2243
|
+
$$renderer2.push(`<!--]--> <div class="chat-search-navigation svelte-dxopi2" role="group" aria-label="Navigate search results"><button type="button" class="chat-search-nav-button svelte-dxopi2"${$27.attr("disabled", matchCount === 0, true)} aria-label="Previous match" title="Previous match (Shift+Enter)">`);
|
|
2244
2244
|
Chevron_up($$renderer2, { class: "cinder-icon-sm" });
|
|
2245
|
-
$$renderer2.push(`<!----></button> <button type="button" class="chat-search-nav-button svelte-
|
|
2245
|
+
$$renderer2.push(`<!----></button> <button type="button" class="chat-search-nav-button svelte-dxopi2"${$27.attr("disabled", matchCount === 0, true)} aria-label="Next match" title="Next match (Enter)">`);
|
|
2246
2246
|
Chevron_down($$renderer2, { class: "cinder-icon-sm" });
|
|
2247
|
-
$$renderer2.push(`<!----></button></div> <button type="button" class="chat-search-close svelte-
|
|
2247
|
+
$$renderer2.push(`<!----></button></div> <button type="button" class="chat-search-close svelte-dxopi2" aria-label="Close search" title="Close search (Escape)">`);
|
|
2248
2248
|
X($$renderer2, { class: "cinder-icon-sm" });
|
|
2249
2249
|
$$renderer2.push(`<!----></button></div>`);
|
|
2250
2250
|
$27.bind_props($$props, { focusInput });
|
|
@@ -2690,10 +2690,10 @@ import * as $33 from "svelte/internal/server";
|
|
|
2690
2690
|
function Chat_participant_typing($$renderer, $$props) {
|
|
2691
2691
|
let { typingLabel, participantCount } = $$props;
|
|
2692
2692
|
const isActive = $33.derived(() => participantCount > 0);
|
|
2693
|
-
$$renderer.push(`<div class="chat-participant-typing svelte-
|
|
2693
|
+
$$renderer.push(`<div class="chat-participant-typing svelte-vw9e7n"${$33.attr("data-cinder-participant-typing", isActive() ? "" : undefined)}${$33.attr("data-cinder-participant-count", participantCount)} aria-hidden="true">`);
|
|
2694
2694
|
if (isActive()) {
|
|
2695
2695
|
$$renderer.push("<!--[0-->");
|
|
2696
|
-
$$renderer.push(`<div class="chat-participant-typing-indicator svelte-
|
|
2696
|
+
$$renderer.push(`<div class="chat-participant-typing-indicator svelte-vw9e7n"><span class="chat-typing-dot svelte-vw9e7n" aria-hidden="true"></span> <span class="chat-typing-dot svelte-vw9e7n" aria-hidden="true"></span> <span class="chat-typing-dot svelte-vw9e7n" aria-hidden="true"></span> <span class="chat-participant-typing-label svelte-vw9e7n">${$33.escape(typingLabel)}</span></div>`);
|
|
2697
2697
|
} else {
|
|
2698
2698
|
$$renderer.push("<!--[-1-->");
|
|
2699
2699
|
}
|
|
@@ -2719,7 +2719,7 @@ function Chat_read_receipt($$renderer, $$props) {
|
|
|
2719
2719
|
});
|
|
2720
2720
|
const visibleLabel = $34.derived(() => status() === "sent" ? "Sent" : status() === "delivered" ? "Delivered" : "Read");
|
|
2721
2721
|
const isDoubleCheck = $34.derived(() => status() === "delivered" || status() === "read");
|
|
2722
|
-
$$renderer2.push(`<span class="chat-read-receipt svelte-
|
|
2722
|
+
$$renderer2.push(`<span class="chat-read-receipt svelte-16u29z1" role="img"${$34.attr("data-cinder-receipt-status", status())}${$34.attr("aria-label", ariaLabel())}><span class="chat-read-receipt-icon svelte-16u29z1" aria-hidden="true">`);
|
|
2723
2723
|
if (isDoubleCheck()) {
|
|
2724
2724
|
$$renderer2.push("<!--[0-->");
|
|
2725
2725
|
Check_check($$renderer2, { size: 12 });
|
|
@@ -2727,7 +2727,7 @@ function Chat_read_receipt($$renderer, $$props) {
|
|
|
2727
2727
|
$$renderer2.push("<!--[-1-->");
|
|
2728
2728
|
Check($$renderer2, { size: 12 });
|
|
2729
2729
|
}
|
|
2730
|
-
$$renderer2.push(`<!--]--></span> <span class="chat-read-receipt-label svelte-
|
|
2730
|
+
$$renderer2.push(`<!--]--></span> <span class="chat-read-receipt-label svelte-16u29z1">${$34.escape(visibleLabel())}</span></span>`);
|
|
2731
2731
|
}, Chat_read_receipt);
|
|
2732
2732
|
}
|
|
2733
2733
|
|
|
@@ -3546,13 +3546,13 @@ function Chat($$renderer, $$props) {
|
|
|
3546
3546
|
};
|
|
3547
3547
|
}
|
|
3548
3548
|
function renderTypingIndicator($$renderer3) {
|
|
3549
|
-
$$renderer3.push(`<div class="chat-typing-indicator svelte-
|
|
3549
|
+
$$renderer3.push(`<div class="chat-typing-indicator svelte-1xqqal3" role="status"${$35.attr("aria-label", streamingStatus ?? "Assistant is typing")}>`);
|
|
3550
3550
|
if (streamingStatus) {
|
|
3551
3551
|
$$renderer3.push("<!--[0-->");
|
|
3552
|
-
$$renderer3.push(`<span class="chat-typing-status svelte-
|
|
3552
|
+
$$renderer3.push(`<span class="chat-typing-status svelte-1xqqal3">${$35.escape(streamingStatus)}</span>`);
|
|
3553
3553
|
} else {
|
|
3554
3554
|
$$renderer3.push("<!--[-1-->");
|
|
3555
|
-
$$renderer3.push(`<span class="chat-typing-dot svelte-
|
|
3555
|
+
$$renderer3.push(`<span class="chat-typing-dot svelte-1xqqal3" aria-hidden="true"></span> <span class="chat-typing-dot svelte-1xqqal3" aria-hidden="true"></span> <span class="chat-typing-dot svelte-1xqqal3" aria-hidden="true"></span>`);
|
|
3556
3556
|
}
|
|
3557
3557
|
$$renderer3.push(`<!--]--></div>`);
|
|
3558
3558
|
}
|
|
@@ -3635,7 +3635,7 @@ function Chat($$renderer, $$props) {
|
|
|
3635
3635
|
Chat_date_separator($$renderer3, { date: renderRow.date });
|
|
3636
3636
|
} else if (renderRow.type === "unread-divider") {
|
|
3637
3637
|
$$renderer3.push("<!--[1-->");
|
|
3638
|
-
$$renderer3.push(`<div class="chat-unread-divider svelte-
|
|
3638
|
+
$$renderer3.push(`<div class="chat-unread-divider svelte-1xqqal3" role="separator" aria-label="New messages below"><span class="chat-unread-divider-line svelte-1xqqal3" aria-hidden="true"></span> <span class="chat-unread-divider-label svelte-1xqqal3">New</span> <span class="chat-unread-divider-line svelte-1xqqal3" aria-hidden="true"></span></div>`);
|
|
3639
3639
|
} else if (renderRow.type === "typing") {
|
|
3640
3640
|
$$renderer3.push("<!--[2-->");
|
|
3641
3641
|
renderTypingIndicator($$renderer3);
|
|
@@ -3654,17 +3654,17 @@ function Chat($$renderer, $$props) {
|
|
|
3654
3654
|
role: "region",
|
|
3655
3655
|
"aria-label": "Chat conversation",
|
|
3656
3656
|
...rest
|
|
3657
|
-
}, "svelte-
|
|
3657
|
+
}, "svelte-1xqqal3")}>`);
|
|
3658
3658
|
if (isContainerDragOver && allowAttachments()) {
|
|
3659
3659
|
$$renderer2.push("<!--[0-->");
|
|
3660
|
-
$$renderer2.push(`<div class="chat-drop-overlay svelte-
|
|
3660
|
+
$$renderer2.push(`<div class="chat-drop-overlay svelte-1xqqal3" aria-hidden="true"><span class="chat-drop-label svelte-1xqqal3">Drop files here</span></div>`);
|
|
3661
3661
|
} else {
|
|
3662
3662
|
$$renderer2.push("<!--[-1-->");
|
|
3663
3663
|
}
|
|
3664
3664
|
$$renderer2.push(`<!--]--> `);
|
|
3665
3665
|
if (header) {
|
|
3666
3666
|
$$renderer2.push("<!--[0-->");
|
|
3667
|
-
$$renderer2.push(`<div class="chat-header svelte-
|
|
3667
|
+
$$renderer2.push(`<div class="chat-header svelte-1xqqal3">`);
|
|
3668
3668
|
header($$renderer2);
|
|
3669
3669
|
$$renderer2.push(`<!----></div>`);
|
|
3670
3670
|
} else {
|
|
@@ -3688,7 +3688,7 @@ function Chat($$renderer, $$props) {
|
|
|
3688
3688
|
}
|
|
3689
3689
|
$$renderer2.push(`<!--]--> <!---->`);
|
|
3690
3690
|
{
|
|
3691
|
-
$$renderer2.push(`<div${$35.attr("id", timelineId())} class="chat-timeline svelte-
|
|
3691
|
+
$$renderer2.push(`<div${$35.attr("id", timelineId())} class="chat-timeline svelte-1xqqal3" role="log" aria-label="Messages"${$35.attr("aria-describedby", statusId())}${$35.attr("aria-live", isVirtualized() ? "off" : "polite")}${$35.attr("aria-relevant", isVirtualized() ? undefined : "additions")}${$35.attr("data-cinder-virtualized", isVirtualized() ? "" : undefined)} tabindex="0">`);
|
|
3692
3692
|
if (showHistoryTrigger()) {
|
|
3693
3693
|
$$renderer2.push("<!--[0-->");
|
|
3694
3694
|
Chat_history_trigger($$renderer2, {
|
|
@@ -3709,14 +3709,14 @@ function Chat($$renderer, $$props) {
|
|
|
3709
3709
|
$$renderer2.push(`<!---->`);
|
|
3710
3710
|
} else {
|
|
3711
3711
|
$$renderer2.push("<!--[-1-->");
|
|
3712
|
-
$$renderer2.push(`<div class="chat-empty svelte-
|
|
3712
|
+
$$renderer2.push(`<div class="chat-empty svelte-1xqqal3" role="status"><p class="svelte-1xqqal3">No messages yet</p> `);
|
|
3713
3713
|
if (emptyPrompts && emptyPrompts.length > 0) {
|
|
3714
3714
|
$$renderer2.push("<!--[0-->");
|
|
3715
|
-
$$renderer2.push(`<div class="chat-empty-prompts svelte-
|
|
3715
|
+
$$renderer2.push(`<div class="chat-empty-prompts svelte-1xqqal3" role="group" aria-label="Suggested prompts"><!--[-->`);
|
|
3716
3716
|
const each_array = $35.ensure_array_like(emptyPrompts);
|
|
3717
3717
|
for (let index = 0, $$length = each_array.length;index < $$length; index++) {
|
|
3718
3718
|
let prompt = each_array[index];
|
|
3719
|
-
$$renderer2.push(`<button type="button" class="chat-empty-prompt svelte-
|
|
3719
|
+
$$renderer2.push(`<button type="button" class="chat-empty-prompt svelte-1xqqal3">${$35.escape(prompt)}</button>`);
|
|
3720
3720
|
}
|
|
3721
3721
|
$$renderer2.push(`<!--]--></div>`);
|
|
3722
3722
|
} else {
|
|
@@ -3727,11 +3727,11 @@ function Chat($$renderer, $$props) {
|
|
|
3727
3727
|
$$renderer2.push(`<!--]-->`);
|
|
3728
3728
|
} else if (isVirtualized()) {
|
|
3729
3729
|
$$renderer2.push("<!--[1-->");
|
|
3730
|
-
$$renderer2.push(`<div class="chat-virtual-spacer svelte-
|
|
3730
|
+
$$renderer2.push(`<div class="chat-virtual-spacer svelte-1xqqal3"${$35.attr_style(virtualizedSpacerStyle())}><!--[-->`);
|
|
3731
3731
|
const each_array_1 = $35.ensure_array_like(virtualRows());
|
|
3732
3732
|
for (let $$index_1 = 0, $$length = each_array_1.length;$$index_1 < $$length; $$index_1++) {
|
|
3733
3733
|
let virtualRow = each_array_1[$$index_1];
|
|
3734
|
-
$$renderer2.push(`<div class="chat-virtual-row svelte-
|
|
3734
|
+
$$renderer2.push(`<div class="chat-virtual-row svelte-1xqqal3"${$35.attr("data-cinder-virtual-index", virtualRow.virtualItem.index)}${$35.attr_style(virtualizedRowStyle(virtualRow.virtualItem))}>`);
|
|
3735
3735
|
renderChatRow($$renderer2, virtualRow.row);
|
|
3736
3736
|
$$renderer2.push(`<!----></div>`);
|
|
3737
3737
|
}
|
|
@@ -3755,9 +3755,9 @@ function Chat($$renderer, $$props) {
|
|
|
3755
3755
|
typingLabel: typingIndicatorState.typingLabel,
|
|
3756
3756
|
participantCount: typingIndicatorState.participantCount
|
|
3757
3757
|
});
|
|
3758
|
-
$$renderer2.push(`<!----> <div class="chat-bottom-sentinel svelte-
|
|
3758
|
+
$$renderer2.push(`<!----> <div class="chat-bottom-sentinel svelte-1xqqal3" aria-hidden="true"></div></div>`);
|
|
3759
3759
|
}
|
|
3760
|
-
$$renderer2.push(`<!----> <div class="chat-input-wrapper svelte-
|
|
3760
|
+
$$renderer2.push(`<!----> <div class="chat-input-wrapper svelte-1xqqal3">`);
|
|
3761
3761
|
Chat_jump_controls($$renderer2, {
|
|
3762
3762
|
showJumpButton: scrollState.showJumpButton,
|
|
3763
3763
|
hasNewMessageIndicator: unreadState.newMessageIndicatorVisible,
|
|
@@ -3766,7 +3766,7 @@ function Chat($$renderer, $$props) {
|
|
|
3766
3766
|
hasLargeCount: unreadState.hasLargeCount,
|
|
3767
3767
|
onjumptolatest: handleJumpToLatest
|
|
3768
3768
|
});
|
|
3769
|
-
$$renderer2.push(`<!----> <div class="chat-input-area svelte-
|
|
3769
|
+
$$renderer2.push(`<!----> <div class="chat-input-area svelte-1xqqal3">`);
|
|
3770
3770
|
Chat_input($$renderer2, {
|
|
3771
3771
|
id: inputId(),
|
|
3772
3772
|
onsubmit: (message, attachments) => handleSubmit(message, attachments),
|
|
@@ -3794,7 +3794,7 @@ function Chat($$renderer, $$props) {
|
|
|
3794
3794
|
announcerMessage: politeAnnouncement(),
|
|
3795
3795
|
assertiveMessage: assertiveAnnouncement()
|
|
3796
3796
|
});
|
|
3797
|
-
$$renderer2.push(`<!----> <div class="cinder-sr-only svelte-
|
|
3797
|
+
$$renderer2.push(`<!----> <div class="cinder-sr-only svelte-1xqqal3" aria-live="polite" aria-atomic="true">${$35.escape(typingIndicatorState.announcedLabel)}</div></div>`);
|
|
3798
3798
|
$35.bind_props($$props, {
|
|
3799
3799
|
atBottom,
|
|
3800
3800
|
unreadCount,
|
|
@@ -4158,9 +4158,9 @@ function Artifact_panel($$renderer, $$props) {
|
|
|
4158
4158
|
function focusOnMount(element) {
|
|
4159
4159
|
element.focus();
|
|
4160
4160
|
}
|
|
4161
|
-
$$renderer.push(`<div class="artifact-panel svelte-
|
|
4161
|
+
$$renderer.push(`<div class="artifact-panel svelte-1se807z" role="complementary"${$37.attr("aria-label", title ?? "Artifact panel")}><div class="artifact-panel-header svelte-1se807z"><span class="artifact-panel-title svelte-1se807z"${$37.attr("id", titleId())}>${$37.escape(title ?? "Artifact")}</span> <button type="button" class="artifact-panel-close svelte-1se807z" aria-label="Close artifact panel">`);
|
|
4162
4162
|
X($$renderer, { class: "cinder-icon-sm" });
|
|
4163
|
-
$$renderer.push(`<!----></button></div> <div class="artifact-panel-content svelte-
|
|
4163
|
+
$$renderer.push(`<!----></button></div> <div class="artifact-panel-content svelte-1se807z">`);
|
|
4164
4164
|
children($$renderer);
|
|
4165
4165
|
$$renderer.push(`<!----></div></div>`);
|
|
4166
4166
|
}
|
|
@@ -4174,16 +4174,16 @@ function Artifact_viewer($$renderer, $$props) {
|
|
|
4174
4174
|
const svgDocument = $38.derived(() => type === "svg" ? wrapSvgInHtml(content) : "");
|
|
4175
4175
|
if (type === "html") {
|
|
4176
4176
|
$$renderer.push("<!--[0-->");
|
|
4177
|
-
$$renderer.push(`<iframe class="artifact-viewer artifact-viewer-html svelte-
|
|
4177
|
+
$$renderer.push(`<iframe class="artifact-viewer artifact-viewer-html svelte-qjpu0f"${$38.attr("srcdoc", content)} sandbox=""${$38.attr("title", title ?? "HTML artifact")}${$38.attr("aria-label", title ?? "HTML artifact")}></iframe>`);
|
|
4178
4178
|
} else if (type === "svg") {
|
|
4179
4179
|
$$renderer.push("<!--[1-->");
|
|
4180
|
-
$$renderer.push(`<iframe class="artifact-viewer artifact-viewer-svg svelte-
|
|
4180
|
+
$$renderer.push(`<iframe class="artifact-viewer artifact-viewer-svg svelte-qjpu0f"${$38.attr("srcdoc", svgDocument())} sandbox=""${$38.attr("title", title ?? "SVG artifact")}${$38.attr("aria-label", title ?? "SVG artifact")}></iframe>`);
|
|
4181
4181
|
} else if (type === "code") {
|
|
4182
4182
|
$$renderer.push("<!--[2-->");
|
|
4183
|
-
$$renderer.push(`<div class="artifact-viewer artifact-viewer-code svelte-
|
|
4183
|
+
$$renderer.push(`<div class="artifact-viewer artifact-viewer-code svelte-qjpu0f"><pre class="artifact-code-block svelte-qjpu0f"${$38.attr("data-language", language)}><code class="svelte-qjpu0f">${$38.escape(content)}</code></pre></div>`);
|
|
4184
4184
|
} else if (type === "mermaid") {
|
|
4185
4185
|
$$renderer.push("<!--[3-->");
|
|
4186
|
-
$$renderer.push(`<div class="artifact-viewer artifact-viewer-mermaid svelte-
|
|
4186
|
+
$$renderer.push(`<div class="artifact-viewer artifact-viewer-mermaid svelte-qjpu0f"><pre class="artifact-code-block svelte-qjpu0f" data-language="mermaid"><code class="svelte-qjpu0f">${$38.escape(content)}</code></pre> <p class="artifact-mermaid-note svelte-qjpu0f" aria-live="polite">Mermaid diagram source. Install the Mermaid library to render diagrams.</p></div>`);
|
|
4187
4187
|
} else {
|
|
4188
4188
|
$$renderer.push("<!--[-1-->");
|
|
4189
4189
|
}
|
|
@@ -4202,7 +4202,7 @@ function Chat_artifact_layout($$renderer, $$props) {
|
|
|
4202
4202
|
onclose,
|
|
4203
4203
|
class: className
|
|
4204
4204
|
} = $$props;
|
|
4205
|
-
$$renderer2.push(`<div${$39.attr_class($39.clsx(classNames("chat-artifact-layout", className)), "svelte-
|
|
4205
|
+
$$renderer2.push(`<div${$39.attr_class($39.clsx(classNames("chat-artifact-layout", className)), "svelte-yfjgfs")}${$39.attr("data-panel-open", open)}><div class="chat-artifact-main svelte-yfjgfs">`);
|
|
4206
4206
|
children($$renderer2);
|
|
4207
4207
|
$$renderer2.push(`<!----></div> `);
|
|
4208
4208
|
if (open && panel) {
|
|
@@ -4227,4 +4227,4 @@ function Chat_artifact_layout($$renderer, $$props) {
|
|
|
4227
4227
|
var chat_default = Chat2;
|
|
4228
4228
|
export { Chat_date_separator, Message_content, Tool_call_group, Message_attachments, Chat_message, deriveAttachmentKind, Chat_attachment_preview, serializeChatAttachment, serializeChatAttachments, Chat_input, DEFAULT_SCROLL_CONFIGURATION, isAtBottom, shouldShowJumpToLatest, calculateUnreadCount, findUnreadBoundaryIndex, calculateScrollToBottom, extractTimestamp, Chat2 as Chat, createConversation, appendMessages, appendUserMessage, appendAssistantMessage, Artifact_panel, Artifact_viewer, Chat_artifact_layout, chat_default };
|
|
4229
4229
|
|
|
4230
|
-
//# debugId=
|
|
4230
|
+
//# debugId=94E2F3EC72FF04E464756E2164756E21
|