eddyter 1.3.73 → 1.3.75
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 +478 -478
- package/dist/EddyterIcon.svg +24 -24
- package/dist/{ImageResizer-FrE13F54.js → ImageResizer-o0eMm1Mg.js} +56 -50
- package/dist/api/ai/aiAgentService.d.ts +22 -1
- package/dist/api/config/endpoints.d.ts +3 -0
- package/dist/assets/style.css +1 -1
- package/dist/{babel-CCPWkrf4.js → babel-B9hn44Wo.js} +726 -1302
- package/dist/components/VideoView/index.d.ts +3 -1
- package/dist/constants.d.ts +2 -1
- package/dist/{estree-CxUPh9wa.js → estree-CocPn_Md.js} +529 -917
- package/dist/hooks/useBlockFormat.d.ts +1 -0
- package/dist/{html-CmniStvG.js → html-CxCicOef.js} +350 -589
- package/dist/{html2pdf.bundle-CQue4YDW.js → html2pdf.bundle-CVq-OpZt.js} +2778 -3797
- package/dist/{html2pdf.bundle.min-BEj2NT3U.js → html2pdf.bundle.min-BxzIoi3T.js} +3405 -5221
- package/dist/{index-CX3cfSUQ.js → index-CtPRZTab.js} +27 -18
- package/dist/index-Cuv9ugJL.js +381 -0
- package/dist/{index-CfRDm1jv.js → index-DxEP36zG.js} +12228 -12186
- package/dist/{index-BO5ICrpG.js → index-eRyVFO7x.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{markdown-B0mEGGfQ.js → markdown-BUjgWFLu.js} +578 -1015
- package/dist/nodes/GeneratingImageNode.d.ts +30 -0
- package/dist/nodes/VideoNode.d.ts +10 -3
- package/dist/{postcss-B0bxXf7u.js → postcss-CGIcwj_g.js} +615 -1065
- package/dist/{standalone-DmuJV5rn.js → standalone-C0qguT38.js} +350 -596
- package/dist/{typescript-DZlC_9M8.js → typescript-BM7wk6k-.js} +1114 -1806
- package/dist/ui/Icons.d.ts +2 -1
- package/package.json +149 -152
- package/dist/index-Buj5fA92.js +0 -274
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DecoratorNode, DOMConversionMap, DOMExportOutput, EditorConfig, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from '../../node_modules/lexical';
|
|
2
|
+
export interface GeneratingImagePayload {
|
|
3
|
+
placeholderId: string;
|
|
4
|
+
prompt?: string;
|
|
5
|
+
key?: NodeKey;
|
|
6
|
+
}
|
|
7
|
+
export type SerializedGeneratingImageNode = Spread<{
|
|
8
|
+
placeholderId: string;
|
|
9
|
+
prompt?: string;
|
|
10
|
+
}, SerializedLexicalNode>;
|
|
11
|
+
export declare class GeneratingImageNode extends DecoratorNode<JSX.Element> {
|
|
12
|
+
__placeholderId: string;
|
|
13
|
+
__prompt: string;
|
|
14
|
+
__error?: string;
|
|
15
|
+
static getType(): string;
|
|
16
|
+
static clone(node: GeneratingImageNode): GeneratingImageNode;
|
|
17
|
+
static importJSON(serializedNode: SerializedGeneratingImageNode): GeneratingImageNode;
|
|
18
|
+
static importDOM(): DOMConversionMap | null;
|
|
19
|
+
exportDOM(): DOMExportOutput;
|
|
20
|
+
constructor(placeholderId: string, prompt?: string, error?: string, key?: NodeKey);
|
|
21
|
+
exportJSON(): SerializedGeneratingImageNode;
|
|
22
|
+
createDOM(config: EditorConfig): HTMLElement;
|
|
23
|
+
updateDOM(): false;
|
|
24
|
+
getPlaceholderId(): string;
|
|
25
|
+
getPrompt(): string;
|
|
26
|
+
setError(error: string): void;
|
|
27
|
+
decorate(): JSX.Element;
|
|
28
|
+
}
|
|
29
|
+
export declare function $createGeneratingImageNode({ placeholderId, prompt, key, }: GeneratingImagePayload): GeneratingImageNode;
|
|
30
|
+
export declare function $isGeneratingImageNode(node: LexicalNode | null | undefined): node is GeneratingImageNode;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DOMConversionMap, DOMExportOutput, EditorConfig, LexicalEditor, LexicalNode, NodeKey, SerializedEditor, SerializedLexicalNode, Spread, DecoratorNode } from '../../node_modules/lexical';
|
|
2
|
+
import { ImagePosition } from './ImageNode';
|
|
2
3
|
export interface VideoPayload {
|
|
3
4
|
src: string;
|
|
4
5
|
caption?: LexicalEditor;
|
|
@@ -9,6 +10,7 @@ export interface VideoPayload {
|
|
|
9
10
|
width?: number;
|
|
10
11
|
captionsEnabled?: boolean;
|
|
11
12
|
controls?: boolean;
|
|
13
|
+
position?: ImagePosition;
|
|
12
14
|
}
|
|
13
15
|
export type SerializedVideoNode = Spread<{
|
|
14
16
|
caption: SerializedEditor;
|
|
@@ -18,6 +20,7 @@ export type SerializedVideoNode = Spread<{
|
|
|
18
20
|
src: string;
|
|
19
21
|
width?: number;
|
|
20
22
|
controls: boolean;
|
|
23
|
+
position?: ImagePosition;
|
|
21
24
|
}, SerializedLexicalNode>;
|
|
22
25
|
export declare class VideoNode extends DecoratorNode<JSX.Element> {
|
|
23
26
|
__src: string;
|
|
@@ -28,20 +31,24 @@ export declare class VideoNode extends DecoratorNode<JSX.Element> {
|
|
|
28
31
|
__caption: LexicalEditor;
|
|
29
32
|
__captionsEnabled: boolean;
|
|
30
33
|
__controls: boolean;
|
|
34
|
+
__position: ImagePosition;
|
|
31
35
|
static getType(): string;
|
|
32
36
|
static clone(node: VideoNode): VideoNode;
|
|
33
37
|
static importJSON(serializedNode: SerializedVideoNode): VideoNode;
|
|
34
38
|
exportDOM(): DOMExportOutput;
|
|
35
39
|
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);
|
|
40
|
+
constructor(src: string, maxWidth: number, width?: "inherit" | number, height?: "inherit" | number, showCaption?: boolean, caption?: LexicalEditor, captionsEnabled?: boolean, controls?: boolean, position?: ImagePosition, key?: NodeKey);
|
|
37
41
|
exportJSON(): SerializedVideoNode;
|
|
38
42
|
setWidthAndHeight(width: "inherit" | number, height: "inherit" | number): void;
|
|
39
43
|
setShowCaption(showCaption: boolean): void;
|
|
44
|
+
private getPositionStyles;
|
|
40
45
|
createDOM(config: EditorConfig): HTMLElement;
|
|
41
|
-
updateDOM():
|
|
46
|
+
updateDOM(prevNode: VideoNode, dom: HTMLElement): boolean;
|
|
42
47
|
getSrc(): string;
|
|
43
48
|
setSrc(src: string): void;
|
|
49
|
+
getPosition(): ImagePosition;
|
|
50
|
+
setPosition(position: ImagePosition): void;
|
|
44
51
|
decorate(): JSX.Element;
|
|
45
52
|
}
|
|
46
|
-
export declare function $createVideoNode({ height, maxWidth, captionsEnabled, src, width, showCaption, caption, key, controls, }: VideoPayload): VideoNode;
|
|
53
|
+
export declare function $createVideoNode({ height, maxWidth, captionsEnabled, src, width, showCaption, caption, key, controls, position, }: VideoPayload): VideoNode;
|
|
47
54
|
export declare function $isVideoNode(node: LexicalNode | null | undefined): node is VideoNode;
|