eddyter 1.3.75 → 1.3.76
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/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/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 +8 -0
- package/dist/{estree-CocPn_Md.js → estree-CxUPh9wa.js} +917 -529
- package/dist/generateDocxThumbnail-BbSs-3CJ.js +5876 -0
- package/dist/generatePdfThumbnail-U8R2yu3J.js +53 -0
- package/dist/generateXlsxThumbnail-BUwuqsXR.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-Css6bHHm.js} +5223 -3407
- package/dist/{index-Cuv9ugJL.js → index-CCVZobcV.js} +3 -3
- package/dist/index-CVEa0GRe.js +131 -0
- package/dist/{index-CtPRZTab.js → index-DTkM3xiE.js} +12 -9
- package/dist/{index-DxEP36zG.js → index-DjD3NbU0.js} +14177 -13383
- 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 +7 -2
- 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 +2 -0
- package/dist/{typescript-BM7wk6k-.js → typescript-DZlC_9M8.js} +1805 -1113
- package/dist/utils/editorStyleConverter.d.ts +3 -1
- 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 +147 -150
- package/dist/html2pdf.bundle-CVq-OpZt.js +0 -32961
- package/dist/index-eRyVFO7x.js +0 -83
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as a, H as r, I as t, J as s, K as o, M as d, N as v, O as u, P as f, Q as n, R as l, U as w } from "./index-DjD3NbU0.js";
|
|
2
2
|
export {
|
|
3
3
|
a as ConfigurableEditor,
|
|
4
4
|
r as ConfigurableEditorWithAuth,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type ToastType = "success" | "error" | "warning" | "loading" | "info";
|
|
2
|
+
export interface ToastAction {
|
|
3
|
+
label: string;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
}
|
|
6
|
+
export interface ToastOptions {
|
|
7
|
+
id?: string | number;
|
|
8
|
+
description?: string;
|
|
9
|
+
duration?: number;
|
|
10
|
+
action?: ToastAction;
|
|
11
|
+
cancel?: ToastAction;
|
|
12
|
+
}
|
|
13
|
+
export interface ToastData {
|
|
14
|
+
id: string | number;
|
|
15
|
+
type: ToastType;
|
|
16
|
+
message: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
duration?: number;
|
|
19
|
+
action?: ToastAction;
|
|
20
|
+
cancel?: ToastAction;
|
|
21
|
+
createdAt: number;
|
|
22
|
+
}
|
|
23
|
+
type ToastEventType = "add" | "update" | "dismiss" | "dismiss-all";
|
|
24
|
+
interface ToastEvent {
|
|
25
|
+
type: ToastEventType;
|
|
26
|
+
toast?: ToastData;
|
|
27
|
+
id?: string | number;
|
|
28
|
+
}
|
|
29
|
+
type ToastListener = (event: ToastEvent) => void;
|
|
30
|
+
export declare const toast: {
|
|
31
|
+
success: (message: string, options?: ToastOptions) => string | number;
|
|
32
|
+
error: (message: string, options?: ToastOptions) => string | number;
|
|
33
|
+
warning: (message: string, options?: ToastOptions) => string | number;
|
|
34
|
+
loading: (message: string, options?: ToastOptions) => string | number;
|
|
35
|
+
info: (message: string, options?: ToastOptions) => string | number;
|
|
36
|
+
dismiss: (id?: string | number | null) => void;
|
|
37
|
+
};
|
|
38
|
+
export declare function subscribe(listener: ToastListener): () => void;
|
|
39
|
+
export {};
|