arxatec-ui 0.1.15 → 0.1.17

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,3 @@
1
+ export * from './mentionList';
2
+ export * from './types';
3
+ export * from './utils/suggestion';
@@ -0,0 +1,3 @@
1
+ import { MentionListProps, MentionListRef } from './types';
2
+ import * as React from "react";
3
+ export declare const MentionList: React.ForwardRefExoticComponent<MentionListProps & React.RefAttributes<MentionListRef>>;
@@ -0,0 +1,10 @@
1
+ import { Editor } from '@tiptap/core';
2
+ export interface AiCommandModalProps {
3
+ editor: Editor | null;
4
+ isOpen: boolean;
5
+ onClose: () => void;
6
+ onCommand: (prompt: string, selectionContent: string) => Promise<void>;
7
+ isLoading: boolean;
8
+ onCancel?: () => void;
9
+ }
10
+ export declare const AiCommandModal: ({ editor, isOpen, onClose, onCommand, isLoading, onCancel, }: AiCommandModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { Editor } from '@tiptap/core';
2
- export declare function FloatingToolbar({ editor }: {
2
+ export declare function FloatingToolbar({ editor, onOpenAiModal, }: {
3
3
  editor: Editor | null;
4
+ onOpenAiModal?: () => void;
4
5
  }): import("react/jsx-runtime").JSX.Element | null;
@@ -11,4 +11,8 @@ export declare const RichTextEditor: import('react').ForwardRefExoticComponent<{
11
11
  /** Si se define, el botón "Guardar" persistirá el documento vía este callback. */
12
12
  onSave?: (schema: JSONContent) => Promise<void>;
13
13
  onSaveSuccess?: () => void;
14
+ onAiCommand?: (payload: {
15
+ prompt: string;
16
+ content: string;
17
+ }, onChunk: (chunk: string) => void) => Promise<void>;
14
18
  } & import('react').RefAttributes<RichTextEditorRef>>;
@@ -10,6 +10,7 @@ export * from './hard_break';
10
10
  export * from './headings';
11
11
  export * from './horizontal_rule';
12
12
  export * from './image_placeholder_toolbar';
13
+ export * from './magic_ai';
13
14
  export * from './italic';
14
15
  export * from './link';
15
16
  export * from './mobile_toolbar_group';
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ export interface MagicAiToolbarProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
+ isActive?: boolean;
4
+ }
5
+ declare const MagicAiToolbar: React.ForwardRefExoticComponent<MagicAiToolbarProps & React.RefAttributes<HTMLButtonElement>>;
6
+ export { MagicAiToolbar };