agentic-ui-libs 1.0.0-beta.3 → 1.0.0-beta.4

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.
Files changed (48) hide show
  1. package/dist/assets/style.css +1432 -3
  2. package/dist/features/md-editor/MDEditor.d.ts +5 -0
  3. package/dist/features/md-editor/MDEditor.d.ts.map +1 -0
  4. package/dist/features/md-editor/components/AIContextMenu.d.ts +10 -0
  5. package/dist/features/md-editor/components/AIContextMenu.d.ts.map +1 -0
  6. package/dist/features/md-editor/components/AIRefinePanel.d.ts +5 -0
  7. package/dist/features/md-editor/components/AIRefinePanel.d.ts.map +1 -0
  8. package/dist/features/md-editor/components/DragHandle.d.ts +8 -0
  9. package/dist/features/md-editor/components/DragHandle.d.ts.map +1 -0
  10. package/dist/features/md-editor/components/InlineToolbar.d.ts +15 -0
  11. package/dist/features/md-editor/components/InlineToolbar.d.ts.map +1 -0
  12. package/dist/features/md-editor/components/MentionChip.d.ts +12 -0
  13. package/dist/features/md-editor/components/MentionChip.d.ts.map +1 -0
  14. package/dist/features/md-editor/components/SlashMenu.d.ts +15 -0
  15. package/dist/features/md-editor/components/SlashMenu.d.ts.map +1 -0
  16. package/dist/features/md-editor/components/TableToolbar.d.ts +9 -0
  17. package/dist/features/md-editor/components/TableToolbar.d.ts.map +1 -0
  18. package/dist/features/md-editor/components/VariableChip.d.ts +12 -0
  19. package/dist/features/md-editor/components/VariableChip.d.ts.map +1 -0
  20. package/dist/features/md-editor/components/VariableMenu.d.ts +19 -0
  21. package/dist/features/md-editor/components/VariableMenu.d.ts.map +1 -0
  22. package/dist/features/md-editor/components/index.d.ts +9 -0
  23. package/dist/features/md-editor/components/index.d.ts.map +1 -0
  24. package/dist/features/md-editor/extensions/AIRefineExtension.d.ts +20 -0
  25. package/dist/features/md-editor/extensions/AIRefineExtension.d.ts.map +1 -0
  26. package/dist/features/md-editor/extensions/MentionChip.d.ts +22 -0
  27. package/dist/features/md-editor/extensions/MentionChip.d.ts.map +1 -0
  28. package/dist/features/md-editor/extensions/SlashCommand.d.ts +19 -0
  29. package/dist/features/md-editor/extensions/SlashCommand.d.ts.map +1 -0
  30. package/dist/features/md-editor/extensions/VariableChip.d.ts +21 -0
  31. package/dist/features/md-editor/extensions/VariableChip.d.ts.map +1 -0
  32. package/dist/features/md-editor/extensions/index.d.ts +4 -0
  33. package/dist/features/md-editor/extensions/index.d.ts.map +1 -0
  34. package/dist/features/md-editor/index.d.ts +9 -0
  35. package/dist/features/md-editor/index.d.ts.map +1 -0
  36. package/dist/features/md-editor/types.d.ts +346 -0
  37. package/dist/features/md-editor/types.d.ts.map +1 -0
  38. package/dist/features/md-editor/utils/index.d.ts +2 -0
  39. package/dist/features/md-editor/utils/index.d.ts.map +1 -0
  40. package/dist/features/md-editor/utils/markdown.d.ts +19 -0
  41. package/dist/features/md-editor/utils/markdown.d.ts.map +1 -0
  42. package/dist/features/prompt-editor/types.d.ts +1 -0
  43. package/dist/features/prompt-editor/types.d.ts.map +1 -1
  44. package/dist/index.d.ts +1 -0
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/index.js +32686 -1307
  47. package/dist/ui-libs.umd.js +33581 -2202
  48. package/package.json +26 -3
@@ -0,0 +1,5 @@
1
+ import type { MDEditorProps, MDEditorRef } from './types';
2
+ import './styles/md-editor.css';
3
+ export declare const MDEditor: import("react").ForwardRefExoticComponent<MDEditorProps & import("react").RefAttributes<MDEditorRef>>;
4
+ export default MDEditor;
5
+ //# sourceMappingURL=MDEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MDEditor.d.ts","sourceRoot":"","sources":["../../../src/features/md-editor/MDEditor.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EAOZ,MAAM,SAAS,CAAC;AAgBjB,OAAO,wBAAwB,CAAC;AA6BhC,eAAO,MAAM,QAAQ,uGAkyBpB,CAAC;AAIF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { Editor } from '@tiptap/react';
3
+ export interface AIContextMenuProps {
4
+ editor: Editor;
5
+ onAIRefine: (type: 'selection' | 'whole') => void;
6
+ enabled?: boolean;
7
+ }
8
+ export declare const AIContextMenu: React.FC<AIContextMenuProps>;
9
+ export default AIContextMenu;
10
+ //# sourceMappingURL=AIContextMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AIContextMenu.d.ts","sourceRoot":"","sources":["../../../../src/features/md-editor/components/AIContextMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAGvC,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,KAAK,IAAI,CAAC;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAOD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA6ItD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { AIRefinePanelProps } from '../types';
3
+ export declare const AIRefinePanel: React.FC<AIRefinePanelProps>;
4
+ export default AIRefinePanel;
5
+ //# sourceMappingURL=AIRefinePanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AIRefinePanel.d.ts","sourceRoot":"","sources":["../../../../src/features/md-editor/components/AIRefinePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAqBjF,OAAO,KAAK,EACV,kBAAkB,EAKnB,MAAM,UAAU,CAAC;AA4BlB,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAuhCtD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { Editor } from '@tiptap/react';
3
+ interface DragHandleProps {
4
+ editor: Editor;
5
+ }
6
+ export declare const DragHandle: React.FC<DragHandleProps>;
7
+ export {};
8
+ //# sourceMappingURL=DragHandle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DragHandle.d.ts","sourceRoot":"","sources":["../../../../src/features/md-editor/components/DragHandle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAG5C,UAAU,eAAe;IACvB,MAAM,EAAE,MAAM,CAAC;CAChB;AAQD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAgchD,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import type { Editor } from '@tiptap/react';
3
+ import type { InlineToolbarProps } from '../types';
4
+ export interface ExtendedInlineToolbarProps extends InlineToolbarProps {
5
+ onAIRefine?: () => void;
6
+ showAIButton?: boolean;
7
+ }
8
+ declare const LinkEditor: React.FC<{
9
+ editor: Editor;
10
+ initialUrl?: string;
11
+ onClose: () => void;
12
+ }>;
13
+ export declare const InlineToolbar: React.FC<ExtendedInlineToolbarProps>;
14
+ export { LinkEditor };
15
+ //# sourceMappingURL=InlineToolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineToolbar.d.ts","sourceRoot":"","sources":["../../../../src/features/md-editor/components/InlineToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,kBAAkB,EAAe,MAAM,UAAU,CAAC;AAsBhE,MAAM,WAAW,0BAA2B,SAAQ,kBAAkB;IACpE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAGD,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAsHA,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA0O9D,CAAC;AAGF,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { NodeViewProps } from '@tiptap/react';
3
+ import type { MentionChipProps } from '../types';
4
+ /**
5
+ * MentionChip component for rendering in the editor
6
+ */
7
+ export declare const MentionChipComponent: React.FC<NodeViewProps>;
8
+ /**
9
+ * Standalone MentionChip component for use outside the editor
10
+ */
11
+ export declare const MentionChip: React.FC<MentionChipProps>;
12
+ //# sourceMappingURL=MentionChip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MentionChip.d.ts","sourceRoot":"","sources":["../../../../src/features/md-editor/components/MentionChip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAe,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAyB9D;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwCxD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAmClD,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import type { SlashMenuProps } from '../types';
3
+ export interface SlashMenuRef {
4
+ onKeyDown: (event: KeyboardEvent) => boolean;
5
+ }
6
+ interface ExtendedSlashMenuProps extends SlashMenuProps {
7
+ highlightMentions?: boolean;
8
+ range?: {
9
+ from: number;
10
+ to: number;
11
+ };
12
+ }
13
+ export declare const SlashMenu: React.ForwardRefExoticComponent<ExtendedSlashMenuProps & React.RefAttributes<SlashMenuRef>>;
14
+ export {};
15
+ //# sourceMappingURL=SlashMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SlashMenu.d.ts","sourceRoot":"","sources":["../../../../src/features/md-editor/components/SlashMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoF,MAAM,OAAO,CAAC;AACzG,OAAO,KAAK,EAKV,cAAc,EACf,MAAM,UAAU,CAAC;AAuJlB,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,OAAO,CAAC;CAC9C;AAED,UAAU,sBAAuB,SAAQ,cAAc;IACrD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;CACtC;AAED,eAAO,MAAM,SAAS,6FAserB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { Editor } from '@tiptap/react';
3
+ interface TableToolbarProps {
4
+ editor: Editor;
5
+ theme?: string;
6
+ }
7
+ export declare const TableToolbar: React.FC<TableToolbarProps>;
8
+ export {};
9
+ //# sourceMappingURL=TableToolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableToolbar.d.ts","sourceRoot":"","sources":["../../../../src/features/md-editor/components/TableToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAWvC,UAAU,iBAAiB;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA+IpD,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { NodeViewProps } from '@tiptap/react';
3
+ import type { VariableChipProps } from '../types';
4
+ /**
5
+ * VariableChip component for rendering in the editor
6
+ */
7
+ export declare const VariableChipComponent: React.FC<NodeViewProps>;
8
+ /**
9
+ * Standalone VariableChip component for use outside the editor
10
+ */
11
+ export declare const VariableChip: React.FC<VariableChipProps>;
12
+ //# sourceMappingURL=VariableChip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VariableChip.d.ts","sourceRoot":"","sources":["../../../../src/features/md-editor/components/VariableChip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAgB,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAkDhE;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA2DzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAgDpD,CAAC"}
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import type { Variable } from '../types';
3
+ interface VariableMenuProps {
4
+ position: {
5
+ top: number;
6
+ left: number;
7
+ };
8
+ query: string;
9
+ onQueryChange: (query: string) => void;
10
+ onSelect: (variable: Variable) => void;
11
+ onClose: () => void;
12
+ envVariables?: Variable[];
13
+ memoryVariables?: Variable[];
14
+ systemVariables?: Variable[];
15
+ contentVariables?: Variable[];
16
+ }
17
+ export declare const VariableMenu: React.FC<VariableMenuProps>;
18
+ export {};
19
+ //# sourceMappingURL=VariableMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VariableMenu.d.ts","sourceRoot":"","sources":["../../../../src/features/md-editor/components/VariableMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,UAAU,CAAC;AAavD,UAAU,iBAAiB;IACzB,QAAQ,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC1B,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC/B;AAWD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA0QpD,CAAC"}
@@ -0,0 +1,9 @@
1
+ export { VariableChip, VariableChipComponent } from './VariableChip';
2
+ export { MentionChip, MentionChipComponent } from './MentionChip';
3
+ export { SlashMenu } from './SlashMenu';
4
+ export type { SlashMenuRef } from './SlashMenu';
5
+ export { VariableMenu } from './VariableMenu';
6
+ export { InlineToolbar, LinkEditor } from './InlineToolbar';
7
+ export { DragHandle } from './DragHandle';
8
+ export { TableToolbar } from './TableToolbar';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/md-editor/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { Extension } from '@tiptap/core';
2
+ export interface AIRefineExtensionOptions {
3
+ /** Callback when AI refine is triggered */
4
+ onTrigger?: (type: 'selection' | 'whole') => void;
5
+ /** Enable keyboard shortcut (Cmd/Ctrl+Shift+R) */
6
+ enableShortcut?: boolean;
7
+ }
8
+ declare module '@tiptap/core' {
9
+ interface Commands<ReturnType> {
10
+ aiRefine: {
11
+ /**
12
+ * Open AI refine panel for selection or whole content
13
+ */
14
+ openAIRefine: (type?: 'selection' | 'whole') => ReturnType;
15
+ };
16
+ }
17
+ }
18
+ export declare const AIRefineExtension: Extension<AIRefineExtensionOptions, any>;
19
+ export default AIRefineExtension;
20
+ //# sourceMappingURL=AIRefineExtension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AIRefineExtension.d.ts","sourceRoot":"","sources":["../../../../src/features/md-editor/extensions/AIRefineExtension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA2B,MAAM,cAAc,CAAC;AAElE,MAAM,WAAW,wBAAwB;IACvC,2CAA2C;IAC3C,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,KAAK,IAAI,CAAC;IAClD,kDAAkD;IAClD,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,QAAQ,EAAE;YACR;;eAEG;YACH,YAAY,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,KAAK,UAAU,CAAC;SAC5D,CAAC;KACH;CACF;AAED,eAAO,MAAM,iBAAiB,0CAgD5B,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { Node } from '@tiptap/core';
2
+ import type { MentionType } from '../types';
3
+ export interface MentionChipOptions {
4
+ HTMLAttributes: Record<string, unknown>;
5
+ }
6
+ declare module '@tiptap/core' {
7
+ interface Commands<ReturnType> {
8
+ mentionChip: {
9
+ /**
10
+ * Insert a mention chip
11
+ */
12
+ insertMentionChip: (attrs: {
13
+ mentionType: MentionType;
14
+ id: string;
15
+ name: string;
16
+ icon?: string;
17
+ }) => ReturnType;
18
+ };
19
+ }
20
+ }
21
+ export declare const MentionChipExtension: Node<MentionChipOptions, any>;
22
+ //# sourceMappingURL=MentionChip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MentionChip.d.ts","sourceRoot":"","sources":["../../../../src/features/md-editor/extensions/MentionChip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAGrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,WAAW,EAAE;YACX;;eAEG;YACH,iBAAiB,EAAE,CAAC,KAAK,EAAE;gBACzB,WAAW,EAAE,WAAW,CAAC;gBACzB,EAAE,EAAE,MAAM,CAAC;gBACX,IAAI,EAAE,MAAM,CAAC;gBACb,IAAI,CAAC,EAAE,MAAM,CAAC;aACf,KAAK,UAAU,CAAC;SAClB,CAAC;KACH;CACF;AAED,eAAO,MAAM,oBAAoB,+BAiH/B,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { Extension } from '@tiptap/core';
2
+ import { SuggestionOptions } from '@tiptap/suggestion';
3
+ import type { Editor } from '@tiptap/core';
4
+ import type { SlashMenuCategory, Variable, Mention } from '../types';
5
+ export interface SlashCommandOptions {
6
+ suggestion: Partial<SuggestionOptions<SlashMenuCategory>>;
7
+ agents?: Mention[];
8
+ tools?: Mention[];
9
+ knowledge?: Mention[];
10
+ envVariables?: Variable[];
11
+ memoryVariables?: Variable[];
12
+ systemVariables?: Variable[];
13
+ contentVariables?: Variable[];
14
+ onSelectItem?: (item: Variable | Mention) => void;
15
+ highlightMentions?: boolean;
16
+ }
17
+ export declare const SlashCommandExtension: Extension<SlashCommandOptions, any>;
18
+ export declare function createSlashCommandSuggestion(categories: SlashMenuCategory[], onCommand?: (editor: Editor, category: SlashMenuCategory) => void): Partial<SuggestionOptions<SlashMenuCategory>>;
19
+ //# sourceMappingURL=SlashCommand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SlashCommand.d.ts","sourceRoot":"","sources":["../../../../src/features/md-editor/extensions/SlashCommand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAc,iBAAiB,EAAmB,MAAM,oBAAoB,CAAC;AAGpF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGrE,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,OAAO,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAE1D,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC1B,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC9B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,KAAK,IAAI,CAAC;IAElD,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,qBAAqB,qCAwIhC,CAAC;AAGH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,iBAAiB,EAAE,EAC/B,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,KAAK,IAAI,GAChE,OAAO,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC,CAmB/C"}
@@ -0,0 +1,21 @@
1
+ import { Node } from '@tiptap/core';
2
+ import type { VariableType } from '../types';
3
+ export interface VariableChipOptions {
4
+ HTMLAttributes: Record<string, unknown>;
5
+ }
6
+ declare module '@tiptap/core' {
7
+ interface Commands<ReturnType> {
8
+ variableChip: {
9
+ /**
10
+ * Insert a variable chip
11
+ */
12
+ insertVariableChip: (attrs: {
13
+ variableType: VariableType;
14
+ path: string;
15
+ displayName?: string;
16
+ }) => ReturnType;
17
+ };
18
+ }
19
+ }
20
+ export declare const VariableChipExtension: Node<VariableChipOptions, any>;
21
+ //# sourceMappingURL=VariableChip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VariableChip.d.ts","sourceRoot":"","sources":["../../../../src/features/md-editor/extensions/VariableChip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAGrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,MAAM,WAAW,mBAAmB;IAClC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,YAAY,EAAE;YACZ;;eAEG;YACH,kBAAkB,EAAE,CAAC,KAAK,EAAE;gBAC1B,YAAY,EAAE,YAAY,CAAC;gBAC3B,IAAI,EAAE,MAAM,CAAC;gBACb,WAAW,CAAC,EAAE,MAAM,CAAC;aACtB,KAAK,UAAU,CAAC;SAClB,CAAC;KACH;CACF;AAED,eAAO,MAAM,qBAAqB,gCAiHhC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { VariableChipExtension } from './VariableChip';
2
+ export { MentionChipExtension } from './MentionChip';
3
+ export { SlashCommandExtension, createSlashCommandSuggestion } from './SlashCommand';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/md-editor/extensions/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,9 @@
1
+ export { MDEditor, default } from './MDEditor';
2
+ export type { BlockType, InlineStyle, TextSegment, VariableSegment, MentionSegment, InlineContent, Block, BlockMeta, EditorDocument, VariableType, Variable, VariableCategory, MentionType, Mention, MentionCategory, SlashMenuItem, SlashMenuCategory, SlashMenuConfig, MenuPosition, ToolbarItem, MDEditorFeatures, MDEditorProps, MDEditorRef, VariableChipProps, MentionChipProps, SlashMenuProps, InlineToolbarProps, CategoryMenuProps, VariableChipNodeAttrs, MentionChipNodeAttrs, AIPanelPosition, AIRefineConfig, AIRefineContext, AIMessage, AIRefinementMode, AIRefineRequest, AIRefineResponse, AIRefinePanelProps, } from './types';
3
+ export { VariableChip, VariableChipComponent, MentionChip, MentionChipComponent, SlashMenu, VariableMenu, InlineToolbar, LinkEditor, TableToolbar, } from './components';
4
+ export { AIRefinePanel } from './components/AIRefinePanel';
5
+ export { AIContextMenu } from './components/AIContextMenu';
6
+ export { VariableChipExtension, MentionChipExtension, SlashCommandExtension, createSlashCommandSuggestion, } from './extensions';
7
+ export { AIRefineExtension } from './extensions/AIRefineExtension';
8
+ export { editorJsonToMarkdown, markdownToEditorJson, documentToEditorJson, editorJsonToDocument, } from './utils';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/md-editor/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAG/C,YAAY,EAEV,SAAS,EACT,WAAW,EACX,WAAW,EACX,eAAe,EACf,cAAc,EACd,aAAa,EACb,KAAK,EACL,SAAS,EACT,cAAc,EAEd,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAEhB,WAAW,EACX,OAAO,EACP,eAAe,EAEf,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,YAAY,EAEZ,WAAW,EAEX,gBAAgB,EAEhB,aAAa,EACb,WAAW,EAEX,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EAEjB,qBAAqB,EACrB,oBAAoB,EAEpB,eAAe,EACf,cAAc,EACd,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,WAAW,EACX,oBAAoB,EACpB,SAAS,EACT,YAAY,EACZ,aAAa,EACb,UAAU,EACV,YAAY,GACb,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAGnE,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,SAAS,CAAC"}