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.
- package/LICENSE +24 -24
- package/README.md +493 -493
- package/dist/Provider/EditorProvider.d.ts +1 -0
- package/dist/api/auth.d.ts +9 -0
- package/dist/assets/style.css +1 -1
- package/dist/{babel-CCPWkrf4.js → babel-B9hn44Wo.js} +726 -1302
- package/dist/components/LockedFeature/LockedFeature.d.ts +8 -2
- package/dist/{estree-CxUPh9wa.js → estree-CocPn_Md.js} +529 -917
- package/dist/{html-CmniStvG.js → html-CxCicOef.js} +350 -589
- package/dist/{html2pdf.bundle-C1B1lr_T.js → html2pdf.bundle-9PCiy6C2.js} +2778 -3797
- package/dist/{html2pdf.bundle.min-kPviTsNx.js → html2pdf.bundle.min-D_g_u6ug.js} +3405 -5221
- package/dist/{index-BpsoOKOs.js → index-B9Gjsq91.js} +1 -1
- package/dist/{index-BL8HWCRw.js → index-CI28isEa.js} +9 -12
- package/dist/{index-FZVNbwSO.js → index-DWw_26Wr.js} +8155 -8463
- package/dist/{index-DHKx5grA.js → index-dZIrqvsF.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{markdown-B0mEGGfQ.js → markdown-BUjgWFLu.js} +578 -1015
- 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/package.json +151 -151
|
@@ -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-
|
|
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-
|
|
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
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
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
|
}
|