eddyter 1.3.74 → 1.3.75

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.
@@ -16,7 +16,7 @@ import { useLexicalNodeSelection as lt } from "@lexical/react/useLexicalNodeSele
16
16
  import { mergeRegister as mt } from "@lexical/utils";
17
17
  import { RootNode as Re, TextNode as Pe, LineBreakNode as De, ParagraphNode as Se, $getSelection as O, $isNodeSelection as L, $isParagraphNode as Z, $setSelection as ee, $isRangeSelection as ut, SELECTION_CHANGE_COMMAND as gt, COMMAND_PRIORITY_LOW as v, CLICK_COMMAND as ft, DRAGSTART_COMMAND as pt, KEY_DELETE_COMMAND as ht, KEY_BACKSPACE_COMMAND as bt, KEY_ENTER_COMMAND as yt, KEY_ESCAPE_COMMAND as xt, createCommand as Ct, $getNodeByKey as _ } from "lexical";
18
18
  import { useRef as z, useState as p, useEffect as te, useLayoutEffect as Nt, useCallback as x, Suspense as wt } from "react";
19
- import { a as vt, D as Et, b as kt, d as It, e as Rt, f as Pt, h as Dt, B as be, L as Ae, i as Le, u as St, $ as M, W as At, j as Lt, A as Mt, k as $t, l as Ot, T as _t, m as zt, S as Wt, E as jt, n as Kt, t as E, o as Bt, p as Tt, C as Ft } from "./index-CnJbZHIU.js";
19
+ import { a as vt, D as Et, b as kt, d as It, e as Rt, f as Pt, h as Dt, B as be, L as Ae, i as Le, u as St, $ as M, W as At, j as Lt, A as Mt, k as $t, l as Ot, T as _t, m as zt, S as Wt, E as jt, n as Kt, t as E, o as Bt, p as Tt, C as Ft } from "./index-DxEP36zG.js";
20
20
  const Gt = vt("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" }],
@@ -419,8 +419,7 @@ function Nr({
419
419
  S.current && clearTimeout(S.current);
420
420
  }, []);
421
421
  const fe = async () => {
422
- if (!P.trim() || D)
423
- return;
422
+ if (!P.trim() || D) return;
424
423
  ae(!0);
425
424
  const e = E.loading("Refining image...", {
426
425
  description: "This may take 10-30 seconds. Please wait."
@@ -451,8 +450,7 @@ function Nr({
451
450
  if (R && R.trim()) {
452
451
  const G = R.trim();
453
452
  a(G) && d && d !== "Generated image" && d.trim() ? b = d.trim() : b = G;
454
- } else
455
- d && d !== "Generated image" && d.trim() && (b = d.trim());
453
+ } else d && d !== "Generated image" && d.trim() && (b = d.trim());
456
454
  b ? r = `${b} with ${n}` : r = n;
457
455
  const he = (await Bt({
458
456
  content: `Generate Image: ${r}`,
@@ -474,13 +472,12 @@ function Nr({
474
472
  description: r.message,
475
473
  duration: 8e3
476
474
  });
477
- } else
478
- r instanceof Ft ? E.error("Credits Issue", {
479
- description: r.message,
480
- duration: 8e3
481
- }) : E.error("Failed to refine image", {
482
- description: r instanceof Error ? r.message : "Unknown error. Please try again."
483
- });
475
+ } else r instanceof Ft ? E.error("Credits Issue", {
476
+ description: r.message,
477
+ duration: 8e3
478
+ }) : E.error("Failed to refine image", {
479
+ description: r instanceof Error ? r.message : "Unknown error. Please try again."
480
+ });
484
481
  } finally {
485
482
  ae(!1);
486
483
  }
@@ -15,7 +15,7 @@ import { useLexicalNodeSelection as ht } from "@lexical/react/useLexicalNodeSele
15
15
  import { mergeRegister as pt } from "@lexical/utils";
16
16
  import { $getSelection as L, $isNodeSelection as h, $setSelection as O, SELECTION_CHANGE_COMMAND as bt, COMMAND_PRIORITY_LOW as f, CLICK_COMMAND as Ct, DRAGSTART_COMMAND as xt, KEY_DELETE_COMMAND as Nt, KEY_BACKSPACE_COMMAND as vt, KEY_ENTER_COMMAND as Et, KEY_ESCAPE_COMMAND as Rt, RootNode as kt, TextNode as yt, LineBreakNode as At, ParagraphNode as St, $getNodeByKey as y, $isParagraphNode as T } from "lexical";
17
17
  import { useRef as P, useState as j, useCallback as N, useEffect as Dt } from "react";
18
- import { x as v, W as Lt, j as Pt, A as Mt, k as _t, l as $t, T as zt, r as It, L as Wt, i as Ot } from "./index-CnJbZHIU.js";
18
+ import { x as v, W as Lt, j as Pt, A as Mt, k as _t, l as $t, T as zt, r as It, L as Wt, i as Ot } from "./index-DxEP36zG.js";
19
19
  function ie({
20
20
  src: w,
21
21
  nodeKey: g,
@@ -179,7 +179,7 @@ function ie({
179
179
  "div",
180
180
  {
181
181
  draggable: Q,
182
- style: (() => n === "left" || n === "right" ? {
182
+ style: n === "left" || n === "right" ? {
183
183
  position: "relative",
184
184
  display: "block",
185
185
  width: "100%"
@@ -206,7 +206,7 @@ function ie({
206
206
  } : {
207
207
  position: "relative",
208
208
  display: "inline-block"
209
- })(),
209
+ },
210
210
  onClick: J,
211
211
  children: [
212
212
  /* @__PURE__ */ i(