eddyter 1.4.5 → 1.4.6
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/README.md +31 -6
- package/dist/{ImageResizer-Bt7kgv0a.js → ImageResizer-C5luyjPa.js} +68 -59
- package/dist/assets/style.css +1 -1
- package/dist/components/ConfigurableEditorWithAuth.d.ts +8 -6
- package/dist/components/LineHeightPicker/LineHeightControl.d.ts +3 -0
- package/dist/editor/components/FloatingToolbarManager.d.ts +3 -1
- package/dist/editor/hooks/useFloatingToolbar.d.ts +3 -2
- package/dist/{generateDocxThumbnail-CNLulV6U.js → generateDocxThumbnail-BgIdOWg3.js} +1 -1
- package/dist/{generatePdfThumbnail-BFSOSFAX.js → generatePdfThumbnail-DZ8_E1lJ.js} +1 -1
- package/dist/{generateXlsxThumbnail-CfJuOgEl.js → generateXlsxThumbnail-B_vFMM-q.js} +1 -1
- package/dist/hooks/useAutoExpandingHeight.d.ts +1 -1
- package/dist/{html2pdf.bundle.min-wRsYlGzo.js → html2pdf.bundle.min-CDLnol6o.js} +1 -1
- package/dist/{index-Ct824Y4n.js → index-B6FDh2NJ.js} +4 -4
- package/dist/{index-DMZDKMjN.js → index-CU78ju_h.js} +27144 -26447
- package/dist/{index-BJ5KLQGQ.js → index-CVkebuOP.js} +2 -2
- package/dist/{index-Dsv2sdJQ.js → index-DtbCbxgA.js} +2 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/pages/ConfigurableEditor/ConfigurableEditor.d.ts +2 -2
- package/dist/plugins/CustomHorizontalRulePlugin/CustomHorizontalRuleNode.d.ts +4 -1
- package/dist/plugins/CustomHorizontalRulePlugin/HorizontalRuleCustomizationDialog.d.ts +8 -1
- package/dist/types.d.ts +8 -0
- package/dist/utils/fileUploadValidation.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as N, Fragment as rt, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { I as it } from "./ImageResizer-
|
|
2
|
+
import { I as it } from "./ImageResizer-C5luyjPa.js";
|
|
3
3
|
import { CodeNode as ot } from "@lexical/code";
|
|
4
4
|
import { LinkNode as nt } from "@lexical/link";
|
|
5
5
|
import { AutoFocusPlugin as ct } from "@lexical/react/LexicalAutoFocusPlugin";
|
|
@@ -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 Nt, KEY_DELETE_COMMAND as xt, 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 w, useCallback as x, useEffect as Dt } from "react";
|
|
18
|
-
import { J as v, W as Lt, k as Pt, A as Mt, l as _t, m as $t, T as zt, z as It, L as Wt, i as Ot } from "./index-
|
|
18
|
+
import { J as v, W as Lt, k as Pt, A as Mt, l as _t, m as $t, T as zt, z as It, L as Wt, i as Ot } from "./index-CU78ju_h.js";
|
|
19
19
|
function ie({
|
|
20
20
|
src: j,
|
|
21
21
|
nodeKey: g,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as h, Fragment as Kt } from "react/jsx-runtime";
|
|
2
|
-
import { I as _e } from "./ImageResizer-
|
|
2
|
+
import { I as _e } from "./ImageResizer-C5luyjPa.js";
|
|
3
3
|
import { CodeNode as ee } from "@lexical/code";
|
|
4
4
|
import { LinkNode as re } from "@lexical/link";
|
|
5
5
|
import { AutoFocusPlugin as Oe } from "@lexical/react/LexicalAutoFocusPlugin";
|
|
@@ -16,7 +16,7 @@ import { useLexicalNodeSelection as Be } from "@lexical/react/useLexicalNodeSele
|
|
|
16
16
|
import { mergeRegister as Ue } from "@lexical/utils";
|
|
17
17
|
import { RootNode as ce, TextNode as le, LineBreakNode as ue, ParagraphNode as me, $isNodeSelection as st, $getSelection as dt, $isParagraphNode as Yt, $setSelection as xt, $isRangeSelection as Ke, SELECTION_CHANGE_COMMAND as Ge, COMMAND_PRIORITY_LOW as tt, CLICK_COMMAND as qe, DRAGSTART_COMMAND as Ve, KEY_DELETE_COMMAND as Je, KEY_BACKSPACE_COMMAND as Qe, KEY_ENTER_COMMAND as Ze, KEY_ESCAPE_COMMAND as tr, $getNodeByKey as ct, createCommand as er } from "lexical";
|
|
18
18
|
import wt, { useState as I, useRef as V, useMemo as Gt, useCallback as S, useEffect as rt, useLayoutEffect as qt, Suspense as rr } from "react";
|
|
19
|
-
import { c as vt, D as ge, a as fe, b as he, d as pe, e as be, f as ye, B as Vt, L as xe, i as we, C as It, I as or, S as ir, u as ar, $ as et, t as M, g as nr, h as sr, j as dr, W as cr, k as lr, A as ur, l as mr, m as gr, T as fr, n as hr, o as pr, E as br, p as yr, X as xr, q as wr, r as vr, s as Cr } from "./index-
|
|
19
|
+
import { c as vt, D as ge, a as fe, b as he, d as pe, e as be, f as ye, B as Vt, L as xe, i as we, C as It, I as or, S as ir, u as ar, $ as et, t as M, g as nr, h as sr, j as dr, W as cr, k as lr, A as ur, l as mr, m as gr, T as fr, n as hr, o as pr, E as br, p as yr, X as xr, q as wr, r as vr, s as Cr } from "./index-CU78ju_h.js";
|
|
20
20
|
import "react-dom";
|
|
21
21
|
const ve = vt("Crop", [
|
|
22
22
|
["path", { d: "M6 2v14a2 2 0 0 0 2 2h14", key: "ron5a4" }],
|
|
@@ -744,8 +744,6 @@ function Yr({
|
|
|
744
744
|
ref: e,
|
|
745
745
|
style: c ? {
|
|
746
746
|
width: C,
|
|
747
|
-
// Use height: auto + aspect-ratio so the image scales
|
|
748
|
-
// proportionally when max-width constrains on small screens.
|
|
749
747
|
height: "auto",
|
|
750
748
|
aspectRatio: `${C} / ${y}`,
|
|
751
749
|
maxWidth: "100%"
|
package/dist/index.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ export type { ContentPreviewProps } from './components/ContentPreview';
|
|
|
10
10
|
export type { ReactNativeBridgeConfig, ReactNativeMessage, ReactNativeMessageType, } from './hooks/useReactNativeBridge';
|
|
11
11
|
export { isReactNativeWebView, useReactNativeBridge, } from './hooks/useReactNativeBridge';
|
|
12
12
|
export type { CurrentUser } from './Provider/EditorProvider';
|
|
13
|
-
export type { EditorConfigTypes } from './types';
|
|
13
|
+
export type { EditorConfigTypes, ToolbarConfig } from './types';
|
|
14
14
|
export { editorConfig as defaultEditorConfig } from './editorConfig';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as a, N as r, O as t, P as s, Q as o, R as d, U as v, V as u, Y as f, Z as n, _ as l, a0 as w } from "./index-
|
|
1
|
+
import { M as a, N as r, O as t, P as s, Q as o, R as d, U as v, V as u, Y as f, Z as n, _ as l, a0 as w } from "./index-CU78ju_h.js";
|
|
2
2
|
export {
|
|
3
3
|
a as ConfigurableEditor,
|
|
4
4
|
r as ConfigurableEditorWithAuth,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { EditorConfigTypes } from '../../types';
|
|
2
|
+
import { EditorConfigTypes, ToolbarConfig } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Handles editor state changes, retrieving root and selection.
|
|
5
5
|
*/
|
|
@@ -21,7 +21,7 @@ interface ConfigurableEditorProps {
|
|
|
21
21
|
initialContent?: string;
|
|
22
22
|
onChange?: (html: string) => void;
|
|
23
23
|
apiKey?: string;
|
|
24
|
-
|
|
24
|
+
toolbarConfig?: ToolbarConfig;
|
|
25
25
|
editorClassName?: string;
|
|
26
26
|
editorStyle?: React.CSSProperties;
|
|
27
27
|
}
|
|
@@ -6,6 +6,9 @@ export interface CustomHorizontalRulePayload {
|
|
|
6
6
|
strokeWidth?: number;
|
|
7
7
|
lineStyle?: LineStyle;
|
|
8
8
|
}
|
|
9
|
+
export interface OpenHorizontalRuleDialogPayload {
|
|
10
|
+
editingNodeKey?: NodeKey;
|
|
11
|
+
}
|
|
9
12
|
export type SerializedCustomHorizontalRuleNode = Spread<{
|
|
10
13
|
color?: string;
|
|
11
14
|
strokeWidth?: number;
|
|
@@ -13,7 +16,7 @@ export type SerializedCustomHorizontalRuleNode = Spread<{
|
|
|
13
16
|
}, SerializedLexicalNode>;
|
|
14
17
|
export declare const INSERT_CUSTOM_HORIZONTAL_RULE_COMMAND: LexicalCommand<CustomHorizontalRulePayload>;
|
|
15
18
|
/** Opens the horizontal rule customization dialog (e.g. from slash menu). */
|
|
16
|
-
export declare const OPEN_HORIZONTAL_RULE_DIALOG_COMMAND: LexicalCommand<
|
|
19
|
+
export declare const OPEN_HORIZONTAL_RULE_DIALOG_COMMAND: LexicalCommand<OpenHorizontalRuleDialogPayload | undefined>;
|
|
17
20
|
export declare class CustomHorizontalRuleNode extends BaseHorizontalRuleNode {
|
|
18
21
|
__color?: string;
|
|
19
22
|
__strokeWidth?: number;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import { BaseSelection, LexicalEditor } from '../../../node_modules/lexical';
|
|
1
|
+
import { BaseSelection, LexicalEditor, NodeKey } from '../../../node_modules/lexical';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
+
import { LineStyle } from './CustomHorizontalRuleNode';
|
|
3
4
|
interface HorizontalRuleCustomizationDialogProps {
|
|
4
5
|
activeEditor: LexicalEditor;
|
|
5
6
|
onClose: () => void;
|
|
6
7
|
savedSelection?: BaseSelection | null;
|
|
8
|
+
editingNodeKey?: NodeKey | null;
|
|
9
|
+
initialValues?: {
|
|
10
|
+
color: string;
|
|
11
|
+
strokeWidth: number;
|
|
12
|
+
lineStyle: LineStyle;
|
|
13
|
+
} | null;
|
|
7
14
|
}
|
|
8
15
|
declare const HorizontalRuleCustomizationDialog: React.FC<HorizontalRuleCustomizationDialogProps>;
|
|
9
16
|
export default HorizontalRuleCustomizationDialog;
|
package/dist/types.d.ts
CHANGED
|
@@ -116,6 +116,14 @@ export interface EmojiPluginProps {
|
|
|
116
116
|
onChange?: (emoji: EmojiClickData, event?: MouseEvent) => void;
|
|
117
117
|
icon?: React.ReactElement<LucideProps>;
|
|
118
118
|
}
|
|
119
|
+
export interface ToolbarConfig {
|
|
120
|
+
/** Sticky toolbar behavior mode. */
|
|
121
|
+
mode?: "sticky" | "static";
|
|
122
|
+
/** Top offset (px) used only when mode is "sticky". */
|
|
123
|
+
offset?: number;
|
|
124
|
+
/** z-index used only when mode is "sticky". */
|
|
125
|
+
zIndex?: number;
|
|
126
|
+
}
|
|
119
127
|
export interface InsertFilePayload {
|
|
120
128
|
linkText: string;
|
|
121
129
|
src: string;
|