eddyter 1.3.81 → 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.
- package/dist/api/ai/aiAgentService.d.ts +2 -0
- package/dist/assets/style.css +1 -1
- package/dist/components/ConfigurableEditorWithAuth.d.ts +2 -0
- package/dist/context/EditorThemeContext.d.ts +8 -0
- package/dist/context/HtmlViewContext.d.ts +2 -0
- package/dist/context/VoiceRecordingContext.d.ts +30 -0
- package/dist/editor/components/FloatingToolbarManager.d.ts +8 -0
- package/dist/editor/components/FloatingToolbarPortal.d.ts +6 -0
- package/dist/editor/components/ToolbarMount.d.ts +9 -0
- package/dist/editor/hooks/useFloatingToolbar.d.ts +7 -0
- package/dist/{generateDocxThumbnail-DCh0DpQm.js → generateDocxThumbnail-BMy6Y08H.js} +1 -1
- package/dist/{generatePdfThumbnail-D8k_mO4q.js → generatePdfThumbnail-Ck8MvwkP.js} +1 -1
- package/dist/{generateXlsxThumbnail-Db5nhXLN.js → generateXlsxThumbnail-By40CwXr.js} +1 -1
- package/dist/hooks/useVoiceRecording.d.ts +15 -0
- package/dist/{html2pdf.bundle.min-CYrTiP9i.js → html2pdf.bundle.min-DDJswFIT.js} +1 -1
- package/dist/{index-Bgccl9jH.js → index-BAeOecnm.js} +538 -502
- package/dist/{index-CQWxSXxG.js → index-CCwIE-wd.js} +23 -23
- package/dist/{index-DYduXrLZ.js → index-Jbres5pQ.js} +4 -4
- package/dist/index-baftIlXa.js +87345 -0
- package/dist/index.js +1 -1
- package/dist/pages/ConfigurableEditor/ConfigurableEditor.d.ts +1 -0
- package/dist/plugins/VoiceTranscriptPlugin.d.ts +2 -16
- package/dist/ui/Icons.d.ts +2 -1
- package/dist/utils/fontLoader.d.ts +1 -1
- package/dist/utils/htmlFormat.d.ts +5 -3
- package/package.json +4 -1
- package/dist/index-20I04v1t.js +0 -41317
|
@@ -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;
|
|
@@ -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,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
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Tt, g as Se,
|
|
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 {
|
|
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 {
|
|
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
|
+
};
|