deep-chat-dev 9.0.52 → 9.0.53

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/deepChat.js CHANGED
@@ -10676,19 +10676,19 @@ var De = /*#__PURE__*/function (_at4) {
10676
10676
  }, {
10677
10677
  key: "changeToLoadingIcon",
10678
10678
  value: function changeToLoadingIcon() {
10679
- this._serviceIO.websocket || (this._isSVGLoadingIconOverriden || this.elementRef.replaceChildren(this._innerElements.loading), this.elementRef.classList.add("loading-button"), this.reapplyStateStyle("loading", ["submit"]), this.elementRef.onclick = function () {}, this._isRequestInProgress = !0, this._isLoadingActive = !0);
10679
+ this._serviceIO.websocket || (this._isSVGLoadingIconOverriden || this.elementRef.replaceChildren(this._innerElements.loading), this.elementRef.classList.remove("submit-button", "disabled-button"), this.elementRef.classList.add("loading-button"), this.reapplyStateStyle("loading", ["submit"]), this.elementRef.onclick = function () {}, this._isRequestInProgress = !0, this._isLoadingActive = !0);
10680
10680
  }
10681
10681
  }, {
10682
10682
  key: "changeToSubmitIcon",
10683
10683
  value: function changeToSubmitIcon() {
10684
- this.elementRef.children[0] !== this._innerElements.submit && (this.elementRef.classList.remove("loading-button"), this.elementRef.replaceChildren(this._innerElements.submit), ve.resetSubmit(this, this._isLoadingActive), this.elementRef.onclick = this.submitFromInput.bind(this), this._isRequestInProgress = !1, this._isLoadingActive = !1);
10684
+ this.elementRef.classList.contains("submit-button") || (this.elementRef.classList.remove("loading-button", "disabled-button"), this.elementRef.classList.add("submit-button"), this.elementRef.replaceChildren(this._innerElements.submit), ve.resetSubmit(this, this._isLoadingActive), this.elementRef.onclick = this.submitFromInput.bind(this), this._isRequestInProgress = !1, this._isLoadingActive = !1);
10685
10685
  }
10686
10686
  }, {
10687
10687
  key: "changeToDisabledIcon",
10688
10688
  value: function changeToDisabledIcon() {
10689
10689
  var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
10690
10690
  var t = e ? !0 : !this._alwaysEnabled;
10691
- (this._isRequestInProgress || this._isLoadingActive || !t) && this.changeToSubmitIcon(), t && this.elementRef.children[0] !== this._innerElements.disabled && (this.elementRef.replaceChildren(this._innerElements.disabled), this.reapplyStateStyle("disabled", ["submit"]), this.elementRef.onclick = function () {});
10691
+ (this._isRequestInProgress || this._isLoadingActive || !t) && this.changeToSubmitIcon(), t && !this.elementRef.classList.contains("disabled-button") && (this.elementRef.classList.remove("loading-button", "submit-button"), this.elementRef.classList.add("disabled-button"), this.elementRef.replaceChildren(this._innerElements.disabled), this.reapplyStateStyle("disabled", ["submit"]), this.elementRef.onclick = function () {});
10692
10692
  }
10693
10693
  }, {
10694
10694
  key: "changeSubmitButtonState",
@@ -1 +1 @@
1
- {"version":3,"file":"submitButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/views/chat/input/buttons/submit/submitButton.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAAC,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAC,kBAAkB,EAAC,MAAM,mCAAmC,CAAC;AAKrE,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;AAI5D,OAAO,EAAC,QAAQ,EAAC,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAEL,wBAAwB,EAEzB,MAAM,qCAAqC,CAAC;AAE7C,KAAK,MAAM,GAAG,IAAI,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,EAAE,eAAe,CAAC,CAAC;AAElF,qBAAa,YAAa,SAAQ,WAAW,CAAC,MAAM,CAAC;IACnD,OAAO,CAAC,oBAAoB,CAAS;IACrC,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAY;IACvC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAW;IACrC,OAAO,CAAC,QAAQ,CA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AgBf,eAAe;IAWT,MAAM,CAAC,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM;YAmB/C,cAAc;IAO5B,OAAO,CAAC,UAAU;IAMlB,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,mBAAmB;IAWpB,kBAAkB;IAWlB,oBAAoB,CAAC,cAAc,UAAQ;IAalD,OAAO,CAAC,uBAAuB;CAQhC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deep-chat-dev",
3
- "version": "9.0.52",
3
+ "version": "9.0.53",
4
4
  "description": "Customizable chat component for AI APIs",
5
5
  "main": "./dist/deepChat.js",
6
6
  "module": "./dist/deepChat.js",