eddyter 1.4.2 → 1.4.4

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.
@@ -27,6 +27,14 @@ interface ConfigurableEditorWithAuthProps {
27
27
  mode?: "edit" | "preview";
28
28
  /** Additional class name for the preview container (only used in preview mode) */
29
29
  previewClassName?: string;
30
+ /** Additional class name for the editor wrapper container */
31
+ className?: string;
32
+ /** Additional style for the editor wrapper container */
33
+ style?: React.CSSProperties;
34
+ /** Additional class name for the editor content area */
35
+ editorClassName?: string;
36
+ /** Additional style for the editor content area */
37
+ editorStyle?: React.CSSProperties;
30
38
  /** Additional styles for the preview container (only used in preview mode) */
31
39
  previewStyle?: React.CSSProperties;
32
40
  /** Click handler for preview mode (useful for switching to edit mode) */
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ interface Props {
3
+ children: React.ReactNode;
4
+ }
5
+ interface State {
6
+ hasError: boolean;
7
+ error: Error | null;
8
+ }
9
+ /**
10
+ * Error boundary that wraps the editor and reports crashes
11
+ * to the backend for monitoring. Does not collect any user content or PII.
12
+ */
13
+ export declare class EditorErrorBoundary extends React.Component<Props, State> {
14
+ constructor(props: Props);
15
+ static getDerivedStateFromError(error: Error): State;
16
+ componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
17
+ render(): React.ReactNode;
18
+ }
19
+ export {};
@@ -1,6 +1,7 @@
1
1
  interface ScopedEditorWrapperProps {
2
2
  children: React.ReactNode;
3
3
  className?: string;
4
+ style?: React.CSSProperties;
4
5
  darkMode?: boolean;
5
6
  }
6
7
  export declare const ScopedEditorWrapper: React.FC<ScopedEditorWrapperProps>;
@@ -9,6 +9,7 @@ export interface VoiceRecordingContextValue {
9
9
  error: string | null;
10
10
  isConnected: boolean;
11
11
  elapsedTime: number;
12
+ maxRecordingSeconds: number | null;
12
13
  toggleRecording: () => Promise<void>;
13
14
  pauseRecording: () => void;
14
15
  resumeRecording: () => void;
@@ -1,4 +1,4 @@
1
- import { v as Tt, w as Se, K as Ce, h as xe } from "./index-TGGbJHQ1.js";
1
+ import { v as Tt, w as Se, K as Ce, h as xe } from "./index-CyxBhIG-.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,4 +1,4 @@
1
- import { K as u, h as b } from "./index-TGGbJHQ1.js";
1
+ import { K as u, h as b } from "./index-CyxBhIG-.js";
2
2
  const m = "https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174";
3
3
  let w = null;
4
4
  async function C() {
@@ -1,5 +1,5 @@
1
1
  import { h as Ci } from "./html2canvas.esm-C2wu93Kq.js";
2
- import { K as yi, h as Di } from "./index-TGGbJHQ1.js";
2
+ import { K as yi, h as Di } from "./index-CyxBhIG-.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,
@@ -8,6 +8,7 @@ export declare function useVoiceRecording(apiKey?: string, language?: string): {
8
8
  error: string | null;
9
9
  isConnected: boolean;
10
10
  elapsedTime: number;
11
+ maxRecordingSeconds: number | null;
11
12
  toggleRecording: () => Promise<void>;
12
13
  pauseRecording: () => void;
13
14
  resumeRecording: () => void;
@@ -1,4 +1,4 @@
1
- import { v as Ka, w as $u } from "./index-TGGbJHQ1.js";
1
+ import { v as Ka, w as $u } from "./index-CyxBhIG-.js";
2
2
  function tl(Qa, iu) {
3
3
  for (var jo = 0; jo < iu.length; jo++) {
4
4
  const qs = iu[jo];
@@ -15,7 +15,7 @@ import { useLexicalNodeSelection as ht } from "@lexical/react/useLexicalNodeSele
15
15
  import { mergeRegister as pt } from "@lexical/utils";
16
16
  import { $getSelection as L, $isNodeSelection as h, $setSelection as O, SELECTION_CHANGE_COMMAND as bt, COMMAND_PRIORITY_LOW as f, CLICK_COMMAND as Ct, DRAGSTART_COMMAND as Nt, KEY_DELETE_COMMAND as xt, KEY_BACKSPACE_COMMAND as vt, KEY_ENTER_COMMAND as Et, KEY_ESCAPE_COMMAND as Rt, RootNode as kt, TextNode as yt, LineBreakNode as At, ParagraphNode as St, $getNodeByKey as y, $isParagraphNode as T } from "lexical";
17
17
  import { useRef as P, useState as w, useCallback as x, useEffect as Dt } from "react";
18
- import { J as v, W as Lt, k as Pt, A as Mt, l as _t, m as $t, T as zt, z as It, L as Wt, i as Ot } from "./index-TGGbJHQ1.js";
18
+ import { J as v, W as Lt, k as Pt, A as Mt, l as _t, m as $t, T as zt, z as It, L as Wt, i as Ot } from "./index-CyxBhIG-.js";
19
19
  function ie({
20
20
  src: j,
21
21
  nodeKey: g,