@evercam/ui 0.0.63-preview-disable-input-when-message-being-generated-0d39145c9 → 0.0.63-preview-disable-input-when-message-being-generated-ec5f1ea6d
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/attributes.json +5 -0
- package/dist/components/chat/EChat.vue.d.ts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.mjs +8 -24
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tags.json +2 -1
- package/dist/web-types.json +10 -1
- package/package.json +1 -1
package/dist/attributes.json
CHANGED
|
@@ -1052,6 +1052,11 @@
|
|
|
1052
1052
|
"description": "",
|
|
1053
1053
|
"default": ""
|
|
1054
1054
|
},
|
|
1055
|
+
"EChat/disabled": {
|
|
1056
|
+
"type": "boolean",
|
|
1057
|
+
"description": "",
|
|
1058
|
+
"default": false
|
|
1059
|
+
},
|
|
1055
1060
|
"ECopyToClipboardBtn/text": {
|
|
1056
1061
|
"type": "function|string|number",
|
|
1057
1062
|
"description": ""
|
|
@@ -7,8 +7,6 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
7
7
|
bodyHeight: number;
|
|
8
8
|
footerHeight: number;
|
|
9
9
|
isWriting: boolean;
|
|
10
|
-
isProcessing: boolean;
|
|
11
|
-
isGeneratingChunks: boolean;
|
|
12
10
|
}, {
|
|
13
11
|
sendMessage(): void;
|
|
14
12
|
onAnimationEnd(value: boolean): void;
|
|
@@ -39,5 +37,6 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
39
37
|
headerText: string;
|
|
40
38
|
inputPlaceholder: string;
|
|
41
39
|
loadingMessage: string;
|
|
40
|
+
disabled: boolean;
|
|
42
41
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
43
42
|
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -1103,8 +1103,6 @@ export declare const components: {
|
|
|
1103
1103
|
bodyHeight: number;
|
|
1104
1104
|
footerHeight: number;
|
|
1105
1105
|
isWriting: boolean;
|
|
1106
|
-
isProcessing: boolean;
|
|
1107
|
-
isGeneratingChunks: boolean;
|
|
1108
1106
|
}, {
|
|
1109
1107
|
sendMessage(): void;
|
|
1110
1108
|
onAnimationEnd(value: boolean): void;
|
|
@@ -1135,6 +1133,7 @@ export declare const components: {
|
|
|
1135
1133
|
headerText: string;
|
|
1136
1134
|
inputPlaceholder: string;
|
|
1137
1135
|
loadingMessage: string;
|
|
1136
|
+
disabled: boolean;
|
|
1138
1137
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
1139
1138
|
EContextProvider: any;
|
|
1140
1139
|
ECopyToClipboardBtn: import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, {
|
package/dist/index.mjs
CHANGED
|
@@ -16854,18 +16854,8 @@ const S4 = q.extend({
|
|
|
16854
16854
|
const r = t.slice(e.length);
|
|
16855
16855
|
for (const n of r)
|
|
16856
16856
|
await this.handleNewChunks(n);
|
|
16857
|
-
this.$emit(
|
|
16858
|
-
"is-generating-chunks",
|
|
16859
|
-
this.currentChunkIndex !== this.chunks.filter((n) => n.length > 0).length
|
|
16860
|
-
);
|
|
16861
16857
|
},
|
|
16862
16858
|
deep: !0
|
|
16863
|
-
},
|
|
16864
|
-
isProcessing: {
|
|
16865
|
-
immediate: !0,
|
|
16866
|
-
handler(t) {
|
|
16867
|
-
t && this.$emit("is-processing", t);
|
|
16868
|
-
}
|
|
16869
16859
|
}
|
|
16870
16860
|
},
|
|
16871
16861
|
mounted() {
|
|
@@ -17106,10 +17096,6 @@ var I4 = function() {
|
|
|
17106
17096
|
return e.$emit("animation-end");
|
|
17107
17097
|
}, "animation-start": function(n) {
|
|
17108
17098
|
return e.$emit("animation-start");
|
|
17109
|
-
}, "is-processing": function(n) {
|
|
17110
|
-
return e.$emit("is-processing", n);
|
|
17111
|
-
}, "is-generating-chunks": function(n) {
|
|
17112
|
-
return e.$emit("is-generating-chunks", n);
|
|
17113
17099
|
} }, scopedSlots: e._u([{ key: "timestamp", fn: function({ timestamp: n }) {
|
|
17114
17100
|
return [e._t("timestamp", function() {
|
|
17115
17101
|
return [e._v(e._s(n))];
|
|
@@ -17362,6 +17348,10 @@ const Y4 = q4.exports, V4 = q.extend({
|
|
|
17362
17348
|
loadingMessage: {
|
|
17363
17349
|
type: String,
|
|
17364
17350
|
default: ""
|
|
17351
|
+
},
|
|
17352
|
+
disabled: {
|
|
17353
|
+
type: Boolean,
|
|
17354
|
+
default: !1
|
|
17365
17355
|
}
|
|
17366
17356
|
},
|
|
17367
17357
|
data() {
|
|
@@ -17371,14 +17361,12 @@ const Y4 = q4.exports, V4 = q.extend({
|
|
|
17371
17361
|
headerHeight: 0,
|
|
17372
17362
|
bodyHeight: 0,
|
|
17373
17363
|
footerHeight: 0,
|
|
17374
|
-
isWriting: !1
|
|
17375
|
-
isProcessing: !1,
|
|
17376
|
-
isGeneratingChunks: !1
|
|
17364
|
+
isWriting: !1
|
|
17377
17365
|
};
|
|
17378
17366
|
},
|
|
17379
17367
|
computed: {
|
|
17380
17368
|
isInputDisabled() {
|
|
17381
|
-
return this.readonly || this.isWriting || this.isLoading || this.
|
|
17369
|
+
return this.readonly || this.isWriting || this.isLoading || this.disabled;
|
|
17382
17370
|
},
|
|
17383
17371
|
ChatMessageRole() {
|
|
17384
17372
|
return Xe;
|
|
@@ -17469,11 +17457,7 @@ var X4 = function() {
|
|
|
17469
17457
|
return [e._v(e._s(l))];
|
|
17470
17458
|
}, { timestamp: l })];
|
|
17471
17459
|
} }], null, !0) });
|
|
17472
|
-
}), e.isLoading ? r("EChatMessage", { attrs: { "is-loading": "", "loading-message": e.loadingMessage, "data-message-id": -1, "show-avatar": e.showCopilotAvatar, role: e.ChatMessageRole.COPILOT, dark: e.dark }, on: { "
|
|
17473
|
-
e.isGeneratingChunks = n;
|
|
17474
|
-
}, "is-processing": function(n) {
|
|
17475
|
-
e.isProcessing = n;
|
|
17476
|
-
} } }) : e._e()], 2), r("EChatFooter", { directives: [{ name: "show", rawName: "v-show", value: !e.readonly, expression: "!readonly" }], ref: "chatFooter", attrs: { dark: e.dark, inline: e.inlineFooter } }, [r("EChatInput", { attrs: { dark: e.dark, disabled: e.isInputDisabled, placeholder: e.inputPlaceholder }, on: { "prompt-changed": function(n) {
|
|
17460
|
+
}), e.isLoading ? r("EChatMessage", { attrs: { "is-loading": "", "loading-message": e.loadingMessage, "data-message-id": -1, "show-avatar": e.showCopilotAvatar, role: e.ChatMessageRole.COPILOT, dark: e.dark } }) : e._e()], 2), r("EChatFooter", { directives: [{ name: "show", rawName: "v-show", value: !e.readonly, expression: "!readonly" }], ref: "chatFooter", attrs: { dark: e.dark, inline: e.inlineFooter } }, [r("EChatInput", { attrs: { dark: e.dark, disabled: e.isInputDisabled, placeholder: e.inputPlaceholder }, on: { "prompt-changed": function(n) {
|
|
17477
17461
|
return e.$emit("prompt-changed", n);
|
|
17478
17462
|
}, submit: e.sendMessage }, model: { value: e.prompt, callback: function(n) {
|
|
17479
17463
|
e.prompt = n;
|
|
@@ -17484,7 +17468,7 @@ var X4 = function() {
|
|
|
17484
17468
|
Q4,
|
|
17485
17469
|
!1,
|
|
17486
17470
|
null,
|
|
17487
|
-
"
|
|
17471
|
+
"17a3987e",
|
|
17488
17472
|
null,
|
|
17489
17473
|
null
|
|
17490
17474
|
);
|