@blocklet/discuss-kit-ux 1.6.223 → 1.6.225

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.
@@ -1,7 +1,7 @@
1
1
  export declare const DirtyPromptContainer: import('unstated-next').Container<{
2
2
  dirty: boolean;
3
3
  markDirty: () => void;
4
- reset: () => void;
4
+ reset: (callback?: Function) => void;
5
5
  check: () => Promise<boolean>;
6
6
  }, void>;
7
7
  export declare function ConfirmNavigation(): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { EditorState } from 'lexical';
2
+ import { BoxProps } from '@mui/material';
2
3
 
3
4
  export type Send = (content: string) => Promise<any>;
4
5
  interface RenderProps {
@@ -8,7 +9,7 @@ interface RenderProps {
8
9
  error: any;
9
10
  inSmallView: boolean;
10
11
  }
11
- export interface InputProps {
12
+ export interface InputProps extends Omit<BoxProps, 'onChange'> {
12
13
  initialContent?: string;
13
14
  send?: Send;
14
15
  render?: (args: RenderProps) => React.ReactElement;
@@ -19,7 +20,6 @@ export interface InputProps {
19
20
  draftKey?: string;
20
21
  shortcut?: 'CMD_ENTER' | 'ENTER';
21
22
  children?: React.ReactNode;
22
- [key: string]: any;
23
23
  }
24
24
  export type Ref = HTMLDivElement;
25
25
  declare const Input: ({ initialContent, send, render, placeholder, onSuccess, onChange, autoFocus, draftKey, shortcut, children, ...rest }: InputProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,7 @@ import { OnContentChangePlugin } from "@blocklet/editor/lib/ext/OnContentChangeP
4
4
  import { CtrlsShortcutPlugin } from "@blocklet/editor/lib/ext/ShortcutPlugin";
5
5
  import { SafeAreaPlugin } from "@blocklet/editor/lib/ext/SafeAreaPlugin";
6
6
  import { lazy } from "react";
7
- import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-BYwPg7XF.mjs";
7
+ import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-7-SJaHOi.mjs";
8
8
  const BlockletEditor = lazy(() => import("@blocklet/editor"));
9
9
  const Root = styled(Box)`
10
10
  .be-editable,