@versini/sassysaint 5.5.13 → 5.5.14

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,6 +1,6 @@
1
1
  import { jsx as Ve, jsxs as P0, Fragment as Sa } from "react/jsx-runtime";
2
- import { convert as _s, getDefaultExportFromCjs as Ss, visit as Na, find as Ns, parse as Sn, parse$1 as Nn, normalize as kn, svg as ks, html as Ts, visitParents as Ms, SKIP as As, longestStreak as Os, factorySpace as xr, markdownLineEnding as $t, Markdown as Rs, remarkGfm as Cs } from "./MessageAssistant.CKmbS3S7.js";
3
- import { P as Is, L as Ds, j as Ls } from "./index.UQ480MwW.js";
2
+ import { convert as _s, getDefaultExportFromCjs as Ss, visit as Na, find as Ns, parse as Sn, parse$1 as Nn, normalize as kn, svg as ks, html as Ts, visitParents as Ms, SKIP as As, longestStreak as Os, factorySpace as xr, markdownLineEnding as $t, Markdown as Rs, remarkGfm as Cs } from "./MessageAssistant.DsLk7_4F.js";
3
+ import { P as Is, L as Ds, j as Ls } from "./index.Dx036nZH.js";
4
4
  import Bs, { useState as zs, useEffect as Ps } from "react";
5
5
  import Fs from "clsx";
6
6
  const ka = ({
@@ -1,8 +1,8 @@
1
1
  import { jsxs as Ye, jsx as re, Fragment as Jt } from "react/jsx-runtime";
2
- import { AppContext as pi, E as hi, le$1 as at } from "./App.CgE9Asbd.js";
2
+ import { AppContext as pi, E as hi, le$1 as at } from "./App.BXK1QFQt.js";
3
3
  import sn from "clsx";
4
4
  import { lazy as mi, useContext as gi, Suspense as di } from "react";
5
- import { LOCAL_STORAGE_PREFIX as yi, LOCAL_STORAGE_CHAT_DETAILS as ki, durationFormatter as xi } from "./index.UQ480MwW.js";
5
+ import { LOCAL_STORAGE_PREFIX as yi, LOCAL_STORAGE_CHAT_DETAILS as ki, durationFormatter as xi } from "./index.Dx036nZH.js";
6
6
  /*!
7
7
  @versini/ui-spinner v3.0.0
8
8
  © 2025 gizmette.com
@@ -8651,7 +8651,7 @@ function Uc(e) {
8651
8651
  const qc = mi(
8652
8652
  () => import(
8653
8653
  /* webpackChunkName: "LazyMarkdownWithExtra" */
8654
- "./MarkdownWithExtra.wbV_UGsm.js"
8654
+ "./MarkdownWithExtra.Cc0-hpHV.js"
8655
8655
  )
8656
8656
  ), Tn = {
8657
8657
  MODEL: "Model",
@@ -1917,7 +1917,7 @@ const Pa = (e) => q(
1917
1917
  children: e
1918
1918
  }
1919
1919
  ) });
1920
- }, qt = (e = jt) => It(e), io = "user", co = "assistant", lo = "system", uo = "internal", ho = "hidden", mo = "I'm having trouble right now. Please try again later.", po = "OpenAI", go = "OpenAI", yo = "Anthropic", fo = "action-message", bo = "action-reset", Eo = "action-model", wo = "action-restore", To = "action-streaming", Io = "action-engine", So = "action-search", _o = "action-sort", ko = "action-toggle-tag", Ao = "action-reset-tags", vo = "action-set-tags", Ro = "sassy-saint-", No = "details", xo = "search", Co = "sort", Oo = "engine-toggle", Po = "==stats==", Ma = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", ft = (e) => Number.isFinite(e) ? e : 0;
1920
+ }, qt = (e = jt) => It(e), io = "user", co = "assistant", lo = "system", uo = "internal", ho = "hidden", mo = "I'm having trouble right now. Please try again later.", po = "OpenAI", go = "OpenAI", yo = "Anthropic", fo = "action-message", bo = "action-reset", Eo = "action-model", wo = "action-restore", To = "action-streaming", Io = "action-engine", So = "action-search", _o = "action-sort", ko = "action-toggle-tag", Ao = "action-reset-tags", vo = "action-set-tags", Ro = "sassy-saint-", No = "details", xo = "search", Co = "sort", Oo = "engine-toggle", Po = "==stats==", Ma = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Do = 10, Lo = 30, ft = (e) => Number.isFinite(e) ? e : 0;
1921
1921
  function Ua(e) {
1922
1922
  return {
1923
1923
  days: Math.trunc(e / 864e5),
@@ -1997,7 +1997,7 @@ function Va(e, t) {
1997
1997
  const m = t.colonNotation ? ":" : " ";
1998
1998
  return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), a + n.join(m);
1999
1999
  }
2000
- const Ya = process.env.NODE_ENV === "production", za = !Ya, Fa = za ? "gizmette.local.com" : "gizmette.com", Do = async () => {
2000
+ const Ya = process.env.NODE_ENV === "production", za = !Ya, Fa = za ? "gizmette.local.com" : "gizmette.com", $o = async () => {
2001
2001
  const e = {
2002
2002
  /**
2003
2003
  * A boolean value that indicates the application would
@@ -2046,10 +2046,10 @@ const Ya = process.env.NODE_ENV === "production", za = !Ya, Fa = za ? "gizmette.
2046
2046
  e
2047
2047
  );
2048
2048
  });
2049
- }, Lo = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ C("div", { className: "flex items-center justify-between", children: [
2049
+ }, Mo = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ C("div", { className: "flex items-center justify-between", children: [
2050
2050
  /* @__PURE__ */ l("dt", { className: "my-1 inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
2051
2051
  /* @__PURE__ */ l("dd", { className: "my-1 inline-block", children: t[r] })
2052
- ] }) }, `${e}-${r}`)) : null, $o = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Mo = (e) => e > 0 ? Va(e, {
2052
+ ] }) }, `${e}-${r}`)) : null, Uo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Ko = (e) => e > 0 ? Va(e, {
2053
2053
  secondsDecimalDigits: 2,
2054
2054
  unitCount: 2
2055
2055
  }) : "N/A", ja = ({
@@ -2061,7 +2061,7 @@ const Ya = process.env.NODE_ENV === "production", za = !Ya, Fa = za ? "gizmette.
2061
2061
  t
2062
2062
  ), qa = ({
2063
2063
  extraClass: e
2064
- }) => g("px-2 sm:px-0", e), Uo = (e, t) => t === 1 ? e : `${e}s`, Ko = (e, t) => {
2064
+ }) => g("px-2 sm:px-0", e), Ho = (e, t) => t === 1 ? e : `${e}s`, Wo = (e, t) => {
2065
2065
  let r;
2066
2066
  return (...a) => {
2067
2067
  window.clearTimeout(r), r = window.setTimeout(() => e(...a), t);
@@ -3528,7 +3528,7 @@ try {
3528
3528
  });
3529
3529
  } catch {
3530
3530
  }
3531
- const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto", Gn = "Log in", Bn = "Sign in with a Passkey", Ho = "Log out", Jn = "Password", Wo = "Send", Go = "Profile", Bo = "Settings", Jo = "Chat history", Vo = "About", Yo = "Type your question here", zo = "<clipboard>", Fo = "Tags are pre-filled buttons available on the main screen, to help you quickly start requests. The label is used for the button, and the content is what will be inserted in the chat when the button is pressed. You can use the special placeholder <clipboard> to automatically insert the content of your clipboard.", jo = {
3531
+ const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto", Gn = "Log in", Bn = "Sign in with a Passkey", Go = "Log out", Jn = "Password", Bo = "Send", Jo = "Profile", Vo = "Settings", Yo = "Chat history", zo = "About", Fo = "Type your question here", jo = "<clipboard>", qo = "Tags are pre-filled buttons available on the main screen, to help you quickly start requests. The label is used for the button, and the content is what will be inserted in the chat when the button is pressed. You can use the special placeholder <clipboard> to automatically insert the content of your clipboard.", Xo = {
3532
3532
  PREFERENCES: {
3533
3533
  TITLE: "User profile",
3534
3534
  NAME: "Name",
@@ -3683,16 +3683,16 @@ const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto", Gn = "Log in", Bn = "Sign in w
3683
3683
  ) });
3684
3684
  }, zn = new URL(document.location.href).searchParams, Fn = !!zn.get("debug") || !1, jn = sr(() => import(
3685
3685
  /* webpackChunkName: "LazyApp" */
3686
- "./App.CgE9Asbd.js"
3686
+ "./App.BXK1QFQt.js"
3687
3687
  ).then((e) => e.App)), qn = ({ isComponent: e }) => {
3688
3688
  const { isAuthenticated: t } = qt();
3689
3689
  return t ? /* @__PURE__ */ l(ir, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(jn, { isComponent: e }) }) : /* @__PURE__ */ l(Yn, {});
3690
3690
  }, Xn = ({
3691
3691
  isComponent: e = !1,
3692
3692
  domain: t = Fa
3693
- }) => /* @__PURE__ */ l(Oe, { children: /* @__PURE__ */ l($a, { clientId: Ma, domain: t, debug: Fn, children: /* @__PURE__ */ l(qn, { isComponent: e }) }) }), qo = ({ domain: e }) => /* @__PURE__ */ l(Xn, { isComponent: !0, domain: e });
3693
+ }) => /* @__PURE__ */ l(Oe, { children: /* @__PURE__ */ l($a, { clientId: Ma, domain: t, debug: Fn, children: /* @__PURE__ */ l(qn, { isComponent: e }) }) }), Qo = ({ domain: e }) => /* @__PURE__ */ l(Xn, { isComponent: !0, domain: e });
3694
3694
  export {
3695
- Vo as ABOUT_TITLE,
3695
+ zo as ABOUT_TITLE,
3696
3696
  Io as ACTION_ENGINE,
3697
3697
  fo as ACTION_MESSAGE,
3698
3698
  Eo as ACTION_MODEL,
@@ -3706,47 +3706,49 @@ export {
3706
3706
  ko as ACTION_TOGGLE_TAG,
3707
3707
  Wn as APP_NAME,
3708
3708
  Xt as C,
3709
- jo as CARDS,
3710
- zo as CLIPBOARD_TAG,
3709
+ Xo as CARDS,
3710
+ jo as CLIPBOARD_TAG,
3711
3711
  po as DEFAULT_AI_ENGINE,
3712
3712
  yo as ENGINE_ANTHROPIC,
3713
3713
  go as ENGINE_OPENAI,
3714
3714
  mo as ERROR_MESSAGE,
3715
- Jo as HISTORY_TITLE,
3715
+ Yo as HISTORY_TITLE,
3716
+ Lo as INFINITE_SCROLL_LIMIT,
3717
+ Do as INFINITE_SCROLL_THRESHOLD,
3716
3718
  Et as L,
3717
3719
  No as LOCAL_STORAGE_CHAT_DETAILS,
3718
3720
  Oo as LOCAL_STORAGE_ENGINE_TOGGLE,
3719
3721
  Ro as LOCAL_STORAGE_PREFIX,
3720
3722
  xo as LOCAL_STORAGE_SEARCH,
3721
3723
  Co as LOCAL_STORAGE_SORT,
3722
- Ho as LOG_OUT,
3724
+ Go as LOG_OUT,
3723
3725
  Vn as Logo,
3724
3726
  ue as M,
3725
3727
  Xe as P,
3726
- Go as PROFILE_TITLE,
3728
+ Jo as PROFILE_TITLE,
3727
3729
  hn as R,
3728
3730
  co as ROLE_ASSISTANT,
3729
3731
  ho as ROLE_HIDDEN,
3730
3732
  uo as ROLE_INTERNAL,
3731
3733
  lo as ROLE_SYSTEM,
3732
3734
  io as ROLE_USER,
3733
- Wo as SEND,
3734
- Bo as SETTINGS_TITLE,
3735
+ Bo as SEND,
3736
+ Vo as SETTINGS_TITLE,
3735
3737
  Po as STATS_SEPARATOR,
3736
- qo as SassySaint,
3737
- Fo as TAGS_DESCRIPTION,
3738
- Yo as TYPE_QUESTION,
3739
- Ko as debounce,
3740
- Mo as durationFormatter,
3738
+ Qo as SassySaint,
3739
+ qo as TAGS_DESCRIPTION,
3740
+ Fo as TYPE_QUESTION,
3741
+ Wo as debounce,
3742
+ Ko as durationFormatter,
3741
3743
  Ue as g,
3742
- Do as getCurrentGeoLocation,
3744
+ $o as getCurrentGeoLocation,
3743
3745
  qa as getMainPaddingClass,
3744
3746
  ja as getMessageContaintWrapperClass,
3745
- $o as isLastMessageFromRole,
3747
+ Uo as isLastMessageFromRole,
3746
3748
  le as j,
3747
- Uo as pluralize,
3749
+ Ho as pluralize,
3748
3750
  bn as r,
3749
- Lo as renderDataAsList,
3751
+ Mo as renderDataAsList,
3750
3752
  qt as un,
3751
3753
  at as ye,
3752
3754
  gn as z
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { SassySaint as a } from "../../chunks/index.UQ480MwW.js";
2
+ import { SassySaint as a } from "../../chunks/index.Dx036nZH.js";
3
3
  export {
4
4
  a as SassySaint
5
5
  };
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { SassySaint as r } from "./chunks/index.UQ480MwW.js";
1
+ import { SassySaint as r } from "./chunks/index.Dx036nZH.js";
2
2
  /*!
3
- @sassysaint/client v5.18.4
3
+ @sassysaint/client v5.19.0
4
4
  © 2025 gizmette.com
5
5
  */
6
6
  try {
7
7
  window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
8
- version: "5.18.4",
9
- buildTime: "01/03/2025 03:03 PM EST",
8
+ version: "5.19.0",
9
+ buildTime: "01/03/2025 07:36 PM EST",
10
10
  license: "MIT"
11
11
  });
12
12
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/sassysaint",
3
- "version": "5.5.13",
3
+ "version": "5.5.14",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -30,7 +30,7 @@
30
30
  "react-dom": "^18.3.1 || ^19.0.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@sassysaint/client": "5.18.4",
33
+ "@sassysaint/client": "5.19.0",
34
34
  "@versini/ui-styles": "3.0.0"
35
35
  },
36
36
  "dependencies": {
@@ -41,5 +41,5 @@
41
41
  "sideEffects": [
42
42
  "**/*.css"
43
43
  ],
44
- "gitHead": "04bd62ec47ef690d703489b313a6e8f36e723155"
44
+ "gitHead": "475324ebcf825a5d148cbd4d16794bdbd8864cdf"
45
45
  }