arxatec-ui 0.1.21 → 0.1.22

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.
@@ -0,0 +1,5 @@
1
+ import { Editor } from '@tiptap/core';
2
+ export declare function BlockDragHandle({ editor, className, }: {
3
+ editor: Editor;
4
+ className?: string;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { NodeViewProps } from '@tiptap/react';
2
+ export declare function NodeView(props: NodeViewProps): import("react/jsx-runtime").JSX.Element;
@@ -7,9 +7,6 @@ export interface ImagePlaceholderOptions {
7
7
  declare module "@tiptap/core" {
8
8
  interface Commands<ReturnType> {
9
9
  imagePlaceholder: {
10
- /**
11
- * Inserts an image placeholder
12
- */
13
10
  insertImagePlaceholder: () => ReturnType;
14
11
  };
15
12
  }
@@ -1,5 +1,6 @@
1
1
  export * from './floating_menu';
2
2
  export * from './floating_toolbar';
3
+ export * from './block_drag_handle';
3
4
  export * from './image';
4
5
  export * from './image_placeholder';
5
6
  export * from './search_and_replace';
@@ -1,8 +1,9 @@
1
1
  import { Editor } from '@tiptap/core';
2
- export declare const EditorToolbar: ({ editor, isExpanded, onToggleExpand, rightContent, documentName, }: {
2
+ export declare const EditorToolbar: ({ editor, isExpanded, onToggleExpand, rightContent, documentName, onOpenChatbot, }: {
3
3
  editor: Editor;
4
4
  isExpanded?: boolean;
5
5
  onToggleExpand?: () => void;
6
6
  rightContent?: React.ReactNode;
7
7
  documentName?: string;
8
+ onOpenChatbot?: () => void;
8
9
  }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function FormattingStylesPopoverToolbar(): import("react/jsx-runtime").JSX.Element;
@@ -6,6 +6,7 @@ export * from './code';
6
6
  export * from './code_block';
7
7
  export * from './color_and_highlight';
8
8
  export * from './editor_toolbar';
9
+ export * from './formatting_styles_popover';
9
10
  export * from './hard_break';
10
11
  export * from './headings';
11
12
  export * from './horizontal_rule';
@@ -1,5 +1,5 @@
1
1
  interface UseImageUploadProps {
2
- onUpload?: (url: string) => void;
2
+ onUpload?: (url: string, file: File) => void;
3
3
  uploadFn: (file: File) => Promise<string>;
4
4
  }
5
5
  export declare function useImageUpload({ onUpload, uploadFn }: UseImageUploadProps): {
@@ -7,7 +7,8 @@ export declare function useImageUpload({ onUpload, uploadFn }: UseImageUploadPro
7
7
  fileName: string | null;
8
8
  fileInputRef: import('react').RefObject<HTMLInputElement | null>;
9
9
  handleThumbnailClick: () => void;
10
- handleFileChange: (event: React.ChangeEvent<HTMLInputElement>) => Promise<void>;
10
+ handleFileChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
11
+ processFile: (file: File) => Promise<void>;
11
12
  handleRemove: () => void;
12
13
  uploading: boolean;
13
14
  error: string | null;