@blocklet/discuss-kit-ux 1.6.253 → 1.6.255

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,5 +1,5 @@
1
- import { User } from '../../types';
2
1
  import { Chat, Message, Channel } from './types';
2
+ import { User } from '../../types';
3
3
  import { Emitter } from 'mitt';
4
4
 
5
5
  type Events = {
@@ -1,6 +1,6 @@
1
- import { User } from '../../types';
2
1
  import { Chat as ChatType } from './types';
3
2
  import { default as ChatClient } from './chat-client';
3
+ import { User } from '../../types';
4
4
 
5
5
  export interface ChatProviderProps {
6
6
  children: React.ReactNode;
@@ -5,4 +5,5 @@ export declare const useChatInWallet: () => {
5
5
  }) => void;
6
6
  navigateToChatList: () => void;
7
7
  isChatInWalletV2: boolean;
8
+ updateUnreadState: (unread: boolean) => void;
8
9
  };
@@ -6,6 +6,7 @@ interface UnreadNotificationProviderProps {
6
6
  }
7
7
  interface UnreadNotificationContextType {
8
8
  unread: boolean;
9
+ initialUnread: boolean | undefined;
9
10
  markAsUnread: (value?: boolean) => void;
10
11
  }
11
12
  export declare const UnreadNotificationContext: import('react').Context<UnreadNotificationContextType>;
@@ -5,3 +5,6 @@ export interface EditorProps extends Omit<BlockletEditorProps, 'onChange' | 'ref
5
5
  children?: React.ReactNode;
6
6
  }
7
7
  export declare function EditorPreview({ content, children, ...rest }: EditorProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare namespace EditorPreview {
9
+ var fallback: import("react/jsx-runtime").JSX.Element;
10
+ }
@@ -1,5 +1,5 @@
1
- import { CommentAPI } from '../../types';
2
1
  import { PostProps } from './post';
2
+ import { CommentAPI } from '../../types';
3
3
 
4
4
  export interface CommentProps {
5
5
  onDelete: CommentAPI['deleteComment'];
@@ -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-CNu5t46j.mjs";
7
+ import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-DxtzXjYS.mjs";
8
8
  const BlockletEditor = lazy(() => import("@blocklet/editor"));
9
9
  const Root = styled(Box)`
10
10
  .be-editable,