ct-rich-text-editor 1.2.5 → 1.2.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.
@@ -9,7 +9,12 @@ export declare const AiJsonResponse: ({ content }: {
9
9
  export declare const AiImageResponse: ({ content }: {
10
10
  content: string;
11
11
  }) => Promise<any>;
12
- export declare const AiEditorAction: ({ content }: {
12
+ export declare const AiEditorAction: ({ content, provider, apiKey, }: {
13
13
  content: string;
14
+ provider?: string | undefined;
15
+ apiKey?: string | undefined;
16
+ }) => Promise<any>;
17
+ export declare const GetCreditsInfo: ({ apiKey }: {
18
+ apiKey?: string | undefined;
14
19
  }) => Promise<any>;
15
20
  export {};
@@ -34,6 +34,8 @@ export interface EditorConfig {
34
34
  code: boolean;
35
35
  link: boolean;
36
36
  aiChat: boolean;
37
+ comment: boolean;
38
+ improve: boolean;
37
39
  };
38
40
  };
39
41
  expiresAt: string;
@@ -79,6 +81,8 @@ export interface ProjectData {
79
81
  code: boolean;
80
82
  link: boolean;
81
83
  aiChat: boolean;
84
+ comment: boolean;
85
+ improve: boolean;
82
86
  };
83
87
  };
84
88
  expiresAt: string;
@@ -4,6 +4,7 @@ export declare const apiEndpoints: {
4
4
  json: string;
5
5
  imageCreation: string;
6
6
  editorAction: string;
7
+ credits: string;
7
8
  };
8
9
  project: {
9
10
  fileUpload: string;
@@ -652,6 +652,10 @@ video {
652
652
  top: 0px;
653
653
  }
654
654
 
655
+ .cteditor-top-1\/2{
656
+ top: 50%;
657
+ }
658
+
655
659
  .cteditor-top-2{
656
660
  top: 0.5rem;
657
661
  }
@@ -1056,6 +1060,10 @@ video {
1056
1060
  min-width: 0px;
1057
1061
  }
1058
1062
 
1063
+ .cteditor-min-w-\[180px\]{
1064
+ min-width: 180px;
1065
+ }
1066
+
1059
1067
  .cteditor-min-w-\[8rem\]{
1060
1068
  min-width: 8rem;
1061
1069
  }
@@ -1112,6 +1120,11 @@ video {
1112
1120
  transform-origin: var(--radix-tooltip-content-transform-origin);
1113
1121
  }
1114
1122
 
1123
+ .-cteditor-translate-y-1\/2{
1124
+ --tw-translate-y: -50%;
1125
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1126
+ }
1127
+
1115
1128
  .cteditor-translate-x-\[-50\%\]{
1116
1129
  --tw-translate-x: -50%;
1117
1130
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
@@ -1136,6 +1149,12 @@ video {
1136
1149
  resize: none;
1137
1150
  }
1138
1151
 
1152
+ .cteditor-appearance-none{
1153
+ -webkit-appearance: none;
1154
+ -moz-appearance: none;
1155
+ appearance: none;
1156
+ }
1157
+
1139
1158
  .cteditor-grid-cols-2{
1140
1159
  grid-template-columns: repeat(2, minmax(0, 1fr));
1141
1160
  }
@@ -1480,6 +1499,10 @@ video {
1480
1499
  background-color: hsl(var(--cteditorf47ac10b-secondary)) !important;
1481
1500
  }
1482
1501
 
1502
+ .cteditor-bg-accent{
1503
+ background-color: hsl(var(--cteditorf47ac10b-accent));
1504
+ }
1505
+
1483
1506
  .cteditor-bg-accent\/50{
1484
1507
  background-color: hsl(var(--cteditorf47ac10b-accent) / 0.5);
1485
1508
  }
@@ -1766,6 +1789,10 @@ video {
1766
1789
  padding-right: 2rem;
1767
1790
  }
1768
1791
 
1792
+ .cteditor-pt-1{
1793
+ padding-top: 0.25rem;
1794
+ }
1795
+
1769
1796
  .cteditor-pt-2{
1770
1797
  padding-top: 0.5rem;
1771
1798
  }
@@ -1786,6 +1813,11 @@ video {
1786
1813
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
1787
1814
  }
1788
1815
 
1816
+ .cteditor-text-2xl{
1817
+ font-size: 1.5rem;
1818
+ line-height: 2rem;
1819
+ }
1820
+
1789
1821
  .cteditor-text-6xl{
1790
1822
  font-size: 3.75rem;
1791
1823
  line-height: 1;
@@ -2989,6 +3021,10 @@ body .ai-chat-popup .ai-chat-input {
2989
3021
  height: 1rem;
2990
3022
  }
2991
3023
 
3024
+ .\[\&\>svg\]\:cteditor-w-4>svg{
3025
+ width: 1rem;
3026
+ }
3027
+
2992
3028
  .\[\&\>svg\]\:cteditor-w-5>svg{
2993
3029
  width: 1.25rem;
2994
3030
  }
@@ -5000,6 +5036,45 @@ body .ai-chat-popup .ai-chat-input {
5000
5036
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z'%3E%3C/path%3E%3C/svg%3E");
5001
5037
  }
5002
5038
 
5039
+ /* Improve dropdown menu styles */
5040
+ .floating-text-format-popup .improve-dropdown {
5041
+ -webkit-backdrop-filter: blur(8px);
5042
+ backdrop-filter: blur(8px);
5043
+ box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
5044
+ }
5045
+
5046
+ .floating-text-format-popup .improve-dropdown .flex.flex-col {
5047
+ display: flex !important;
5048
+ flex-direction: column !important;
5049
+ }
5050
+
5051
+ .floating-text-format-popup .improve-dropdown-item {
5052
+ position: relative;
5053
+ overflow: hidden;
5054
+ display: flex !important;
5055
+ flex-direction: row !important;
5056
+ width: 100% !important;
5057
+ margin: 0 !important;
5058
+ clear: both !important;
5059
+ float: none !important;
5060
+ }
5061
+
5062
+ .floating-text-format-popup .improve-dropdown-item::before {
5063
+ content: '';
5064
+ position: absolute;
5065
+ left: 0;
5066
+ top: 0;
5067
+ height: 100%;
5068
+ width: 3px;
5069
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
5070
+ transform: scaleY(0);
5071
+ transition: transform 0.2s ease;
5072
+ }
5073
+
5074
+ .floating-text-format-popup .improve-dropdown-item:hover::before {
5075
+ transform: scaleY(1);
5076
+ }
5077
+
5003
5078
  @media (max-width: 1024px) {
5004
5079
  .floating-text-format-popup button.insert-comment {
5005
5080
  display: none;
@@ -1,4 +1,4 @@
1
1
  export declare const AI_REPHRASE_COMMAND: import('../../../node_modules/lexical').LexicalCommand<unknown>;
2
2
  export declare const AI_IMAGE_COMMAND: import('../../../node_modules/lexical').LexicalCommand<unknown>;
3
- declare const AIRephrasePlugin: () => null;
3
+ declare const AIRephrasePlugin: () => import("react/jsx-runtime").JSX.Element;
4
4
  export default AIRephrasePlugin;
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface ImageGenerationManagerRef {
4
+ openDialog: () => void;
5
+ setGenerating: (generating: boolean) => void;
6
+ }
7
+ interface ImageGenerationManagerProps {
8
+ onGenerate: (prompt: string) => Promise<void>;
9
+ }
10
+ export declare const ImageGenerationManager: React.ForwardRefExoticComponent<ImageGenerationManagerProps & React.RefAttributes<ImageGenerationManagerRef>>;
11
+ export {};
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+
3
+ interface ImageGenerationDialogProps {
4
+ open: boolean;
5
+ onOpenChange: (open: boolean) => void;
6
+ onGenerate: (prompt: string) => Promise<void>;
7
+ isGenerating: boolean;
8
+ }
9
+ export declare const ImageGenerationDialog: React.FC<ImageGenerationDialogProps>;
10
+ export {};
@@ -35,6 +35,7 @@ export declare const editorConfig: {
35
35
  link: boolean;
36
36
  aiChat: boolean;
37
37
  comment: boolean;
38
+ improve: boolean;
38
39
  };
39
40
  enableAutocomplete: boolean;
40
41
  autocompleteOptions: {