@versini/sassysaint 5.3.6 → 5.3.7

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 { jsxs as v, Fragment as H, jsx as n } from "react/jsx-runtime";
2
- import { AppContext as j, TagsContext as Y, LOCAL_STORAGE_PREFIX as M, b as _e, j as G, R as B, TAG_CONTENT as O, TAGS as C, isLastMessageFromRole as de, CANCEL as Ne, CLEAR as we, ACTION_RESET as le, ACTION_TOGGLE_TAG as ce, ROLE_ASSISTANT as I, ROLE_INTERNAL as q, ROLE_USER as K, rn as Z, ROLE_SYSTEM as Ee, ROLE_HIDDEN as Ce, DEFAULT_AI_ENGINE as z, STATS_SEPARATOR as te, ACTION_MODEL as ge, ACTION_MESSAGE as L, ACTION_RESET_TAGS as ue, TYPE_QUESTION as Ie, SEND as Re, ACTION_STREAMING as me, ERROR_MESSAGE as Se, getMessageContaintWrapperClass as Ae, MessagesContainerHeader as Be, ACTION_SEARCH as Me, ACTION_SORT as Oe, ACTION_RESTORE as Le, ACTION_ENGINE as he, HistoryContext as $e, d as Ue, AppFooter as Ve, LOCAL_STORAGE_SEARCH as ze, LOCAL_STORAGE_SORT as De } from "./index.CoCFKnCo.js";
3
- import { E as $, restCall as He, we as je, serviceCall as Pe, SERVICE_TYPES as Ge, f as Fe } from "./index.DQ6ANvTz.js";
2
+ import { AppContext as j, TagsContext as Y, LOCAL_STORAGE_PREFIX as M, b as _e, j as G, R as B, TAG_CONTENT as O, TAGS as C, isLastMessageFromRole as de, CANCEL as Ne, CLEAR as we, ACTION_RESET as le, ACTION_TOGGLE_TAG as ce, ROLE_ASSISTANT as I, ROLE_INTERNAL as q, ROLE_USER as K, rn as Z, ROLE_SYSTEM as Ee, ROLE_HIDDEN as Ce, DEFAULT_AI_ENGINE as z, STATS_SEPARATOR as te, ACTION_MODEL as ge, ACTION_MESSAGE as L, ACTION_RESET_TAGS as ue, TYPE_QUESTION as Ie, SEND as Re, ACTION_STREAMING as me, ERROR_MESSAGE as Se, getMessageContaintWrapperClass as Ae, MessagesContainerHeader as Be, ACTION_SEARCH as Me, ACTION_SORT as Oe, ACTION_RESTORE as Le, ACTION_ENGINE as he, HistoryContext as $e, d as Ue, AppFooter as Ve, LOCAL_STORAGE_SEARCH as ze, LOCAL_STORAGE_SORT as De } from "./index.Htlj5BwD.js";
3
+ import { E as $, restCall as He, we as je, serviceCall as Pe, SERVICE_TYPES as Ge, f as Fe } from "./index.C8-dCwmB.js";
4
4
  import S, { useContext as U, useRef as R, useEffect as E, useState as P, lazy as We, Suspense as re, useReducer as F } from "react";
5
5
  import d from "clsx";
6
6
  function Ke(e) {
@@ -1130,7 +1130,7 @@ try {
1130
1130
  const ne = We(
1131
1131
  () => import(
1132
1132
  /* webpackChunkName: "LazyMessageAssistant" */
1133
- "./LazyMessageAssistant.BpwMhQ83.js"
1133
+ "./LazyMessageAssistant.De9R5w_u.js"
1134
1134
  ).then((e) => e.LazyMessageAssistant)
1135
1135
  ), Ut = () => {
1136
1136
  const { state: e } = U(j);
@@ -1,6 +1,6 @@
1
1
  import { jsx as r, jsxs as v, Fragment as R } from "react/jsx-runtime";
2
- import { g as O, E as P, CARDS as w, renderDataAsList as le, pluralize as fe, AppContext as me, ABOUT_TITLE as Lt, DEFAULT_AI_ENGINE as ie, numberFormatter as Ot, durationFormatter as Qe, NA as Bt, ROLE_ASSISTANT as Pt, extractAverage as zt, GPT4_MAX_TOKENS as Vt, rn as te, STATS as et, b as Me, j as ee, R as Q, HistoryContext as tt, LOCAL_STORAGE_PREFIX as D, LOCAL_STORAGE_SORT as $t, O as Y, ACTION_RESET as Dt, ACTION_RESTORE as Ht, truncate as Ft, ACTION_SORT as Ce, LOCAL_STORAGE_SEARCH as Gt, me as Ut, ACTION_SEARCH as jt, HISTORY_TITLE as Kt, LOCAL_STORAGE_ENGINE_TOGGLE as ot, ENGINE_OPENAI as Te, ENGINE_ANTHROPIC as pe, ACTION_ENGINE as rt, getCurrentGeoLocation as Wt, LOCAL_STORAGE_TAG_SUMMARIZE as $e, LOCAL_STORAGE_TAG_PROOFREAD as De, LOCAL_STORAGE_TAG_REPHRASE as He, TAG_CONTENT as we, TAGS as Ne, LOCAL_STORAGE_CHAT_DETAILS as Yt, G as Zt, v as Fe, PROFILE_TITLE as qt, LOG_OUT as Ge } from "./index.CoCFKnCo.js";
3
- import { serviceCall as H, SERVICE_TYPES as F, E as G, f as V, ge as Xt, he as Jt, ue as Ee, de as B, pe as Qt, me as eo, be as to, we as Ue } from "./index.DQ6ANvTz.js";
2
+ import { g as O, E as P, CARDS as w, renderDataAsList as le, pluralize as fe, AppContext as me, ABOUT_TITLE as Lt, DEFAULT_AI_ENGINE as ie, numberFormatter as Ot, durationFormatter as Qe, NA as Bt, ROLE_ASSISTANT as Pt, extractAverage as zt, GPT4_MAX_TOKENS as Vt, rn as te, STATS as et, b as Me, j as ee, R as Q, HistoryContext as tt, LOCAL_STORAGE_PREFIX as D, LOCAL_STORAGE_SORT as $t, O as Y, ACTION_RESET as Dt, ACTION_RESTORE as Ht, truncate as Ft, ACTION_SORT as Ce, LOCAL_STORAGE_SEARCH as Gt, me as Ut, ACTION_SEARCH as jt, HISTORY_TITLE as Kt, LOCAL_STORAGE_ENGINE_TOGGLE as ot, ENGINE_OPENAI as Te, ENGINE_ANTHROPIC as pe, ACTION_ENGINE as rt, getCurrentGeoLocation as Wt, LOCAL_STORAGE_TAG_SUMMARIZE as $e, LOCAL_STORAGE_TAG_PROOFREAD as De, LOCAL_STORAGE_TAG_REPHRASE as He, TAG_CONTENT as we, TAGS as Ne, LOCAL_STORAGE_CHAT_DETAILS as Yt, G as Zt, v as Fe, PROFILE_TITLE as qt, LOG_OUT as Ge } from "./index.Htlj5BwD.js";
3
+ import { serviceCall as H, SERVICE_TYPES as F, E as G, f as V, ge as Xt, he as Jt, ue as Ee, de as B, pe as Qt, me as eo, be as to, we as Ue } from "./index.C8-dCwmB.js";
4
4
  import * as f from "react";
5
5
  import x, { useId as oo, forwardRef as at, useState as S, useRef as ce, useContext as $, useEffect as U, Suspense as ro, lazy as ao, useMemo as no } from "react";
6
6
  import C from "clsx";
@@ -1668,8 +1668,8 @@ const se = "panel", ge = "messagebox", Vr = ({
1668
1668
  header: w.ABOUT.TITLE_CLIENT,
1669
1669
  className: "prose-dark dark:prose-lighter",
1670
1670
  children: le(n, {
1671
- [w.ABOUT.VERSION]: "5.4.2",
1672
- [w.ABOUT.BUILD_TIMESTAMP]: "11/19/2024 02:15 PM EST"
1671
+ [w.ABOUT.VERSION]: "5.4.3",
1672
+ [w.ABOUT.BUILD_TIMESTAMP]: "11/19/2024 04:03 PM EST"
1673
1673
  })
1674
1674
  }
1675
1675
  ) }),
@@ -1979,8 +1979,8 @@ const Qr = async (e, t, o, a) => {
1979
1979
  ),
1980
1980
  /* @__PURE__ */ r(B, { className: "max-w-[100px] text-white sm:max-w-full text-xs sm:text-sm", children: Xe(p.messages) }),
1981
1981
  /* @__PURE__ */ v(B, { component: "th", scope: "row", className: "text-gray-400", children: [
1982
- p.model.startsWith("claude") && /* @__PURE__ */ r(lt, { className: "size-4 sm:size-5" }),
1983
- p.model.startsWith("gpt") && /* @__PURE__ */ r(ct, { className: "size-4 sm:size-5" })
1982
+ p.model && p.model.startsWith("claude") && /* @__PURE__ */ r(lt, { className: "size-4 sm:size-5" }),
1983
+ p.model && p.model.startsWith("gpt") && /* @__PURE__ */ r(ct, { className: "size-4 sm:size-5" })
1984
1984
  ] }),
1985
1985
  /* @__PURE__ */ r(B, { className: "px-2", children: /* @__PURE__ */ v("div", { className: "flex justify-end gap-2", children: [
1986
1986
  /* @__PURE__ */ r(
@@ -2109,16 +2109,7 @@ const ta = ({
2109
2109
  open: e,
2110
2110
  onOpenChange: t,
2111
2111
  historyData: o
2112
- }) => /* @__PURE__ */ r(
2113
- X,
2114
- {
2115
- open: e,
2116
- onOpenChange: t,
2117
- title: Kt,
2118
- className: "max-2-xl sm:max-w-4xl xl:max-w-5xl",
2119
- children: /* @__PURE__ */ r(ta, { onOpenChange: t, historyData: o })
2120
- }
2121
- );
2112
+ }) => /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: Kt, children: /* @__PURE__ */ r(ta, { onOpenChange: t, historyData: o }) });
2122
2113
  /*!
2123
2114
  @versini/ui-toggle v1.0.8
2124
2115
  © 2024 gizmette.com
@@ -1,5 +1,5 @@
1
1
  import { jsx as _i } from "react/jsx-runtime";
2
- import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.BpwMhQ83.js";
2
+ import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.De9R5w_u.js";
3
3
  const U0 = (
4
4
  // Note: overloads like this are needed to support optional generics.
5
5
  /**
@@ -1,9 +1,9 @@
1
1
  import { jsxs as He, jsx as re, Fragment as or } from "react/jsx-runtime";
2
- import { le as ot } from "./App.DvwCgAJX.js";
3
- import { E as wi } from "./index.DQ6ANvTz.js";
2
+ import { le as ot } from "./App.C-au1CV7.js";
3
+ import { E as wi } from "./index.C8-dCwmB.js";
4
4
  import cn from "clsx";
5
5
  import { lazy as Si, useContext as Ci, Suspense as Ei } from "react";
6
- import { AppContext as Ai, LOCAL_STORAGE_PREFIX as Ii, LOCAL_STORAGE_CHAT_DETAILS as Ti, durationFormatter as Pi } from "./index.CoCFKnCo.js";
6
+ import { AppContext as Ai, LOCAL_STORAGE_PREFIX as Ii, LOCAL_STORAGE_CHAT_DETAILS as Ti, durationFormatter as Pi } from "./index.Htlj5BwD.js";
7
7
  var at = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
8
8
  function Li(e) {
9
9
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -8642,7 +8642,7 @@ function sf(e) {
8642
8642
  const cf = Si(
8643
8643
  () => import(
8644
8644
  /* webpackChunkName: "LazyMarkdownWithExtra" */
8645
- "./LazyMarkdownWithExtra.BNeDXGMl.js"
8645
+ "./LazyMarkdownWithExtra.BAEZPXtS.js"
8646
8646
  )
8647
8647
  ), In = {
8648
8648
  MODEL: "Model",
@@ -80,6 +80,7 @@ const _ = {
80
80
  deleteChat(id: $id, user: $userId) {
81
81
  timestamp
82
82
  id
83
+ model
83
84
  messages {
84
85
  content
85
86
  }
@@ -3630,7 +3630,7 @@ const Yn = "av-footer", Fn = (e) => {
3630
3630
  row1: /* @__PURE__ */ I("div", { children: [
3631
3631
  ir,
3632
3632
  " v",
3633
- "5.4.2",
3633
+ "5.4.3",
3634
3634
  " - ",
3635
3635
  Jn,
3636
3636
  t && t.engine,
@@ -3647,7 +3647,7 @@ const Yn = "av-footer", Fn = (e) => {
3647
3647
  }, Xn = Nt(
3648
3648
  () => import(
3649
3649
  /* webpackChunkName: "LazyHeader" */
3650
- "./LazyHeader.DpTNFgtg.js"
3650
+ "./LazyHeader.CpSRHduY.js"
3651
3651
  )
3652
3652
  ), Qn = () => {
3653
3653
  const { isAuthenticated: e } = rt();
@@ -3758,7 +3758,7 @@ const Yn = "av-footer", Fn = (e) => {
3758
3758
  ] });
3759
3759
  }, eo = new URL(document.location.href).searchParams, to = !!eo.get("debug") || !1, ro = Nt(() => import(
3760
3760
  /* webpackChunkName: "LazyApp" */
3761
- "./App.DvwCgAJX.js"
3761
+ "./App.C-au1CV7.js"
3762
3762
  ).then((e) => e.App)), ao = ({ isComponent: e }) => {
3763
3763
  const { isAuthenticated: t } = rt();
3764
3764
  return t ? /* @__PURE__ */ l(Rt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(ro, { isComponent: e }) }) : /* @__PURE__ */ l(Zn, {});
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { SassySaint as a } from "../../chunks/index.CoCFKnCo.js";
2
+ import { SassySaint as a } from "../../chunks/index.Htlj5BwD.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.CoCFKnCo.js";
1
+ import { SassySaint as r } from "./chunks/index.Htlj5BwD.js";
2
2
  /*!
3
- @sassysaint/client v5.4.2
3
+ @sassysaint/client v5.4.3
4
4
  © 2024 gizmette.com
5
5
  */
6
6
  try {
7
7
  window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
8
- version: "5.4.2",
9
- buildTime: "11/19/2024 02:15 PM EST",
8
+ version: "5.4.3",
9
+ buildTime: "11/19/2024 04:03 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.3.6",
3
+ "version": "5.3.7",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -30,7 +30,7 @@
30
30
  "react-dom": "18.3.1"
31
31
  },
32
32
  "devDependencies": {
33
- "@sassysaint/client": "5.4.2",
33
+ "@sassysaint/client": "5.4.3",
34
34
  "@versini/ui-styles": "1.11.1"
35
35
  },
36
36
  "dependencies": {
@@ -41,5 +41,5 @@
41
41
  "sideEffects": [
42
42
  "**/*.css"
43
43
  ],
44
- "gitHead": "b6c5461deee7323abffebde3536e722d6a44602d"
44
+ "gitHead": "eb62ae13be84c687a09f0d76a63e7b90d9a19855"
45
45
  }