@evercam/ui 0.0.63-preview-efeedback-button-655dff752 → 0.0.63-preview-efeedback-button-3fce0f8c1

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.
@@ -1,5 +1,5 @@
1
1
  import Vue from "vue";
2
- import { ChatMessage, ChatMessageRole, ChatSuggestion } from '../../types';
2
+ import { ChatMessage, ChatMessageRole, ChatSuggestion, Feedback } from '../../types';
3
3
  declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => Vue<Record<string, any>, Record<string, any>, never, never, any>>, {
4
4
  prompt: string;
5
5
  containerHeight: number;
@@ -1,5 +1,5 @@
1
1
  import Vue from "vue";
2
- import { ChatMessageRole } from '../../types';
2
+ import { ChatMessageRole, Feedback } from '../../types';
3
3
  declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => Vue<Record<string, any>, Record<string, any>, never, never, any>>, {
4
4
  showActions: boolean;
5
5
  }, {
package/dist/index.d.ts CHANGED
@@ -1094,7 +1094,7 @@ export declare const components: {
1094
1094
  };
1095
1095
  updateChatBodyHeight(): void;
1096
1096
  isAvatarVisible(message: import('./types').ChatMessage): boolean;
1097
- onMessageFeedback(feedback: Feedback, messageId?: number | undefined): void;
1097
+ onMessageFeedback(feedback: import('./types').Feedback, messageId?: number | undefined): void;
1098
1098
  }, {
1099
1099
  ChatMessageRole: typeof import('./types').ChatMessageRole;
1100
1100
  userInitials: string;
package/dist/index.mjs CHANGED
@@ -17589,7 +17589,7 @@ var l8 = function() {
17589
17589
  return [e._t("timestamp", function() {
17590
17590
  return [e._v(e._s(n))];
17591
17591
  }, { timestamp: n })];
17592
- } }], null, !0) }) : r("p", { staticClass: "e-chat-message__content e-font-medium e-text-wrap e-mb-1 e-mt-[12px] e-rounded-lg e-p-2 e-px-4", class: e.userMessageClasses }, [e._v(" " + e._s(e.message) + " ")])], 2)]), r("EFadeTransition", [e.withActions && e.showActions ? r("EChatMessageActions", { staticClass: "e-left-11", attrs: { dark: e.dark, "show-copy-button": e.showCopyButton, "show-feedback-buttons": e.showFeedbackButtons, message: e.message }, on: { feedback: e.onFeedback } }) : e._e()], 1)], 1);
17592
+ } }], null, !0) }) : r("p", { staticClass: "e-chat-message__content e-font-medium e-text-wrap e-mb-1 e-mt-[12px] e-rounded-lg e-p-2 e-px-4", class: e.userMessageClasses }, [e._v(" " + e._s(e.message) + " ")]), e._t("extraContent")], 2)]), r("EFadeTransition", [e.withActions && e.showActions ? r("EChatMessageActions", { staticClass: "e-left-11", attrs: { dark: e.dark, "show-copy-button": e.showCopyButton, "show-feedback-buttons": e.showFeedbackButtons, message: e.message }, on: { feedback: e.onFeedback } }) : e._e()], 1)], 1);
17593
17593
  }, c8 = [], u8 = /* @__PURE__ */ q(
17594
17594
  o8,
17595
17595
  l8,
@@ -18017,7 +18017,9 @@ var $8 = function() {
18017
18017
  return [e._t("timestamp", function() {
18018
18018
  return [e._v(e._s(l))];
18019
18019
  }, { timestamp: l })];
18020
- } }], null, !0) });
18020
+ } }, { key: "extraContent", fn: function() {
18021
+ return [e._t("message.extraContent", null, { message: n })];
18022
+ }, proxy: !0 }], null, !0) });
18021
18023
  }), 1), 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()], 1), 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.isDisabled, placeholder: e.inputPlaceholder }, on: { "prompt-changed": function(n) {
18022
18024
  return e.$emit("prompt-changed", n);
18023
18025
  }, submit: e.sendMessage }, model: { value: e.prompt, callback: function(n) {
@@ -18029,7 +18031,7 @@ var $8 = function() {
18029
18031
  E8,
18030
18032
  !1,
18031
18033
  null,
18032
- "9a480fe2",
18034
+ "74a0db0c",
18033
18035
  null,
18034
18036
  null
18035
18037
  );