ct-rich-text-editor 1.3.4 → 1.3.5

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 (51) hide show
  1. package/README.md +217 -217
  2. package/dist/assets/style.css +4276 -4099
  3. package/dist/{babel-d3085146.js → babel-d155920e.js} +3278 -3551
  4. package/dist/babel-d155920e.js.map +1 -0
  5. package/dist/components/FileView/index.d.ts +10 -0
  6. package/dist/components/ui/button.d.ts +1 -1
  7. package/dist/constants.d.ts +2 -1
  8. package/dist/{estree-164983f6.js → estree-b1fff53b.js} +1778 -1763
  9. package/dist/estree-b1fff53b.js.map +1 -0
  10. package/dist/hooks/useModal.d.ts +1 -0
  11. package/dist/{html-5586dbf6.js → html-f95ee5dc.js} +656 -701
  12. package/dist/html-f95ee5dc.js.map +1 -0
  13. package/dist/{html2pdf.bundle-5c5747c7.js → html2pdf.bundle-c0e42624.js} +2 -2
  14. package/dist/html2pdf.bundle-c0e42624.js.map +1 -0
  15. package/dist/{html2pdf.bundle.min-8fcf4f01.js → html2pdf.bundle.min-64f254e4.js} +2 -2
  16. package/dist/html2pdf.bundle.min-64f254e4.js.map +1 -0
  17. package/dist/{index-db43388d.js → index-1719c0e6.js} +1248 -628
  18. package/dist/index-1719c0e6.js.map +1 -0
  19. package/dist/{index-48519641.js → index-2e8a7483.js} +87 -15
  20. package/dist/index-2e8a7483.js.map +1 -0
  21. package/dist/index-46b9ecb6.js +213 -0
  22. package/dist/index-46b9ecb6.js.map +1 -0
  23. package/dist/index.js +5 -5
  24. package/dist/{markdown-d513479b.js → markdown-1d9e6c3f.js} +1789 -1836
  25. package/dist/markdown-1d9e6c3f.js.map +1 -0
  26. package/dist/nodes/FileNode.d.ts +33 -0
  27. package/dist/plugins/AutocompletePlugin.d.ts +1 -0
  28. package/dist/plugins/FilePlugin.d.ts +1 -0
  29. package/dist/plugins/SignatureCanvasPlugin/SignatureCanvasPlugin.d.ts +1 -0
  30. package/dist/plugins/SlashCommandPlugin/index.d.ts +1 -0
  31. package/dist/plugins/TablePlugin.d.ts +3 -0
  32. package/dist/{postcss-f084f74d.js → postcss-c2592f3f.js} +1357 -1378
  33. package/dist/postcss-c2592f3f.js.map +1 -0
  34. package/dist/standalone-bcc7f37a.js +2649 -0
  35. package/dist/standalone-bcc7f37a.js.map +1 -0
  36. package/dist/typescript-48c10f50.js +13601 -0
  37. package/dist/typescript-48c10f50.js.map +1 -0
  38. package/package.json +126 -126
  39. package/dist/babel-d3085146.js.map +0 -1
  40. package/dist/estree-164983f6.js.map +0 -1
  41. package/dist/html-5586dbf6.js.map +0 -1
  42. package/dist/html2pdf.bundle-5c5747c7.js.map +0 -1
  43. package/dist/html2pdf.bundle.min-8fcf4f01.js.map +0 -1
  44. package/dist/index-48519641.js.map +0 -1
  45. package/dist/index-db43388d.js.map +0 -1
  46. package/dist/markdown-d513479b.js.map +0 -1
  47. package/dist/postcss-f084f74d.js.map +0 -1
  48. package/dist/standalone-5a8c6b7e.js +0 -2518
  49. package/dist/standalone-5a8c6b7e.js.map +0 -1
  50. package/dist/typescript-b1005db4.js +0 -13705
  51. package/dist/typescript-b1005db4.js.map +0 -1
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+
3
+ interface FileViewProps {
4
+ src: string;
5
+ fileName: string;
6
+ fileSize?: number;
7
+ nodeKey: string;
8
+ }
9
+ declare const FileView: React.FC<FileViewProps>;
10
+ export default FileView;
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
2
2
 
3
3
  import * as React from "react";
4
4
  declare const buttonVariants: (props?: ({
5
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "toolbar" | null | undefined;
5
+ variant?: "link" | "default" | "toolbar" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
6
6
  size?: "default" | "sm" | "md" | "lg" | "icon" | "icon-sm" | null | undefined;
7
7
  } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
8
8
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -10,6 +10,7 @@ import { EditorThemeClasses } from '../node_modules/lexical/LexicalEditor';
10
10
  import { CommentedTextNode } from './nodes/CommentedTextNode';
11
11
  import { CommentNode } from './nodes/CommentNode';
12
12
  import { EmbedNode } from './nodes/EmbedNode';
13
+ import { FileNode } from './nodes/FileNode';
13
14
  import { ImageNode } from './nodes/ImageNode';
14
15
  import { MentionNode } from './nodes/MentionNode';
15
16
  import { NotePanelNode } from './nodes/NotePanelNode';
@@ -17,7 +18,7 @@ import { CustomHorizontalRuleNode } from './plugins/CustomHorizontalRulePlugin';
17
18
  import { AlignMenuItem, FormatTextMenuItem } from './types';
18
19
 
19
20
  export declare const theme: EditorThemeClasses;
20
- export declare const EDITOR_NODES: (typeof CommentedTextNode | typeof CommentNode | typeof EmbedNode | typeof LinkNode | typeof CodeNode | typeof ImageNode | typeof MentionNode | typeof NotePanelNode | typeof CustomHorizontalRuleNode | typeof HorizontalRuleNode | typeof CodeHighlightNode | typeof HeadingNode | typeof QuoteNode | typeof ListNode | typeof ListItemNode | typeof TableNode | typeof TableCellNode | typeof TableRowNode)[];
21
+ export declare const EDITOR_NODES: (typeof CommentedTextNode | typeof CommentNode | typeof EmbedNode | typeof FileNode | typeof LinkNode | typeof CodeNode | typeof ImageNode | typeof MentionNode | typeof NotePanelNode | typeof CustomHorizontalRuleNode | typeof HorizontalRuleNode | typeof CodeHighlightNode | typeof HeadingNode | typeof QuoteNode | typeof ListNode | typeof ListItemNode | typeof TableNode | typeof TableCellNode | typeof TableRowNode)[];
21
22
  export declare const initialConfig: InitialConfigType;
22
23
  export declare const blockTypeToBlockName: {
23
24
  bullet: string;