tiptop-editor 1.0.12 → 1.0.13

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/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Editor, EditorContentProps, Range, UseEditorOptions } from '@tiptap/react';
2
2
  import { icons } from 'lucide-react';
3
- export type EditorButtonProps = {
3
+ export interface EditorButtonProps {
4
4
  tooltipText?: React.ReactNode;
5
5
  isIconOnly?: boolean;
6
6
  isDisabled?: boolean;
@@ -13,8 +13,8 @@ export type EditorButtonProps = {
13
13
  variant?: "flat" | "shadow" | "solid" | "bordered" | "light" | "faded" | "ghost";
14
14
  color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
15
15
  onPressed?: () => void;
16
- };
17
- export type SlashCommandGroupCommandsProps = {
16
+ }
17
+ export interface SlashCommandGroupCommandsProps {
18
18
  key: string;
19
19
  title: string;
20
20
  icon: string;
@@ -23,12 +23,26 @@ export type SlashCommandGroupCommandsProps = {
23
23
  editor: Editor;
24
24
  range: Range;
25
25
  }) => void;
26
- };
27
- export type SlashCommandGroupProps = {
26
+ }
27
+ export interface SlashCommandGroupProps {
28
28
  key: string;
29
29
  title: string;
30
30
  commands: SlashCommandGroupCommandsProps[];
31
- };
31
+ }
32
32
  export type TiptopEditorProps = Omit<EditorContentProps, 'editor'> & {
33
33
  editorOptions?: Partial<UseEditorOptions>;
34
34
  };
35
+ export interface ColorButtonProps {
36
+ editor: Editor;
37
+ buttonType: string | 'text' | 'highlight';
38
+ hsl: string;
39
+ color: string;
40
+ bgColor: string;
41
+ tooltipText?: string;
42
+ tooltipDisabled?: boolean;
43
+ }
44
+ export interface TextSelectionMenuProps {
45
+ editor: Editor;
46
+ prepend?: React.ReactNode;
47
+ append?: React.ReactNode;
48
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiptop-editor",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Notion-like editor built with Tiptap v3 and HeroUI",
5
5
  "type": "module",
6
6
  "main": "./dist/tiptop-editor.umd.js",