@versini/sassysaint 6.0.2 → 6.1.0

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 ka } from "react/jsx-runtime";
2
- import { convert as _s, getDefaultExportFromCjs as Ss, visit as Na, find as ks, parse as kn, parse$1 as Nn, normalize as Tn, svg as Ns, html as Ts, visitParents as As, SKIP as Ms, longestStreak as Os, factorySpace as _r, markdownLineEnding as Vt, Markdown as Rs, remarkGfm as Cs } from "./MessageAssistant.BUCVo1Ly.js";
3
- import { Y as Is, L as Ds, j as Ls } from "./index.TG9DLSxx.js";
2
+ import { convert as _s, getDefaultExportFromCjs as Ss, visit as Na, find as ks, parse as kn, parse$1 as Nn, normalize as Tn, svg as Ns, html as Ts, visitParents as As, SKIP as Ms, longestStreak as Os, factorySpace as _r, markdownLineEnding as Vt, Markdown as Rs, remarkGfm as Cs } from "./MessageAssistant.DZZ26s7B.js";
3
+ import { Y as Is, L as Ds, j as Ls } from "./index.DUNIGQ5_.js";
4
4
  import zs, { useState as Bs, useEffect as Fs } from "react";
5
5
  import Ps from "clsx";
6
6
  const Ta = ({
@@ -1,8 +1,8 @@
1
1
  import { jsxs as en, jsx as re, Fragment as nr } from "react/jsx-runtime";
2
- import { AppContext as di, E as yi, le$1 as ct } from "./App.9lylFRwi.js";
2
+ import { AppContext as di, E as yi, le$1 as ct } from "./App.CVKf39VG.js";
3
3
  import hn from "clsx";
4
4
  import { lazy as ki, useContext as xi, Suspense as bi } from "react";
5
- import { LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.TG9DLSxx.js";
5
+ import { LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.DUNIGQ5_.js";
6
6
  function tr(e) {
7
7
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
8
8
  }
@@ -8653,7 +8653,7 @@ function Qc(e) {
8653
8653
  const Yc = ki(
8654
8654
  () => import(
8655
8655
  /* webpackChunkName: "LazyMarkdownWithExtra" */
8656
- "./MarkdownWithExtra.D4xUgAKJ.js"
8656
+ "./MarkdownWithExtra.CEPqANDe.js"
8657
8657
  )
8658
8658
  ), Ln = {
8659
8659
  MODEL: "Model",
@@ -1917,7 +1917,7 @@ const Pa = (e) => q(
1917
1917
  children: e
1918
1918
  }
1919
1919
  ) });
1920
- }, zt = (e = jt) => Tt(e), co = "user", lo = "assistant", uo = "system", mo = "internal", ho = "hidden", po = "I'm having trouble right now. Please try again later.", fo = "OpenAI", go = "OpenAI", yo = "Anthropic", bo = "action-message", Eo = "action-reset", wo = "action-model", To = "action-restore", Io = "action-streaming", So = "action-search", _o = "action-sort", ko = "action-toggle-prompt", Ao = "action-reset-prompt", Ro = "sassy-saint-", No = "details", vo = "search", xo = "sort", Co = "==stats==", $a = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Oo = 10, Po = 30, Do = "av-prompt", Lo = "av-prompt-editable", yt = (e) => Number.isFinite(e) ? e : 0;
1920
+ }, zt = (e = jt) => Tt(e), co = "user", lo = "assistant", uo = "system", mo = "internal", ho = "hidden", po = "I'm having trouble right now. Please try again later.", fo = "OpenAI", go = "OpenAI", yo = "Anthropic", bo = "action-message", Eo = "action-reset", wo = "action-model", To = "action-restore", Io = "action-streaming", So = "action-search", _o = "action-sort", ko = "action-toggle-prompt", Ao = "action-reset-prompt", Ro = "sassy-saint-", No = "details", vo = "search", xo = "sort", Co = "private-disclosure", Oo = "==stats==", $a = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Po = 10, Do = 30, Lo = "av-prompt", Mo = "av-prompt-editable", yt = (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 h = t.colonNotation ? ":" : " ";
1998
1998
  return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), a + n.join(h);
1999
1999
  }
2000
- const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "gizmette.local.com" : "gizmette.com", Mo = async () => {
2000
+ const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "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", Fa = !Ya, ja = Fa ? "gizmette.
2046
2046
  e
2047
2047
  );
2048
2048
  });
2049
- }, $o = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ O("div", { className: "flex items-center justify-between", children: [
2049
+ }, Uo = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ O("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, Uo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Ko = (e) => e > 0 ? Va(e, {
2052
+ ] }) }, `${e}-${r}`)) : null, Ko = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Ho = (e) => e > 0 ? Va(e, {
2053
2053
  secondsDecimalDigits: 2,
2054
2054
  unitCount: 2
2055
2055
  }) : "N/A", za = ({
@@ -2061,7 +2061,7 @@ const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "gizmette.
2061
2061
  t
2062
2062
  ), qa = ({
2063
2063
  extraClass: e
2064
- }) => f("px-2 sm:px-0", e), Ho = (e, t) => t === 1 ? e : `${e}s`, Wo = (e, t) => {
2064
+ }) => f("px-2 sm:px-0", e), Wo = (e, t) => t === 1 ? e : `${e}s`, Bo = (e, t) => {
2065
2065
  let r;
2066
2066
  return (...a) => {
2067
2067
  window.clearTimeout(r), r = window.setTimeout(() => e(...a), t);
@@ -3530,7 +3530,7 @@ try {
3530
3530
  });
3531
3531
  } catch {
3532
3532
  }
3533
- const Bn = "ASK! ME! ANYTHING!", rr = "Callisto", Gn = "Log in", Jn = "Sign in with a Passkey", Bo = "Log out", Vn = "Password", Go = "Profile", Jo = "Settings", Vo = "Chat history", Yo = "About", Fo = "Type your question here", jo = "{{clipboard}}", zo = `Sometimes, ${rr} hallucinates. Review important details.`, qo = "Prompts 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 = {
3533
+ const Bn = "ASK! ME! ANYTHING!", rr = "Callisto", Gn = "Log in", Jn = "Sign in with a Passkey", Go = "Log out", Vn = "Password", Jo = "Profile", Vo = "Settings", Yo = "Chat history", Fo = "About", jo = "Type your question here", zo = "{{clipboard}}", qo = `Sometimes, ${rr} hallucinates. Review important details.`, Xo = "Prompts 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.", Qo = {
3534
3534
  PREFERENCES: {
3535
3535
  TITLE: "User profile",
3536
3536
  NAME: "Name",
@@ -3693,16 +3693,16 @@ const Bn = "ASK! ME! ANYTHING!", rr = "Callisto", Gn = "Log in", Jn = "Sign in w
3693
3693
  ) });
3694
3694
  }, jn = new URL(document.location.href).searchParams, zn = !!jn.get("debug") || !1, qn = sr(() => import(
3695
3695
  /* webpackChunkName: "LazyApp" */
3696
- "./App.9lylFRwi.js"
3696
+ "./App.CVKf39VG.js"
3697
3697
  ).then((e) => e.App)), Xn = ({ isComponent: e }) => {
3698
3698
  const { isAuthenticated: t } = zt();
3699
3699
  return t ? /* @__PURE__ */ l(ir, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(qn, { isComponent: e }) }) : /* @__PURE__ */ l(Fn, {});
3700
3700
  }, Qn = ({
3701
3701
  isComponent: e = !1,
3702
3702
  domain: t = ja
3703
- }) => /* @__PURE__ */ l(Ma, { clientId: $a, domain: t, debug: zn, children: /* @__PURE__ */ l(Xn, { isComponent: e }) }), Qo = ({ domain: e }) => /* @__PURE__ */ l(Qn, { isComponent: !0, domain: e });
3703
+ }) => /* @__PURE__ */ l(Ma, { clientId: $a, domain: t, debug: zn, children: /* @__PURE__ */ l(Xn, { isComponent: e }) }), Zo = ({ domain: e }) => /* @__PURE__ */ l(Qn, { isComponent: !0, domain: e });
3704
3704
  export {
3705
- Yo as ABOUT_TITLE,
3705
+ Fo as ABOUT_TITLE,
3706
3706
  bo as ACTION_MESSAGE,
3707
3707
  wo as ACTION_MODEL,
3708
3708
  Eo as ACTION_RESET,
@@ -3714,51 +3714,52 @@ export {
3714
3714
  ko as ACTION_TOGGLE_PROMPT,
3715
3715
  rr as APP_NAME,
3716
3716
  qt as C,
3717
- Xo as CARDS,
3718
- jo as CLIPBOARD_PROMPT,
3717
+ Qo as CARDS,
3718
+ zo as CLIPBOARD_PROMPT,
3719
3719
  fo as DEFAULT_AI_ENGINE,
3720
3720
  yo as ENGINE_ANTHROPIC,
3721
3721
  go as ENGINE_OPENAI,
3722
3722
  po as ERROR_MESSAGE,
3723
- zo as FOOTER_DISCLAIMER,
3724
- Vo as HISTORY_TITLE,
3725
- Po as INFINITE_SCROLL_LIMIT,
3726
- Oo as INFINITE_SCROLL_THRESHOLD,
3723
+ qo as FOOTER_DISCLAIMER,
3724
+ Yo as HISTORY_TITLE,
3725
+ Do as INFINITE_SCROLL_LIMIT,
3726
+ Po as INFINITE_SCROLL_THRESHOLD,
3727
3727
  Tn as L,
3728
3728
  No as LOCAL_STORAGE_CHAT_DETAILS,
3729
3729
  Ro as LOCAL_STORAGE_PREFIX,
3730
+ Co as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
3730
3731
  vo as LOCAL_STORAGE_SEARCH,
3731
3732
  xo as LOCAL_STORAGE_SORT,
3732
- Bo as LOG_OUT,
3733
+ Go as LOG_OUT,
3733
3734
  Yn as Logo,
3734
3735
  ue as M,
3735
- Go as PROFILE_TITLE,
3736
- qo as PROMPTS_DESCRIPTION,
3737
- Do as PROMPT_CLASSNAME,
3738
- Lo as PROMPT_EDITABLE_AREA_CLASSNAME,
3736
+ Jo as PROFILE_TITLE,
3737
+ Xo as PROMPTS_DESCRIPTION,
3738
+ Lo as PROMPT_CLASSNAME,
3739
+ Mo as PROMPT_EDITABLE_AREA_CLASSNAME,
3739
3740
  hn as R,
3740
3741
  lo as ROLE_ASSISTANT,
3741
3742
  ho as ROLE_HIDDEN,
3742
3743
  mo as ROLE_INTERNAL,
3743
3744
  uo as ROLE_SYSTEM,
3744
3745
  co as ROLE_USER,
3745
- Jo as SETTINGS_TITLE,
3746
- Co as STATS_SEPARATOR,
3747
- Qo as SassySaint,
3748
- Fo as TYPE_QUESTION,
3746
+ Vo as SETTINGS_TITLE,
3747
+ Oo as STATS_SEPARATOR,
3748
+ Zo as SassySaint,
3749
+ jo as TYPE_QUESTION,
3749
3750
  qe as Y,
3750
- Wo as debounce,
3751
- Ko as durationFormatter,
3751
+ Bo as debounce,
3752
+ Ho as durationFormatter,
3752
3753
  $e as g,
3753
- Mo as getCurrentGeoLocation,
3754
+ $o as getCurrentGeoLocation,
3754
3755
  qa as getMainPaddingClass,
3755
3756
  za as getMessageContaintWrapperClass,
3756
- Uo as isLastMessageFromRole,
3757
+ Ko as isLastMessageFromRole,
3757
3758
  te as j,
3758
3759
  gn as l,
3759
- Ho as pluralize,
3760
+ Wo as pluralize,
3760
3761
  En as r,
3761
- $o as renderDataAsList,
3762
+ Uo as renderDataAsList,
3762
3763
  zt as un,
3763
3764
  at as ye
3764
3765
  };
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { SassySaint as a } from "../../chunks/index.TG9DLSxx.js";
2
+ import { SassySaint as a } from "../../chunks/index.DUNIGQ5_.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.TG9DLSxx.js";
1
+ import { SassySaint as r } from "./chunks/index.DUNIGQ5_.js";
2
2
  /*!
3
- @sassysaint/client v6.0.2
3
+ @sassysaint/client v6.1.0
4
4
  © 2025 gizmette.com
5
5
  */
6
6
  try {
7
7
  window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
8
- version: "6.0.2",
9
- buildTime: "01/21/2025 02:16 PM EST",
8
+ version: "6.1.0",
9
+ buildTime: "01/23/2025 11:39 AM 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": "6.0.2",
3
+ "version": "6.1.0",
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": "6.0.2",
33
+ "@sassysaint/client": "6.1.0",
34
34
  "@versini/ui-styles": "3.2.6"
35
35
  },
36
36
  "dependencies": {
@@ -41,5 +41,5 @@
41
41
  "sideEffects": [
42
42
  "**/*.css"
43
43
  ],
44
- "gitHead": "e28817575d399f62057231db22869cd5f8bafd9c"
44
+ "gitHead": "3cd524e8ef8ed85eff7c57fada53a495599d1cb7"
45
45
  }