deep-chat-dev 1.1.32 → 1.1.33

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
@@ -2798,7 +2798,7 @@ const _InternalHTML = class extends HTMLElement {
2798
2798
  // If this is not working, try using propertyName directly
2799
2799
  constructor() {
2800
2800
  super(), this._waitingToRender_ = !1, this._propUpdated_ = !1, Object.keys(_InternalHTML._attributeToProperty_).forEach((n) => {
2801
- this.constructPropertyAccessors(_InternalHTML._attributeToProperty_[n]);
2801
+ this.constructPropertyAccessors(_InternalHTML._attributeToProperty_[n]), this.hasOwnProperty(n) || this.constructPropertyAccessors2(n, _InternalHTML._attributeToProperty_[n]);
2802
2802
  });
2803
2803
  }
2804
2804
  static get observedAttributes() {
@@ -2816,6 +2816,18 @@ const _InternalHTML = class extends HTMLElement {
2816
2816
  }
2817
2817
  });
2818
2818
  }
2819
+ // need to be called here as accessors need to be set for the class instance
2820
+ constructPropertyAccessors2(n, e) {
2821
+ let t;
2822
+ Object.defineProperty(this, n, {
2823
+ get: function() {
2824
+ return t;
2825
+ },
2826
+ set: function(o) {
2827
+ t = o, this[e] = o;
2828
+ }
2829
+ });
2830
+ }
2819
2831
  attributeChangedCallback(n, e, t) {
2820
2832
  if (console.log(t), console.log(typeof t), e === t)
2821
2833
  return;
@@ -4141,7 +4153,7 @@ function Property(n) {
4141
4153
  return function(e, t) {
4142
4154
  Object.defineProperty(e, t, {});
4143
4155
  const r = e.constructor, s = t.toLocaleLowerCase();
4144
- Object.defineProperty(e, s, {}), r._attributes_[s] = TypeConverters.attibutes[n], r._attributeToProperty_[s] = t;
4156
+ r._attributes_[s] = TypeConverters.attibutes[n], r._attributeToProperty_[s] = t;
4145
4157
  };
4146
4158
  }
4147
4159
  class FireEvents {
@@ -1 +1 @@
1
- {"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../../../src/utils/decorators/property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAYlF,wBAAgB,QAAQ,CAAC,IAAI,EAAE,cAAc,YAClB,MAAM,eAAe,MAAM,UAWrD"}
1
+ {"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../../../src/utils/decorators/property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAYlF,wBAAgB,QAAQ,CAAC,IAAI,EAAE,cAAc,YAClB,MAAM,eAAe,MAAM,UAUrD"}
@@ -8,6 +8,7 @@ export declare class InternalHTML extends HTMLElement {
8
8
  static get observedAttributes(): string[];
9
9
  constructor();
10
10
  private constructPropertyAccessors;
11
+ private constructPropertyAccessors2;
11
12
  attributeChangedCallback(attributeName: string, oldValue: string, newValue: string): void;
12
13
  onRender(): void;
13
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"internalHTML.d.ts","sourceRoot":"","sources":["../../../../src/utils/webComponent/internalHTML.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEjD,qBAAa,YAAa,SAAQ,WAAW;IAC3C,iBAAiB,UAAS;IAC1B,aAAa,UAAS;IACtB,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,sBAAsB,CAAC,CAAM;IAChE,MAAM,CAAC,qBAAqB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAM;IAEzD,MAAM,KAAK,kBAAkB,aAE5B;;IAWD,OAAO,CAAC,0BAA0B;IAelC,wBAAwB,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IASlF,QAAQ;CACT"}
1
+ {"version":3,"file":"internalHTML.d.ts","sourceRoot":"","sources":["../../../../src/utils/webComponent/internalHTML.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEjD,qBAAa,YAAa,SAAQ,WAAW;IAC3C,iBAAiB,UAAS;IAC1B,aAAa,UAAS;IACtB,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,sBAAsB,CAAC,CAAM;IAChE,MAAM,CAAC,qBAAqB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAM;IAEzD,MAAM,KAAK,kBAAkB,aAE5B;;IAcD,OAAO,CAAC,0BAA0B;IAgBlC,OAAO,CAAC,2BAA2B;IAenC,wBAAwB,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IASlF,QAAQ;CACT"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deep-chat-dev",
3
- "version": "1.1.32",
3
+ "version": "1.1.33",
4
4
  "description": "Customizable chat component for AI APIs",
5
5
  "main": "./dist/deepChat.js",
6
6
  "module": "./dist/deepChat.js",