@enegelai/bot-widget 1.6.2 → 1.6.4

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/index.es.js CHANGED
@@ -4251,6 +4251,10 @@ const qc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="curr
4251
4251
  max-width: 75%;
4252
4252
  }
4253
4253
 
4254
+ .user-message a {
4255
+ color: var(--enegelai-bot-message-user-a-color, rgb(85, 26, 139));
4256
+ }
4257
+
4254
4258
  .assistant-message {
4255
4259
  margin-right: auto;
4256
4260
  //margin-left: -12px;
@@ -4262,6 +4266,10 @@ const qc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="curr
4262
4266
  padding: 4px 12px 6px 12px;
4263
4267
  }
4264
4268
 
4269
+ .assistant-message a {
4270
+ color: var(--enegelai-bot-message-bot-a-color, rgb(85, 26, 139));
4271
+ }
4272
+
4265
4273
  .system-message {
4266
4274
  margin-right: auto;
4267
4275
  //margin-left: -12px;
@@ -4295,6 +4303,18 @@ const qc = '<svg viewBox="0 0 16 16" width="1.2em" height="1.2em" ><g fill="curr
4295
4303
  text-align: left;
4296
4304
  }
4297
4305
 
4306
+ /*
4307
+ .cb-message-text a:visited {
4308
+ color: var(--enegelai-bot-message-a-visited-color, rgb(85, 26, 139));
4309
+ }
4310
+ .cb-message-text a:hover {
4311
+ color: var(--enegelai-bot-message-a-hover-color, rgb(85, 26, 139));
4312
+ }
4313
+ .cb-message-text a:active {
4314
+ color: var(--enegelai-bot-message-a-active-color, rgb(85, 26, 139));
4315
+ }
4316
+ */
4317
+
4298
4318
  .cb-message-text p {
4299
4319
  padding: 0;
4300
4320
  margin: 0;
@@ -4858,7 +4878,12 @@ let be = class extends Q {
4858
4878
  super(...arguments), this.placeholder = "Type a message...", this.sendButtonLabel = "Send", this.enableFileUpload = !1, this.value = "", this.loading = !1, this.disabled = !1, this.currentKey = "";
4859
4879
  }
4860
4880
  connectedCallback() {
4861
- super.connectedCallback(), addEventListener("form:submit", this._formSubmitHandler.bind(this));
4881
+ super.connectedCallback(), addEventListener("form:submit", this._formSubmitHandler.bind(this)), addEventListener("c7o:bot:input:setvalue", this._inputSetValueHandler.bind(this));
4882
+ }
4883
+ async _inputSetValueHandler(a) {
4884
+ var c;
4885
+ const t = a;
4886
+ this.value = ((c = t == null ? void 0 : t.detail) == null ? void 0 : c.inputValue) || "";
4862
4887
  }
4863
4888
  async _formSubmitHandler(a) {
4864
4889
  requestIdleCallback(() => {
@@ -6050,6 +6075,13 @@ let P = class extends Q {
6050
6075
  setOpen(a = !1) {
6051
6076
  x.open = a;
6052
6077
  }
6078
+ setInputValue(a = "") {
6079
+ a && a !== "" && this.emit("c7o:bot:input:setvalue", {
6080
+ detail: {
6081
+ inputValue: a
6082
+ }
6083
+ });
6084
+ }
6053
6085
  // check auth
6054
6086
  _checkAuth() {
6055
6087
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enegelai/bot-widget",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "description": "Enegel.ai Bot Widget",
5
5
  "scripts": {
6
6
  "dev": "vite",