eddyter 1.3.64 → 1.3.65

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-FZVNbwSO.js";
18
+ import { x as v, r as Me, L as _e, i as Ae } from "./index-DWw_26Wr.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-FZVNbwSO.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-DWw_26Wr.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,8 +399,7 @@ function Cr({
399
399
  D.current && clearTimeout(D.current);
400
400
  }, []);
401
401
  const ue = async () => {
402
- if (!P.trim() || S)
403
- return;
402
+ if (!P.trim() || S) return;
404
403
  ne(!0);
405
404
  const e = v.loading("Refining image...", {
406
405
  description: "This may take 10-30 seconds. Please wait."
@@ -431,8 +430,7 @@ function Cr({
431
430
  if (R && R.trim()) {
432
431
  const B = R.trim();
433
432
  m(B) && c && c !== "Generated image" && c.trim() ? h = c.trim() : h = B;
434
- } else
435
- c && c !== "Generated image" && c.trim() && (h = c.trim());
433
+ } else c && c !== "Generated image" && c.trim() && (h = c.trim());
436
434
  h ? r = `${h} with ${d}` : r = d;
437
435
  const fe = (await jt({
438
436
  content: `Generate Image: ${r}`,
@@ -454,13 +452,12 @@ function Cr({
454
452
  description: r.message,
455
453
  duration: 8e3
456
454
  });
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
- });
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
+ });
464
461
  } finally {
465
462
  ne(!1);
466
463
  }