ct-rich-text-editor 1.3.3 → 1.3.4

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.
@@ -1,8 +1,6 @@
1
1
  @import url("https://fonts.googleapis.com/css2?family=Geist:wght@100;900&display=swap");
2
2
 
3
- /* Keep Tailwind directives but we'll scope problematic global selectors below */
4
-
5
- #ct-editor-f47ac10b *, #ct-editor-f47ac10b ::before, #ct-editor-f47ac10b ::after{
3
+ *, ::before, ::after{
6
4
  --tw-border-spacing-x: 0;
7
5
  --tw-border-spacing-y: 0;
8
6
  --tw-translate-x: 0;
@@ -56,7 +54,7 @@
56
54
  --tw-contain-style: ;
57
55
  }
58
56
 
59
- #ct-editor-f47ac10b::backdrop{
57
+ ::backdrop{
60
58
  --tw-border-spacing-x: 0;
61
59
  --tw-border-spacing-y: 0;
62
60
  --tw-translate-x: 0;
@@ -110,7 +108,9 @@
110
108
  --tw-contain-style: ;
111
109
  }
112
110
 
113
- /* ! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com */
111
+ /*
112
+ ! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com
113
+ */
114
114
 
115
115
  /*
116
116
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
@@ -159,7 +159,7 @@ html,
159
159
  2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
160
160
  */
161
161
 
162
- #ct-editor-f47ac10b {
162
+ body {
163
163
  margin: 0; /* 1 */
164
164
  line-height: inherit; /* 2 */
165
165
  }
@@ -2585,41 +2585,38 @@ video {
2585
2585
 
2586
2586
  /* Additional Styles for ct-editor-f47ac10b */
2587
2587
 
2588
- /* Scope all global styles to the editor container to prevent conflicts with consuming apps */
2589
-
2590
- #ct-editor-f47ac10b * {
2591
- border-color: hsl(var(--cteditorf47ac10b-border));
2592
- }
2588
+ * {
2589
+ border-color: hsl(var(--cteditorf47ac10b-border));
2590
+ }
2593
2591
 
2594
- #ct-editor-f47ac10b {
2592
+ body {
2595
2593
  background-color: hsl(var(--cteditorf47ac10b-bod));
2596
2594
  color: hsl(var(--cteditorf47ac10b-foreground));
2595
+ /* @apply bg-[hsl(var(--cteditorf47ac10b-body))] text-[hsl(var(--cteditorf47ac10b-foreground))]; */
2597
2596
  font-family: "Geist", sans-serif;
2598
2597
  font-optical-sizing: auto;
2599
2598
  font-weight: 400;
2600
2599
  font-style: normal;
2601
2600
  }
2602
2601
 
2603
- /* Scoped scrollbar styles - only affect editor */
2604
-
2605
- #ct-editor-f47ac10b ::-webkit-scrollbar {
2602
+ ::-webkit-scrollbar {
2606
2603
  width: 8px;
2607
2604
  }
2608
2605
 
2609
- #ct-editor-f47ac10b ::-webkit-scrollbar-track {
2606
+ ::-webkit-scrollbar-track {
2610
2607
  background: rgb(240, 240, 240);
2611
2608
  }
2612
2609
 
2613
- #ct-editor-f47ac10b ::-webkit-scrollbar-thumb {
2610
+ ::-webkit-scrollbar-thumb {
2614
2611
  background: rgb(180, 180, 180);
2615
2612
  border-radius: 10px;
2616
2613
  }
2617
2614
 
2618
- #ct-editor-f47ac10b.dark ::-webkit-scrollbar-track {
2615
+ body.dark ::-webkit-scrollbar-track {
2619
2616
  background: rgb(30, 30, 35);
2620
2617
  }
2621
2618
 
2622
- #ct-editor-f47ac10b.dark ::-webkit-scrollbar-thumb {
2619
+ body.dark ::-webkit-scrollbar-thumb {
2623
2620
  background: rgb(80, 80, 90);
2624
2621
  }
2625
2622
 
@@ -2719,9 +2716,9 @@ video {
2719
2716
  background-color: hsla(var(--cteditorf47ac10b-foreground));
2720
2717
  }
2721
2718
 
2722
- /* AI Chat Popup Style - Scoped to editor */
2719
+ /* AI Chat Popup Style */
2723
2720
 
2724
- #ct-editor-f47ac10b .ai-chat-popup {
2721
+ body .ai-chat-popup {
2725
2722
  backdrop-filter: blur(2px);
2726
2723
  display: flex;
2727
2724
  justify-content: center;
@@ -2729,12 +2726,12 @@ video {
2729
2726
  color: hsla(var(--cteditorf47ac10b-foreground));
2730
2727
  }
2731
2728
 
2732
- #ct-editor-f47ac10b .ai-chat-popup .ai-chat-input {
2729
+ body .ai-chat-popup .ai-chat-input {
2733
2730
  background-color: hsla(var(--cteditorf47ac10b-background));
2734
2731
  color: hsla(var(--cteditorf47ac10b-foreground));
2735
2732
  }
2736
2733
 
2737
- #ct-editor-f47ac10b .editorView textarea {
2734
+ .editorView textarea {
2738
2735
  background: hsla(var(--cteditorf47ac10b-background));
2739
2736
  color: hsla(var(--cteditorf47ac10b-foreground));
2740
2737
  border-radius: 10px;
@@ -2742,7 +2739,7 @@ video {
2742
2739
  border-color: hsla(var(--cteditorf47ac10b-foreground)/ 0.2);
2743
2740
  }
2744
2741
 
2745
- #ct-editor-f47ac10b .editor {
2742
+ .editor {
2746
2743
  border: 1px solid hsla(var(--cteditorf47ac10b-background));
2747
2744
  color: hsla(var(--cteditorf47ac10b-foreground));
2748
2745
  border-radius: 8px;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ct-rich-text-editor",
3
3
  "private": false,
4
- "version": "1.3.3",
4
+ "version": "1.3.4",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@9.0.0",
7
7
  "main": "dist/index.js",