ct-rich-text-editor 1.0.4 → 1.0.6

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/index.js CHANGED
@@ -1,16 +1,16 @@
1
- import { f as u, E as h, k as v, h as A, g as l, v as y } from "./index-e21f8694.js";
1
+ import { f as u, E as h, k as v, h as A, g as l, v as y } from "./index-dc0603c6.js";
2
2
  import "react";
3
3
  import "@emotion/styled";
4
4
  import "@lexical/utils";
5
5
  import "lexical";
6
6
  import "react-dom";
7
7
  import "@lexical/table";
8
+ import "axios";
8
9
  import "@lexical/code";
9
10
  import "@lexical/link";
10
11
  import "@emotion/react";
11
- import "axios";
12
- import "@mui/material";
13
12
  import "emoji-picker-react";
13
+ import "@mui/material";
14
14
  export {
15
15
  u as ConfigurableEditorWithAuth,
16
16
  h as EditorProvider,
@@ -0,0 +1,3 @@
1
+ import { ClassValue } from 'clsx';
2
+
3
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -1,2 +1,5 @@
1
- declare const useStyles: (props?: any) => import('@mui/styles/withStyles').ClassNameMap<"contentEditable" | "placeholder">;
1
+ declare const useStyles: () => {
2
+ contentEditable: string;
3
+ placeholder: string;
4
+ };
2
5
  export default useStyles;
@@ -1,2 +1,2 @@
1
1
  export { default as SignatureCanvasDialog } from './SignatureCanvasDialog';
2
- export { INSERT_SIGNATURE_COMMAND, SignatureCanvasPlugin } from './SignatureCanvasPlugin';
2
+ export { INSERT_SIGNATURE_COMMAND, SignatureCanvasPlugin, } from './SignatureCanvasPlugin';
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { SvgIconProps } from '@mui/material/SvgIcon';
2
1
  import { EmojiClickData } from 'emoji-picker-react';
3
2
  import { ElementFormatType, LexicalEditor, TextFormatType } from '../node_modules/lexical';
3
+ import { LucideProps } from 'lucide-react';
4
4
  import { default as React, Dispatch, MouseEvent, ReactElement } from 'react';
5
5
  import { blockTypeToBlockName } from './constants';
6
6
  import { ImagePayload } from './nodes/ImageNode';
@@ -8,12 +8,12 @@ import { ImagePayload } from './nodes/ImageNode';
8
8
  export type DebouncedFunctionType = (...params: any[]) => void;
9
9
  export interface AlignMenuItem {
10
10
  name: string;
11
- icon: ReactElement<SvgIconProps>;
11
+ icon: ReactElement<LucideProps>;
12
12
  payload: ElementFormatType;
13
13
  }
14
14
  export interface FormatTextMenuItem {
15
15
  name: string;
16
- icon: ReactElement<SvgIconProps>;
16
+ icon: ReactElement<LucideProps>;
17
17
  payload: TextFormatType;
18
18
  }
19
19
  export interface ToolbarProps {
@@ -42,7 +42,7 @@ export interface FormatTextMenuProps {
42
42
  export interface ColorPickerProps {
43
43
  title: string;
44
44
  onChange: (color: string) => void;
45
- icon?: React.ReactElement<SvgIconProps>;
45
+ icon?: React.ReactElement<LucideProps>;
46
46
  }
47
47
  export interface BlockFormatMenuProps {
48
48
  blockType: keyof typeof blockTypeToBlockName;
@@ -67,7 +67,7 @@ export interface LocalStoragePluginProps {
67
67
  export interface EmojiPluginProps {
68
68
  title?: string;
69
69
  onChange?: (emoji: EmojiClickData, event?: MouseEvent) => void;
70
- icon?: React.ReactElement<SvgIconProps>;
70
+ icon?: React.ReactElement<LucideProps>;
71
71
  }
72
72
  export interface InsertFilePayload {
73
73
  linkText: string;
@@ -5,4 +5,30 @@ declare const CodeIcon: () => import("react/jsx-runtime").JSX.Element;
5
5
  declare const LinkIcon: () => import("react/jsx-runtime").JSX.Element;
6
6
  declare const FaceSmileIcon: () => import("react/jsx-runtime").JSX.Element;
7
7
  declare const MagicoonIcon: () => import("react/jsx-runtime").JSX.Element;
8
- export { UnderlineIcon, ItalicIcon, StrikethroughIcon, CodeIcon, LinkIcon, FaceSmileIcon, MagicoonIcon };
8
+ declare const PerspectiveIcon: () => import("react/jsx-runtime").JSX.Element;
9
+ declare const BoldIcon: () => import("react/jsx-runtime").JSX.Element;
10
+ declare const PlusIcon: () => import("react/jsx-runtime").JSX.Element;
11
+ declare const ChevronDownIcon: () => import("react/jsx-runtime").JSX.Element;
12
+ declare const SubscriptIcon: () => import("react/jsx-runtime").JSX.Element;
13
+ declare const SuperscriptIcon: () => import("react/jsx-runtime").JSX.Element;
14
+ declare const MessageEditIcon: () => import("react/jsx-runtime").JSX.Element;
15
+ declare const TypeUppercaseIcon: () => import("react/jsx-runtime").JSX.Element;
16
+ declare const TypeLowercaseIcon: () => import("react/jsx-runtime").JSX.Element;
17
+ declare const TypeCapitalizeIcon: () => import("react/jsx-runtime").JSX.Element;
18
+ declare const UndoIcon: () => import("react/jsx-runtime").JSX.Element;
19
+ declare const RedoIcon: () => import("react/jsx-runtime").JSX.Element;
20
+ declare const UploadIcon: () => import("react/jsx-runtime").JSX.Element;
21
+ declare const AddImageIcon: () => import("react/jsx-runtime").JSX.Element;
22
+ declare const HorizontalRuleIcon: () => import("react/jsx-runtime").JSX.Element;
23
+ declare const SignatureIcon: () => import("react/jsx-runtime").JSX.Element;
24
+ declare const NumberListIcon: () => import("react/jsx-runtime").JSX.Element;
25
+ declare const BulletListIcon: () => import("react/jsx-runtime").JSX.Element;
26
+ declare const CheckBoxIcon: () => import("react/jsx-runtime").JSX.Element;
27
+ declare const SearchTextIcon: () => import("react/jsx-runtime").JSX.Element;
28
+ declare const PenLineIcon: () => import("react/jsx-runtime").JSX.Element;
29
+ declare const MenuAltIcon: () => import("react/jsx-runtime").JSX.Element;
30
+ declare const FaceSmileIcon2: () => import("react/jsx-runtime").JSX.Element;
31
+ declare const TranslateIcon: () => import("react/jsx-runtime").JSX.Element;
32
+ declare const SparkleIcon: () => import("react/jsx-runtime").JSX.Element;
33
+ declare const ImageIcon: () => import("react/jsx-runtime").JSX.Element;
34
+ export { AddImageIcon, BoldIcon, BulletListIcon, CheckBoxIcon, ChevronDownIcon, CodeIcon, FaceSmileIcon, FaceSmileIcon2, HorizontalRuleIcon, ImageIcon, ItalicIcon, LinkIcon, MagicoonIcon, MenuAltIcon, MessageEditIcon, NumberListIcon, PenLineIcon, PerspectiveIcon, PlusIcon, RedoIcon, SearchTextIcon, SignatureIcon, SparkleIcon, StrikethroughIcon, SubscriptIcon, SuperscriptIcon, TranslateIcon, TypeCapitalizeIcon, TypeLowercaseIcon, TypeUppercaseIcon, UnderlineIcon, UndoIcon, UploadIcon, };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ct-rich-text-editor",
3
3
  "private": false,
4
- "version": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@9.0.0",
7
7
  "main": "dist/index.js",
@@ -56,21 +56,34 @@
56
56
  "@mui/icons-material": "^5.11.9",
57
57
  "@mui/material": "^5.11.9",
58
58
  "@mui/styles": "^5.11.9",
59
+ "@radix-ui/react-dialog": "^1.1.6",
60
+ "@radix-ui/react-dropdown-menu": "^2.1.6",
61
+ "@radix-ui/react-label": "^2.1.2",
62
+ "@radix-ui/react-popover": "^1.1.13",
63
+ "@radix-ui/react-select": "^2.1.6",
64
+ "@radix-ui/react-separator": "^1.1.2",
65
+ "@radix-ui/react-slot": "^1.1.2",
66
+ "@radix-ui/react-tooltip": "^1.1.8",
59
67
  "@types/react-color": "^3.0.6",
60
68
  "@types/react-signature-canvas": "^1.0.7",
61
69
  "axios": "^1.8.1",
70
+ "class-variance-authority": "^0.7.1",
62
71
  "classnames": "^2.3.2",
72
+ "clsx": "^2.1.1",
63
73
  "emoji-picker-react": "^4.12.0",
64
74
  "lexical": "^0.24.0",
65
75
  "lexical-ai-plugin": "0.0.2-alpha",
66
76
  "lodash-es": "^4.17.21",
77
+ "lucide-react": "^0.344.0",
67
78
  "prettier": "^3.5.1",
68
79
  "react": "^18.2.0",
69
80
  "react-color": "^2.19.3",
70
81
  "react-dom": "^18.2.0",
71
82
  "react-router-dom": "^7.2.0",
72
83
  "react-signature-canvas": "^1.1.0-alpha.1",
73
- "sass": "^1.57.1"
84
+ "sass": "^1.57.1",
85
+ "tailwind-merge": "^3.0.2",
86
+ "tailwindcss-animate": "^1.0.7"
74
87
  },
75
88
  "devDependencies": {
76
89
  "@types/he": "^1.2.3",
@@ -81,6 +94,7 @@
81
94
  "@typescript-eslint/eslint-plugin": "5.62.0",
82
95
  "@typescript-eslint/parser": "5.62.0",
83
96
  "@vitejs/plugin-react-swc": "^3.0.0",
97
+ "autoprefixer": "^10.4.18",
84
98
  "eslint": "8.56.0",
85
99
  "eslint-config-prettier": "^10.1.1",
86
100
  "eslint-import-resolver-typescript": "^3.8.5",
@@ -91,6 +105,8 @@
91
105
  "eslint-plugin-unused-imports": "^4.1.4",
92
106
  "husky": "^9.1.7",
93
107
  "lint-staged": "^15.4.3",
108
+ "postcss": "^8.4.35",
109
+ "tailwindcss": "3",
94
110
  "typescript": "^4.9.3",
95
111
  "vite": "^4.0.0",
96
112
  "vite-plugin-dts": "^4.5.3",