eddyter 1.3.63 → 1.3.64
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/ImageResizer-CbtUYHip.js +199 -0
- package/dist/api/auth.d.ts +4 -2
- package/dist/assets/style.css +1 -1
- package/dist/{babel-B9hn44Wo.js → babel-CCPWkrf4.js} +1302 -726
- package/dist/components/LockedFeature/LockedFeature.d.ts +23 -0
- package/dist/components/LockedFeature/index.d.ts +2 -0
- package/dist/components/UnifiedColorPicker/UnifiedColorPicker.d.ts +14 -0
- package/dist/components/VideoView/index.d.ts +13 -0
- package/dist/constants.d.ts +3 -1
- package/dist/editorConfig.d.ts +2 -3
- package/dist/{estree-CocPn_Md.js → estree-CxUPh9wa.js} +917 -529
- package/dist/{html-CxCicOef.js → html-CmniStvG.js} +589 -350
- package/dist/{html2pdf.bundle-Bc2h6DHT.js → html2pdf.bundle-C1B1lr_T.js} +3796 -2777
- package/dist/{html2pdf.bundle.min-BvakEXhX.js → html2pdf.bundle.min-kPviTsNx.js} +5223 -3407
- package/dist/index-BL8HWCRw.js +816 -0
- package/dist/index-BpsoOKOs.js +274 -0
- package/dist/{index-C2a6-XFM.js → index-DHKx5grA.js} +4 -4
- package/dist/{index-DoJIKSPF.js → index-FZVNbwSO.js} +12356 -11290
- package/dist/index.js +3 -3
- package/dist/{markdown-BUjgWFLu.js → markdown-B0mEGGfQ.js} +1015 -578
- package/dist/nodes/UploadingVideoNode.d.ts +30 -0
- package/dist/nodes/VideoNode.d.ts +47 -0
- package/dist/plugins/CustomHorizontalRulePlugin/HorizontalRuleCustomizationDialog.d.ts +2 -1
- package/dist/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +1 -1
- package/dist/plugins/VideoPlugin.d.ts +17 -0
- package/dist/{postcss-CGIcwj_g.js → postcss-B0bxXf7u.js} +1065 -615
- package/dist/{standalone-C0qguT38.js → standalone-DmuJV5rn.js} +596 -350
- package/dist/types.d.ts +4 -6
- package/dist/{typescript-BM7wk6k-.js → typescript-DZlC_9M8.js} +1805 -1113
- package/dist/ui/Icons.d.ts +2 -1
- package/dist/utils/uploadManager.d.ts +17 -0
- package/package.json +151 -151
- package/dist/index-B0VTEqfr.js +0 -985
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DecoratorNode, DOMExportOutput, EditorConfig, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from '../../node_modules/lexical';
|
|
2
|
+
export interface UploadingVideoPayload {
|
|
3
|
+
fileName: string;
|
|
4
|
+
fileSize?: number;
|
|
5
|
+
key?: NodeKey;
|
|
6
|
+
}
|
|
7
|
+
export type SerializedUploadingVideoNode = Spread<{
|
|
8
|
+
fileName: string;
|
|
9
|
+
fileSize?: number;
|
|
10
|
+
}, SerializedLexicalNode>;
|
|
11
|
+
export declare class UploadingVideoNode extends DecoratorNode<JSX.Element> {
|
|
12
|
+
__fileName: string;
|
|
13
|
+
__fileSize?: number;
|
|
14
|
+
__progress: number;
|
|
15
|
+
__error?: string;
|
|
16
|
+
static getType(): string;
|
|
17
|
+
static clone(node: UploadingVideoNode): UploadingVideoNode;
|
|
18
|
+
static importJSON(serializedNode: SerializedUploadingVideoNode): UploadingVideoNode;
|
|
19
|
+
exportDOM(): DOMExportOutput;
|
|
20
|
+
constructor(fileName: string, fileSize?: number, progress?: number, error?: string, key?: NodeKey);
|
|
21
|
+
exportJSON(): SerializedUploadingVideoNode;
|
|
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 $createUploadingVideoNode({ fileName, fileSize, key, }: UploadingVideoPayload): UploadingVideoNode;
|
|
30
|
+
export declare function $isUploadingVideoNode(node: LexicalNode | null | undefined): node is UploadingVideoNode;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { DOMConversionMap, DOMExportOutput, EditorConfig, LexicalEditor, LexicalNode, NodeKey, SerializedEditor, SerializedLexicalNode, Spread, DecoratorNode } from '../../node_modules/lexical';
|
|
2
|
+
export interface VideoPayload {
|
|
3
|
+
src: string;
|
|
4
|
+
caption?: LexicalEditor;
|
|
5
|
+
height?: number;
|
|
6
|
+
key?: NodeKey;
|
|
7
|
+
maxWidth?: number;
|
|
8
|
+
showCaption?: boolean;
|
|
9
|
+
width?: number;
|
|
10
|
+
captionsEnabled?: boolean;
|
|
11
|
+
controls?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type SerializedVideoNode = Spread<{
|
|
14
|
+
caption: SerializedEditor;
|
|
15
|
+
height?: number;
|
|
16
|
+
maxWidth: number;
|
|
17
|
+
showCaption: boolean;
|
|
18
|
+
src: string;
|
|
19
|
+
width?: number;
|
|
20
|
+
controls: boolean;
|
|
21
|
+
}, SerializedLexicalNode>;
|
|
22
|
+
export declare class VideoNode extends DecoratorNode<JSX.Element> {
|
|
23
|
+
__src: string;
|
|
24
|
+
__width: "inherit" | number;
|
|
25
|
+
__height: "inherit" | number;
|
|
26
|
+
__maxWidth: number;
|
|
27
|
+
__showCaption: boolean;
|
|
28
|
+
__caption: LexicalEditor;
|
|
29
|
+
__captionsEnabled: boolean;
|
|
30
|
+
__controls: boolean;
|
|
31
|
+
static getType(): string;
|
|
32
|
+
static clone(node: VideoNode): VideoNode;
|
|
33
|
+
static importJSON(serializedNode: SerializedVideoNode): VideoNode;
|
|
34
|
+
exportDOM(): DOMExportOutput;
|
|
35
|
+
static importDOM(): DOMConversionMap | null;
|
|
36
|
+
constructor(src: string, maxWidth: number, width?: "inherit" | number, height?: "inherit" | number, showCaption?: boolean, caption?: LexicalEditor, captionsEnabled?: boolean, controls?: boolean, key?: NodeKey);
|
|
37
|
+
exportJSON(): SerializedVideoNode;
|
|
38
|
+
setWidthAndHeight(width: "inherit" | number, height: "inherit" | number): void;
|
|
39
|
+
setShowCaption(showCaption: boolean): void;
|
|
40
|
+
createDOM(config: EditorConfig): HTMLElement;
|
|
41
|
+
updateDOM(): false;
|
|
42
|
+
getSrc(): string;
|
|
43
|
+
setSrc(src: string): void;
|
|
44
|
+
decorate(): JSX.Element;
|
|
45
|
+
}
|
|
46
|
+
export declare function $createVideoNode({ height, maxWidth, captionsEnabled, src, width, showCaption, caption, key, controls, }: VideoPayload): VideoNode;
|
|
47
|
+
export declare function $isVideoNode(node: LexicalNode | null | undefined): node is VideoNode;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { LexicalEditor } from '../../../node_modules/lexical';
|
|
1
|
+
import { BaseSelection, LexicalEditor } from '../../../node_modules/lexical';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
interface HorizontalRuleCustomizationDialogProps {
|
|
4
4
|
activeEditor: LexicalEditor;
|
|
5
5
|
onClose: () => void;
|
|
6
|
+
savedSelection?: BaseSelection | null;
|
|
6
7
|
}
|
|
7
8
|
declare const HorizontalRuleCustomizationDialog: React.FC<HorizontalRuleCustomizationDialogProps>;
|
|
8
9
|
export default HorizontalRuleCustomizationDialog;
|
|
@@ -17,7 +17,7 @@ type FormatFeatures = {
|
|
|
17
17
|
aiChat?: boolean;
|
|
18
18
|
comment?: boolean;
|
|
19
19
|
improve?: boolean;
|
|
20
|
-
|
|
20
|
+
colors?: boolean;
|
|
21
21
|
};
|
|
22
22
|
export default function FloatingTextFormatToolbarPlugin({ anchorElem, setIsLinkEditMode, features, }: {
|
|
23
23
|
anchorElem?: HTMLElement;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LexicalCommand } from '../../node_modules/lexical';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
export interface InsertVideoPayload {
|
|
4
|
+
src: string;
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
maxWidth?: number;
|
|
8
|
+
showCaption?: boolean;
|
|
9
|
+
captionsEnabled?: boolean;
|
|
10
|
+
controls?: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface VideoPluginProps {
|
|
13
|
+
captionsEnabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const INSERT_VIDEO_COMMAND: LexicalCommand<InsertVideoPayload>;
|
|
16
|
+
declare const VideoPlugin: FC<VideoPluginProps>;
|
|
17
|
+
export default VideoPlugin;
|