eddyter 1.3.81 → 1.4.0

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.
Files changed (28) hide show
  1. package/README.md +14 -0
  2. package/dist/api/ai/aiAgentService.d.ts +2 -0
  3. package/dist/assets/style.css +1 -1
  4. package/dist/components/ConfigurableEditorWithAuth.d.ts +2 -0
  5. package/dist/context/EditorThemeContext.d.ts +8 -0
  6. package/dist/context/HtmlViewContext.d.ts +2 -0
  7. package/dist/context/VoiceRecordingContext.d.ts +30 -0
  8. package/dist/editor/components/FloatingToolbarManager.d.ts +8 -0
  9. package/dist/editor/components/FloatingToolbarPortal.d.ts +6 -0
  10. package/dist/editor/components/ToolbarMount.d.ts +9 -0
  11. package/dist/editor/hooks/useFloatingToolbar.d.ts +7 -0
  12. package/dist/{generateDocxThumbnail-DCh0DpQm.js → generateDocxThumbnail-Bh5xHzEB.js} +1 -1
  13. package/dist/{generatePdfThumbnail-D8k_mO4q.js → generatePdfThumbnail-Dlhq91Bf.js} +1 -1
  14. package/dist/{generateXlsxThumbnail-Db5nhXLN.js → generateXlsxThumbnail-DSRkPI7J.js} +1 -1
  15. package/dist/hooks/useVoiceRecording.d.ts +15 -0
  16. package/dist/{html2pdf.bundle.min-CYrTiP9i.js → html2pdf.bundle.min-9HpAwgiB.js} +1 -1
  17. package/dist/index-BO5Zqvun.js +87321 -0
  18. package/dist/{index-CQWxSXxG.js → index-CUZB8Gle.js} +23 -23
  19. package/dist/{index-Bgccl9jH.js → index-CYT6zzrr.js} +538 -502
  20. package/dist/{index-DYduXrLZ.js → index-y3tqAwBk.js} +4 -4
  21. package/dist/index.js +1 -1
  22. package/dist/pages/ConfigurableEditor/ConfigurableEditor.d.ts +1 -0
  23. package/dist/plugins/VoiceTranscriptPlugin.d.ts +2 -16
  24. package/dist/ui/Icons.d.ts +2 -1
  25. package/dist/utils/fontLoader.d.ts +1 -1
  26. package/dist/utils/htmlFormat.d.ts +5 -3
  27. package/package.json +4 -1
  28. package/dist/index-20I04v1t.js +0 -41317
package/README.md CHANGED
@@ -196,6 +196,20 @@ The main editor component with authentication.
196
196
  | `onFocus` | `() => void` | No | Called on editor focus |
197
197
  | `onBlur` | `() => void` | No | Called on editor blur |
198
198
  | `onHeightChange` | `(height: number) => void` | No | Called when editor height changes |
199
+ | `toolbarTopOffset` | `number` | No | Distance (px) the floating toolbar keeps from the viewport top when it detaches on scroll (default: `20`) |
200
+
201
+ ### Floating Toolbar Offset
202
+
203
+ When a user scrolls down, the toolbar detaches from its original position and sticks to the top of the viewport. By default it stays **20 px** below the top edge. You can customize this gap — for example, if your app has its own fixed header:
204
+
205
+ ```tsx
206
+ <ConfigurableEditorWithAuth
207
+ apiKey="your-api-key"
208
+ toolbarTopOffset={64} // sit below a 64px fixed header
209
+ />
210
+ ```
211
+
212
+ Set `toolbarTopOffset={0}` to pin the toolbar flush against the viewport top.
199
213
 
200
214
  ## Examples
201
215
 
@@ -21,12 +21,14 @@ export interface AIAgentConfig {
21
21
  type?: string;
22
22
  savedSelection?: SavedSelection | null;
23
23
  originalPrompt?: string;
24
+ abortSignal?: AbortSignal;
24
25
  onStatusChange?: (status: AIStatus) => void;
25
26
  onLoadingChange?: (isLoading: boolean) => void;
26
27
  onStreamStart?: () => void;
27
28
  onInputClear?: () => void;
28
29
  onError?: (message: string) => void;
29
30
  onSuccess?: () => void;
31
+ onRequestId?: (requestId: string) => void;
30
32
  }
31
33
  export interface AITransformConfig {
32
34
  editor: LexicalEditor;