ct-rich-text-editor 1.2.5 → 1.2.7
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/api/ai/index.d.ts +6 -1
- package/dist/api/auth.d.ts +4 -0
- package/dist/api/config/endpoints.d.ts +1 -0
- package/dist/assets/style.css +234 -16
- package/dist/components/AiPlugin/index.d.ts +1 -1
- package/dist/components/AutoExpandingDemo.d.ts +7 -0
- package/dist/components/ImageGenerationDialog/ImageGenerationManager.d.ts +11 -0
- package/dist/components/ImageGenerationDialog/index.d.ts +10 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/editorConfig.d.ts +1 -0
- package/dist/hooks/useAutoExpandingHeight.d.ts +15 -0
- package/dist/html2pdf.bundle-fa4096e4.js +46128 -0
- package/dist/html2pdf.bundle-fa4096e4.js.map +1 -0
- package/dist/html2pdf.bundle.min-35b40dde.js +21987 -0
- package/dist/html2pdf.bundle.min-35b40dde.js.map +1 -0
- package/dist/{index-c98eb13a.js → index-25cc2475.js} +10671 -8528
- package/dist/index-25cc2475.js.map +1 -0
- package/dist/{index-7c4c0170.js → index-2ca32ea9.js} +18 -7
- package/dist/index-2ca32ea9.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/pages/ConfigurableEditor/ConfigurableEditor.d.ts +1 -0
- package/dist/plugins/AIChatPlugin.d.ts +2 -1
- package/dist/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/ui/Icons.d.ts +3 -1
- package/dist/utils/export.d.ts +3 -0
- package/package.json +5 -2
- package/dist/index-7c4c0170.js.map +0 -1
- package/dist/index-c98eb13a.js.map +0 -1
package/dist/api/ai/index.d.ts
CHANGED
|
@@ -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 {};
|
package/dist/api/auth.d.ts
CHANGED
|
@@ -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;
|
package/dist/assets/style.css
CHANGED
|
@@ -620,10 +620,18 @@ video {
|
|
|
620
620
|
bottom: 0px;
|
|
621
621
|
}
|
|
622
622
|
|
|
623
|
+
.cteditor-bottom-3\/4{
|
|
624
|
+
bottom: 75%;
|
|
625
|
+
}
|
|
626
|
+
|
|
623
627
|
.cteditor-left-0{
|
|
624
628
|
left: 0px;
|
|
625
629
|
}
|
|
626
630
|
|
|
631
|
+
.cteditor-left-1\/2{
|
|
632
|
+
left: 50%;
|
|
633
|
+
}
|
|
634
|
+
|
|
627
635
|
.cteditor-left-2{
|
|
628
636
|
left: 0.5rem;
|
|
629
637
|
}
|
|
@@ -652,6 +660,10 @@ video {
|
|
|
652
660
|
top: 0px;
|
|
653
661
|
}
|
|
654
662
|
|
|
663
|
+
.cteditor-top-1\/2{
|
|
664
|
+
top: 50%;
|
|
665
|
+
}
|
|
666
|
+
|
|
655
667
|
.cteditor-top-2{
|
|
656
668
|
top: 0.5rem;
|
|
657
669
|
}
|
|
@@ -664,10 +676,18 @@ video {
|
|
|
664
676
|
top: 50%;
|
|
665
677
|
}
|
|
666
678
|
|
|
679
|
+
.cteditor-top-full{
|
|
680
|
+
top: 100%;
|
|
681
|
+
}
|
|
682
|
+
|
|
667
683
|
.\!cteditor-z-\[99999\]{
|
|
668
684
|
z-index: 99999 !important;
|
|
669
685
|
}
|
|
670
686
|
|
|
687
|
+
.cteditor-z-50{
|
|
688
|
+
z-index: 50;
|
|
689
|
+
}
|
|
690
|
+
|
|
671
691
|
.cteditor-z-\[9999\]{
|
|
672
692
|
z-index: 9999;
|
|
673
693
|
}
|
|
@@ -720,6 +740,10 @@ video {
|
|
|
720
740
|
margin-bottom: 1rem;
|
|
721
741
|
}
|
|
722
742
|
|
|
743
|
+
.cteditor-ml-1{
|
|
744
|
+
margin-left: 0.25rem;
|
|
745
|
+
}
|
|
746
|
+
|
|
723
747
|
.cteditor-ml-2{
|
|
724
748
|
margin-left: 0.5rem;
|
|
725
749
|
}
|
|
@@ -768,6 +792,10 @@ video {
|
|
|
768
792
|
margin-top: 1.5rem;
|
|
769
793
|
}
|
|
770
794
|
|
|
795
|
+
.cteditor-box-border{
|
|
796
|
+
box-sizing: border-box;
|
|
797
|
+
}
|
|
798
|
+
|
|
771
799
|
.\!cteditor-block{
|
|
772
800
|
display: block !important;
|
|
773
801
|
}
|
|
@@ -815,6 +843,11 @@ video {
|
|
|
815
843
|
height: 18px !important;
|
|
816
844
|
}
|
|
817
845
|
|
|
846
|
+
.cteditor-size-9{
|
|
847
|
+
width: 2.25rem;
|
|
848
|
+
height: 2.25rem;
|
|
849
|
+
}
|
|
850
|
+
|
|
818
851
|
.cteditor-size-\[18px\]{
|
|
819
852
|
width: 18px;
|
|
820
853
|
height: 18px;
|
|
@@ -912,10 +945,6 @@ video {
|
|
|
912
945
|
max-height: 400px;
|
|
913
946
|
}
|
|
914
947
|
|
|
915
|
-
.cteditor-max-h-\[500px\]{
|
|
916
|
-
max-height: 500px;
|
|
917
|
-
}
|
|
918
|
-
|
|
919
948
|
.cteditor-max-h-\[var\(--radix-dropdown-menu-content-available-height\)\]{
|
|
920
949
|
max-height: var(--radix-dropdown-menu-content-available-height);
|
|
921
950
|
}
|
|
@@ -1056,6 +1085,14 @@ video {
|
|
|
1056
1085
|
min-width: 0px;
|
|
1057
1086
|
}
|
|
1058
1087
|
|
|
1088
|
+
.cteditor-min-w-56{
|
|
1089
|
+
min-width: 14rem;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
.cteditor-min-w-\[180px\]{
|
|
1093
|
+
min-width: 180px;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1059
1096
|
.cteditor-min-w-\[8rem\]{
|
|
1060
1097
|
min-width: 8rem;
|
|
1061
1098
|
}
|
|
@@ -1112,6 +1149,16 @@ video {
|
|
|
1112
1149
|
transform-origin: var(--radix-tooltip-content-transform-origin);
|
|
1113
1150
|
}
|
|
1114
1151
|
|
|
1152
|
+
.-cteditor-translate-x-1\/2{
|
|
1153
|
+
--tw-translate-x: -50%;
|
|
1154
|
+
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));
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
.-cteditor-translate-y-1\/2{
|
|
1158
|
+
--tw-translate-y: -50%;
|
|
1159
|
+
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));
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1115
1162
|
.cteditor-translate-x-\[-50\%\]{
|
|
1116
1163
|
--tw-translate-x: -50%;
|
|
1117
1164
|
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));
|
|
@@ -1122,6 +1169,23 @@ video {
|
|
|
1122
1169
|
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));
|
|
1123
1170
|
}
|
|
1124
1171
|
|
|
1172
|
+
.cteditor-scale-150{
|
|
1173
|
+
--tw-scale-x: 1.5;
|
|
1174
|
+
--tw-scale-y: 1.5;
|
|
1175
|
+
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));
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
@keyframes cteditor-spin{
|
|
1179
|
+
|
|
1180
|
+
to{
|
|
1181
|
+
transform: rotate(360deg);
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
.cteditor-animate-spin{
|
|
1186
|
+
animation: cteditor-spin 1s linear infinite;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1125
1189
|
.cteditor-cursor-pointer{
|
|
1126
1190
|
cursor: pointer;
|
|
1127
1191
|
}
|
|
@@ -1136,6 +1200,12 @@ video {
|
|
|
1136
1200
|
resize: none;
|
|
1137
1201
|
}
|
|
1138
1202
|
|
|
1203
|
+
.cteditor-appearance-none{
|
|
1204
|
+
-webkit-appearance: none;
|
|
1205
|
+
-moz-appearance: none;
|
|
1206
|
+
appearance: none;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1139
1209
|
.cteditor-grid-cols-2{
|
|
1140
1210
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1141
1211
|
}
|
|
@@ -1364,6 +1434,10 @@ video {
|
|
|
1364
1434
|
border-color: rgb(224 224 224 / var(--tw-border-opacity, 1));
|
|
1365
1435
|
}
|
|
1366
1436
|
|
|
1437
|
+
.cteditor-border-accent{
|
|
1438
|
+
border-color: hsl(var(--cteditorf47ac10b-accent));
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1367
1441
|
.cteditor-border-amber-200{
|
|
1368
1442
|
--tw-border-opacity: 1;
|
|
1369
1443
|
border-color: rgb(253 230 138 / var(--tw-border-opacity, 1));
|
|
@@ -1387,6 +1461,10 @@ video {
|
|
|
1387
1461
|
border-color: hsl(var(--cteditorf47ac10b-foreground) / 0.15);
|
|
1388
1462
|
}
|
|
1389
1463
|
|
|
1464
|
+
.cteditor-border-foreground\/5{
|
|
1465
|
+
border-color: hsl(var(--cteditorf47ac10b-foreground) / 0.05);
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1390
1468
|
.cteditor-border-gray-200{
|
|
1391
1469
|
--tw-border-opacity: 1;
|
|
1392
1470
|
border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
|
|
@@ -1480,6 +1558,10 @@ video {
|
|
|
1480
1558
|
background-color: hsl(var(--cteditorf47ac10b-secondary)) !important;
|
|
1481
1559
|
}
|
|
1482
1560
|
|
|
1561
|
+
.cteditor-bg-accent{
|
|
1562
|
+
background-color: hsl(var(--cteditorf47ac10b-accent));
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1483
1565
|
.cteditor-bg-accent\/50{
|
|
1484
1566
|
background-color: hsl(var(--cteditorf47ac10b-accent) / 0.5);
|
|
1485
1567
|
}
|
|
@@ -1681,6 +1763,11 @@ video {
|
|
|
1681
1763
|
padding-right: 0.25rem;
|
|
1682
1764
|
}
|
|
1683
1765
|
|
|
1766
|
+
.cteditor-px-1\.5{
|
|
1767
|
+
padding-left: 0.375rem;
|
|
1768
|
+
padding-right: 0.375rem;
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1684
1771
|
.cteditor-px-2{
|
|
1685
1772
|
padding-left: 0.5rem;
|
|
1686
1773
|
padding-right: 0.5rem;
|
|
@@ -1766,6 +1853,10 @@ video {
|
|
|
1766
1853
|
padding-right: 2rem;
|
|
1767
1854
|
}
|
|
1768
1855
|
|
|
1856
|
+
.cteditor-pt-1{
|
|
1857
|
+
padding-top: 0.25rem;
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1769
1860
|
.cteditor-pt-2{
|
|
1770
1861
|
padding-top: 0.5rem;
|
|
1771
1862
|
}
|
|
@@ -1786,6 +1877,11 @@ video {
|
|
|
1786
1877
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
1787
1878
|
}
|
|
1788
1879
|
|
|
1880
|
+
.cteditor-text-2xl{
|
|
1881
|
+
font-size: 1.5rem;
|
|
1882
|
+
line-height: 2rem;
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1789
1885
|
.cteditor-text-6xl{
|
|
1790
1886
|
font-size: 3.75rem;
|
|
1791
1887
|
line-height: 1;
|
|
@@ -1844,6 +1940,10 @@ video {
|
|
|
1844
1940
|
font-weight: 600;
|
|
1845
1941
|
}
|
|
1846
1942
|
|
|
1943
|
+
.cteditor-uppercase{
|
|
1944
|
+
text-transform: uppercase;
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1847
1947
|
.cteditor-capitalize{
|
|
1848
1948
|
text-transform: capitalize;
|
|
1849
1949
|
}
|
|
@@ -1864,6 +1964,10 @@ video {
|
|
|
1864
1964
|
letter-spacing: -0.025em;
|
|
1865
1965
|
}
|
|
1866
1966
|
|
|
1967
|
+
.cteditor-tracking-wide{
|
|
1968
|
+
letter-spacing: 0.025em;
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1867
1971
|
.cteditor-tracking-widest{
|
|
1868
1972
|
letter-spacing: 0.1em;
|
|
1869
1973
|
}
|
|
@@ -2131,6 +2235,10 @@ video {
|
|
|
2131
2235
|
transition-duration: 150ms;
|
|
2132
2236
|
}
|
|
2133
2237
|
|
|
2238
|
+
.cteditor-duration-150{
|
|
2239
|
+
transition-duration: 150ms;
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2134
2242
|
.cteditor-duration-200{
|
|
2135
2243
|
transition-duration: 200ms;
|
|
2136
2244
|
}
|
|
@@ -2173,6 +2281,10 @@ video {
|
|
|
2173
2281
|
--tw-enter-scale: .95;
|
|
2174
2282
|
}
|
|
2175
2283
|
|
|
2284
|
+
.cteditor-duration-150{
|
|
2285
|
+
animation-duration: 150ms;
|
|
2286
|
+
}
|
|
2287
|
+
|
|
2176
2288
|
.cteditor-duration-200{
|
|
2177
2289
|
animation-duration: 200ms;
|
|
2178
2290
|
}
|
|
@@ -2370,6 +2482,16 @@ body .ai-chat-popup .ai-chat-input {
|
|
|
2370
2482
|
color: hsl(var(--cteditorf47ac10b-muted-foreground));
|
|
2371
2483
|
}
|
|
2372
2484
|
|
|
2485
|
+
.checked\:cteditor-border-blue-600:checked{
|
|
2486
|
+
--tw-border-opacity: 1;
|
|
2487
|
+
border-color: rgb(37 99 235 / var(--tw-border-opacity, 1));
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2490
|
+
.checked\:cteditor-bg-blue-600:checked{
|
|
2491
|
+
--tw-bg-opacity: 1;
|
|
2492
|
+
background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
|
|
2493
|
+
}
|
|
2494
|
+
|
|
2373
2495
|
.empty\:before\:cteditor-text-muted-foreground\/60:empty::before{
|
|
2374
2496
|
content: var(--tw-content);
|
|
2375
2497
|
color: hsl(var(--cteditorf47ac10b-muted-foreground) / 0.6);
|
|
@@ -2392,6 +2514,11 @@ body .ai-chat-popup .ai-chat-input {
|
|
|
2392
2514
|
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));
|
|
2393
2515
|
}
|
|
2394
2516
|
|
|
2517
|
+
.hover\:cteditor-border-blue-500:hover{
|
|
2518
|
+
--tw-border-opacity: 1;
|
|
2519
|
+
border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2395
2522
|
.hover\:cteditor-border-primary:hover{
|
|
2396
2523
|
border-color: hsl(var(--cteditorf47ac10b-primary));
|
|
2397
2524
|
}
|
|
@@ -2436,6 +2563,10 @@ body .ai-chat-popup .ai-chat-input {
|
|
|
2436
2563
|
background-color: hsl(var(--cteditorf47ac10b-destructive) / 0.9);
|
|
2437
2564
|
}
|
|
2438
2565
|
|
|
2566
|
+
.hover\:cteditor-bg-foreground\/5:hover{
|
|
2567
|
+
background-color: hsl(var(--cteditorf47ac10b-foreground) / 0.05);
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2439
2570
|
.hover\:cteditor-bg-gray-300:hover{
|
|
2440
2571
|
--tw-bg-opacity: 1;
|
|
2441
2572
|
background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
|
|
@@ -2504,6 +2635,11 @@ body .ai-chat-popup .ai-chat-input {
|
|
|
2504
2635
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2505
2636
|
}
|
|
2506
2637
|
|
|
2638
|
+
.focus\:cteditor-border-blue-500:focus{
|
|
2639
|
+
--tw-border-opacity: 1;
|
|
2640
|
+
border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
|
|
2641
|
+
}
|
|
2642
|
+
|
|
2507
2643
|
.focus\:cteditor-border-primary\/60:focus{
|
|
2508
2644
|
border-color: hsl(var(--cteditorf47ac10b-primary) / 0.6);
|
|
2509
2645
|
}
|
|
@@ -2588,6 +2724,10 @@ body .ai-chat-popup .ai-chat-input {
|
|
|
2588
2724
|
opacity: 0.5;
|
|
2589
2725
|
}
|
|
2590
2726
|
|
|
2727
|
+
.cteditor-peer:checked ~ .peer-checked\:cteditor-opacity-100{
|
|
2728
|
+
opacity: 1;
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2591
2731
|
.cteditor-peer:disabled ~ .peer-disabled\:cteditor-cursor-not-allowed{
|
|
2592
2732
|
cursor: not-allowed;
|
|
2593
2733
|
}
|
|
@@ -2950,6 +3090,37 @@ body .ai-chat-popup .ai-chat-input {
|
|
|
2950
3090
|
}
|
|
2951
3091
|
}
|
|
2952
3092
|
|
|
3093
|
+
.\[\&\>button\:hover\>span\]\:cteditor-bottom-full>button:hover>span{
|
|
3094
|
+
bottom: 100%;
|
|
3095
|
+
}
|
|
3096
|
+
|
|
3097
|
+
.\[\&\>button\:hover\>span\]\:cteditor-opacity-100>button:hover>span{
|
|
3098
|
+
opacity: 1;
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3101
|
+
.\[\&\>button\>span\]\:cteditor-border>button>span{
|
|
3102
|
+
border-width: 1px;
|
|
3103
|
+
}
|
|
3104
|
+
|
|
3105
|
+
.\[\&\>button\>span\]\:cteditor-border-black>button>span{
|
|
3106
|
+
--tw-border-opacity: 1;
|
|
3107
|
+
border-color: rgb(0 0 0 / var(--tw-border-opacity, 1));
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
.\[\&\>button\]\:cteditor-relative>button{
|
|
3111
|
+
position: relative;
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
.\[\&\>button\]\:\!cteditor-size-6>button{
|
|
3115
|
+
width: 1.5rem !important;
|
|
3116
|
+
height: 1.5rem !important;
|
|
3117
|
+
}
|
|
3118
|
+
|
|
3119
|
+
.\[\&\>button\]\:cteditor-outline-none>button{
|
|
3120
|
+
outline: 2px solid transparent;
|
|
3121
|
+
outline-offset: 2px;
|
|
3122
|
+
}
|
|
3123
|
+
|
|
2953
3124
|
.\[\&\>hr\]\:cteditor-h-\[2px\]>hr{
|
|
2954
3125
|
height: 2px;
|
|
2955
3126
|
}
|
|
@@ -2965,6 +3136,18 @@ body .ai-chat-popup .ai-chat-input {
|
|
|
2965
3136
|
-webkit-line-clamp: 1;
|
|
2966
3137
|
}
|
|
2967
3138
|
|
|
3139
|
+
.\[\&\>span\]\:checked\:cteditor-opacity-100:checked>span{
|
|
3140
|
+
opacity: 1;
|
|
3141
|
+
}
|
|
3142
|
+
|
|
3143
|
+
.\[\&\>span\]\:hover\:cteditor-bottom-full:hover>span{
|
|
3144
|
+
bottom: 100%;
|
|
3145
|
+
}
|
|
3146
|
+
|
|
3147
|
+
.\[\&\>span\]\:hover\:cteditor-opacity-100:hover>span{
|
|
3148
|
+
opacity: 1;
|
|
3149
|
+
}
|
|
3150
|
+
|
|
2968
3151
|
.\[\&\>svg\]\:\!cteditor-size-4>svg{
|
|
2969
3152
|
width: 1rem !important;
|
|
2970
3153
|
height: 1rem !important;
|
|
@@ -2985,18 +3168,6 @@ body .ai-chat-popup .ai-chat-input {
|
|
|
2985
3168
|
height: 1.25rem;
|
|
2986
3169
|
}
|
|
2987
3170
|
|
|
2988
|
-
.\[\&\>svg\]\:cteditor-h-4>svg{
|
|
2989
|
-
height: 1rem;
|
|
2990
|
-
}
|
|
2991
|
-
|
|
2992
|
-
.\[\&\>svg\]\:cteditor-w-5>svg{
|
|
2993
|
-
width: 1.25rem;
|
|
2994
|
-
}
|
|
2995
|
-
|
|
2996
|
-
.\[\&\>svg\]\:cteditor-w-6>svg{
|
|
2997
|
-
width: 1.5rem;
|
|
2998
|
-
}
|
|
2999
|
-
|
|
3000
3171
|
.\[\&\>svg\]\:cteditor-shrink-0>svg{
|
|
3001
3172
|
flex-shrink: 0;
|
|
3002
3173
|
}
|
|
@@ -3218,6 +3389,8 @@ body .ai-chat-popup .ai-chat-input {
|
|
|
3218
3389
|
.ol1 {
|
|
3219
3390
|
padding: 0;
|
|
3220
3391
|
margin: 0;
|
|
3392
|
+
/* Ensure numbers show even if global CSS resets them */
|
|
3393
|
+
list-style-type: decimal;
|
|
3221
3394
|
list-style-position: inside;
|
|
3222
3395
|
}
|
|
3223
3396
|
|
|
@@ -3252,6 +3425,8 @@ body .ai-chat-popup .ai-chat-input {
|
|
|
3252
3425
|
.ul {
|
|
3253
3426
|
padding: 0;
|
|
3254
3427
|
margin: 0;
|
|
3428
|
+
/* Ensure bullets render despite resets */
|
|
3429
|
+
list-style-type: disc;
|
|
3255
3430
|
list-style-position: inside;
|
|
3256
3431
|
}
|
|
3257
3432
|
|
|
@@ -3941,6 +4116,8 @@ body .ai-chat-popup .ai-chat-input {
|
|
|
3941
4116
|
.PlaygroundEditorTheme__ol1 {
|
|
3942
4117
|
padding: 0;
|
|
3943
4118
|
margin: 0;
|
|
4119
|
+
/* Ensure default numbering shows even if a global reset removes it */
|
|
4120
|
+
list-style-type: decimal;
|
|
3944
4121
|
list-style-position: outside;
|
|
3945
4122
|
}
|
|
3946
4123
|
|
|
@@ -3975,6 +4152,8 @@ body .ai-chat-popup .ai-chat-input {
|
|
|
3975
4152
|
.PlaygroundEditorTheme__ul {
|
|
3976
4153
|
padding: 0;
|
|
3977
4154
|
margin: 0;
|
|
4155
|
+
/* Ensure bullets show even if a global reset sets list-style: none */
|
|
4156
|
+
list-style-type: disc;
|
|
3978
4157
|
list-style-position: outside;
|
|
3979
4158
|
}
|
|
3980
4159
|
|
|
@@ -5000,6 +5179,45 @@ body .ai-chat-popup .ai-chat-input {
|
|
|
5000
5179
|
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
5180
|
}
|
|
5002
5181
|
|
|
5182
|
+
/* Improve dropdown menu styles */
|
|
5183
|
+
.floating-text-format-popup .improve-dropdown {
|
|
5184
|
+
-webkit-backdrop-filter: blur(8px);
|
|
5185
|
+
backdrop-filter: blur(8px);
|
|
5186
|
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
5187
|
+
}
|
|
5188
|
+
|
|
5189
|
+
.floating-text-format-popup .improve-dropdown .flex.flex-col {
|
|
5190
|
+
display: flex !important;
|
|
5191
|
+
flex-direction: column !important;
|
|
5192
|
+
}
|
|
5193
|
+
|
|
5194
|
+
.floating-text-format-popup .improve-dropdown-item {
|
|
5195
|
+
position: relative;
|
|
5196
|
+
overflow: hidden;
|
|
5197
|
+
display: flex !important;
|
|
5198
|
+
flex-direction: row !important;
|
|
5199
|
+
width: 100% !important;
|
|
5200
|
+
margin: 0 !important;
|
|
5201
|
+
clear: both !important;
|
|
5202
|
+
float: none !important;
|
|
5203
|
+
}
|
|
5204
|
+
|
|
5205
|
+
.floating-text-format-popup .improve-dropdown-item::before {
|
|
5206
|
+
content: '';
|
|
5207
|
+
position: absolute;
|
|
5208
|
+
left: 0;
|
|
5209
|
+
top: 0;
|
|
5210
|
+
height: 100%;
|
|
5211
|
+
width: 3px;
|
|
5212
|
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
5213
|
+
transform: scaleY(0);
|
|
5214
|
+
transition: transform 0.2s ease;
|
|
5215
|
+
}
|
|
5216
|
+
|
|
5217
|
+
.floating-text-format-popup .improve-dropdown-item:hover::before {
|
|
5218
|
+
transform: scaleY(1);
|
|
5219
|
+
}
|
|
5220
|
+
|
|
5003
5221
|
@media (max-width: 1024px) {
|
|
5004
5222
|
.floating-text-format-popup button.insert-comment {
|
|
5005
5223
|
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: () =>
|
|
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 {};
|
|
@@ -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 };
|
package/dist/editorConfig.d.ts
CHANGED
|
@@ -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 {};
|