eddyter 1.3.55 → 1.3.56

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
  var Gu = Object.defineProperty;
2
2
  var zu = (fo, ho, qi) => ho in fo ? Gu(fo, ho, { enumerable: !0, configurable: !0, writable: !0, value: qi }) : fo[ho] = qi;
3
3
  var fn = (fo, ho, qi) => (zu(fo, typeof ho != "symbol" ? ho + "" : ho, qi), qi);
4
- import { g as Wu, c as ql } from "./index-4f0e0157.js";
4
+ import { g as Wu, c as ql } from "./index-66d9f716.js";
5
5
  function Xu(fo, ho) {
6
6
  for (var qi = 0; qi < ho.length; qi++) {
7
7
  const Ko = ho[qi];
@@ -1,7 +1,7 @@
1
1
  var tc = Object.defineProperty;
2
2
  var ec = (Si, Li, Gs) => Li in Si ? tc(Si, Li, { enumerable: !0, configurable: !0, writable: !0, value: Gs }) : Si[Li] = Gs;
3
3
  var en = (Si, Li, Gs) => (ec(Si, typeof Li != "symbol" ? Li + "" : Li, Gs), Gs);
4
- import { g as Ac, c as Ma } from "./index-4f0e0157.js";
4
+ import { g as Ac, c as Ma } from "./index-66d9f716.js";
5
5
  function rc(Si, Li) {
6
6
  for (var Gs = 0; Gs < Li.length; Gs++) {
7
7
  const qs = Li[Gs];
@@ -82,7 +82,7 @@ const Gf = ua(
82
82
  throw new Error("Failed to verify API key");
83
83
  }
84
84
  }, Jb = Tf.create({
85
- baseURL: "http://localhost:3000/",
85
+ baseURL: "https://api.cteditor.com/",
86
86
  headers: {
87
87
  "Content-Type": "application/json"
88
88
  }
@@ -1814,7 +1814,7 @@ const fc = async ({ content: e, apiKey: t, userTextLength: r }) => {
1814
1814
  }
1815
1815
  }, yt = kt(
1816
1816
  "AI_ACTION_COMMAND"
1817
- ), $v = pe.lazy(() => import("./index-4cfc35d0.js"));
1817
+ ), $v = pe.lazy(() => import("./index-969008d4.js"));
1818
1818
  function Fv(e) {
1819
1819
  return e.parentElement != null && e.parentElement.tagName === "LI" && e.previousSibling === null && e.getAttribute("aria-roledescription") === "checkbox";
1820
1820
  }
@@ -13976,7 +13976,7 @@ const fs = (e) => {
13976
13976
  )
13977
13977
  }
13978
13978
  );
13979
- }, f_ = b.lazy(() => import("./index-5647e7d9.js"));
13979
+ }, f_ = b.lazy(() => import("./index-953fe9ad.js"));
13980
13980
  function h_(e) {
13981
13981
  if (e instanceof HTMLDivElement) {
13982
13982
  const t = e.getAttribute("data-lexical-file-src"), r = e.getAttribute("data-lexical-file-name");
@@ -15797,7 +15797,7 @@ function aS({
15797
15797
  h(!0);
15798
15798
  const x = Ce.loading("Updating chart...");
15799
15799
  try {
15800
- const C = "http://localhost:3000/".replace(/\/$/, ""), S = localStorage.getItem("apiKey") || "", _ = await fetch(`${C}/api/chat/regenerate`, {
15800
+ const C = "https://api.cteditor.com/".replace(/\/$/, ""), S = localStorage.getItem("apiKey") || "", _ = await fetch(`${C}/api/chat/regenerate`, {
15801
15801
  method: "POST",
15802
15802
  headers: {
15803
15803
  "Content-Type": "application/json",
@@ -18400,7 +18400,7 @@ const $S = kt(), FS = () => {
18400
18400
  ] }) }),
18401
18401
  /* @__PURE__ */ s(zS, { isRecording: n && !i, editor: e })
18402
18402
  ] });
18403
- }, BS = () => /* @__PURE__ */ s(FS, {}), jS = "http://localhost:3000/";
18403
+ }, BS = () => /* @__PURE__ */ s(FS, {}), jS = "https://api.cteditor.com/";
18404
18404
  async function WS(e, t) {
18405
18405
  try {
18406
18406
  const r = await fetch(`${jS}api/chat/regenerate`, {
@@ -18451,10 +18451,10 @@ const Fr = {
18451
18451
  }
18452
18452
  }, VS = async () => {
18453
18453
  try {
18454
- const e = await import("./html2pdf.bundle.min-4dffe6d7.js").then((t) => t.h);
18454
+ const e = await import("./html2pdf.bundle.min-31a8b0db.js").then((t) => t.h);
18455
18455
  return (e == null ? void 0 : e.default) || e;
18456
18456
  } catch {
18457
- const e = await import("./html2pdf.bundle-bd00e24a.js").then((t) => t.h);
18457
+ const e = await import("./html2pdf.bundle-5eb394ee.js").then((t) => t.h);
18458
18458
  return (e == null ? void 0 : e.default) || e;
18459
18459
  }
18460
18460
  };
@@ -28324,7 +28324,7 @@ class Q9 {
28324
28324
  Fe(this, "apiEndpoint");
28325
28325
  Fe(this, "requestTimeout", K9);
28326
28326
  Fe(this, "sentenceCache", /* @__PURE__ */ new Map());
28327
- this.apiEndpoint = "http://localhost:3000/" + t;
28327
+ this.apiEndpoint = "https://api.cteditor.com/" + t;
28328
28328
  }
28329
28329
  isSentenceCached(t) {
28330
28330
  const r = li(t), o = this.sentenceCache.get(r);
@@ -36262,7 +36262,7 @@ const JT = 2 * 60 * 1e3, QT = ({
36262
36262
  ] }),
36263
36263
  /* @__PURE__ */ v("span", { className: "cteditor-text-[10px] cteditor-text-gray-400", children: [
36264
36264
  "v",
36265
- "1.3.55"
36265
+ "1.3.56"
36266
36266
  ] })
36267
36267
  ] });
36268
36268
  }, Ht = {
@@ -1,7 +1,7 @@
1
1
  import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
2
  import { useLexicalComposerContext as v } from "@lexical/react/LexicalComposerContext";
3
3
  import { $getNodeByKey as w } from "lexical";
4
- import { q as k, r as F, F as y, s as N, u as C, v as D } from "./index-4f0e0157.js";
4
+ import { q as k, r as F, F as y, s as N, u as C, v as D } from "./index-66d9f716.js";
5
5
  import "react";
6
6
  import "axios";
7
7
  import "react-dom";
@@ -15,7 +15,7 @@ import { useLexicalNodeSelection as st } from "@lexical/react/useLexicalNodeSele
15
15
  import { calculateZoomLevel as xe, mergeRegister as dt } from "@lexical/utils";
16
16
  import { RootNode as Se, TextNode as Le, LineBreakNode as We, ParagraphNode as Ae, $getSelection as J, $isNodeSelection as X, $isParagraphNode as we, $setSelection as ce, $isRangeSelection as lt, SELECTION_CHANGE_COMMAND as ut, COMMAND_PRIORITY_LOW as M, CLICK_COMMAND as mt, DRAGSTART_COMMAND as gt, KEY_DELETE_COMMAND as ht, KEY_BACKSPACE_COMMAND as pt, KEY_ENTER_COMMAND as ft, KEY_ESCAPE_COMMAND as bt, createCommand as yt, $getNodeByKey as U } from "lexical";
17
17
  import { useRef as T, useState as R, useEffect as ae, useCallback as W, Suspense as xt } from "react";
18
- import { a as wt, D as Ct, b as Nt, d as vt, e as kt, f as Et, h as It, B as Ce, L as Me, i as $e, $ as F, W as Pt, j as Rt, A as Dt, k as zt, l as St, T as Lt, m as Wt, S as At, E as Mt, n as $t, t as $, o as _t, p as Ot, C as Ht } from "./index-4f0e0157.js";
18
+ import { a as wt, D as Ct, b as Nt, d as vt, e as kt, f as Et, h as It, B as Ce, L as Me, i as $e, $ as F, W as Pt, j as Rt, A as Dt, k as zt, l as St, T as Lt, m as Wt, S as At, E as Mt, n as $t, t as $, o as _t, p as Ot, C as Ht } from "./index-66d9f716.js";
19
19
  import "axios";
20
20
  import "react-dom";
21
21
  import "@emotion/styled";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { G as z, z as B, K as G, x as I, H as J, J as L, O as M, M as O, y as j, w as q, N as D, I as F } from "./index-4f0e0157.js";
1
+ import { G as z, z as B, K as G, x as I, H as J, J as L, O as M, M as O, y as j, w as q, N as D, I as F } from "./index-66d9f716.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "axios";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eddyter",
3
3
  "private": false,
4
- "version": "1.3.55",
4
+ "version": "1.3.56",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@9.0.0",
7
7
  "keywords": [