arxatec-ui 0.1.16 → 0.1.18
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.
- package/dist/components/rich_text_editor/components/ai_modal/index.d.ts +10 -0
- package/dist/components/rich_text_editor/extensions/floating_toolbar/index.d.ts +2 -1
- package/dist/components/rich_text_editor/index.d.ts +7 -0
- package/dist/components/rich_text_editor/toolbars/editor_toolbar/index.d.ts +2 -1
- package/dist/components/rich_text_editor/toolbars/index.d.ts +2 -0
- package/dist/components/rich_text_editor/toolbars/magic_ai/index.d.ts +6 -0
- package/dist/components/rich_text_editor/toolbars/table/index.d.ts +1 -0
- package/dist/index.js +1758 -1487
- package/dist/index.js.map +1 -1
- package/dist/styles.css +87 -1
- package/package.json +5 -1
|
@@ -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;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
1
2
|
import { JSONContent } from '@tiptap/core';
|
|
2
3
|
export interface RichTextEditorRef {
|
|
4
|
+
editor: Editor | null;
|
|
3
5
|
save: () => Promise<void>;
|
|
4
6
|
isDirty: boolean;
|
|
5
7
|
fileId: string | undefined;
|
|
@@ -11,4 +13,9 @@ export declare const RichTextEditor: import('react').ForwardRefExoticComponent<{
|
|
|
11
13
|
/** Si se define, el botón "Guardar" persistirá el documento vía este callback. */
|
|
12
14
|
onSave?: (schema: JSONContent) => Promise<void>;
|
|
13
15
|
onSaveSuccess?: () => void;
|
|
16
|
+
documentName?: string;
|
|
17
|
+
onAiCommand?: (payload: {
|
|
18
|
+
prompt: string;
|
|
19
|
+
content: string;
|
|
20
|
+
}, onChunk: (chunk: string) => void) => Promise<void>;
|
|
14
21
|
} & import('react').RefAttributes<RichTextEditorRef>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Editor } from '@tiptap/core';
|
|
2
|
-
export declare const EditorToolbar: ({ editor, isExpanded, onToggleExpand, rightContent, }: {
|
|
2
|
+
export declare const EditorToolbar: ({ editor, isExpanded, onToggleExpand, rightContent, documentName, }: {
|
|
3
3
|
editor: Editor;
|
|
4
4
|
isExpanded?: boolean;
|
|
5
5
|
onToggleExpand?: () => void;
|
|
6
6
|
rightContent?: React.ReactNode;
|
|
7
|
+
documentName?: string;
|
|
7
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -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';
|
|
@@ -20,3 +21,4 @@ export * from './strikethrough';
|
|
|
20
21
|
export * from './toolbar_provider';
|
|
21
22
|
export * from './underline';
|
|
22
23
|
export * from './undo';
|
|
24
|
+
export * from './table';
|
|
@@ -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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TableToolbar: () => import("react/jsx-runtime").JSX.Element | null;
|