@versini/sassysaint 7.3.2 → 8.0.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,8 +1,9 @@
1
1
  import { jsx as Ve, jsxs as F0, Fragment as Sa } from "react/jsx-runtime";
2
- import { convert as _s, getDefaultExportFromCjs as Ss, visit as ka, find as ks, parse as Sn, parse$1 as kn, normalize as Nn, 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 "./ChatBubbleAssistant.n0K0jTV1.js";
3
- import { re as Is, L as Ds, j as Ls } from "./index.7sz3uXvc.js";
4
- import zs, { useState as Bs, useEffect as Fs } from "react";
5
- import Ps from "clsx";
2
+ import { convert as _s, visit as ka, find as Ss, parse as Sn, parse$1 as kn, normalize as Nn, svg as ks, html as Ns, visitParents as Ts, SKIP as As, longestStreak as Ms, factorySpace as _r, markdownLineEnding as Vt, Markdown as Os, remarkGfm as Rs } from "./ChatBubbleAssistant.yu1vfSf_.js";
3
+ import { re as Cs, L as Is, j as Ds } from "./index.qsG-2ad0.js";
4
+ import Ls, { useState as zs, useEffect as Bs } from "react";
5
+ import Fs from "clsx";
6
+ import { getDefaultExportFromCjs as Ps } from "./App.fV4ZQ-s5.js";
6
7
  const Na = ({
7
8
  children: t,
8
9
  fill: e,
@@ -14,7 +15,7 @@ const Na = ({
14
15
  semantic: c = !1,
15
16
  ...u
16
17
  }) => {
17
- const m = Ps(i, n);
18
+ const m = Fs(i, n);
18
19
  return /* @__PURE__ */ F0(Sa, { children: [
19
20
  /* @__PURE__ */ Ve(
20
21
  "svg",
@@ -103,11 +104,11 @@ try {
103
104
  });
104
105
  } catch {
105
106
  }
106
- const Ta = zs.forwardRef(({ copyToClipboard: t, ...e }, r) => {
107
- const [n, a] = Bs(!1), i = () => {
107
+ const Ta = Ls.forwardRef(({ copyToClipboard: t, ...e }, r) => {
108
+ const [n, a] = zs(!1), i = () => {
108
109
  typeof t == "string" && (navigator.clipboard.writeText(t), a(!0)), typeof t == "function" && (navigator.clipboard.writeText(t()), a(!0));
109
110
  };
110
- return Fs(() => {
111
+ return Bs(() => {
111
112
  let o;
112
113
  return n && (o = window.setTimeout(() => {
113
114
  a(!1);
@@ -115,7 +116,7 @@ const Ta = zs.forwardRef(({ copyToClipboard: t, ...e }, r) => {
115
116
  clearTimeout(o);
116
117
  };
117
118
  }, [n]), /* @__PURE__ */ Ve(
118
- Is,
119
+ Cs,
119
120
  {
120
121
  ...e,
121
122
  size: "small",
@@ -14100,7 +14101,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), De = C, ge = W), se =
14100
14101
  return Qt.newInstance = () => fn({}), c0 = Qt, Qt.HighlightJS = Qt, Qt.default = Qt, c0;
14101
14102
  }
14102
14103
  var _l = /* @__PURE__ */ xl();
14103
- const Sl = /* @__PURE__ */ Ss(_l), Fn = {}, kl = "hljs-";
14104
+ const Sl = /* @__PURE__ */ Ps(_l), Fn = {}, kl = "hljs-";
14104
14105
  function Nl(t) {
14105
14106
  const e = Sl.newInstance();
14106
14107
  return i(t), {
@@ -14408,7 +14409,7 @@ function Cl(t) {
14408
14409
  return !!("children" in t && Array.isArray(t.children));
14409
14410
  }
14410
14411
  function Il(t, e, r, n) {
14411
- const a = ks(t, r);
14412
+ const a = Ss(t, r);
14412
14413
  let i = -1, o;
14413
14414
  if (n != null) {
14414
14415
  if (typeof n == "number") {
@@ -14511,7 +14512,7 @@ const zl = [
14511
14512
  "solidColor",
14512
14513
  "textArea",
14513
14514
  "textPath"
14514
- ], Bl = Xa(Ts, "div"), Fl = Xa(Ns, "g", zl), u0 = {
14515
+ ], Bl = Xa(Ns, "div"), Fl = Xa(ks, "g", zl), u0 = {
14515
14516
  html: "http://www.w3.org/1999/xhtml",
14516
14517
  mathml: "http://www.w3.org/1998/Math/MathML",
14517
14518
  svg: "http://www.w3.org/2000/svg",
@@ -26285,7 +26286,7 @@ const Wu = {}, Yu = [];
26285
26286
  function Zu(t) {
26286
26287
  const e = t || Wu;
26287
26288
  return function(r, n) {
26288
- As(r, "element", function(a, i) {
26289
+ Ts(r, "element", function(a, i) {
26289
26290
  const o = Array.isArray(a.properties.className) ? a.properties.className : Yu, c = o.includes("language-math"), u = o.includes("math-display"), m = o.includes("math-inline");
26290
26291
  let p = u;
26291
26292
  if (!c && !u && !m)
@@ -26337,7 +26338,7 @@ function Zu(t) {
26337
26338
  typeof _ == "string" && (_ = /** @type {Array<ElementContent>} */
26338
26339
  Kl(_).children);
26339
26340
  const x = f.children.indexOf(v);
26340
- return f.children.splice(x, 1, ..._), Ms;
26341
+ return f.children.splice(x, 1, ..._), As;
26341
26342
  });
26342
26343
  };
26343
26344
  }
@@ -26431,7 +26432,7 @@ function Qu(t) {
26431
26432
  handlers: { math: r, inlineMath: n }
26432
26433
  };
26433
26434
  function r(i, o, c, u) {
26434
- const m = i.value || "", p = c.createTracker(u), f = "$".repeat(Math.max(Os(m, "$") + 1, 2)), v = c.enter("mathFlow");
26435
+ const m = i.value || "", p = c.createTracker(u), f = "$".repeat(Math.max(Ms(m, "$") + 1, 2)), v = c.enter("mathFlow");
26435
26436
  let y = p.move(f);
26436
26437
  if (i.meta) {
26437
26438
  const _ = c.enter("mathFlowMeta");
@@ -26613,16 +26614,16 @@ const o1 = () => (t) => {
26613
26614
  var r, n;
26614
26615
  e.tagName === "code" && ((n = (r = e.children) == null ? void 0 : r[0]) != null && n.value) && (e.properties["data-raw-code"] = e.children[0].value);
26615
26616
  });
26616
- }, l1 = (t) => t.children.props["data-raw-code"] || "", p1 = ({
26617
+ }, l1 = (t) => t.children.props["data-raw-code"] || "", f1 = ({
26617
26618
  content: t
26618
26619
  }) => /* @__PURE__ */ Ve(
26619
- Rs,
26620
+ Os,
26620
26621
  {
26621
26622
  components: {
26622
26623
  pre: (e) => {
26623
26624
  const { node: r, ...n } = e;
26624
26625
  return /* @__PURE__ */ F0(Sa, { children: [
26625
- /* @__PURE__ */ Ve(Ds, { alignHorizontal: "flex-end", children: /* @__PURE__ */ Ve(Ls, { children: /* @__PURE__ */ Ve(
26626
+ /* @__PURE__ */ Ve(Is, { alignHorizontal: "flex-end", children: /* @__PURE__ */ Ve(Ds, { children: /* @__PURE__ */ Ve(
26626
26627
  Ta,
26627
26628
  {
26628
26629
  copyToClipboard: () => l1(n),
@@ -26641,11 +26642,11 @@ const o1 = () => (t) => {
26641
26642
  ] });
26642
26643
  }
26643
26644
  },
26644
- remarkPlugins: [Cs, s1],
26645
+ remarkPlugins: [Rs, s1],
26645
26646
  rehypePlugins: [o1, Ml, Zu],
26646
26647
  children: t
26647
26648
  }
26648
26649
  );
26649
26650
  export {
26650
- p1 as default
26651
+ f1 as default
26651
26652
  };