eddyter 1.3.75 → 1.3.77
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/Provider/EditorProvider.d.ts +12 -0
- package/dist/api/auth.d.ts +10 -0
- package/dist/api/bugReport.d.ts +2 -0
- package/dist/api/config/endpoints.d.ts +1 -0
- package/dist/assets/style.css +1 -1
- package/dist/{babel-B9hn44Wo.js → babel-CCPWkrf4.js} +1302 -726
- package/dist/components/EddyterLogo/EddyterLogo.d.ts +2 -1
- package/dist/components/HtmlCodeEditor.d.ts +9 -0
- package/dist/components/ImageView/ImageCropDialog.d.ts +18 -0
- package/dist/components/LockedFeature/LockedFeature.d.ts +4 -0
- package/dist/components/Placeholder/styles.d.ts +2 -0
- package/dist/components/Toast/EditorToast.d.ts +2 -0
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/config/env.d.ts +9 -0
- package/dist/editorConfig.d.ts +1 -0
- package/dist/{estree-CocPn_Md.js → estree-CxUPh9wa.js} +917 -529
- package/dist/generateDocxThumbnail-Du6zd_sv.js +5876 -0
- package/dist/generatePdfThumbnail-DdNHlnr8.js +53 -0
- package/dist/generateXlsxThumbnail-VFzuEJln.js +21707 -0
- package/dist/hooks/useFeedbackEligibility.d.ts +2 -2
- package/dist/hooks/usePdfPreview.d.ts +6 -0
- package/dist/{html-CxCicOef.js → html-CmniStvG.js} +589 -350
- package/dist/html2canvas.esm-C2wu93Kq.js +4867 -0
- package/dist/{html2pdf.bundle.min-BxzIoi3T.js → html2pdf.bundle.min-4S-fQVxW.js} +5223 -3407
- package/dist/index-BUrH5xJk.js +1498 -0
- package/dist/index-DCBdbL8A.js +131 -0
- package/dist/{index-Cuv9ugJL.js → index-DSNo50FN.js} +17 -17
- package/dist/{index-DxEP36zG.js → index-Dh3DFyBT.js} +16269 -15166
- package/dist/index.js +1 -1
- package/dist/lib/toast.d.ts +39 -0
- package/dist/{markdown-BUjgWFLu.js → markdown-B0mEGGfQ.js} +1015 -578
- package/dist/nodes/EmbedNode.d.ts +9 -3
- package/dist/nodes/FileNode.d.ts +3 -0
- package/dist/{postcss-CGIcwj_g.js → postcss-B0bxXf7u.js} +1065 -615
- package/dist/{standalone-C0qguT38.js → standalone-DmuJV5rn.js} +596 -350
- package/dist/store/tableFullWidthStore.d.ts +6 -0
- package/dist/types.d.ts +4 -0
- package/dist/{typescript-BM7wk6k-.js → typescript-DZlC_9M8.js} +1805 -1113
- package/dist/utils/cropUrl.d.ts +28 -0
- package/dist/utils/editorStyleConverter.d.ts +3 -1
- package/dist/utils/export.d.ts +5 -0
- package/dist/utils/generateDocxThumbnail.d.ts +5 -0
- package/dist/utils/generatePdfThumbnail.d.ts +1 -0
- package/dist/utils/generateXlsxThumbnail.d.ts +5 -0
- package/dist/utils/helper.d.ts +2 -0
- package/dist/utils/htmlFormat.d.ts +5 -0
- package/dist/utils/index.d.ts +4 -4
- package/package.json +148 -150
- package/dist/html2pdf.bundle-CVq-OpZt.js +0 -32961
- package/dist/index-CtPRZTab.js +0 -845
- package/dist/index-eRyVFO7x.js +0 -83
|
@@ -1,32 +1,38 @@
|
|
|
1
|
-
import { DecoratorNode, DOMExportOutput, NodeKey } from '../../node_modules/lexical';
|
|
1
|
+
import { DecoratorNode, DOMConversionMap, DOMExportOutput, NodeKey } from '../../node_modules/lexical';
|
|
2
2
|
/**
|
|
3
3
|
* A custom Lexical node that embeds and renders various types of content
|
|
4
4
|
* such as videos, PDFs, documents, and other media files.
|
|
5
5
|
*/
|
|
6
6
|
export type DisplayType = "url" | "card" | "embed";
|
|
7
7
|
export type Alignment = "left" | "center" | "right";
|
|
8
|
+
/** Text wrap: none = block only; left/right = text can flow beside the card (like image) */
|
|
9
|
+
export type EmbedPosition = "none" | "left" | "right";
|
|
8
10
|
export declare class EmbedNode extends DecoratorNode<JSX.Element> {
|
|
9
11
|
__url: string;
|
|
10
12
|
__displayType: DisplayType;
|
|
11
13
|
__alignment: Alignment;
|
|
14
|
+
__position: EmbedPosition;
|
|
12
15
|
__width: number;
|
|
13
16
|
__height: number;
|
|
14
|
-
constructor(url: string, displayType?: DisplayType, alignment?: Alignment, width?: number, height?: number, key?: NodeKey);
|
|
17
|
+
constructor(url: string, displayType?: DisplayType, alignment?: Alignment, width?: number, height?: number, position?: EmbedPosition, key?: NodeKey);
|
|
15
18
|
static getType(): string;
|
|
16
19
|
static clone(node: EmbedNode): EmbedNode;
|
|
17
20
|
createDOM(): HTMLElement;
|
|
18
21
|
updateDOM(): boolean;
|
|
19
22
|
static importJSON(serializedNode: any): EmbedNode;
|
|
20
23
|
exportJSON(): any;
|
|
24
|
+
static importDOM(): DOMConversionMap | null;
|
|
21
25
|
exportDOM(): DOMExportOutput;
|
|
22
26
|
getURL(): string;
|
|
23
27
|
getDisplayType(): DisplayType;
|
|
24
28
|
getAlignment(): Alignment;
|
|
25
29
|
setDisplayType(displayType: DisplayType): void;
|
|
26
30
|
setAlignment(alignment: Alignment): void;
|
|
31
|
+
getPosition(): EmbedPosition;
|
|
32
|
+
setPosition(position: EmbedPosition): void;
|
|
27
33
|
getWidth(): number;
|
|
28
34
|
getHeight(): number;
|
|
29
35
|
setDimensions(width: number, height: number): void;
|
|
30
36
|
decorate(): JSX.Element;
|
|
31
37
|
}
|
|
32
|
-
export declare function $createEmbedNode(url: string, displayType?: DisplayType, alignment?: Alignment, width?: number, height?: number): EmbedNode;
|
|
38
|
+
export declare function $createEmbedNode(url: string, displayType?: DisplayType, alignment?: Alignment, width?: number, height?: number, position?: EmbedPosition): EmbedNode;
|
package/dist/nodes/FileNode.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export declare class FileNode extends DecoratorNode<JSX.Element> {
|
|
|
14
14
|
__src: string;
|
|
15
15
|
__fileName: string;
|
|
16
16
|
__fileSize?: number;
|
|
17
|
+
/** Optional first-page thumbnail (e.g. PDF); used in exportDOM for preview */
|
|
18
|
+
__previewDataUrl?: string;
|
|
17
19
|
static getType(): string;
|
|
18
20
|
static clone(node: FileNode): FileNode;
|
|
19
21
|
static importJSON(serializedNode: SerializedFileNode): FileNode;
|
|
@@ -27,6 +29,7 @@ export declare class FileNode extends DecoratorNode<JSX.Element> {
|
|
|
27
29
|
getSrc(): string;
|
|
28
30
|
getFileName(): string;
|
|
29
31
|
getFileSize(): number | undefined;
|
|
32
|
+
setPreviewDataUrl(url: string): void;
|
|
30
33
|
decorate(): JSX.Element;
|
|
31
34
|
}
|
|
32
35
|
export declare function $createFileNode({ src, fileName, fileSize, key, }: FilePayload): FileNode;
|