eddyter 1.3.80 → 1.3.82

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 (35) hide show
  1. package/dist/{ImageResizer-o0eMm1Mg.js → ImageResizer-Bt7kgv0a.js} +1 -1
  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/components/FileView/index.d.ts +2 -0
  6. package/dist/context/EditorThemeContext.d.ts +8 -0
  7. package/dist/context/HtmlViewContext.d.ts +2 -0
  8. package/dist/context/VoiceRecordingContext.d.ts +30 -0
  9. package/dist/editor/components/FloatingToolbarManager.d.ts +8 -0
  10. package/dist/editor/components/FloatingToolbarPortal.d.ts +6 -0
  11. package/dist/editor/components/ToolbarMount.d.ts +9 -0
  12. package/dist/editor/hooks/useFloatingToolbar.d.ts +7 -0
  13. package/dist/editorConfig.d.ts +1 -0
  14. package/dist/{generateDocxThumbnail-CuC4oE4q.js → generateDocxThumbnail-BMy6Y08H.js} +1 -1
  15. package/dist/{generatePdfThumbnail-Be9_gTd2.js → generatePdfThumbnail-Ck8MvwkP.js} +1 -1
  16. package/dist/{generateXlsxThumbnail-BHmQkbG6.js → generateXlsxThumbnail-By40CwXr.js} +1 -1
  17. package/dist/hooks/useVoiceRecording.d.ts +15 -0
  18. package/dist/{html2pdf.bundle.min-__2qz-Dv.js → html2pdf.bundle.min-DDJswFIT.js} +1 -1
  19. package/dist/{index-BjjpBGeH.js → index-BAeOecnm.js} +589 -553
  20. package/dist/{index-0dB2NNlO.js → index-CCwIE-wd.js} +24 -24
  21. package/dist/index-Jbres5pQ.js +157 -0
  22. package/dist/index-baftIlXa.js +87345 -0
  23. package/dist/index.js +1 -1
  24. package/dist/nodes/FileNode.d.ts +8 -2
  25. package/dist/pages/ConfigurableEditor/ConfigurableEditor.d.ts +1 -0
  26. package/dist/plugins/FloatingFileMenuPlugin.d.ts +3 -0
  27. package/dist/plugins/VoiceTranscriptPlugin.d.ts +2 -16
  28. package/dist/plugins/WordCountPlugin.d.ts +4 -1
  29. package/dist/types.d.ts +2 -0
  30. package/dist/ui/Icons.d.ts +2 -1
  31. package/dist/utils/fontLoader.d.ts +1 -1
  32. package/dist/utils/htmlFormat.d.ts +5 -3
  33. package/package.json +4 -1
  34. package/dist/index-BTnX5edL.js +0 -131
  35. package/dist/index-BiGNE0nG.js +0 -40927
@@ -38,6 +38,8 @@ interface ConfigurableEditorWithAuthProps {
38
38
  * - `undefined` (default): Auto-detect from host app's `<html>` or `<body>` "dark" class
39
39
  */
40
40
  darkMode?: boolean;
41
+ /** Distance (px) the detached/floating toolbar keeps from the top of the viewport. Defaults to 20. */
42
+ toolbarTopOffset?: number;
41
43
  }
42
44
  declare const ConfigurableEditorWithAuth: React.FC<ConfigurableEditorWithAuthProps>;
43
45
  export default ConfigurableEditorWithAuth;
@@ -1,8 +1,10 @@
1
1
  import { default as React } from 'react';
2
+ import { FileDisplayType } from '../../nodes/FileNode';
2
3
  interface FileViewProps {
3
4
  src: string;
4
5
  fileName: string;
5
6
  fileSize?: number;
7
+ displayType?: FileDisplayType;
6
8
  nodeKey: string;
7
9
  }
8
10
  declare const FileView: React.FC<FileViewProps>;
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ export interface EditorThemeContextValue {
3
+ isDark: boolean;
4
+ }
5
+ declare const EditorThemeContext: React.Context<EditorThemeContextValue>;
6
+ export declare const useEditorTheme: () => EditorThemeContextValue;
7
+ export declare const EditorThemeProvider: React.Provider<EditorThemeContextValue>;
8
+ export default EditorThemeContext;
@@ -13,6 +13,8 @@ interface HtmlViewContextType {
13
13
  setViewMode: Dispatch<SetStateAction<HtmlViewMode>>;
14
14
  originalHtml: string;
15
15
  setOriginalHtml: Dispatch<SetStateAction<string>>;
16
+ rawHtmlForApply: string;
17
+ setRawHtmlForApply: Dispatch<SetStateAction<string>>;
16
18
  }
17
19
  export declare const useHtmlView: () => HtmlViewContextType;
18
20
  interface HtmlViewProviderProps {
@@ -0,0 +1,30 @@
1
+ import { default as React } from 'react';
2
+ export interface VoiceRecordingContextValue {
3
+ isRecording: boolean;
4
+ isPaused: boolean;
5
+ isLoading: boolean;
6
+ isProcessing: boolean;
7
+ processingStatus: string;
8
+ isBatchMode: boolean;
9
+ error: string | null;
10
+ isConnected: boolean;
11
+ elapsedTime: number;
12
+ toggleRecording: () => Promise<void>;
13
+ pauseRecording: () => void;
14
+ resumeRecording: () => void;
15
+ setEditor: (editor: any) => void;
16
+ selectedLanguage: string;
17
+ setSelectedLanguage: (lang: string) => void;
18
+ }
19
+ export declare function useVoiceRecordingContext(): VoiceRecordingContextValue;
20
+ export declare function useVoiceRecordingContextOptional(): VoiceRecordingContextValue | null;
21
+ interface VoiceRecordingProviderProps {
22
+ children: React.ReactNode;
23
+ }
24
+ /**
25
+ * Provider that holds voice recording state so it survives toolbar
26
+ * unmount/remount when switching between inline and floating (detached) toolbar.
27
+ * Place above FloatingToolbarManager so recording continues when scrolling.
28
+ */
29
+ export declare function VoiceRecordingProvider({ children }: VoiceRecordingProviderProps): import("react/jsx-runtime").JSX.Element;
30
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ interface FloatingToolbarManagerProps {
3
+ editorRef: React.RefObject<HTMLElement | null>;
4
+ children: React.ReactNode;
5
+ topOffset?: number;
6
+ }
7
+ export default function FloatingToolbarManager({ editorRef, children, topOffset, }: FloatingToolbarManagerProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface FloatingToolbarPortalProps {
3
+ children: React.ReactNode;
4
+ }
5
+ export default function FloatingToolbarPortal({ children, }: FloatingToolbarPortalProps): React.ReactPortal | null;
6
+ export {};
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface ToolbarMountProps {
3
+ mountRef: React.RefObject<HTMLDivElement | null>;
4
+ children?: React.ReactNode;
5
+ isFloating?: boolean;
6
+ placeholderHeight?: number;
7
+ }
8
+ export default function ToolbarMount({ mountRef, children, isFloating, placeholderHeight, }: ToolbarMountProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ import { RefObject } from 'react';
2
+ /** Default gap (px) from top when toolbar is detached. Single source of truth for default. */
3
+ export declare const DEFAULT_TOP_OFFSET = 20;
4
+ export declare function useFloatingToolbar(editorRef: RefObject<HTMLElement | null>, mountRef: RefObject<HTMLElement | null>, floatingRef: RefObject<HTMLElement | null>, topOffset?: number): {
5
+ isFloating: boolean;
6
+ placeholderHeight: number;
7
+ };
@@ -19,6 +19,7 @@ export declare const editorConfig: {
19
19
  enableHtmlViewToggle: boolean;
20
20
  enableNotePanels: boolean;
21
21
  enableAutocompleteToggle: boolean;
22
+ enableInlineAutocompleteToggle: boolean;
22
23
  enableHeadings: boolean;
23
24
  enableLists: boolean;
24
25
  enableBlockquote: boolean;
@@ -1,4 +1,4 @@
1
- import { c as Tt, g as Se, H as Ce, k as xe } from "./index-BiGNE0nG.js";
1
+ import { c as Tt, g as Se, J as Ce, k as xe } from "./index-baftIlXa.js";
2
2
  import { h as Ee } from "./html2canvas.esm-C2wu93Kq.js";
3
3
  function Ft(c) {
4
4
  throw new Error('Could not dynamically require "' + c + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
@@ -1,5 +1,5 @@
1
1
  import * as g from "pdfjs-dist";
2
- import { H as l, k as m } from "./index-BiGNE0nG.js";
2
+ import { J as l, k as m } from "./index-baftIlXa.js";
3
3
  g.GlobalWorkerOptions.workerSrc = "https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js";
4
4
  async function u(a) {
5
5
  if (a.startsWith("data:application/pdf;base64,") || a.startsWith("data:application/pdf,")) {
@@ -1,5 +1,5 @@
1
1
  import { h as Ci } from "./html2canvas.esm-C2wu93Kq.js";
2
- import { H as yi, k as Di } from "./index-BiGNE0nG.js";
2
+ import { J as yi, k as Di } from "./index-baftIlXa.js";
3
3
  var In = 1252, Oi = [874, 932, 936, 949, 950, 1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257, 1258, 1e4], Zt = {
4
4
  /*::[*/
5
5
  0: 1252,
@@ -0,0 +1,15 @@
1
+ export declare function useVoiceRecording(apiKey?: string, language?: string): {
2
+ isRecording: boolean;
3
+ isPaused: boolean;
4
+ isLoading: boolean;
5
+ isProcessing: boolean;
6
+ processingStatus: string;
7
+ isBatchMode: boolean;
8
+ error: string | null;
9
+ isConnected: boolean;
10
+ elapsedTime: number;
11
+ toggleRecording: () => Promise<void>;
12
+ pauseRecording: () => void;
13
+ resumeRecording: () => void;
14
+ setEditor: (editor: any) => void;
15
+ };
@@ -1,4 +1,4 @@
1
- import { c as Ka, g as $u } from "./index-BiGNE0nG.js";
1
+ import { c as Ka, g as $u } from "./index-baftIlXa.js";
2
2
  function tl(Qa, iu) {
3
3
  for (var jo = 0; jo < iu.length; jo++) {
4
4
  const qs = iu[jo];