@innoviatech/lexical-text-editor 0.0.5 → 0.0.7

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 (38) hide show
  1. package/README.md +161 -0
  2. package/package.json +1 -1
  3. package/src/styles/lexical-editor.css +154 -0
  4. package/dist/components/AlignmentSelectionList.d.ts +0 -9
  5. package/dist/components/ColorPicker.d.ts +0 -7
  6. package/dist/components/ContentPreview.d.ts +0 -10
  7. package/dist/components/DropdownList.d.ts +0 -9
  8. package/dist/components/HeadingSelectionList.d.ts +0 -9
  9. package/dist/components/ImageComponent.d.ts +0 -11
  10. package/dist/components/InsertDropdownList.d.ts +0 -1
  11. package/dist/components/LexicalTextEditor.d.ts +0 -9
  12. package/dist/components/LinkModal.d.ts +0 -9
  13. package/dist/components/Separator.d.ts +0 -1
  14. package/dist/components/ui/button.d.ts +0 -14
  15. package/dist/components/ui/command.d.ts +0 -18
  16. package/dist/components/ui/dialog.d.ts +0 -15
  17. package/dist/components/ui/input.d.ts +0 -3
  18. package/dist/components/ui/popover.d.ts +0 -7
  19. package/dist/components/ui/scroll-area.d.ts +0 -5
  20. package/dist/components/ui/tooltip.d.ts +0 -7
  21. package/dist/constants/index.d.ts +0 -71
  22. package/dist/index.d.ts +0 -12
  23. package/dist/index.esm.js +0 -2
  24. package/dist/index.esm.js.map +0 -1
  25. package/dist/index.js +0 -2
  26. package/dist/index.js.map +0 -1
  27. package/dist/lib/utils.d.ts +0 -1
  28. package/dist/nodes/ImageNode.d.ts +0 -43
  29. package/dist/nodes/VideoNode.d.ts +0 -30
  30. package/dist/nodes/YoutubeNode.d.ts +0 -25
  31. package/dist/plugins/ColorPlugin.d.ts +0 -1
  32. package/dist/plugins/CustomOnChangePlugin.d.ts +0 -6
  33. package/dist/plugins/ImagePlugin.d.ts +0 -1
  34. package/dist/plugins/ListPlugin.d.ts +0 -5
  35. package/dist/plugins/ToolbarPlugin.d.ts +0 -3
  36. package/dist/plugins/VideoPlugin.d.ts +0 -1
  37. package/dist/style.css +0 -2
  38. package/innoviatech-lexical-text-editor-0.0.5.tgz +0 -0
package/README.md ADDED
@@ -0,0 +1,161 @@
1
+ # @innoviatech/lexical-text-editor
2
+
3
+ A powerful, customizable rich text editor component built with Lexical, React, and Tailwind CSS. Features a modern toolbar, image support, video embedding, and comprehensive text formatting options.
4
+
5
+ ## Features
6
+
7
+ - 🎨 **Rich Text Editing** — Bold, italic, underline, strikethrough, code blocks
8
+ - 📝 **Text Formatting** — Headers, paragraphs, lists (bulleted & numbered), quotes
9
+ - 🔗 **Link Support** — Insert and edit hyperlinks
10
+ - 🖼️ **Media Embedding** — Images and YouTube videos with resizing
11
+ - 🎯 **Customizable Toolbar** — Modern, intuitive interface
12
+ - 🎨 **Color Picker** — Text and background color options
13
+ - 📱 **Responsive Design** — Works on desktop and mobile
14
+ - 🎪 **Radix UI Components** — Accessible, well-designed UI elements
15
+ - ⚡ **TypeScript Support** — Fully typed for better development experience
16
+
17
+ ---
18
+
19
+ ## Installation
20
+
21
+ ```bash
22
+ npm install @innoviatech/lexical-text-editor
23
+ ```
24
+
25
+ ### Peer Dependencies
26
+
27
+ This package requires several peer dependencies. Make sure to install them in your project:
28
+
29
+ ```bash
30
+ # UI dependencies (required for full functionality)
31
+ npm install react-icons lucide-react @radix-ui/react-slot @radix-ui/react-tooltip @radix-ui/react-popover @radix-ui/react-dialog clsx tailwind-merge class-variance-authority react-color
32
+ ```
33
+
34
+
35
+
36
+
37
+
38
+ ## Quick Start
39
+
40
+ ```tsx
41
+ import React, { useState } from 'react';
42
+ import { LexicalTextEditor } from '@innoviatech/lexical-text-editor';
43
+ import '@innoviatech/lexical-text-editor/style.css';
44
+
45
+ function App() {
46
+ const [content, setContent] = useState('');
47
+
48
+ return (
49
+ <div style={{ padding: '20px', maxWidth: '900px', margin: '0 auto' }}>
50
+ <LexicalTextEditor
51
+ name="my-editor"
52
+ value={content}
53
+ onChange={setContent}
54
+ placeholder="Start typing your content here..."
55
+ />
56
+ </div>
57
+ );
58
+ }
59
+
60
+ export default App;
61
+ ```
62
+
63
+ ---
64
+
65
+ ## Props
66
+
67
+ | Prop | Type | Required | Default | Description |
68
+ |-------------|-------------------------------------|----------|---------------|---------------------------------------------|
69
+ | `name` | `string` | Yes | — | Unique identifier for the editor instance |
70
+ | `value` | `string` | Yes | — | Current editor content (HTML string) |
71
+ | `onChange` | `(value: string) => void` | Yes | — | Callback fired when content changes |
72
+ | `placeholder`| `string` | No | `"Some Text"` | Placeholder text when editor is empty |
73
+
74
+ ---
75
+
76
+ ## Advanced Usage
77
+
78
+ ### With Initial Content
79
+
80
+ ```tsx
81
+ import React, { useState } from 'react';
82
+ import { LexicalTextEditor } from '@innoviatech/lexical-text-editor';
83
+ import '@innoviatech/lexical-text-editor/style.css';
84
+
85
+ function App() {
86
+ const [content, setContent] = useState('<p>Welcome to the editor!</p><ul><li>Feature 1</li><li>Feature 2</li></ul>');
87
+
88
+ const handleSave = () => {
89
+ console.log('Current content:', content);
90
+ };
91
+
92
+ return (
93
+ <div>
94
+ <LexicalTextEditor
95
+ name="content-editor"
96
+ value={content}
97
+ onChange={setContent}
98
+ placeholder="Write your content..."
99
+ />
100
+ <button onClick={handleSave}>Save Content</button>
101
+ </div>
102
+ );
103
+ }
104
+
105
+ export default App;
106
+ ```
107
+
108
+
109
+ ## Toolbar Features
110
+
111
+ - Text Formatting: Bold, Italic, Underline, Strikethrough
112
+ - Headings: H1–H6
113
+ - Lists: Bulleted and Numbered
114
+ - Alignment: Left, Center, Right, Justify
115
+ - Text Case: Uppercase, Lowercase, Capitalize
116
+ - Colors: Text & background color picker
117
+ - Media: Image upload, YouTube embedding, video node
118
+ - Links: Insert and edit hyperlinks
119
+ - Code: Inline code & code blocks
120
+ - Quotes: Blockquote formatting
121
+ - Undo/Redo, Clear formatting, Remove link
122
+
123
+ ---
124
+
125
+ ## Browser Support
126
+
127
+ - Chrome 90+
128
+ - Firefox 88+
129
+ - Safari 14+
130
+ - Edge 90+
131
+
132
+ ---
133
+
134
+ ## Troubleshooting
135
+
136
+ - **Missing peer dependencies:** install required packages
137
+ - **CSS not loading:** `import '@innoviatech/lexical-text-editor/style.css'`
138
+ - **Icons not showing:** verify `react-icons` and `lucide-react`
139
+ - **Toolbar not working:** ensure Radix UI peer deps installed
140
+
141
+ ---
142
+
143
+ ## Version Compatibility
144
+
145
+ - React 18+
146
+ - Lexical 0.36.0+
147
+ - TypeScript 5.0+
148
+
149
+ ---
150
+
151
+ ## License
152
+
153
+ MIT © Innoviatech
154
+
155
+ ---
156
+
157
+ ## Support
158
+
159
+ For issues and feature requests, open an issue on GitHub.
160
+
161
+ Built with ❤️ by Innoviatech
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innoviatech/lexical-text-editor",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",
@@ -3,6 +3,160 @@
3
3
  @tailwind components;
4
4
  @tailwind utilities;
5
5
 
6
+ :root {
7
+ font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
8
+ line-height: 1.5;
9
+ font-weight: 400;
10
+
11
+ color-scheme: light dark;
12
+ color: rgba(255, 255, 255, 0.87);
13
+ background-color: #242424;
14
+
15
+ font-synthesis: none;
16
+ text-rendering: optimizeLegibility;
17
+ -webkit-font-smoothing: antialiased;
18
+ -moz-osx-font-smoothing: grayscale;
19
+ --radius: 0.625rem;
20
+ --background: oklch(1 0 0);
21
+ --foreground: oklch(0.145 0 0);
22
+ --card: oklch(1 0 0);
23
+ --card-foreground: oklch(0.145 0 0);
24
+ --popover: oklch(1 0 0);
25
+ --popover-foreground: oklch(0.145 0 0);
26
+ --primary: oklch(0.205 0 0);
27
+ --primary-foreground: oklch(0.985 0 0);
28
+ --secondary: oklch(0.97 0 0);
29
+ --secondary-foreground: oklch(0.205 0 0);
30
+ --muted: oklch(0.97 0 0);
31
+ --muted-foreground: oklch(0.556 0 0);
32
+ --accent: oklch(0.97 0 0);
33
+ --accent-foreground: oklch(0.205 0 0);
34
+ --destructive: oklch(0.577 0.245 27.325);
35
+ --border: oklch(0.922 0 0);
36
+ --input: oklch(0.922 0 0);
37
+ --ring: oklch(0.708 0 0);
38
+ --chart-1: oklch(0.646 0.222 41.116);
39
+ --chart-2: oklch(0.6 0.118 184.704);
40
+ --chart-3: oklch(0.398 0.07 227.392);
41
+ --chart-4: oklch(0.828 0.189 84.429);
42
+ --chart-5: oklch(0.769 0.188 70.08);
43
+ --sidebar: oklch(0.985 0 0);
44
+ --sidebar-foreground: oklch(0.145 0 0);
45
+ --sidebar-primary: oklch(0.205 0 0);
46
+ --sidebar-primary-foreground: oklch(0.985 0 0);
47
+ --sidebar-accent: oklch(0.97 0 0);
48
+ --sidebar-accent-foreground: oklch(0.205 0 0);
49
+ --sidebar-border: oklch(0.922 0 0);
50
+ --sidebar-ring: oklch(0.708 0 0);
51
+ }
52
+
53
+ a {
54
+ font-weight: 500;
55
+ color: #646cff;
56
+ text-decoration: inherit;
57
+ }
58
+ a:hover {
59
+ color: #535bf2;
60
+ }
61
+
62
+ body {
63
+ margin: 0;
64
+ display: flex;
65
+ place-items: center;
66
+ min-width: 320px;
67
+ min-height: 100vh;
68
+ }
69
+
70
+
71
+
72
+ @media (prefers-color-scheme: light) {
73
+ :root {
74
+ color: #213547;
75
+ background-color: #ffffff;
76
+ }
77
+ a:hover {
78
+ color: #747bff;
79
+ }
80
+ button {
81
+ background-color: #f9f9f9;
82
+ }
83
+ }
84
+
85
+ @theme inline {
86
+ --radius-sm: calc(var(--radius) - 4px);
87
+ --radius-md: calc(var(--radius) - 2px);
88
+ --radius-lg: var(--radius);
89
+ --radius-xl: calc(var(--radius) + 4px);
90
+ --color-background: var(--background);
91
+ --color-foreground: var(--foreground);
92
+ --color-card: var(--card);
93
+ --color-card-foreground: var(--card-foreground);
94
+ --color-popover: var(--popover);
95
+ --color-popover-foreground: var(--popover-foreground);
96
+ --color-primary: var(--primary);
97
+ --color-primary-foreground: var(--primary-foreground);
98
+ --color-secondary: var(--secondary);
99
+ --color-secondary-foreground: var(--secondary-foreground);
100
+ --color-muted: var(--muted);
101
+ --color-muted-foreground: var(--muted-foreground);
102
+ --color-accent: var(--accent);
103
+ --color-accent-foreground: var(--accent-foreground);
104
+ --color-destructive: var(--destructive);
105
+ --color-border: var(--border);
106
+ --color-input: var(--input);
107
+ --color-ring: var(--ring);
108
+ --color-chart-1: var(--chart-1);
109
+ --color-chart-2: var(--chart-2);
110
+ --color-chart-3: var(--chart-3);
111
+ --color-chart-4: var(--chart-4);
112
+ --color-chart-5: var(--chart-5);
113
+ --color-sidebar: var(--sidebar);
114
+ --color-sidebar-foreground: var(--sidebar-foreground);
115
+ --color-sidebar-primary: var(--sidebar-primary);
116
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
117
+ --color-sidebar-accent: var(--sidebar-accent);
118
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
119
+ --color-sidebar-border: var(--sidebar-border);
120
+ --color-sidebar-ring: var(--sidebar-ring);
121
+ }
122
+
123
+ .dark {
124
+ --background: oklch(0.145 0 0);
125
+ --foreground: oklch(0.985 0 0);
126
+ --card: oklch(0.205 0 0);
127
+ --card-foreground: oklch(0.985 0 0);
128
+ --popover: oklch(0.205 0 0);
129
+ --popover-foreground: oklch(0.985 0 0);
130
+ --primary: oklch(0.922 0 0);
131
+ --primary-foreground: oklch(0.205 0 0);
132
+ --secondary: oklch(0.269 0 0);
133
+ --secondary-foreground: oklch(0.985 0 0);
134
+ --muted: oklch(0.269 0 0);
135
+ --muted-foreground: oklch(0.708 0 0);
136
+ --accent: oklch(0.269 0 0);
137
+ --accent-foreground: oklch(0.985 0 0);
138
+ --destructive: oklch(0.704 0.191 22.216);
139
+ --border: oklch(1 0 0 / 10%);
140
+ --input: oklch(1 0 0 / 15%);
141
+ --ring: oklch(0.556 0 0);
142
+ --chart-1: oklch(0.488 0.243 264.376);
143
+ --chart-2: oklch(0.696 0.17 162.48);
144
+ --chart-3: oklch(0.769 0.188 70.08);
145
+ --chart-4: oklch(0.627 0.265 303.9);
146
+ --chart-5: oklch(0.645 0.246 16.439);
147
+ --sidebar: oklch(0.205 0 0);
148
+ --sidebar-foreground: oklch(0.985 0 0);
149
+ --sidebar-primary: oklch(0.488 0.243 264.376);
150
+ --sidebar-primary-foreground: oklch(0.985 0 0);
151
+ --sidebar-accent: oklch(0.269 0 0);
152
+ --sidebar-accent-foreground: oklch(0.985 0 0);
153
+ --sidebar-border: oklch(1 0 0 / 10%);
154
+ --sidebar-ring: oklch(0.556 0 0);
155
+ }
156
+
157
+
158
+
159
+
6
160
  /* Component-specific styles - scoped to your editor */
7
161
  .lexical-text-editor {
8
162
  /* Custom scrollbar styles - scoped to editor only */
@@ -1,9 +0,0 @@
1
- import { RichTextAction } from "../constants/index";
2
- interface Props {
3
- onAction: (id: RichTextAction) => void;
4
- alignmentSelectionMap: {
5
- [id: string]: boolean;
6
- };
7
- }
8
- export declare function AlignmentSelectionList({ onAction, alignmentSelectionMap }: Props): import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,7 +0,0 @@
1
- interface ColorPickerProps {
2
- color: string;
3
- onChange: (color: string) => void;
4
- icon: React.ReactElement;
5
- }
6
- export default function ColorPicker({ color, onChange, icon }: ColorPickerProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,10 +0,0 @@
1
- type HtmlPreviewProps = {
2
- value: string;
3
- };
4
- export declare function HtmlPreview({ value }: HtmlPreviewProps): import("react/jsx-runtime").JSX.Element;
5
- type ContentPreviewDialogProps = {
6
- value: string;
7
- triggerLabel?: string;
8
- };
9
- export default function ContentPreviewDialog({ value, triggerLabel }: ContentPreviewDialogProps): import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,9 +0,0 @@
1
- import { RichTextAction } from "../constants/index";
2
- interface Props {
3
- onAction: (id: RichTextAction) => void;
4
- selectionMap: {
5
- [id: string]: boolean;
6
- };
7
- }
8
- export declare function DropdownList({ onAction, selectionMap }: Props): import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,9 +0,0 @@
1
- import { type HeadingTagType } from '@lexical/rich-text';
2
- interface Props {
3
- updateHeading: (heading: HeadingTagType | "normal") => void;
4
- headingSelectionMap: {
5
- [id: string]: boolean;
6
- };
7
- }
8
- export declare function HeadingSelectionList({ updateHeading, headingSelectionMap }: Props): import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,11 +0,0 @@
1
- import { type NodeKey } from "lexical";
2
- type ImageComponentProps = {
3
- src: string;
4
- altText: string;
5
- nodeKey: NodeKey;
6
- width?: number | "inherit";
7
- height?: number | "inherit";
8
- maxWidth: number;
9
- };
10
- export declare const ImageComponent: React.FC<ImageComponentProps>;
11
- export {};
@@ -1 +0,0 @@
1
- export declare function InsertDropdownList({}: {}): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import "../styles/lexical-editor.css";
3
- export interface LexiTexProps {
4
- value: string;
5
- onChange: (value: string) => void;
6
- placeholder?: string;
7
- name: string;
8
- }
9
- export declare const LexicalTextEditor: React.FC<LexiTexProps>;
@@ -1,9 +0,0 @@
1
- interface LinkEditorProps {
2
- linkUrl: string;
3
- setLinkUrl: React.Dispatch<React.SetStateAction<string>>;
4
- onConfirm: (url: string) => void;
5
- onCancel: () => void;
6
- removeLink: () => void;
7
- }
8
- export default function LinkModal({ linkUrl, setLinkUrl, onConfirm, onCancel, removeLink, }: LinkEditorProps): import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1 +0,0 @@
1
- export default function Separator(): import("react/jsx-runtime").JSX.Element;
@@ -1,14 +0,0 @@
1
- import * as React from "react";
2
- declare const buttonVariants: (props?: {
3
- variant?: "link" | "default" | "toolbar" | "toolbarActive" | "destructive" | "outline" | "secondary" | "ghost";
4
- size?: "icon" | "default" | "sm" | "lg";
5
- } & {
6
- className?: string;
7
- }) => string;
8
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
9
- variant?: "default" | "toolbar" | "toolbarActive" | "destructive" | "outline" | "secondary" | "ghost" | "link";
10
- size?: "default" | "sm" | "lg" | "icon";
11
- asChild?: boolean;
12
- }
13
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
14
- export { Button, buttonVariants };
@@ -1,18 +0,0 @@
1
- import * as React from "react";
2
- import { Command as CommandPrimitive } from "cmdk";
3
- import { Dialog } from "./dialog";
4
- declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
5
- declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
6
- title?: string;
7
- description?: string;
8
- className?: string;
9
- showCloseButton?: boolean;
10
- }): import("react/jsx-runtime").JSX.Element;
11
- declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
12
- declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): import("react/jsx-runtime").JSX.Element;
13
- declare function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
14
- declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
15
- declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
16
- declare function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
17
- declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
18
- export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
@@ -1,15 +0,0 @@
1
- import * as React from "react";
2
- import * as DialogPrimitive from "@radix-ui/react-dialog";
3
- declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
- declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
6
- declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
7
- declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
8
- declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
9
- showCloseButton?: boolean;
10
- }): import("react/jsx-runtime").JSX.Element;
11
- declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
12
- declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
13
- declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
14
- declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
15
- export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -1,3 +0,0 @@
1
- import * as React from "react";
2
- declare function Input({ className, type, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
3
- export { Input };
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- import * as PopoverPrimitive from "@radix-ui/react-popover";
3
- declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
- declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
6
- declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
7
- export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
@@ -1,5 +0,0 @@
1
- import * as React from "react";
2
- import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
3
- declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): import("react/jsx-runtime").JSX.Element;
5
- export { ScrollArea, ScrollBar };
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- import * as TooltipPrimitive from "@radix-ui/react-tooltip";
3
- declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
4
- declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
- declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
- declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
- export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -1,71 +0,0 @@
1
- export declare enum RichTextAction {
2
- Bold = "bold",
3
- Italics = "italics",
4
- Underline = "underline",
5
- Quote = "quote",
6
- Lowercase = "lowercase",
7
- Uppercase = "uppercase",
8
- Capitalize = "capitalize",
9
- Strikethrough = "strikethrough",
10
- Superscript = "superscript",
11
- Subscript = "subscript",
12
- Highlight = "highlight",
13
- Code = "code",
14
- Link = "link",
15
- LeftAlign = "leftAlign",
16
- CenterAlign = "centerAlign",
17
- RightAlign = "rightAlign",
18
- JustifyAlign = "justifyAlign",
19
- Divider = "divider",
20
- Undo = "undo",
21
- Redo = "redo"
22
- }
23
- export declare enum HeadingAction {
24
- Normal = "normal",
25
- H1 = "h1",
26
- H2 = "h2",
27
- H3 = "h3",
28
- H4 = "h4",
29
- H5 = "h5",
30
- H6 = "h6"
31
- }
32
- export declare const RICH_TEXT_FORMAT_OPTIONS: ({
33
- id: RichTextAction;
34
- icon: import("react/jsx-runtime").JSX.Element;
35
- label: string;
36
- fontSize?: undefined;
37
- } | {
38
- id: RichTextAction;
39
- icon: import("react/jsx-runtime").JSX.Element;
40
- label: string;
41
- fontSize: number;
42
- })[];
43
- export declare const RICH_TEXT_OPTIONS: ({
44
- id: RichTextAction;
45
- icon: import("react/jsx-runtime").JSX.Element;
46
- label: string;
47
- } | {
48
- id: RichTextAction;
49
- icon?: undefined;
50
- label?: undefined;
51
- })[];
52
- export declare const RICH_REDO_UNDO_OPTIONS: ({
53
- id: RichTextAction;
54
- icon: import("react/jsx-runtime").JSX.Element;
55
- label: string;
56
- } | {
57
- id: RichTextAction;
58
- icon?: undefined;
59
- label?: undefined;
60
- })[];
61
- export declare const RICH_ALIGNMENT_OPTIONS: {
62
- id: RichTextAction;
63
- icon: import("react/jsx-runtime").JSX.Element;
64
- label: string;
65
- }[];
66
- export declare const LOW_PRIORIRTY = 1;
67
- export declare const HEADINGS: {
68
- id: string;
69
- label: string;
70
- icon: import("react/jsx-runtime").JSX.Element;
71
- }[];
package/dist/index.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
-
3
- interface LexiTexProps {
4
- value: string;
5
- onChange: (value: string) => void;
6
- placeholder?: string;
7
- name: string;
8
- }
9
- declare const LexicalTextEditor: React.FC<LexiTexProps>;
10
-
11
- export { LexicalTextEditor };
12
- export type { LexiTexProps as LexicalTextEditorProps };