ct-rich-text-editor 1.3.6 → 1.3.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.
@@ -3048,7 +3048,6 @@ body.dark ::-webkit-scrollbar-thumb {
3048
3048
 
3049
3049
  .PlaygroundEditorTheme__table .PlaygroundEditorTheme__tableCell {
3050
3050
  border-color: hsla(var(--cteditorf47ac10b-foreground), 0.2);
3051
- background-color: transparent !important;
3052
3051
  }
3053
3052
 
3054
3053
  .PlaygroundEditorTheme__tableCellHeader,
@@ -6746,6 +6745,105 @@ body .ai-chat-popup .ai-chat-input {
6746
6745
  display: none;
6747
6746
  }
6748
6747
  }
6748
+ /* Mentions Plugin Styles */
6749
+
6750
+ .typeahead-popover.mentions-menu {
6751
+ background: hsl(var(--cteditorf47ac10b-popover));
6752
+ border: 1px solid hsl(var(--cteditorf47ac10b-border));
6753
+ border-radius: 8px;
6754
+ box-shadow: 0 4px 12px hsla(var(--cteditorf47ac10b-foreground) / 0.1);
6755
+ padding: 8px;
6756
+ max-height: 300px;
6757
+ overflow-y: auto;
6758
+ min-width: 200px;
6759
+ z-index: 1000;
6760
+ }
6761
+
6762
+ .typeahead-popover.mentions-menu ul {
6763
+ list-style: none;
6764
+ margin: 0;
6765
+ padding: 0;
6766
+ }
6767
+
6768
+ .typeahead-popover.mentions-menu .item {
6769
+ display: flex;
6770
+ align-items: center;
6771
+ gap: 8px;
6772
+ padding: 8px 12px;
6773
+ border-radius: 6px;
6774
+ cursor: pointer;
6775
+ transition: all 0.15s ease;
6776
+ color: hsl(var(--cteditorf47ac10b-foreground));
6777
+ }
6778
+
6779
+ .typeahead-popover.mentions-menu .item:hover {
6780
+ background: hsl(var(--cteditorf47ac10b-accent));
6781
+ }
6782
+
6783
+ .typeahead-popover.mentions-menu .item.selected {
6784
+ background: hsl(var(--cteditorf47ac10b-primary));
6785
+ color: hsl(var(--cteditorf47ac10b-primary-foreground));
6786
+ }
6787
+
6788
+ .typeahead-popover.mentions-menu .item .icon.user {
6789
+ width: 20px;
6790
+ height: 20px;
6791
+ border-radius: 50%;
6792
+ background: hsl(var(--cteditorf47ac10b-muted));
6793
+ display: flex;
6794
+ align-items: center;
6795
+ justify-content: center;
6796
+ flex-shrink: 0;
6797
+ }
6798
+
6799
+ .typeahead-popover.mentions-menu .item .icon.user::before {
6800
+ content: '👤';
6801
+ font-size: 12px;
6802
+ font-style: normal;
6803
+ }
6804
+
6805
+ .typeahead-popover.mentions-menu .item.selected .icon.user {
6806
+ background: hsl(var(--cteditorf47ac10b-primary-foreground) / 0.2);
6807
+ }
6808
+
6809
+ .typeahead-popover.mentions-menu .item .text {
6810
+ flex: 1;
6811
+ font-size: 14px;
6812
+ font-weight: 400;
6813
+ overflow: hidden;
6814
+ text-overflow: ellipsis;
6815
+ white-space: nowrap;
6816
+ }
6817
+
6818
+ .typeahead-popover.mentions-menu .no-users-found {
6819
+ padding: 12px;
6820
+ text-align: center;
6821
+ color: hsl(var(--cteditorf47ac10b-muted-foreground));
6822
+ font-size: 14px;
6823
+ }
6824
+
6825
+ /* Scrollbar styling for mentions menu */
6826
+ .typeahead-popover.mentions-menu::-webkit-scrollbar {
6827
+ width: 6px;
6828
+ }
6829
+
6830
+ .typeahead-popover.mentions-menu::-webkit-scrollbar-track {
6831
+ background: transparent;
6832
+ }
6833
+
6834
+ .typeahead-popover.mentions-menu::-webkit-scrollbar-thumb {
6835
+ background: hsl(var(--cteditorf47ac10b-border));
6836
+ border-radius: 3px;
6837
+ }
6838
+
6839
+ .typeahead-popover.mentions-menu::-webkit-scrollbar-thumb:hover {
6840
+ background: hsl(var(--cteditorf47ac10b-foreground) / 0.3);
6841
+ }
6842
+
6843
+ /* Dark mode specific adjustments */
6844
+ .dark .typeahead-popover.mentions-menu {
6845
+ box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.4);
6846
+ }
6749
6847
  /* Table Cell Action Button Container and Button Styles */
6750
6848
  .table-cell-action-button-container {
6751
6849
  position: absolute !important;
@@ -6769,17 +6867,17 @@ body .ai-chat-popup .ai-chat-input {
6769
6867
  justify-content: center;
6770
6868
  align-items: center;
6771
6869
  border: 1px solid hsl(var(--cteditorf47ac10b-border));
6772
- width: 28px !important;
6773
- height: 28px !important;
6774
- border-radius: 6px;
6870
+ width: 20px !important;
6871
+ height: 20px !important;
6872
+ border-radius: 4px;
6775
6873
  background: hsl(var(--cteditorf47ac10b-popover)) !important;
6776
6874
  color: hsl(var(--cteditorf47ac10b-popover-foreground)) !important;
6777
6875
  cursor: pointer;
6778
6876
  box-shadow: 0 2px 8px hsl(var(--cteditorf47ac10b-foreground) / 0.1);
6779
6877
  transition: all 0.2s ease;
6780
6878
  padding: 0 !important;
6781
- min-width: 28px;
6782
- max-width: 28px;
6879
+ min-width: 20px;
6880
+ max-width: 20px;
6783
6881
  }
6784
6882
 
6785
6883
  .table-cell-action-button:hover {
@@ -6791,8 +6889,8 @@ body .ai-chat-popup .ai-chat-input {
6791
6889
  }
6792
6890
 
6793
6891
  .table-cell-action-button svg {
6794
- width: 16px;
6795
- height: 16px;
6892
+ width: 12px;
6893
+ height: 12px;
6796
6894
  stroke: currentColor;
6797
6895
  }
6798
6896
 
@@ -6800,8 +6898,8 @@ body .ai-chat-popup .ai-chat-input {
6800
6898
  background-color: transparent;
6801
6899
  background-size: contain;
6802
6900
  display: inline-block;
6803
- height: 8px;
6804
- width: 8px;
6901
+ height: 6px;
6902
+ width: 6px;
6805
6903
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktY2hldnJvbi1kb3duIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xLjY0NiA0LjY0NmEuNS41IDAgMCAxIC43MDggMEw4IDEwLjI5M2w1LjY0Ni01LjY0N2EuNS41IDAgMCAxIC43MDguNzA4bC02IDZhLjUuNSAwIDAgMS0uNzA4IDBsLTYtNmEuNS41IDAgMCAxIDAtLjcwOHoiLz48L3N2Zz4=);
6806
6904
  filter: invert(var(--icon-invert, 0));
6807
6905
  }
@@ -44,5 +44,5 @@ export declare const editorConfig: {
44
44
  maxSuggestions: number;
45
45
  };
46
46
  defaultFontFamilies: string[];
47
- mentionUserList: string[];
47
+ mentionUserList: never[];
48
48
  };
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { g as getDefaultExportFromCjs, c as commonjsGlobal } from "./index-dbc626d0.js";
7
+ import { g as getDefaultExportFromCjs, c as commonjsGlobal } from "./index-a8476eee.js";
8
8
  function _mergeNamespaces(n, m) {
9
9
  for (var i = 0; i < m.length; i++) {
10
10
  const e = m[i];
@@ -46125,4 +46125,4 @@ const html2pdf_bundle$1 = /* @__PURE__ */ _mergeNamespaces({
46125
46125
  export {
46126
46126
  html2pdf_bundle$1 as h
46127
46127
  };
46128
- //# sourceMappingURL=html2pdf.bundle-9236a762.js.map
46128
+ //# sourceMappingURL=html2pdf.bundle-40cc5697.js.map