@versini/sassysaint 5.1.2 → 5.1.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,7 +1,7 @@
1
1
  import { jsxs as y, Fragment as D, jsx as i } from "react/jsx-runtime";
2
- import { LOCAL_STORAGE_PREFIX as A, b as Te, j, R as M, TAG_CONTENT as O, TAGS as C, isLastMessageFromRole as se, CANCEL as _e, CLEAR as Ne, ACTION_RESET as de, ACTION_TOGGLE_TAG as le, ROLE_ASSISTANT as R, ROLE_INTERNAL as Y, ROLE_USER as W, rn as q, ROLE_SYSTEM as we, ROLE_HIDDEN as Ee, MODEL_GPT4 as ce, STATS_SEPARATOR as ee, ACTION_MODEL as ge, ACTION_MESSAGE as L, ACTION_RESET_TAGS as ue, TYPE_QUESTION as Ce, SEND as Re, ACTION_STREAMING as me, ERROR_MESSAGE as Ie, getMessageContaintWrapperClass as Se, MessagesContainerHeader as Be, ACTION_SEARCH as Me, ACTION_SORT as Ae, ACTION_RESTORE as Oe, d as Le, AppFooter as Ue, LOCAL_STORAGE_SEARCH as Ve, LOCAL_STORAGE_SORT as ze } from "./index.B5Wp8y85.js";
3
- import { AppContext as P, TagsContext as Z, E as U, restCall as $e, we as De, serviceCall as Pe, SERVICE_TYPES as He, HistoryContext as je, f as Ge } from "./index.B5nDJSgt.js";
4
- import S, { useContext as V, useRef as I, useEffect as E, useState as H, lazy as Fe, Suspense as te, useReducer as G } from "react";
2
+ import { LOCAL_STORAGE_PREFIX as A, b as Te, j, R as M, TAG_CONTENT as O, TAGS as C, isLastMessageFromRole as se, CANCEL as _e, CLEAR as Ne, ACTION_RESET as de, ACTION_TOGGLE_TAG as le, ROLE_ASSISTANT as R, ROLE_INTERNAL as Y, ROLE_USER as W, rn as q, ROLE_SYSTEM as we, ROLE_HIDDEN as Ee, MODEL_GPT4 as ce, STATS_SEPARATOR as ee, ACTION_MODEL as ge, ACTION_MESSAGE as L, ACTION_RESET_TAGS as ue, TYPE_QUESTION as Ce, SEND as Re, ACTION_STREAMING as me, ERROR_MESSAGE as Ie, getMessageContaintWrapperClass as Se, MessagesContainerHeader as Be, ACTION_SEARCH as Me, ACTION_SORT as Ae, ACTION_RESTORE as Oe, d as Le, AppFooter as $e, LOCAL_STORAGE_SEARCH as Ue, LOCAL_STORAGE_SORT as Ve } from "./index.BuZgDoDD.js";
3
+ import { AppContext as P, TagsContext as Z, E as $, restCall as ze, we as De, serviceCall as Pe, SERVICE_TYPES as He, HistoryContext as je, f as Ge } from "./index.lZ9DXn26.js";
4
+ import S, { useContext as U, useRef as I, useEffect as E, useState as H, lazy as Fe, Suspense as te, useReducer as G } from "react";
5
5
  import s from "clsx";
6
6
  var f = [];
7
7
  for (var F = 0; F < 256; ++F)
@@ -9,11 +9,11 @@ for (var F = 0; F < 256; ++F)
9
9
  function We(e, t = 0) {
10
10
  return (f[e[t + 0]] + f[e[t + 1]] + f[e[t + 2]] + f[e[t + 3]] + "-" + f[e[t + 4]] + f[e[t + 5]] + "-" + f[e[t + 6]] + f[e[t + 7]] + "-" + f[e[t + 8]] + f[e[t + 9]] + "-" + f[e[t + 10]] + f[e[t + 11]] + f[e[t + 12]] + f[e[t + 13]] + f[e[t + 14]] + f[e[t + 15]]).toLowerCase();
11
11
  }
12
- var z, Ye = new Uint8Array(16);
12
+ var V, Ye = new Uint8Array(16);
13
13
  function qe() {
14
- if (!z && (z = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !z))
14
+ if (!V && (V = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !V))
15
15
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
16
- return z(Ye);
16
+ return V(Ye);
17
17
  }
18
18
  var Ze = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
19
19
  const re = {
@@ -27,13 +27,13 @@ function J(e, t, r) {
27
27
  return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, We(a);
28
28
  }
29
29
  const Je = () => {
30
- const { dispatch: e, state: t } = V(P), { dispatch: r } = V(Z), a = "mt-2 flex justify-center rounded-md", n = I(null), o = I(!1), [g] = U({
30
+ const { dispatch: e, state: t } = U(P), { dispatch: r } = U(Z), a = "mt-2 flex justify-center rounded-md", n = I(null), o = I(!1), [g] = $({
31
31
  key: A + "summarize-article",
32
32
  initialValue: !1
33
- }), [d] = U({
33
+ }), [d] = $({
34
34
  key: A + "proofread-content",
35
35
  initialValue: !1
36
- }), [p] = U({
36
+ }), [p] = $({
37
37
  key: A + "rephrase-content",
38
38
  initialValue: !1
39
39
  }), u = (c) => {
@@ -102,13 +102,13 @@ const Je = () => {
102
102
  ] });
103
103
  };
104
104
  /*!
105
- @versini/ui-bubble v1.0.4
105
+ @versini/ui-bubble v1.0.10
106
106
  © 2024 gizmette.com
107
107
  */
108
108
  try {
109
109
  window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
110
- version: "1.0.4",
111
- buildTime: "09/24/2024 07:45 PM EDT",
110
+ version: "1.0.10",
111
+ buildTime: "09/28/2024 06:29 PM EDT",
112
112
  homepage: "https://github.com/aversini/ui-components",
113
113
  license: "MIT"
114
114
  });
@@ -388,13 +388,13 @@ const pe = S.forwardRef(
388
388
  );
389
389
  pe.displayName = "ButtonIcon";
390
390
  /*!
391
- @versini/ui-button v1.1.4
391
+ @versini/ui-button v1.1.10
392
392
  © 2024 gizmette.com
393
393
  */
394
394
  try {
395
395
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
396
- version: "1.1.4",
397
- buildTime: "09/24/2024 07:45 PM EDT",
396
+ version: "1.1.10",
397
+ buildTime: "09/28/2024 06:29 PM EDT",
398
398
  homepage: "https://github.com/aversini/ui-components",
399
399
  license: "MIT"
400
400
  });
@@ -522,13 +522,13 @@ const lt = (e) => {
522
522
  ] });
523
523
  };
524
524
  /*!
525
- @versini/ui-private v1.4.13
525
+ @versini/ui-private v1.4.17
526
526
  © 2024 gizmette.com
527
527
  */
528
528
  try {
529
529
  window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
530
- version: "1.4.13",
531
- buildTime: "09/24/2024 07:45 PM EDT",
530
+ version: "1.4.17",
531
+ buildTime: "09/28/2024 06:29 PM EDT",
532
532
  homepage: "https://github.com/aversini/ui-components",
533
533
  license: "MIT"
534
534
  });
@@ -583,13 +583,13 @@ const ct = ({
583
583
  }
584
584
  );
585
585
  /*!
586
- @versini/ui-icons v1.12.5
586
+ @versini/ui-icons v1.13.1
587
587
  © 2024 gizmette.com
588
588
  */
589
589
  try {
590
590
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
591
- version: "1.12.5",
592
- buildTime: "09/24/2024 07:45 PM EDT",
591
+ version: "1.13.1",
592
+ buildTime: "09/28/2024 06:29 PM EDT",
593
593
  homepage: "https://github.com/aversini/ui-components",
594
594
  license: "MIT"
595
595
  });
@@ -946,13 +946,13 @@ const ke = S.forwardRef(
946
946
  );
947
947
  ke.displayName = "Button";
948
948
  /*!
949
- @versini/ui-button v1.1.4
949
+ @versini/ui-button v1.1.10
950
950
  © 2024 gizmette.com
951
951
  */
952
952
  try {
953
953
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
954
- version: "1.1.4",
955
- buildTime: "09/24/2024 07:45 PM EDT",
954
+ version: "1.1.10",
955
+ buildTime: "09/28/2024 06:29 PM EDT",
956
956
  homepage: "https://github.com/aversini/ui-components",
957
957
  license: "MIT"
958
958
  });
@@ -1080,13 +1080,13 @@ const It = 200, St = ({
1080
1080
  ] });
1081
1081
  };
1082
1082
  /*!
1083
- @versini/ui-truncate v1.0.1
1083
+ @versini/ui-truncate v1.0.7
1084
1084
  © 2024 gizmette.com
1085
1085
  */
1086
1086
  try {
1087
1087
  window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
1088
- version: "1.0.1",
1089
- buildTime: "09/24/2024 07:45 PM EDT",
1088
+ version: "1.0.7",
1089
+ buildTime: "09/28/2024 06:29 PM EDT",
1090
1090
  homepage: "https://github.com/aversini/ui-components",
1091
1091
  license: "MIT"
1092
1092
  });
@@ -1095,10 +1095,10 @@ try {
1095
1095
  const ie = Fe(
1096
1096
  () => import(
1097
1097
  /* webpackChunkName: "LazyMessageAssistant" */
1098
- "./LazyMessageAssistant.KLzNh6WV.js"
1098
+ "./LazyMessageAssistant.CDMHbVPp.js"
1099
1099
  ).then((e) => e.LazyMessageAssistant)
1100
1100
  ), Mt = () => {
1101
- const { state: e } = V(P);
1101
+ const { state: e } = U(P);
1102
1102
  return /* @__PURE__ */ y(D, { children: [
1103
1103
  e && e.messages.length > 0 && e.messages.map((t, r) => {
1104
1104
  const { role: a, content: n, name: o, processingTime: g } = t.message;
@@ -1122,7 +1122,7 @@ const ie = Fe(
1122
1122
  }),
1123
1123
  se(W, e) && /* @__PURE__ */ i(te, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(ie, { loading: !0 }) })
1124
1124
  ] });
1125
- }, $ = (e, t) => {
1125
+ }, z = (e, t) => {
1126
1126
  e({
1127
1127
  type: me,
1128
1128
  payload: {
@@ -1130,7 +1130,7 @@ const ie = Fe(
1130
1130
  }
1131
1131
  });
1132
1132
  }, ne = (e) => {
1133
- $(e, !1), e({
1133
+ z(e, !1), e({
1134
1134
  type: L,
1135
1135
  payload: {
1136
1136
  message: {
@@ -1140,7 +1140,7 @@ const ie = Fe(
1140
1140
  }
1141
1141
  });
1142
1142
  }, At = () => {
1143
- const { state: e, dispatch: t } = V(P), { state: r, dispatch: a } = V(Z), [n, o] = H(""), { getAccessToken: g, user: d } = q(), p = I(!1), u = I(null), m = I(
1143
+ const { state: e, dispatch: t } = U(P), { state: r, dispatch: a } = U(Z), [n, o] = H(""), { getAccessToken: g, user: d } = q(), p = I(!1), u = I(null), m = I(
1144
1144
  null
1145
1145
  );
1146
1146
  E(() => {
@@ -1153,7 +1153,7 @@ const ie = Fe(
1153
1153
  const h = e.messages[e.messages.length - 1];
1154
1154
  if (!(e.messages.length === 0 || h.message.role === R || h.message.role === we || h.message.role === Y || h.message.role === Ee))
1155
1155
  try {
1156
- const b = await $e({
1156
+ const b = await ze({
1157
1157
  accessToken: await g(),
1158
1158
  name: "generate",
1159
1159
  data: {
@@ -1169,10 +1169,10 @@ const ie = Fe(
1169
1169
  m.current = b.body.getReader();
1170
1170
  const _ = new TextDecoder();
1171
1171
  for (; ; ) {
1172
- $(t, !0);
1172
+ z(t, !0);
1173
1173
  const { done: N, value: w } = await m.current.read();
1174
1174
  if (N) {
1175
- $(t, !1);
1175
+ z(t, !1);
1176
1176
  break;
1177
1177
  }
1178
1178
  const k = _.decode(w, { stream: !0 }), x = k.indexOf(ee);
@@ -1197,7 +1197,7 @@ const ie = Fe(
1197
1197
  name: T.name
1198
1198
  }
1199
1199
  }
1200
- }), $(t, !1);
1200
+ }), z(t, !1);
1201
1201
  break;
1202
1202
  } else
1203
1203
  t({
@@ -1275,7 +1275,7 @@ const ie = Fe(
1275
1275
  tag: t.payload.tag
1276
1276
  } : (t == null ? void 0 : t.type) === ue ? {
1277
1277
  tag: ""
1278
- } : e, Ut = (e, t) => (t == null ? void 0 : t.type) === Me ? {
1278
+ } : e, $t = (e, t) => (t == null ? void 0 : t.type) === Me ? {
1279
1279
  searchString: t.payload.searchString,
1280
1280
  sortedCell: e.sortedCell,
1281
1281
  sortDirection: e.sortDirection
@@ -1283,7 +1283,7 @@ const ie = Fe(
1283
1283
  searchString: e.searchString,
1284
1284
  sortedCell: t.payload.sortedCell,
1285
1285
  sortDirection: t.payload.sortDirection
1286
- } : e, Vt = (e, t) => {
1286
+ } : e, Ut = (e, t) => {
1287
1287
  if ((t == null ? void 0 : t.type) === Oe) {
1288
1288
  const r = t.payload.messages.map((a) => ({
1289
1289
  message: {
@@ -1365,19 +1365,19 @@ const ie = Fe(
1365
1365
  } : e;
1366
1366
  };
1367
1367
  function xe({ isComponent: e = !1 }) {
1368
- const t = I(!1), { getAccessToken: r } = q(), [a] = U({
1369
- key: A + Ve,
1368
+ const t = I(!1), { getAccessToken: r } = q(), [a] = $({
1369
+ key: A + Ue,
1370
1370
  initialValue: ""
1371
- }), [n] = U({
1372
- key: A + ze,
1371
+ }), [n] = $({
1372
+ key: A + Ve,
1373
1373
  initialValue: Ge.ASC
1374
- }), [o, g] = G(Vt, {
1374
+ }), [o, g] = G(Ut, {
1375
1375
  id: J(),
1376
1376
  model: ce,
1377
1377
  usage: 0,
1378
1378
  messages: [],
1379
1379
  isComponent: e
1380
- }), [d, p] = G(Ut, {
1380
+ }), [d, p] = G($t, {
1381
1381
  searchString: a,
1382
1382
  sortedCell: "timestamp",
1383
1383
  sortDirection: n
@@ -1419,7 +1419,7 @@ function xe({ isComponent: e = !1 }) {
1419
1419
  value: { state: u, dispatch: m },
1420
1420
  children: [
1421
1421
  /* @__PURE__ */ i(Le, { children: /* @__PURE__ */ i(Ot, {}) }),
1422
- /* @__PURE__ */ i(Ue, { serverStats: c })
1422
+ /* @__PURE__ */ i($e, { serverStats: c })
1423
1423
  ]
1424
1424
  }
1425
1425
  )