@chatsystem/client 1.1.27 → 1.1.28

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.mjs CHANGED
@@ -4041,13 +4041,15 @@ const Af = ({
4041
4041
  function _f(e, t = {}, n) {
4042
4042
  const { id: r, nonce: a, target: i, disableConstructable: u } = t, o = i ?? document.head, l = we(null), c = we(null);
4043
4043
  Pe(() => {
4044
- if (!e)
4044
+ if (!e) {
4045
+ n?.(), console.log("No custom css found.");
4045
4046
  return;
4047
+ }
4046
4048
  if (!u && "adoptedStyleSheets" in o && typeof CSSStyleSheet < "u" && "replaceSync" in CSSStyleSheet.prototype)
4047
4049
  return l.current || (l.current = new CSSStyleSheet(), o.adoptedStyleSheets = [
4048
4050
  ...o.adoptedStyleSheets,
4049
4051
  l.current
4050
- ]), l.current.replaceSync(e), n?.(), () => {
4052
+ ]), l.current.replaceSync(e), console.log("Loading custom css via stylesheet."), n?.(), () => {
4051
4053
  const d = o.adoptedStyleSheets || [], m = d.indexOf(l.current);
4052
4054
  if (m >= 0) {
4053
4055
  const h = d.slice();
@@ -4059,7 +4061,7 @@ function _f(e, t = {}, n) {
4059
4061
  const d = document.createElement("style");
4060
4062
  d.type = "text/css", r && (d.id = r), a && (d.nonce = a), (o instanceof Document && o.head || o).appendChild(d), c.current = d;
4061
4063
  }
4062
- return c.current.textContent = e, n?.(), () => {
4064
+ return c.current.textContent = e, console.log("Loading custom css via style tag."), n?.(), () => {
4063
4065
  c.current?.parentNode?.removeChild(c.current), c.current = null;
4064
4066
  };
4065
4067
  }, [e, r, a, i, u]);
@@ -4296,9 +4298,6 @@ const Pf = ({
4296
4298
  c.companySettings?.agent?.display?.CSSRules,
4297
4299
  { id: `${n}` },
4298
4300
  l.setHasDisplayedCss
4299
- ), console.log(
4300
- "hasDIsplayedCss",
4301
- l.appInternalContext.hasDisplayedCSS
4302
4301
  ), /* @__PURE__ */ B(rn, { children: /* @__PURE__ */ B(
4303
4302
  of,
4304
4303
  {