@versini/sassysaint 4.0.2 → 4.0.3

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 E, jsx as n, Fragment as ye } from "react/jsx-runtime";
2
- import { O as Be, s as Ve, S as De, f$1 as ze, M as $e, U as Ue, r as Fe, o as Pe, n as fe, l as Ge, a as q, isLastMessageFromRole as he, x as xe, CANCEL as je, CLEAR as We, ACTION_RESET as be, ROLE_ASSISTANT as M, ROLE_INTERNAL as Z, ROLE_USER as K, zr as ee, ROLE_SYSTEM as Ye, ROLE_HIDDEN as qe, MODEL_GPT4 as ke, STATS_SEPARATOR as le, ACTION_MODEL as Ce, ACTION_MESSAGE as V, TYPE_QUESTION as Je, SEND as Qe, ACTION_STREAMING as Te, ERROR_MESSAGE as Xe, getMessageContaintWrapperClass as Ke, MessagesContainerHeader as Ze, ACTION_SEARCH as er, ACTION_SORT as rr, ACTION_RESTORE as tr, ACTION_LOCATION as B, getCurrentGeoLocation as or, c as sr, AppFooter as ar, LOCAL_STORAGE_PREFIX as J, LOCAL_STORAGE_SEARCH as nr, LOCAL_STORAGE_SORT as lr, LOCAL_STORAGE_LOCATION as cr } from "./index.CNfQ0lj1.js";
3
- import { g as ve, AppContext as P, restCall as ir, E as Q, serviceCall as ce, SERVICE_TYPES as ie, HistoryContext as dr, k as ur } from "./useLocalStorage.B1r33kl_.js";
2
+ import { O as Be, s as Ve, S as De, f$1 as ze, M as $e, U as Ue, r as Fe, o as Pe, n as fe, l as Ge, a as q, isLastMessageFromRole as he, x as xe, CANCEL as je, CLEAR as We, ACTION_RESET as be, ROLE_ASSISTANT as M, ROLE_INTERNAL as Z, ROLE_USER as K, zr as ee, ROLE_SYSTEM as Ye, ROLE_HIDDEN as qe, MODEL_GPT4 as ke, STATS_SEPARATOR as le, ACTION_MODEL as Ce, ACTION_MESSAGE as V, TYPE_QUESTION as Je, SEND as Qe, ACTION_STREAMING as Te, ERROR_MESSAGE as Xe, getMessageContaintWrapperClass as Ke, MessagesContainerHeader as Ze, ACTION_SEARCH as er, ACTION_SORT as rr, ACTION_RESTORE as tr, ACTION_LOCATION as B, getCurrentGeoLocation as or, c as sr, AppFooter as ar, LOCAL_STORAGE_PREFIX as J, LOCAL_STORAGE_SEARCH as nr, LOCAL_STORAGE_SORT as lr, LOCAL_STORAGE_LOCATION as cr } from "./index.hKY7O9up.js";
3
+ import { g as ve, AppContext as P, restCall as ir, E as Q, serviceCall as ce, SERVICE_TYPES as ie, HistoryContext as dr, k as ur } from "./useLocalStorage.guy7-rXk.js";
4
4
  import pr, { useState as I, useEffect as S, useRef as x, useLayoutEffect as $, useContext as re, lazy as mr, Suspense as de, useReducer as ue, useCallback as gr } from "react";
5
5
  import g from "clsx";
6
6
  const yr = ({
@@ -475,7 +475,7 @@ const Br = () => {
475
475
  children: r != null && r.streaming ? je : We
476
476
  }
477
477
  ) }) : null;
478
- }, me = mr(() => import("./LazyMessageAssistant.BVS33a7s.js").then((e) => e.LazyMessageAssistant)), Vr = () => {
478
+ }, me = mr(() => import("./LazyMessageAssistant.s7N5AkfQ.js").then((e) => e.LazyMessageAssistant)), Vr = () => {
479
479
  const { state: e } = re(P);
480
480
  return /* @__PURE__ */ E(ye, { children: [
481
481
  e && e.messages.length > 0 && e.messages.map((r, o) => {
@@ -1,8 +1,8 @@
1
1
  import { jsxs as c, jsx as e, Fragment as x } from "react/jsx-runtime";
2
- import { O as _, i$1 as le, N as de, p as De, o as _e, g as A, N$1 as z, CARDS as N, renderDataAsList as $, pluralize as Z, ABOUT_TITLE as ze, MODEL_GPT4 as Be, numberFormatter as Ve, durationFormatter as Ce, NA as Pe, ROLE_ASSISTANT as Fe, extractAverage as Ge, GPT4_MAX_TOKENS as $e, zr as Y, STATS as Ne, b as F, j as E, x as ee, LOCAL_STORAGE_PREFIX as te, LOCAL_STORAGE_SORT as Ue, ACTION_RESET as je, ACTION_RESTORE as Ye, truncate as Ke, ACTION_SORT as re, LOCAL_STORAGE_SEARCH as We, Y as Xe, ACTION_SEARCH as Je, HISTORY_TITLE as qe, LOCAL_STORAGE_CHAT_DETAILS as Qe, LOCAL_STORAGE_LOCATION as Ze, f$2 as et, ACTION_LOCATION as me, getCurrentGeoLocation as tt, convertLatitudeToDMS as at, convertLongitudeToDMS as st, PROFILE_TITLE as nt, LOG_OUT as ue } from "./index.CNfQ0lj1.js";
2
+ import { O as _, i$1 as le, N as de, p as De, o as _e, g as A, N$1 as z, CARDS as N, renderDataAsList as $, pluralize as Z, ABOUT_TITLE as ze, MODEL_GPT4 as Be, numberFormatter as Ve, durationFormatter as Ce, NA as Pe, ROLE_ASSISTANT as Fe, extractAverage as Ge, GPT4_MAX_TOKENS as $e, zr as Y, STATS as Ne, b as F, j as E, x as ee, LOCAL_STORAGE_PREFIX as te, LOCAL_STORAGE_SORT as Ue, ACTION_RESET as je, ACTION_RESTORE as Ye, truncate as Ke, ACTION_SORT as re, LOCAL_STORAGE_SEARCH as We, Y as Xe, ACTION_SEARCH as Je, HISTORY_TITLE as qe, LOCAL_STORAGE_CHAT_DETAILS as Qe, LOCAL_STORAGE_LOCATION as Ze, f$2 as et, ACTION_LOCATION as me, getCurrentGeoLocation as tt, convertLatitudeToDMS as at, convertLongitudeToDMS as st, PROFILE_TITLE as nt, LOG_OUT as ue } from "./index.hKY7O9up.js";
3
3
  import * as ce from "react";
4
4
  import rt, { forwardRef as Te, useState as T, useRef as U, useContext as R, useEffect as O, Suspense as ot, lazy as ct, useId as it } from "react";
5
- import { g as lt, AppContext as K, serviceCall as se, SERVICE_TYPES as ne, HistoryContext as ye, E as ae, k as I, et as dt, at as mt, lt as oe, J as M, ct as ut, st as ht, rt as pt } from "./useLocalStorage.B1r33kl_.js";
5
+ import { g as lt, AppContext as K, serviceCall as se, SERVICE_TYPES as ne, HistoryContext as ye, E as ae, k as I, et as dt, at as mt, lt as oe, J as M, ct as ut, st as ht, rt as pt } from "./useLocalStorage.guy7-rXk.js";
6
6
  import v from "clsx";
7
7
  import { useFloatingTree as be, useFloatingNodeId as ft, useListItem as Se, useFloating as gt, offset as Ct, flip as Nt, shift as Tt, autoUpdate as yt, useClick as bt, useRole as St, useDismiss as wt, useListNavigation as kt, useTypeahead as xt, useInteractions as Et, useMergeRefs as we, FloatingNode as vt, FloatingList as It, FloatingPortal as At, FloatingFocusManager as Ht, FloatingTree as Mt } from "@floating-ui/react";
8
8
  const ie = ce.createContext({
@@ -197,7 +197,7 @@ const Rt = ({ className: t, ...a }) => {
197
197
  header: "p-4 mb-0",
198
198
  close: "p-4"
199
199
  }), W = (t) => ct(
200
- () => import("./index.7JJYsiGN.DgxpdbID.js").then((a) => ({
200
+ () => import("./index.7JJYsiGN.CAXaixDN.js").then((a) => ({
201
201
  default: a[t]
202
202
  }))
203
203
  ), Dt = W("Modal"), _t = W("ModalClose"), zt = W("ModalContent"), Bt = W("ModalDescription"), Vt = W("ModalHeading"), X = ({
@@ -602,8 +602,8 @@ const sa = ({ stats: t }) => {
602
602
  header: N.ABOUT.TITLE_CLIENT,
603
603
  className: "prose-dark dark:prose-lighter",
604
604
  children: $(r, {
605
- [N.ABOUT.VERSION]: "4.0.2",
606
- [N.ABOUT.BUILD_TIMESTAMP]: "08/29/2024 09:23 PM EDT"
605
+ [N.ABOUT.VERSION]: "4.0.3",
606
+ [N.ABOUT.BUILD_TIMESTAMP]: "08/30/2024 03:02 PM EDT"
607
607
  })
608
608
  }
609
609
  ) }),
@@ -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.BVS33a7s.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.s7N5AkfQ.js";
3
3
  const U0 = (
4
4
  // Note: overloads like this are needed to support optional generics.
5
5
  /**
@@ -1,8 +1,8 @@
1
1
  import { jsxs as He, jsx as re, Fragment as or } from "react/jsx-runtime";
2
- import { c$1 as ot, S as at, LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.CNfQ0lj1.js";
3
- import { AppContext as Ei, E as Ai } from "./useLocalStorage.B1r33kl_.js";
2
+ import { c$1 as ot, S as at, LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.hKY7O9up.js";
3
+ import { AppContext as Ei, E as Ai } from "./useLocalStorage.guy7-rXk.js";
4
4
  import { lazy as Ii, useContext as Ti, Suspense as Pi } from "react";
5
- import { T as ut } from "./App.CB-l5VXS.js";
5
+ import { T as ut } from "./App.D304Xevg.js";
6
6
  import cn from "clsx";
7
7
  const Li = ({
8
8
  spinnerRef: e,
@@ -8618,7 +8618,7 @@ function sf(e) {
8618
8618
  i.push(af(n)), o.push(Tc()), l.push(Pc(n));
8619
8619
  }
8620
8620
  const cf = Ii(
8621
- () => import("./LazyMarkdownWithExtra.BXN0qX-X.js")
8621
+ () => import("./LazyMarkdownWithExtra.BXbx8ZuU.js")
8622
8622
  ), In = {
8623
8623
  MODEL: "Model",
8624
8624
  PLUGIN: "Plugin",
@@ -3,7 +3,7 @@ import y from "clsx";
3
3
  import * as c from "react";
4
4
  import { useRef as C, useReducer as M, useEffect as _, useId as x } from "react";
5
5
  import { useMergeRefs as S, FloatingPortal as F, FloatingOverlay as O, FloatingFocusManager as P, useFloating as k, useClick as L, useDismiss as V, useRole as B, useInteractions as U } from "@floating-ui/react";
6
- import { S as j } from "./index.CNfQ0lj1.js";
6
+ import { S as j } from "./index.hKY7O9up.js";
7
7
  const b = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", q = {
8
8
  alert: null,
9
9
  alertdialog: null,
@@ -3,13 +3,13 @@ import V, { createContext as nr, useReducer as ft, useRef as W, useCallback as z
3
3
  import g from "clsx";
4
4
  var ir = Object.defineProperty, cr = (e, t, r) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Le = (e, t, r) => cr(e, typeof t != "symbol" ? t + "" : t, r);
5
5
  /*!
6
- @versini/auth-provider v7.1.1
6
+ @versini/auth-provider v7.1.2
7
7
  © 2024 gizmette.com
8
8
  */
9
9
  try {
10
10
  window.__VERSINI_AUTH_CLIENT__ || (window.__VERSINI_AUTH_CLIENT__ = {
11
- version: "7.1.1",
12
- buildTime: "08/25/2024 03:19 PM EDT",
11
+ version: "7.1.2",
12
+ buildTime: "08/26/2024 06:52 PM EDT",
13
13
  homepage: "https://github.com/aversini/auth-client",
14
14
  license: "MIT"
15
15
  });
@@ -310,7 +310,7 @@ async function gr(e, t = !1) {
310
310
  try {
311
311
  window.__VERSINI_AUTH_COMMON__ || (window.__VERSINI_AUTH_COMMON__ = {
312
312
  version: "4.0.0",
313
- buildTime: "08/25/2024 03:19 PM EDT",
313
+ buildTime: "08/26/2024 06:51 PM EDT",
314
314
  homepage: "https://github.com/aversini/auth-client",
315
315
  license: "MIT"
316
316
  });
@@ -1344,19 +1344,21 @@ const X = "Your session has expired. For your security, please log in again to c
1344
1344
  }, wa = async ({
1345
1345
  userId: e,
1346
1346
  clientId: t,
1347
- domain: r
1347
+ domain: r,
1348
+ idToken: a = ""
1348
1349
  }) => {
1349
- var a;
1350
+ var n;
1350
1351
  try {
1351
1352
  return {
1352
- status: ((a = await xe({
1353
+ status: ((n = await xe({
1353
1354
  type: Re.LOGOUT,
1354
1355
  clientId: t,
1355
1356
  params: {
1356
1357
  userId: e,
1357
- domain: r
1358
+ domain: r,
1359
+ idToken: a
1358
1360
  }
1359
- })) == null ? void 0 : a.status) || M
1361
+ })) == null ? void 0 : n.status) || M
1360
1362
  };
1361
1363
  } catch {
1362
1364
  return {
@@ -1608,7 +1610,8 @@ const Aa = (e) => z(
1608
1610
  ), await wa({
1609
1611
  userId: b,
1610
1612
  clientId: r,
1611
- domain: a
1613
+ domain: a,
1614
+ idToken: h
1612
1615
  }), N(y || X);
1613
1616
  },
1614
1617
  [h, o, r, a, N, i]
@@ -3337,7 +3340,7 @@ const On = "ASK! ME! ANYTHING!", tr = "Sassy Saint", Pn = "gizmette.com", Dn = "
3337
3340
  row1: /* @__PURE__ */ I("div", { children: [
3338
3341
  tr,
3339
3342
  " v",
3340
- "4.0.2",
3343
+ "4.0.3",
3341
3344
  " - ",
3342
3345
  Mn,
3343
3346
  Qe && e && e.models.length > 0 && e.models[0] === "development" ? " - Development Mode" : ""
@@ -3349,7 +3352,7 @@ const On = "ASK! ME! ANYTHING!", tr = "Sassy Saint", Pn = "gizmette.com", Dn = "
3349
3352
  Pn
3350
3353
  ] })
3351
3354
  }
3352
- ), Hn = wt(() => import("./LazyHeader.BLLQsxSA.js")), Kn = () => {
3355
+ ), Hn = wt(() => import("./LazyHeader.DZqy-k6Q.js")), Kn = () => {
3353
3356
  const { isAuthenticated: e } = qe();
3354
3357
  return /* @__PURE__ */ I(ce, { children: [
3355
3358
  e && /* @__PURE__ */ c(Tt, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(Hn, {}) }),
@@ -3456,7 +3459,7 @@ const On = "ASK! ME! ANYTHING!", tr = "Sassy Saint", Pn = "gizmette.com", Dn = "
3456
3459
  ] }),
3457
3460
  /* @__PURE__ */ c(Un, {})
3458
3461
  ] });
3459
- }, Gn = new URL(document.location.href).searchParams, Wn = !!Gn.get("debug") || !1, Vn = wt(() => import("./App.CB-l5VXS.js").then((e) => e.App)), Jn = ({ isComponent: e }) => {
3462
+ }, Gn = new URL(document.location.href).searchParams, Wn = !!Gn.get("debug") || !1, Vn = wt(() => import("./App.D304Xevg.js").then((e) => e.App)), Jn = ({ isComponent: e }) => {
3460
3463
  const { isAuthenticated: t } = qe();
3461
3464
  return t ? /* @__PURE__ */ c(Tt, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(Vn, { isComponent: e }) }) : /* @__PURE__ */ c(Bn, {});
3462
3465
  }, Fn = ({
@@ -1,7 +1,7 @@
1
1
  import { jsxs as _, Fragment as M, jsx as l } from "react/jsx-runtime";
2
2
  import m from "clsx";
3
3
  import w, { useContext as k, useSyncExternalStore as W, useCallback as S, useEffect as P } from "react";
4
- import { A as U, i as F, f as q, S as j, MODEL_GPT4 as J } from "./index.CNfQ0lj1.js";
4
+ import { A as U, i as F, f as q, S as j, MODEL_GPT4 as J } from "./index.hKY7O9up.js";
5
5
  const Q = (e) => {
6
6
  let a = "";
7
7
  if (typeof e == "number" || typeof e == "string")
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { SassySaint as a } from "../../chunks/index.CNfQ0lj1.js";
2
+ import { SassySaint as a } from "../../chunks/index.hKY7O9up.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.CNfQ0lj1.js";
1
+ import { SassySaint as r } from "./chunks/index.hKY7O9up.js";
2
2
  /*!
3
- @sassysaint/client v4.0.2
3
+ @sassysaint/client v4.0.3
4
4
  © 2024 gizmette.com
5
5
  */
6
6
  try {
7
7
  window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
8
- version: "4.0.2",
9
- buildTime: "08/29/2024 09:23 PM EDT",
8
+ version: "4.0.3",
9
+ buildTime: "08/30/2024 03:02 PM EDT",
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": "4.0.2",
3
+ "version": "4.0.3",
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": "4.0.2",
33
+ "@sassysaint/client": "4.0.3",
34
34
  "@versini/ui-styles": "1.9.5"
35
35
  },
36
36
  "dependencies": {
@@ -41,5 +41,5 @@
41
41
  "sideEffects": [
42
42
  "**/*.css"
43
43
  ],
44
- "gitHead": "1043c680b87619aaca561212b4345fec1396fa5e"
44
+ "gitHead": "b90c5e8c635acf67af915a4091756be3f3660866"
45
45
  }