eddyter 1.4.12 → 1.4.13
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/README.md +3 -2
- package/dist/CommentBubblePlugin-DDCERFQO.js +29 -0
- package/dist/{LazyCodeMirror-CcceEUqu.js → LazyCodeMirror-C1bW4mVF.js} +941 -1484
- package/dist/{LazySignatureCanvas-Cck44R9l.js → LazySignatureCanvas-D5P1189T.js} +21 -38
- package/dist/Provider/EditorProvider.d.ts +2 -0
- package/dist/api/auth.d.ts +4 -0
- package/dist/assets/style.css +1 -1
- package/dist/{babel-CCPWkrf4.js → babel-B9hn44Wo.js} +726 -1302
- package/dist/components/ColorPicker/LazyHexColorPicker.d.ts +2 -0
- package/dist/components/CommentToggle/CommentToggle.d.ts +2 -2
- package/dist/components/ConfigurableEditorWithAuth.d.ts +2 -2
- package/dist/components/EmojiPickerWidget/LazyEmojiPicker.d.ts +4 -0
- package/dist/components/LockedFeature/FeatureLockCard.d.ts +22 -0
- package/dist/components/LockedFeature/FeatureLockTooltipContent.d.ts +12 -0
- package/dist/components/LockedFeature/LockedFeature.d.ts +6 -1
- package/dist/components/LockedFeature/lockedFeatureMetadata.d.ts +7 -0
- package/dist/components/Toolbar/styles.d.ts +5 -5
- package/dist/components/ui/tooltip.d.ts +2 -1
- package/dist/{estree-CxUPh9wa.js → estree-CocPn_Md.js} +529 -917
- package/dist/{generateDocxThumbnail-DGj_L73_.js → generateDocxThumbnail-BVFpoKUP.js} +762 -1118
- package/dist/{generatePdfThumbnail-D1ui86rp.js → generatePdfThumbnail-Pvt57kGy.js} +13 -19
- package/dist/{generateXlsxThumbnail-CbJOr-_6.js → generateXlsxThumbnail-DRggrLYK.js} +3322 -3508
- package/dist/{html-CmniStvG.js → html-CxCicOef.js} +350 -589
- package/dist/{html2canvas.esm-C2wu93Kq.js → html2canvas.esm-BD_Vwvv8.js} +139 -204
- package/dist/{html2pdf.bundle.min-CN_w9Sxu.js → html2pdf.bundle.min-DElEIEzd.js} +3405 -5221
- package/dist/{index-DiSjJC3k.js → index-C9Dld3-L.js} +13 -13
- package/dist/{index-CuwrKBfY.js → index-Cojy1w7r.js} +194 -217
- package/dist/index-D11sRTul.js +147 -0
- package/dist/{index-Dh0oRk6u.js → index-DFEFJp4J.js} +37294 -41489
- package/dist/index-D_izLqTY.js +552 -0
- package/dist/{index-hrDzgkRb.js → index-ZBDns08-.js} +81 -80
- package/dist/index-rm00T8b9.js +166 -0
- package/dist/index.js +2 -2
- package/dist/{markdown-B0mEGGfQ.js → markdown-BUjgWFLu.js} +578 -1015
- package/dist/{objectWithoutPropertiesLoose-DO0w4vQT.js → objectWithoutPropertiesLoose-DiWPeE4c.js} +6 -10
- package/dist/pages/ConfigurableEditor/ConfigurableEditor.d.ts +1 -1
- package/dist/plugins/LocalStoragePlugin.d.ts +0 -2
- 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/package.json +8 -1
package/README.md
CHANGED
|
@@ -156,7 +156,7 @@ Display saved editor content in read-only mode with interactive features:
|
|
|
156
156
|
mode="preview"
|
|
157
157
|
initialContent={savedHtml}
|
|
158
158
|
onPreviewClick={() => setMode('edit')}
|
|
159
|
-
|
|
159
|
+
containerClassName="my-preview-styles"
|
|
160
160
|
/>
|
|
161
161
|
```
|
|
162
162
|
|
|
@@ -200,7 +200,8 @@ The main editor component with authentication.
|
|
|
200
200
|
| `onAuthError` | `(error: string) => void` | No | Called when authentication fails |
|
|
201
201
|
| `customVerifyKey` | `(key: string) => Promise<ApiResponse>` | No | Custom key verification function |
|
|
202
202
|
| `mode` | `"edit" \| "preview"` | No | Editor mode (default: `"edit"`) |
|
|
203
|
-
| `
|
|
203
|
+
| `containerClassName` | `string` | No | CSS class for the outermost editor container |
|
|
204
|
+
| `contentClassName` | `string` | No | CSS class for the specific editor/preview content area |
|
|
204
205
|
| `editor` | `{ maxHeight?: React.CSSProperties["maxHeight"] }` | No | Editor container options (`maxHeight`) |
|
|
205
206
|
| `onPreviewClick` | `() => void` | No | Click handler for preview mode |
|
|
206
207
|
| `enableReactNativeBridge` | `boolean` | No | Enable React Native WebView bridge |
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useLexicalComposerContext as a } from "@lexical/react/LexicalComposerContext";
|
|
2
|
+
import { useRef as y, useEffect as v } from "react";
|
|
3
|
+
import { u as b } from "./index-DFEFJp4J.js";
|
|
4
|
+
const g = () => {
|
|
5
|
+
const [n] = a(), { getCommentById: o } = b(), t = y(null);
|
|
6
|
+
return v(() => {
|
|
7
|
+
if (!n.getRootElement())
|
|
8
|
+
return;
|
|
9
|
+
const e = document.createElement("div");
|
|
10
|
+
e.className = "comment-count-bubble", e.style.display = "none", document.body.appendChild(e), t.current = e;
|
|
11
|
+
const r = (l) => {
|
|
12
|
+
const d = l, { commentId: i, element: u } = d.detail, c = o(i);
|
|
13
|
+
if (!c)
|
|
14
|
+
return;
|
|
15
|
+
const p = 1 + c.replies.length;
|
|
16
|
+
e.textContent = p.toString();
|
|
17
|
+
const s = u.getBoundingClientRect();
|
|
18
|
+
e.style.setProperty("display", "flex", "important"), e.style.setProperty("left", `${s.right + window.scrollX - 10}px`, "important"), e.style.setProperty("top", `${s.top + window.scrollY - 10}px`, "important");
|
|
19
|
+
}, m = () => {
|
|
20
|
+
t.current && t.current.style.setProperty("display", "none", "important");
|
|
21
|
+
};
|
|
22
|
+
return document.addEventListener("comment-hover", r), document.addEventListener("comment-hover-end", m), () => {
|
|
23
|
+
document.removeEventListener("comment-hover", r), document.removeEventListener("comment-hover-end", m), t.current && document.body.contains(t.current) && document.body.removeChild(t.current);
|
|
24
|
+
};
|
|
25
|
+
}, [n, o]), null;
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
g as default
|
|
29
|
+
};
|