learning_ai_common_plat/packages/rich-text/src/index.ts
saravanakumardb1 fc8502ac0c feat(rich-text): @bytelyst/rich-text@0.1.0 on Tiptap v3
RichTextEditor (toolbar + slash menu + async mentions, SSR-safe via
immediatelyRender:false) + RichTextViewer (generateHTML, server-renderable) +
standalone Toolbar. Pure filterSlashItems/filterUsers helpers. 12/12 vitest
(incl. live editor mount + bold toggle in happy-dom); tsc clean; published to
Gitea.
2026-05-28 18:20:34 -07:00

34 lines
1.4 KiB
TypeScript

/**
* @bytelyst/rich-text — Tiptap v3 editor + viewer for the ByteLyst ecosystem.
*
* Exports (0.1.0 — Wave 9.B):
* <RichTextEditor> toolbar + editing surface, slash menu, async mentions
* <RichTextViewer> SSR-safe read-only renderer (generateHTML)
* <Toolbar> standalone formatting toolbar bound to an Editor
* buildExtensions shared StarterKit + Link + Placeholder schema
* SlashCommands `/` command extension + defaultSlashItems / filterSlashItems
* createMention `@`-mention extension factory + filterUsers helper
*
* Built on Tiptap v3.23.x (current stable). SSR-safe for Next via
* `immediatelyRender: false`.
*/
export { RichTextEditor } from './RichTextEditor.js';
export type { RichTextEditorProps } from './RichTextEditor.js';
export { RichTextViewer } from './RichTextViewer.js';
export type { RichTextViewerProps } from './RichTextViewer.js';
export { Toolbar } from './Toolbar.js';
export type { ToolbarProps } from './Toolbar.js';
export { buildExtensions } from './extensions.js';
export type { BuildExtensionsOptions } from './extensions.js';
export { SlashCommands, defaultSlashItems, filterSlashItems } from './slashMenu.js';
export type { SlashItem } from './slashMenu.js';
export { createMention, filterUsers } from './mention.js';
export type { MentionUser, UserSearchFn } from './mention.js';
export type { JSONContent } from '@tiptap/core';