@evercam/ui 1.0.0-preview-labs-189-copilot-multi-agents-0b7c7ca53 → 1.0.0-preview-labs-189-copilot-multi-agents-463816b50
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/components/chat/EMarkdown.vue.d.ts +1 -0
- package/dist/components/chat/MarkdownProcessor.d.ts +3 -0
- package/dist/index.mjs +32 -12
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +14 -14
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
|
@@ -17,6 +17,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
17
17
|
match: string;
|
|
18
18
|
};
|
|
19
19
|
}): import("vue/types/vue").CombinedVueInstance<Vue<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => Vue<Record<string, any>, Record<string, any>, never, never, any>>, object, object, object, Record<never, any>, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue/types/v3-component-public-instance").OptionTypesType<{}, {}, {}, {}, {}, {}>> | undefined;
|
|
20
|
+
updateTableBorders(): void;
|
|
20
21
|
}, unknown, {
|
|
21
22
|
nextChunks: string | string[];
|
|
22
23
|
exposedRegexes: EMarkdownRegex[];
|
|
@@ -20,6 +20,7 @@ export declare class MarkdownProcessor {
|
|
|
20
20
|
rowId: number;
|
|
21
21
|
animated: boolean;
|
|
22
22
|
useTableProcessor: boolean;
|
|
23
|
+
dark: boolean;
|
|
23
24
|
onAnimationStart: () => void;
|
|
24
25
|
onAnimationEnd: () => void;
|
|
25
26
|
typewriter: Typewriter | null;
|
|
@@ -32,6 +33,7 @@ export declare class MarkdownProcessor {
|
|
|
32
33
|
onAnimationStart?: () => void;
|
|
33
34
|
onAnimationEnd?: () => void;
|
|
34
35
|
useTableProcessor?: boolean;
|
|
36
|
+
dark?: boolean;
|
|
35
37
|
});
|
|
36
38
|
initProcessor(): void;
|
|
37
39
|
remarkCheckIncompleteTableRows(): (tree: UnistNode) => void;
|
|
@@ -46,6 +48,7 @@ export declare class MarkdownProcessor {
|
|
|
46
48
|
replaceRegexTargets(parts: string[], regex: RegExp, type: string, node: any, nodeIndex: number): import("unist").Node[];
|
|
47
49
|
ensureTableExists(container: HTMLElement): HTMLTableElement;
|
|
48
50
|
ensureTBodyExists(table: HTMLTableElement): HTMLTableSectionElement;
|
|
51
|
+
getBorderColor(): string;
|
|
49
52
|
copyTableHead(sourceTable: HTMLTableElement, destinationTable: HTMLTableElement): void;
|
|
50
53
|
copyTableBodyRows(sourceTBody: HTMLTableSectionElement, destinationTBody: HTMLTableSectionElement): void;
|
|
51
54
|
removeEmptyTableRows(tableElement: HTMLTableElement): void;
|
package/dist/index.mjs
CHANGED
|
@@ -17816,7 +17816,7 @@ const qu = ju.exports, Wu = F.extend({
|
|
|
17816
17816
|
var Gu = function() {
|
|
17817
17817
|
var e = this, r = e._self._c;
|
|
17818
17818
|
return r("div", { staticClass: "tooltip-box e-w-max e-relative e-group", class: {
|
|
17819
|
-
"e-cursor-not-allowed": e.disabled
|
|
17819
|
+
"e-cursor-not-allowed e-opacity-50": e.disabled
|
|
17820
17820
|
}, on: { mouseenter: e.toggleTooltip, mouseleave: e.toggleTooltip } }, [e._t("default"), e.isHovered ? r("div", { class: e.tooltipClasses }, [r("span", { class: e.triangleClasses }), e._v(" " + e._s(e.text) + " ")]) : e._e()], 2);
|
|
17821
17821
|
}, Uu = [], Zu = /* @__PURE__ */ H(
|
|
17822
17822
|
Wu,
|
|
@@ -17824,7 +17824,7 @@ var Gu = function() {
|
|
|
17824
17824
|
Uu,
|
|
17825
17825
|
!1,
|
|
17826
17826
|
null,
|
|
17827
|
-
"
|
|
17827
|
+
"904390f0",
|
|
17828
17828
|
null,
|
|
17829
17829
|
null
|
|
17830
17830
|
);
|
|
@@ -19758,7 +19758,7 @@ var Y8 = ii.exports;
|
|
|
19758
19758
|
const X8 = /* @__PURE__ */ xt(Y8);
|
|
19759
19759
|
class Q8 {
|
|
19760
19760
|
constructor(e, r) {
|
|
19761
|
-
this.processor = null, this.accumulator = "", this.totalMarkdown = "", this.lastProcessedLength = 0, this.regexRenderTargetsById = {}, this.isRenderingTable = !1, this.isFirstTableRender = !1, this.mdTableHeaderString = "", this.isIncompleteTableRow = !1, this.pendingRowString = "", this.tableId = 0, this.rowId = 0, this.typewriter = null, this.container = e, this.htmlRenderingTarget = e, this.exposedRegexes = r.exposedRegexes || [], this.useTableProcessor = !!r.useTableProcessor, this.initProcessor(), this.animated = !!r.animated, this.animated && (this.typewriter = this.initTypewriter()), this.onAnimationStart = r.onAnimationStart || (() => {
|
|
19761
|
+
this.processor = null, this.accumulator = "", this.totalMarkdown = "", this.lastProcessedLength = 0, this.regexRenderTargetsById = {}, this.isRenderingTable = !1, this.isFirstTableRender = !1, this.mdTableHeaderString = "", this.isIncompleteTableRow = !1, this.pendingRowString = "", this.tableId = 0, this.rowId = 0, this.typewriter = null, this.container = e, this.htmlRenderingTarget = e, this.exposedRegexes = r.exposedRegexes || [], this.useTableProcessor = !!r.useTableProcessor, this.dark = !!r.dark, this.initProcessor(), this.animated = !!r.animated, this.animated && (this.typewriter = this.initTypewriter()), this.onAnimationStart = r.onAnimationStart || (() => {
|
|
19762
19762
|
}), this.onAnimationEnd = r.onAnimationEnd || (() => {
|
|
19763
19763
|
});
|
|
19764
19764
|
}
|
|
@@ -19863,15 +19863,20 @@ class Q8 {
|
|
|
19863
19863
|
let r = e.querySelector(
|
|
19864
19864
|
`table#t-${this.tableId}`
|
|
19865
19865
|
), n = e.querySelector(`#tw-${this.tableId}`);
|
|
19866
|
-
return r && !n ? (n = document.createElement("div"), n.className = "e-markdown-table-wrapper e-overflow-x-auto e-w-full e-rounded-lg e-my-4", n.id = `tw-${this.tableId}`, (s = r.parentNode) == null || s.removeChild(r), n.appendChild(r), e.appendChild(n)) : r || (n = document.createElement("div"), n.className = "e-markdown-table-wrapper e-overflow-x-auto e-w-full e-rounded-lg e-my-4", n.id = `tw-${this.tableId}`, r = document.createElement("table"), r.id = `t-${this.tableId}`, r.className = "e-min-w-full", n.appendChild(r), e.appendChild(n)), r;
|
|
19866
|
+
return r && !n ? (n = document.createElement("div"), n.className = "e-markdown-table-wrapper e-overflow-x-auto e-w-full e-rounded-lg e-my-4", n.id = `tw-${this.tableId}`, (s = r.parentNode) == null || s.removeChild(r), n.appendChild(r), e.appendChild(n)) : r || (n = document.createElement("div"), n.className = "e-markdown-table-wrapper e-overflow-x-auto e-w-full e-rounded-lg e-my-4", n.id = `tw-${this.tableId}`, r = document.createElement("table"), r.id = `t-${this.tableId}`, r.className = "e-min-w-full", r.style.borderCollapse = "collapse", n.appendChild(r), e.appendChild(n)), r;
|
|
19867
19867
|
}
|
|
19868
19868
|
ensureTBodyExists(e) {
|
|
19869
19869
|
let r = e.querySelector("tbody");
|
|
19870
19870
|
return r || (r = document.createElement("tbody"), r.className = "e-w-full", e.appendChild(r)), r;
|
|
19871
19871
|
}
|
|
19872
|
+
getBorderColor() {
|
|
19873
|
+
return this.dark ? "#4b5563" : "#d1d5db";
|
|
19874
|
+
}
|
|
19872
19875
|
copyTableHead(e, r) {
|
|
19873
19876
|
const n = e.querySelector("thead");
|
|
19874
|
-
!r.querySelector("thead") && n && (n.className = "e-w-full",
|
|
19877
|
+
!r.querySelector("thead") && n && (n.className = "e-w-full", n.querySelectorAll("th").forEach((i) => {
|
|
19878
|
+
i.classList.add("e-px-3", "e-py-2"), i.style.borderBottom = `1px solid ${this.getBorderColor()}`;
|
|
19879
|
+
}), r.appendChild(n));
|
|
19875
19880
|
}
|
|
19876
19881
|
copyTableBodyRows(e, r) {
|
|
19877
19882
|
const n = e.querySelectorAll("tr"), s = Array.from(
|
|
@@ -19881,7 +19886,7 @@ class Q8 {
|
|
|
19881
19886
|
if (!a.innerText.trim() || s.includes(a.id))
|
|
19882
19887
|
return;
|
|
19883
19888
|
a.querySelectorAll("td, th").forEach((c) => {
|
|
19884
|
-
c.classList.add("e-px-3", "e-py-2", "e-align-middle")
|
|
19889
|
+
c.classList.add("e-px-3", "e-py-2", "e-align-middle"), c.style.borderBottom = `1px solid ${this.getBorderColor()}`;
|
|
19885
19890
|
}), r.appendChild(a.cloneNode(!0));
|
|
19886
19891
|
});
|
|
19887
19892
|
}
|
|
@@ -19963,6 +19968,9 @@ const K8 = F.extend({
|
|
|
19963
19968
|
watch: {
|
|
19964
19969
|
nextChunks(t) {
|
|
19965
19970
|
this.handleNewChunk(t.join(""));
|
|
19971
|
+
},
|
|
19972
|
+
dark(t) {
|
|
19973
|
+
this.processor && (this.processor.dark = t, this.updateTableBorders());
|
|
19966
19974
|
}
|
|
19967
19975
|
},
|
|
19968
19976
|
mounted() {
|
|
@@ -19976,7 +19984,8 @@ const K8 = F.extend({
|
|
|
19976
19984
|
animated: this.animated,
|
|
19977
19985
|
onAnimationStart: () => this.$emit("animation-start"),
|
|
19978
19986
|
onAnimationEnd: () => this.$emit("animation-end"),
|
|
19979
|
-
useTableProcessor: this.useTableProcessor
|
|
19987
|
+
useTableProcessor: this.useTableProcessor,
|
|
19988
|
+
dark: this.dark
|
|
19980
19989
|
});
|
|
19981
19990
|
},
|
|
19982
19991
|
async processChunk(t) {
|
|
@@ -20017,12 +20026,23 @@ const K8 = F.extend({
|
|
|
20017
20026
|
render: (c) => c(a, { props: { scopedSlot: s, propsData: r } })
|
|
20018
20027
|
}).$mount();
|
|
20019
20028
|
return n.innerHTML = "", n.appendChild(i.$el), i;
|
|
20029
|
+
},
|
|
20030
|
+
updateTableBorders() {
|
|
20031
|
+
const t = this.$refs.content;
|
|
20032
|
+
if (!t || !this.processor)
|
|
20033
|
+
return;
|
|
20034
|
+
const e = this.processor.getBorderColor();
|
|
20035
|
+
t.querySelectorAll("th, td").forEach((n) => {
|
|
20036
|
+
n.style.borderBottom = `1px solid ${e}`;
|
|
20037
|
+
});
|
|
20020
20038
|
}
|
|
20021
20039
|
}
|
|
20022
20040
|
});
|
|
20023
20041
|
var J8 = function() {
|
|
20024
20042
|
var e = this, r = e._self._c;
|
|
20025
|
-
return r("div", { staticClass: "e-markdown" }, [r("article", { staticClass: "e-mx-auto prose-h1:!e-text-2xl prose-h2:!e-text-xl prose-h2:!e-mt-0 prose-h3:!e-text-lg
|
|
20043
|
+
return r("div", { staticClass: "e-markdown" }, [r("article", { staticClass: "e-mx-auto e-prose !e-prose-pink prose-h1:!e-text-2xl prose-h2:!e-text-xl prose-h2:!e-mt-0 prose-h3:!e-text-lg", class: {
|
|
20044
|
+
"e-prose-invert": e.dark
|
|
20045
|
+
} }, [r("div", { ref: "content", staticClass: "e-markdown__content" })])]);
|
|
20026
20046
|
}, e7 = [], t7 = /* @__PURE__ */ H(
|
|
20027
20047
|
K8,
|
|
20028
20048
|
J8,
|
|
@@ -20799,7 +20819,7 @@ const I7 = B7.exports, F7 = F.extend({
|
|
|
20799
20819
|
"e-bg-white": !this.dark,
|
|
20800
20820
|
"e-text-gray-500": !this.dark,
|
|
20801
20821
|
"e-text-gray-300": this.dark,
|
|
20802
|
-
"e-opacity-
|
|
20822
|
+
"e-opacity-25": this.disabled
|
|
20803
20823
|
};
|
|
20804
20824
|
}
|
|
20805
20825
|
},
|
|
@@ -20877,7 +20897,7 @@ const I7 = B7.exports, F7 = F.extend({
|
|
|
20877
20897
|
});
|
|
20878
20898
|
var A7 = function() {
|
|
20879
20899
|
var e = this, r = e._self._c;
|
|
20880
|
-
return r("ETooltip", { attrs: { text: "Use Ctrl + Space to speak", dark: e.dark } }, [r("button", e._g(e._b({ staticClass: "e-chat-input__voice-btn e-border-none e-chat-input__voice-btn e-flex e-items-center e-justify-center e-cursor-pointer e-h-8 e-w-8 disabled:e-cursor-not-allowed focus:e-outline-none", class: { ...e.buttonClasses, "e-h-10 e-w-10": !e.isListening }, attrs: { disabled: e.disabled }, on: { click: e.toggleListening } }, "button", e.$attrs, !1), e.$listeners), [e.isListening ? r("EVoiceInputVolumeIndicator", { attrs: { analyser: e.analyser, "is-listening": e.isListening } }, [r("EIcon", { staticClass: "e-chat-input__voice-btn--icon", attrs: { icon: "stop", color: "e-text-red-600"
|
|
20900
|
+
return r("ETooltip", { attrs: { text: "Use Ctrl + Space to speak", dark: e.dark, disabled: e.disabled } }, [r("button", e._g(e._b({ staticClass: "e-chat-input__voice-btn e-border-none e-chat-input__voice-btn e-flex e-items-center e-justify-center e-cursor-pointer e-h-8 e-w-8 disabled:e-cursor-not-allowed focus:e-outline-none", class: { ...e.buttonClasses, "e-h-10 e-w-10": !e.isListening }, attrs: { disabled: e.disabled }, on: { click: e.toggleListening } }, "button", e.$attrs, !1), e.$listeners), [e.isListening ? r("EVoiceInputVolumeIndicator", { attrs: { analyser: e.analyser, "is-listening": e.isListening } }, [r("EIcon", { staticClass: "e-chat-input__voice-btn--icon", attrs: { icon: "stop", color: "e-text-red-600" } })], 1) : r("EIcon", { attrs: { icon: "microphone" } })], 1)]);
|
|
20881
20901
|
}, R7 = [], H7 = /* @__PURE__ */ H(
|
|
20882
20902
|
F7,
|
|
20883
20903
|
A7,
|
|
@@ -20952,7 +20972,7 @@ const oi = H7.exports, N7 = F.extend({
|
|
|
20952
20972
|
"e-bg-white": !this.dark && !this.isSubmitDisabled && !this.disabled,
|
|
20953
20973
|
"e-text-gray-500": !this.dark,
|
|
20954
20974
|
"e-text-gray-300": this.dark,
|
|
20955
|
-
"e-opacity-
|
|
20975
|
+
"e-opacity-25": this.isSubmitDisabled || this.disabled
|
|
20956
20976
|
};
|
|
20957
20977
|
},
|
|
20958
20978
|
isSubmitDisabled() {
|
|
@@ -21022,7 +21042,7 @@ var j7 = function() {
|
|
|
21022
21042
|
] }, [e._t("input-action-button", function() {
|
|
21023
21043
|
return [r("EVoiceInput", { attrs: { dark: e.dark, disabled: e.disabled, "silence-timeout": e.silenceTimeout }, on: { "on-voice-message-end": e.handleVoiceMessage }, model: { value: e.transcript, callback: function(n) {
|
|
21024
21044
|
e.transcript = n;
|
|
21025
|
-
}, expression: "transcript" } }), r("ETooltip", { attrs: { text: "Submit", dark: e.dark } }, [r("button", { staticClass: "e-chat-input__submit-btn e-inline-flex e-items-center e-justify-center e-cursor-pointer disabled:e-cursor-not-allowed disabled:e-opacity-
|
|
21045
|
+
}, expression: "transcript" } }), r("ETooltip", { attrs: { text: "Submit", dark: e.dark, disabled: e.disabled } }, [r("button", { staticClass: "e-chat-input__submit-btn e-inline-flex e-items-center e-justify-center e-cursor-pointer disabled:e-cursor-not-allowed disabled:e-opacity-25 e-h-8 e-w-8 e-border-none focus:e-outline-none", class: e.buttonClasses, attrs: { type: "button", disabled: e.isSubmitDisabled }, on: { click: function(n) {
|
|
21026
21046
|
return n.preventDefault(), e.submitMessage.apply(null, arguments);
|
|
21027
21047
|
} } }, [r("EIcon", { attrs: { icon: "arrow-up", size: "base" } })], 1)])];
|
|
21028
21048
|
}, { buttonClasses: e.buttonClasses })], 2)]);
|