eddyter 1.3.65 → 1.3.67

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.
@@ -15,7 +15,7 @@ import { useLexicalNodeSelection as me } from "@lexical/react/useLexicalNodeSele
15
15
  import { mergeRegister as fe } from "@lexical/utils";
16
16
  import { $getSelection as M, $isNodeSelection as m, $setSelection as $, SELECTION_CHANGE_COMMAND as ge, COMMAND_PRIORITY_LOW as u, CLICK_COMMAND as pe, DRAGSTART_COMMAND as Ce, KEY_DELETE_COMMAND as Ee, KEY_BACKSPACE_COMMAND as he, KEY_ENTER_COMMAND as Ne, KEY_ESCAPE_COMMAND as be, RootNode as ve, TextNode as Re, LineBreakNode as xe, ParagraphNode as De, $getNodeByKey as _ } from "lexical";
17
17
  import { useRef as A, useState as B, useCallback as E, useEffect as Se } from "react";
18
- import { x as v, r as Me, L as _e, i as Ae } from "./index-DWw_26Wr.js";
18
+ import { x as v, r as Me, L as _e, i as Ae } from "./index-ZDUb0XYv.js";
19
19
  function Ge({
20
20
  src: Y,
21
21
  nodeKey: f,
@@ -16,7 +16,7 @@ import { useLexicalNodeSelection as st } from "@lexical/react/useLexicalNodeSele
16
16
  import { mergeRegister as lt } from "@lexical/utils";
17
17
  import { RootNode as Ie, TextNode as Re, LineBreakNode as Pe, ParagraphNode as Se, $getSelection as _, $isNodeSelection as L, $isParagraphNode as pe, $setSelection as Q, $isRangeSelection as mt, SELECTION_CHANGE_COMMAND as ut, COMMAND_PRIORITY_LOW as w, CLICK_COMMAND as gt, DRAGSTART_COMMAND as ft, KEY_DELETE_COMMAND as pt, KEY_BACKSPACE_COMMAND as ht, KEY_ENTER_COMMAND as bt, KEY_ESCAPE_COMMAND as xt, createCommand as Ct, $getNodeByKey as $ } from "lexical";
18
18
  import { useRef as G, useState as f, useEffect as U, useCallback as C, Suspense as yt } from "react";
19
- import { a as Nt, D as wt, b as vt, d as Et, e as kt, f as It, h as Rt, B as he, L as De, i as Ae, u as Pt, $ as M, W as St, j as Dt, A as At, k as Lt, l as Mt, T as Ot, m as _t, S as $t, E as zt, n as Wt, t as v, o as jt, p as Kt, C as Tt } from "./index-DWw_26Wr.js";
19
+ import { a as Nt, D as wt, b as vt, d as Et, e as kt, f as It, h as Rt, B as he, L as De, i as Ae, u as Pt, $ as M, W as St, j as Dt, A as At, k as Lt, l as Mt, T as Ot, m as _t, S as $t, E as zt, n as Wt, t as v, o as jt, p as Kt, C as Tt } from "./index-ZDUb0XYv.js";
20
20
  const Bt = Nt("Link2", [
21
21
  ["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }],
22
22
  ["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
@@ -399,7 +399,8 @@ function Cr({
399
399
  D.current && clearTimeout(D.current);
400
400
  }, []);
401
401
  const ue = async () => {
402
- if (!P.trim() || S) return;
402
+ if (!P.trim() || S)
403
+ return;
403
404
  ne(!0);
404
405
  const e = v.loading("Refining image...", {
405
406
  description: "This may take 10-30 seconds. Please wait."
@@ -430,7 +431,8 @@ function Cr({
430
431
  if (R && R.trim()) {
431
432
  const B = R.trim();
432
433
  m(B) && c && c !== "Generated image" && c.trim() ? h = c.trim() : h = B;
433
- } else c && c !== "Generated image" && c.trim() && (h = c.trim());
434
+ } else
435
+ c && c !== "Generated image" && c.trim() && (h = c.trim());
434
436
  h ? r = `${h} with ${d}` : r = d;
435
437
  const fe = (await jt({
436
438
  content: `Generate Image: ${r}`,
@@ -452,12 +454,13 @@ function Cr({
452
454
  description: r.message,
453
455
  duration: 8e3
454
456
  });
455
- } else r instanceof Tt ? v.error("Credits Issue", {
456
- description: r.message,
457
- duration: 8e3
458
- }) : v.error("Failed to refine image", {
459
- description: r instanceof Error ? r.message : "Unknown error. Please try again."
460
- });
457
+ } else
458
+ r instanceof Tt ? v.error("Credits Issue", {
459
+ description: r.message,
460
+ duration: 8e3
461
+ }) : v.error("Failed to refine image", {
462
+ description: r instanceof Error ? r.message : "Unknown error. Please try again."
463
+ });
461
464
  } finally {
462
465
  ne(!1);
463
466
  }
@@ -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, v as C, w as D } from "./index-DWw_26Wr.js";
4
+ import { q as k, r as F, F as y, s as N, v as C, w as D } from "./index-ZDUb0XYv.js";
5
5
  const B = (t) => t ? t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFixed(1)} KB` : t < 1024 * 1024 * 1024 ? `${(t / (1024 * 1024)).toFixed(1)} MB` : `${(t / (1024 * 1024 * 1024)).toFixed(1)} GB` : "", E = (t) => {
6
6
  const o = t.split(".");
7
7
  return o.length > 1 ? o[o.length - 1].toLowerCase() : "";