ct-rich-text-editor 1.2.6 → 1.2.8

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 (33) hide show
  1. package/README.md +217 -217
  2. package/dist/Provider/EditorProvider.d.ts +1 -0
  3. package/dist/assets/style.css +4138 -3607
  4. package/dist/components/AlignMenu/AlignMenuDrop.d.ts +4 -0
  5. package/dist/components/AutoExpandingDemo.d.ts +7 -0
  6. package/dist/components/DatePicker/DatePickerWidget.d.ts +9 -0
  7. package/dist/components/InsertMenu/InsertMenuDrop.d.ts +10 -0
  8. package/dist/components/ui/calendar.d.ts +9 -0
  9. package/dist/components/ui/checkbox.d.ts +4 -0
  10. package/dist/context/ToolbarContext.d.ts +1 -0
  11. package/dist/hooks/useAutoExpandingHeight.d.ts +15 -0
  12. package/dist/hooks/useBlockFormat.d.ts +0 -1
  13. package/dist/hooks/useS3Uploader.d.ts +1 -1
  14. package/dist/hooks/useVoiceToText.d.ts +11 -0
  15. package/dist/html2pdf.bundle-b85c32f6.js +46128 -0
  16. package/dist/html2pdf.bundle-b85c32f6.js.map +1 -0
  17. package/dist/html2pdf.bundle.min-2dd44ab5.js +21987 -0
  18. package/dist/html2pdf.bundle.min-2dd44ab5.js.map +1 -0
  19. package/dist/{index-ffff9c22.js → index-0752dfb0.js} +18 -7
  20. package/dist/index-0752dfb0.js.map +1 -0
  21. package/dist/{index-5238e1b7.js → index-2d49fa3f.js} +3823 -1438
  22. package/dist/index-2d49fa3f.js.map +1 -0
  23. package/dist/index.js +1 -1
  24. package/dist/pcm-processor.js +3 -2
  25. package/dist/plugins/AIChatPlugin.d.ts +1 -2
  26. package/dist/plugins/CommentBubblePlugin.d.ts +4 -0
  27. package/dist/types.d.ts +5 -2
  28. package/dist/ui/Icons.d.ts +3 -1
  29. package/dist/utils/dateFormats.d.ts +33 -0
  30. package/dist/utils/export.d.ts +3 -0
  31. package/package.json +126 -123
  32. package/dist/index-5238e1b7.js.map +0 -1
  33. package/dist/index-ffff9c22.js.map +0 -1
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+
3
+ declare const AlignMenuDrop: FC;
4
+ export default AlignMenuDrop;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+
3
+ /**
4
+ * Demo component to showcase auto-expanding height functionality
5
+ */
6
+ export declare const AutoExpandingDemo: React.FC;
7
+ export default AutoExpandingDemo;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { LexicalEditor } from '../../../node_modules/lexical';
3
+
4
+ interface DatePickerWidgetProps {
5
+ editor: LexicalEditor;
6
+ className?: string;
7
+ }
8
+ export declare const DatePickerWidget: React.FC<DatePickerWidgetProps>;
9
+ export {};
@@ -0,0 +1,10 @@
1
+ import { FC, ReactNode } from 'react';
2
+
3
+ export type ModalState = {
4
+ show: (renderModal: (onClose: () => void) => ReactNode) => void;
5
+ hide: () => void;
6
+ activeModal: ReactNode | null;
7
+ };
8
+ export declare const useModal: () => ModalState;
9
+ declare const InsertMenuDrop: FC;
10
+ export default InsertMenuDrop;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+
3
+ interface CalendarProps {
4
+ selected?: Date;
5
+ onSelect?: (date: Date) => void;
6
+ className?: string;
7
+ }
8
+ export declare const Calendar: React.FC<CalendarProps>;
9
+ export {};
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
3
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export { Checkbox };
@@ -42,6 +42,7 @@ declare const INITIAL_TOOLBAR_STATE: {
42
42
  isUnderline: boolean;
43
43
  rootType: "table" | "root";
44
44
  isAutocompleteEnabled: boolean;
45
+ isGrammarCheckEnabled: boolean;
45
46
  };
46
47
  type ToolbarState = typeof INITIAL_TOOLBAR_STATE;
47
48
  type ToolbarStateKey = keyof ToolbarState;
@@ -0,0 +1,15 @@
1
+ interface UseAutoExpandingHeightOptions {
2
+ minHeight?: number;
3
+ maxHeight?: number;
4
+ transitionDuration?: number;
5
+ }
6
+ export declare const useAutoExpandingHeight: ({ minHeight, maxHeight, transitionDuration }?: UseAutoExpandingHeightOptions) => {
7
+ height: number;
8
+ contentRef: import('react').RefObject<HTMLElement>;
9
+ style: {
10
+ height: string;
11
+ transition: string;
12
+ overflow: string;
13
+ };
14
+ };
15
+ export {};
@@ -17,6 +17,5 @@ declare const useBlockFormat: (props: UseBlockFormatProps) => {
17
17
  formatCheckList: () => void;
18
18
  formatNumberedList: () => void;
19
19
  formatQuote: () => void;
20
- formatCode: () => void;
21
20
  };
22
21
  export default useBlockFormat;
@@ -4,7 +4,7 @@ interface UploadProgress {
4
4
  uploadedUrl: string | null;
5
5
  error: Error | null;
6
6
  }
7
- export declare const useS3Uploader: () => UploadProgress & {
7
+ export declare const useS3Uploader: (apiKey?: string) => UploadProgress & {
8
8
  uploadFileToS3: (file: File) => Promise<string>;
9
9
  resetUpload: () => void;
10
10
  };
@@ -0,0 +1,11 @@
1
+ interface UseVoiceToTextProps {
2
+ onTranscriptUpdate: (text: string) => void;
3
+ }
4
+ export declare const useVoiceToText: ({ onTranscriptUpdate }: UseVoiceToTextProps) => {
5
+ isRecording: boolean;
6
+ isLoading: boolean;
7
+ error: string | null;
8
+ isConnected: boolean;
9
+ toggleRecording: () => void;
10
+ };
11
+ export {};