eddyter 1.3.53 → 1.3.55

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.
@@ -1,7 +1,7 @@
1
1
  import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
2
  import { useLexicalComposerContext as v } from "@lexical/react/LexicalComposerContext";
3
3
  import { $getNodeByKey as w } from "lexical";
4
- import { q as k, r as F, F as y, s as N, u as C, v as D } from "./index-006b2aae.js";
4
+ import { q as k, r as F, F as y, s as N, u as C, v as D } from "./index-4f0e0157.js";
5
5
  import "react";
6
6
  import "axios";
7
7
  import "react-dom";
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-4f0e0157.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;
@@ -2,10 +2,13 @@ export declare const TOGGLE_VOICE_TRANSCRIPT_COMMAND: import('../../node_modules
2
2
  export declare const INSERT_TRANSCRIPT_COMMAND: import('../../node_modules/lexical').LexicalCommand<{
3
3
  text: string;
4
4
  }>;
5
- export declare const useVoiceRecording: (apiKey?: string) => {
5
+ export declare const useVoiceRecording: (apiKey?: string, language?: string) => {
6
6
  isRecording: boolean;
7
7
  isPaused: boolean;
8
8
  isLoading: boolean;
9
+ isProcessing: boolean;
10
+ processingStatus: string;
11
+ isBatchMode: boolean;
9
12
  error: string | null;
10
13
  isConnected: boolean;
11
14
  elapsedTime: number;
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.55",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@9.0.0",
7
7
  "keywords": [