@ai-ecoverse/slicc-spectrum 1.27.0 → 1.27.1
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/slicc-ui.js +19 -5
- package/dist/slicc-ui.js.map +3 -3
- package/dist/types/app/sprinkle.d.ts +1 -0
- package/package.json +1 -1
package/dist/slicc-ui.js
CHANGED
|
@@ -19929,12 +19929,13 @@ var SliccChat = class extends ThemedElement {
|
|
|
19929
19929
|
for (const message of messages) {
|
|
19930
19930
|
const label = day(message.createdAt);
|
|
19931
19931
|
if (label !== previous) {
|
|
19932
|
-
out.push(
|
|
19932
|
+
out.push([
|
|
19933
|
+
`day:${message.id}`,
|
|
19933
19934
|
b`<div class="day" role="separator" data-day=${label}><span class="line"></span><span>${label}</span><span class="line"></span></div>`
|
|
19934
|
-
);
|
|
19935
|
+
]);
|
|
19935
19936
|
previous = label;
|
|
19936
19937
|
}
|
|
19937
|
-
out.push(this.#message(message, agent, message === last ? suggestion : null));
|
|
19938
|
+
out.push([message.id, this.#message(message, agent, message === last ? suggestion : null)]);
|
|
19938
19939
|
}
|
|
19939
19940
|
return out;
|
|
19940
19941
|
}
|
|
@@ -19979,7 +19980,11 @@ var SliccChat = class extends ThemedElement {
|
|
|
19979
19980
|
@scroll=${this.#scroll}
|
|
19980
19981
|
>
|
|
19981
19982
|
<div class="column" @keydown=${this.#keys}>
|
|
19982
|
-
${agent && messages.length > 0 ? b`<swc-conversation-thread>${
|
|
19983
|
+
${agent && messages.length > 0 ? b`<swc-conversation-thread>${c(
|
|
19984
|
+
this.#items(messages, agent),
|
|
19985
|
+
([key2]) => key2,
|
|
19986
|
+
([, item2]) => item2
|
|
19987
|
+
)}</swc-conversation-thread>` : b`<div class="empty">No messages yet. Ask ${agent?.name ?? "the agent"} something.</div>`}
|
|
19983
19988
|
</div>
|
|
19984
19989
|
</div>
|
|
19985
19990
|
${this.model && !agent?.frozen ? b`<slicc-composer .model=${this.model} .agent=${this.agent}></slicc-composer>` : A}
|
|
@@ -22900,6 +22905,12 @@ var SliccSprinkle = class extends ThemedElement {
|
|
|
22900
22905
|
if (port?.call && (this.#held.port !== port || this.#held.id !== this.sprinkle))
|
|
22901
22906
|
this.#hold(port, port.call, this.sprinkle);
|
|
22902
22907
|
}
|
|
22908
|
+
#mounts = 0;
|
|
22909
|
+
connectedCallback() {
|
|
22910
|
+
this.#frame = { key: "", doc: "" };
|
|
22911
|
+
this.#mounts++;
|
|
22912
|
+
super.connectedCallback();
|
|
22913
|
+
}
|
|
22903
22914
|
#dips = new Dips();
|
|
22904
22915
|
#focusLater = false;
|
|
22905
22916
|
focus() {
|
|
@@ -22960,7 +22971,10 @@ ${data.html}`;
|
|
|
22960
22971
|
if (bridged && !this.#held.ready) return b``;
|
|
22961
22972
|
const state = bridged ? this.#held : void 0;
|
|
22962
22973
|
const style = `color-scheme:${this.color};${this.inline ? `height:${this.height}px;` : ""}`;
|
|
22963
|
-
const frame = b
|
|
22974
|
+
const frame = b`${i17(
|
|
22975
|
+
this.#mounts,
|
|
22976
|
+
b`<iframe title=${data.title} sandbox="allow-scripts" style=${style} .srcdoc=${this.#document(data, state)}></iframe>`
|
|
22977
|
+
)}`;
|
|
22964
22978
|
if (!this.inline) return frame;
|
|
22965
22979
|
return b`<div class="handle" draggable="true" title="Drag into the dock or a rail to open as a panel" @dragstart=${this.#drag}>
|
|
22966
22980
|
${grip}
|