eddyter 1.3.53 → 1.3.54

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.
@@ -15,7 +15,7 @@ import { useLexicalNodeSelection as st } from "@lexical/react/useLexicalNodeSele
15
15
  import { calculateZoomLevel as xe, mergeRegister as dt } from "@lexical/utils";
16
16
  import { RootNode as Se, TextNode as Le, LineBreakNode as We, ParagraphNode as Ae, $getSelection as J, $isNodeSelection as X, $isParagraphNode as we, $setSelection as ce, $isRangeSelection as lt, SELECTION_CHANGE_COMMAND as ut, COMMAND_PRIORITY_LOW as M, CLICK_COMMAND as mt, DRAGSTART_COMMAND as gt, KEY_DELETE_COMMAND as ht, KEY_BACKSPACE_COMMAND as pt, KEY_ENTER_COMMAND as ft, KEY_ESCAPE_COMMAND as bt, createCommand as yt, $getNodeByKey as U } from "lexical";
17
17
  import { useRef as T, useState as R, useEffect as ae, useCallback as W, Suspense as xt } from "react";
18
- import { a as wt, D as Ct, b as Nt, d as vt, e as kt, f as Et, h as It, B as Ce, L as Me, i as $e, $ as F, W as Pt, j as Rt, A as Dt, k as zt, l as St, T as Lt, m as Wt, S as At, E as Mt, n as $t, t as $, o as _t, p as Ot, C as Ht } from "./index-006b2aae.js";
18
+ import { a as wt, D as Ct, b as Nt, d as vt, e as kt, f as Et, h as It, B as Ce, L as Me, i as $e, $ as F, W as Pt, j as Rt, A as Dt, k as zt, l as St, T as Lt, m as Wt, S as At, E as Mt, n as $t, t as $, o as _t, p as Ot, C as Ht } from "./index-6ba9ffa3.js";
19
19
  import "axios";
20
20
  import "react-dom";
21
21
  import "@emotion/styled";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { G as z, z as B, K as G, x as I, H as J, J as L, O as M, M as O, y as j, w as q, N as D, I as F } from "./index-006b2aae.js";
1
+ import { G as z, z as B, K as G, x as I, H as J, J as L, O as M, M as O, y as j, w as q, N as D, I as F } from "./index-6ba9ffa3.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "axios";
@@ -18,6 +18,7 @@ export declare class FileNode extends DecoratorNode<JSX.Element> {
18
18
  static clone(node: FileNode): FileNode;
19
19
  static importJSON(serializedNode: SerializedFileNode): FileNode;
20
20
  exportDOM(): DOMExportOutput;
21
+ private formatFileSize;
21
22
  static importDOM(): DOMConversionMap | null;
22
23
  constructor(src: string, fileName: string, fileSize?: number, key?: NodeKey);
23
24
  exportJSON(): SerializedFileNode;
@@ -28,5 +29,5 @@ export declare class FileNode extends DecoratorNode<JSX.Element> {
28
29
  getFileSize(): number | undefined;
29
30
  decorate(): JSX.Element;
30
31
  }
31
- export declare function $createFileNode({ src, fileName, fileSize, key }: FilePayload): FileNode;
32
+ export declare function $createFileNode({ src, fileName, fileSize, key, }: FilePayload): FileNode;
32
33
  export declare function $isFileNode(node: LexicalNode | null | undefined): node is FileNode;
@@ -0,0 +1,30 @@
1
+ import { DecoratorNode, DOMExportOutput, EditorConfig, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from '../../node_modules/lexical';
2
+ export interface UploadingFilePayload {
3
+ fileName: string;
4
+ fileSize?: number;
5
+ key?: NodeKey;
6
+ }
7
+ export type SerializedUploadingFileNode = Spread<{
8
+ fileName: string;
9
+ previewUrl?: string;
10
+ }, SerializedLexicalNode>;
11
+ export declare class UploadingFileNode extends DecoratorNode<JSX.Element> {
12
+ __fileName: string;
13
+ __fileSize?: number;
14
+ __progress: number;
15
+ __error?: string;
16
+ static getType(): string;
17
+ static clone(node: UploadingFileNode): UploadingFileNode;
18
+ static importJSON(serializedNode: SerializedUploadingFileNode): UploadingFileNode;
19
+ exportDOM(): DOMExportOutput;
20
+ constructor(fileName: string, fileSize?: number, progress?: number, error?: string, key?: NodeKey);
21
+ exportJSON(): SerializedUploadingFileNode;
22
+ createDOM(config: EditorConfig): HTMLElement;
23
+ updateDOM(): false;
24
+ setProgress(progress: number): void;
25
+ setError(error: string): void;
26
+ getProgress(): number;
27
+ decorate(): JSX.Element;
28
+ }
29
+ export declare function $createUploadingFileNode({ fileName, fileSize, key, }: UploadingFilePayload): UploadingFileNode;
30
+ export declare function $isUploadingFileNode(node: LexicalNode | null | undefined): node is UploadingFileNode;
@@ -0,0 +1,30 @@
1
+ import { DecoratorNode, DOMExportOutput, EditorConfig, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from '../../node_modules/lexical';
2
+ export interface UploadingImagePayload {
3
+ fileName: string;
4
+ previewUrl?: string;
5
+ key?: NodeKey;
6
+ }
7
+ export type SerializedUploadingImageNode = Spread<{
8
+ fileName: string;
9
+ previewUrl?: string;
10
+ }, SerializedLexicalNode>;
11
+ export declare class UploadingImageNode extends DecoratorNode<JSX.Element> {
12
+ __fileName: string;
13
+ __previewUrl?: string;
14
+ __progress: number;
15
+ __error?: string;
16
+ static getType(): string;
17
+ static clone(node: UploadingImageNode): UploadingImageNode;
18
+ static importJSON(serializedNode: SerializedUploadingImageNode): UploadingImageNode;
19
+ exportDOM(): DOMExportOutput;
20
+ constructor(fileName: string, previewUrl?: string, progress?: number, error?: string, key?: NodeKey);
21
+ exportJSON(): SerializedUploadingImageNode;
22
+ createDOM(config: EditorConfig): HTMLElement;
23
+ updateDOM(): false;
24
+ setProgress(progress: number): void;
25
+ setError(error: string): void;
26
+ getProgress(): number;
27
+ decorate(): JSX.Element;
28
+ }
29
+ export declare function $createUploadingImageNode({ fileName, previewUrl, key, }: UploadingImagePayload): UploadingImageNode;
30
+ export declare function $isUploadingImageNode(node: LexicalNode | null | undefined): node is UploadingImageNode;
@@ -0,0 +1 @@
1
+ export default function DragDropPaste(): null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eddyter",
3
3
  "private": false,
4
- "version": "1.3.53",
4
+ "version": "1.3.54",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@9.0.0",
7
7
  "keywords": [