eddyter 1.4.10 → 1.4.12

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.
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as p } from "react/jsx-runtime";
2
2
  import { useLexicalComposerContext as $ } from "@lexical/react/LexicalComposerContext";
3
3
  import { $getNodeByKey as g } from "lexical";
4
4
  import { useState as j, useEffect as D } from "react";
5
- import { $ as k, D as y, T as B, F as h, a as E, b as I } from "./index-B6m9X2CN.js";
5
+ import { $ as k, D as y, T as B, F as h, a as E, b as I } from "./index-Dh0oRk6u.js";
6
6
  function W(e, t) {
7
7
  const d = e.split(".").pop()?.toLowerCase();
8
8
  return d === "pdf" || t.startsWith("data:application/pdf") ? "pdf" : d === "docx" || t.startsWith("data:application/vnd.openxmlformats") && e.toLowerCase().endsWith(".docx") ? "docx" : d === "xlsx" || d === "xls" || t.startsWith("data:application/vnd.openxmlformats-officedocument.spreadsheetml") || t.startsWith("data:application/vnd.ms-excel") ? "xlsx" : null;
@@ -16,15 +16,15 @@ function z(e, t) {
16
16
  return;
17
17
  }
18
18
  let l = !1;
19
- return c === "pdf" ? import("./generatePdfThumbnail-DTZ_Kj7W.js").then(({ generatePdfThumbnail: o }) => o(e)).then((o) => {
19
+ return c === "pdf" ? import("./generatePdfThumbnail-D1ui86rp.js").then(({ generatePdfThumbnail: o }) => o(e)).then((o) => {
20
20
  l || n(o);
21
21
  }).catch(() => {
22
22
  l || n(null);
23
- }) : c === "docx" ? import("./generateDocxThumbnail-BTGZdR29.js").then(({ generateDocxThumbnail: o }) => o(e)).then((o) => {
23
+ }) : c === "docx" ? import("./generateDocxThumbnail-DGj_L73_.js").then(({ generateDocxThumbnail: o }) => o(e)).then((o) => {
24
24
  l || n(o);
25
25
  }).catch(() => {
26
26
  l || n(null);
27
- }) : c === "xlsx" && import("./generateXlsxThumbnail-CF72p_5x.js").then(({ generateXlsxThumbnail: o }) => o(e)).then((o) => {
27
+ }) : c === "xlsx" && import("./generateXlsxThumbnail-CbJOr-_6.js").then(({ generateXlsxThumbnail: o }) => o(e)).then((o) => {
28
28
  l || n(o);
29
29
  }).catch(() => {
30
30
  l || n(null);
@@ -1,6 +1,6 @@
1
1
  import { jsxs as x, Fragment as rt, jsx as i } from "react/jsx-runtime";
2
2
  import { I as it } from "./ImageResizer-BVwxL4Eh.js";
3
- import { J as N, W as ot, m as nt, A as ct, n as lt, o as at, p as dt, T as st, M as ut, v as ft, w as gt } from "./index-B6m9X2CN.js";
3
+ import { J as N, W as ot, n as nt, A as ct, o as lt, p as at, q as dt, T as st, M as ut, w as ft, x as gt } from "./index-Dh0oRk6u.js";
4
4
  import { LinkNode as mt } from "@lexical/link";
5
5
  import { AutoFocusPlugin as pt } from "@lexical/react/LexicalAutoFocusPlugin";
6
6
  import { useLexicalComposerContext as ht } from "@lexical/react/LexicalComposerContext";
@@ -140,9 +140,9 @@ function re({
140
140
  const e = A(g);
141
141
  N(e) && e.setWidthAndHeight(t, r);
142
142
  });
143
- }, J = () => {
143
+ }, q = () => {
144
144
  L(!0);
145
- }, U = (t) => {
145
+ }, J = (t) => {
146
146
  t.preventDefault(), t.stopPropagation(), o.update(() => {
147
147
  const r = A(g);
148
148
  if (N(r)) {
@@ -159,7 +159,7 @@ function re({
159
159
  c && T(c) && (r === "left" ? c.setFormat("left") : r === "right" ? c.setFormat("right") : c.setFormat(""));
160
160
  }
161
161
  });
162
- }, q = v(
162
+ }, U = v(
163
163
  (t) => {
164
164
  if (s || t.target.closest("button"))
165
165
  return;
@@ -206,7 +206,7 @@ function re({
206
206
  position: "relative",
207
207
  display: "inline-block"
208
208
  })(),
209
- onClick: q,
209
+ onClick: U,
210
210
  children: [
211
211
  /* @__PURE__ */ i(
212
212
  "video",
@@ -303,7 +303,7 @@ function re({
303
303
  {
304
304
  type: "button",
305
305
  onClick: (t) => {
306
- t.stopPropagation(), U(t);
306
+ t.stopPropagation(), J(t);
307
307
  },
308
308
  className: "cteditor-size-8 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded-md cteditor-bg-background/80 hover:cteditor-bg-destructive hover:cteditor-text-destructive-foreground cteditor-transition-colors cteditor-shadow-md cteditor-border cteditor-border-border",
309
309
  "aria-label": "Delete video",
@@ -321,7 +321,7 @@ function re({
321
321
  buttonRef: S,
322
322
  imageRef: a,
323
323
  maxWidth: B,
324
- onResizeStart: J,
324
+ onResizeStart: q,
325
325
  onResizeEnd: G,
326
326
  captionsEnabled: F
327
327
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { N as a, O as r, P as t, Q as s, R as o, U as d, V as v, Y as u, Z as f, _ as n, a0 as l, a1 as w } from "./index-B6m9X2CN.js";
1
+ import { N as a, O as r, P as t, Q as s, R as o, U as d, V as v, Y as u, Z as f, _ as n, a0 as l, a1 as w } from "./index-Dh0oRk6u.js";
2
2
  export {
3
3
  a as ConfigurableEditor,
4
4
  r as ConfigurableEditorWithAuth,
@@ -0,0 +1,26 @@
1
+ function a() {
2
+ return a = Object.assign ? Object.assign.bind() : function(r) {
3
+ for (var e = 1; e < arguments.length; e++) {
4
+ var t = arguments[e];
5
+ for (var n in t)
6
+ ({}).hasOwnProperty.call(t, n) && (r[n] = t[n]);
7
+ }
8
+ return r;
9
+ }, a.apply(null, arguments);
10
+ }
11
+ function i(r, e) {
12
+ if (r == null)
13
+ return {};
14
+ var t = {};
15
+ for (var n in r)
16
+ if ({}.hasOwnProperty.call(r, n)) {
17
+ if (e.indexOf(n) !== -1)
18
+ continue;
19
+ t[n] = r[n];
20
+ }
21
+ return t;
22
+ }
23
+ export {
24
+ i as _,
25
+ a
26
+ };
@@ -0,0 +1,6 @@
1
+ import { ComponentProps } from 'react';
2
+ import { default as SignatureCanvas } from 'react-signature-canvas';
3
+ export type SignatureCanvasHandle = SignatureCanvas;
4
+ export type SignatureCanvasProps = ComponentProps<typeof SignatureCanvas>;
5
+ declare const LazySignatureCanvas: import('react').ForwardRefExoticComponent<import('react-signature-canvas').SignatureCanvasProps & import('react').RefAttributes<SignatureCanvas>>;
6
+ export default LazySignatureCanvas;
@@ -87,4 +87,7 @@ declare const CodeSquare: () => import("react/jsx-runtime").JSX.Element;
87
87
  declare const InlineAutocomplete: () => import("react/jsx-runtime").JSX.Element;
88
88
  declare const OmegaIcon: () => import("react/jsx-runtime").JSX.Element;
89
89
  declare const LineSpacingIcon: () => import("react/jsx-runtime").JSX.Element;
90
- export { AddCommentIcon, AddImageIcon, AdjustToneIcon, AIChatIcon, AIIcon, AlignBottomIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignMiddleIcon, AlignRightIcon, AlignTopIcon, BoldIcon, BugIcon, BulletListIcon, ChartBarIcon, CheckBoxIcon, CheckIcon, ChevronDownIcon, CodeIcon, CompleteSentenceIcon, DisableIcon, EmojifyIcon, FaceSmileIcon, FileIcon, FixGrammarIcon, GenerateImageIcon, Heading1Icon, Heading2Icon, Heading3Icon, Heading4Icon, Heading5Icon, Heading6Icon, HorizontalRuleIcon, HtmlViewIcon, ImageIcon, ItalicIcon, LinkIcon, LockIcon, MagicoonIcon, MakeLongerIcon, MakeShorterIcon, MenuAltIcon, MessageEditIcon, MicrophoneIcon, NoteIcon, NumberListIcon, PauseCircleIcon, ParagraphIcon, PenLineIcon, PerspectiveIcon, PlayCircleIcon, PlusIcon, QuoteIcon, RecordingIcon, RedoIcon, SearchTextIcon, SearchTextIcon2, SendIcon, SignatureIcon, SimplifyIcon, SparkleIcon, StopCircleIcon, StrikethroughIcon, SubscriptIcon, SuperscriptIcon, TodoIcon, TranslateIcon, TypeCapitalizeIcon, TypeLowercaseIcon, TypeUppercaseIcon, UnderlineIcon, UndoIcon, UploadIcon, TableIcon, HighlighterIcon, LightbulbIcon, ClearFormattingIcon, CrossIcon, DownloadIcon, TrashIcon, ExternalLinkIcon, WrapTextLeftIcon, WrapTextRightIcon, AiSparkle, CodeSquare, InlineAutocomplete, OmegaIcon, LineSpacingIcon };
90
+ declare const MiceIcon: () => import("react/jsx-runtime").JSX.Element;
91
+ declare const PlayIcon: () => import("react/jsx-runtime").JSX.Element;
92
+ declare const PushIcon: () => import("react/jsx-runtime").JSX.Element;
93
+ export { AddCommentIcon, AddImageIcon, AdjustToneIcon, AIChatIcon, AIIcon, AlignBottomIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignMiddleIcon, AlignRightIcon, AlignTopIcon, BoldIcon, BugIcon, BulletListIcon, ChartBarIcon, CheckBoxIcon, CheckIcon, ChevronDownIcon, CodeIcon, CompleteSentenceIcon, DisableIcon, EmojifyIcon, FaceSmileIcon, FileIcon, FixGrammarIcon, GenerateImageIcon, Heading1Icon, Heading2Icon, Heading3Icon, Heading4Icon, Heading5Icon, Heading6Icon, HorizontalRuleIcon, HtmlViewIcon, ImageIcon, ItalicIcon, LinkIcon, LockIcon, MagicoonIcon, MakeLongerIcon, MakeShorterIcon, MenuAltIcon, MessageEditIcon, MicrophoneIcon, NoteIcon, NumberListIcon, PauseCircleIcon, ParagraphIcon, PenLineIcon, PerspectiveIcon, PlayCircleIcon, PlusIcon, QuoteIcon, RecordingIcon, RedoIcon, SearchTextIcon, SearchTextIcon2, SendIcon, SignatureIcon, SimplifyIcon, SparkleIcon, StopCircleIcon, StrikethroughIcon, SubscriptIcon, SuperscriptIcon, TodoIcon, TranslateIcon, TypeCapitalizeIcon, TypeLowercaseIcon, TypeUppercaseIcon, UnderlineIcon, UndoIcon, UploadIcon, TableIcon, HighlighterIcon, LightbulbIcon, ClearFormattingIcon, CrossIcon, DownloadIcon, TrashIcon, ExternalLinkIcon, WrapTextLeftIcon, WrapTextRightIcon, AiSparkle, CodeSquare, InlineAutocomplete, OmegaIcon, LineSpacingIcon, MiceIcon, PlayIcon, PushIcon };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eddyter",
3
3
  "private": false,
4
- "version": "1.4.10",
4
+ "version": "1.4.12",
5
5
  "description": "Plug and Play AI Rich Text Editor for any website, blog, CRM, ERP, or web app. Built on Lexical with AI writing assistance, dark mode, and real-time collaboration.",
6
6
  "homepage": "https://www.eddyter.com",
7
7
  "type": "module",