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.
- package/LICENSE +24 -24
- package/README.md +478 -478
- package/dist/EddyterIcon.svg +24 -24
- package/dist/assets/style.css +1 -1
- package/dist/{babel-CCPWkrf4.js → babel-B9hn44Wo.js} +726 -1302
- package/dist/constants.d.ts +2 -1
- package/dist/{estree-CxUPh9wa.js → estree-CocPn_Md.js} +529 -917
- package/dist/hooks/useBlockFormat.d.ts +1 -0
- package/dist/{html-CmniStvG.js → html-CxCicOef.js} +350 -589
- package/dist/{html2pdf.bundle-Bqwrc-rt.js → html2pdf.bundle-CVq-OpZt.js} +2778 -3797
- package/dist/{html2pdf.bundle.min-IddXSdmD.js → html2pdf.bundle.min-BxzIoi3T.js} +3405 -5221
- package/dist/{index-DeaVZP-3.js → index-CtPRZTab.js} +9 -12
- package/dist/{index-DXkAwL6K.js → index-Cuv9ugJL.js} +3 -3
- package/dist/{index-CnJbZHIU.js → index-DxEP36zG.js} +9124 -9340
- package/dist/{index-CUha-eOU.js → index-eRyVFO7x.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{markdown-B0mEGGfQ.js → markdown-BUjgWFLu.js} +578 -1015
- package/dist/nodes/GeneratingImageNode.d.ts +30 -0
- package/dist/{postcss-B0bxXf7u.js → postcss-CGIcwj_g.js} +615 -1065
- package/dist/{standalone-DmuJV5rn.js → standalone-C0qguT38.js} +350 -596
- package/dist/{typescript-DZlC_9M8.js → typescript-BM7wk6k-.js} +1114 -1806
- package/dist/ui/Icons.d.ts +2 -1
- package/package.json +149 -152
|
@@ -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-
|
|
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
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
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-
|
|
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:
|
|
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(
|