@overlap/rte 1.0.7 → 1.0.9

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 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../src/plugins/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAExE,OAAO,EAA0B,MAAM,EAAE,MAAM,UAAU,CAAC;AAoR1D,eAAO,MAAM,WAAW,EAAE,MAczB,CAAC;AAMF,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC5C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,CA6BA,CAAC"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../src/plugins/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAGxE,OAAO,EAA0B,MAAM,EAAE,MAAM,UAAU,CAAC;AAsT1D,eAAO,MAAM,WAAW,EAAE,MAczB,CAAC;AAMF,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC5C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,CA6BA,CAAC"}
package/dist/styles.css CHANGED
@@ -78,11 +78,18 @@
78
78
  .rte-toolbar-left {
79
79
  display: flex;
80
80
  gap: var(--rte-padding-xs);
81
- flex-wrap: wrap;
81
+ flex-wrap: nowrap;
82
+ overflow-x: auto;
83
+ scrollbar-width: none;
84
+ -ms-overflow-style: none;
82
85
  align-items: center;
83
86
  flex: 1;
84
87
  }
85
88
 
89
+ .rte-toolbar-left::-webkit-scrollbar {
90
+ display: none;
91
+ }
92
+
86
93
  .rte-toolbar-right {
87
94
  display: flex;
88
95
  gap: var(--rte-padding-xs);
@@ -99,9 +106,9 @@
99
106
  flex-shrink: 0;
100
107
  }
101
108
 
102
- /* Floating Toolbar (appears on text selection) */
109
+ /* Floating Toolbar (appears on text selection, rendered via portal) */
103
110
  .rte-floating-toolbar {
104
- z-index: 1001;
111
+ z-index: 10000;
105
112
  background: var(--rte-content-bg);
106
113
  border: 1px solid var(--rte-border-color);
107
114
  border-radius: 8px;
@@ -111,6 +118,8 @@
111
118
  padding: var(--rte-padding-xs);
112
119
  animation: rte-float-in 0.12s ease-out;
113
120
  pointer-events: auto;
121
+ max-width: calc(100vw - 16px);
122
+ overflow: hidden;
114
123
  }
115
124
 
116
125
  @keyframes rte-float-in {
@@ -128,6 +137,8 @@
128
137
  display: flex;
129
138
  align-items: center;
130
139
  gap: 2px;
140
+ min-width: 0;
141
+ max-width: 100%;
131
142
  }
132
143
 
133
144
  /* Toolbar Buttons - Ghost/Subtle Style */
@@ -293,10 +304,10 @@
293
304
  .rte-editor li[role="checkbox"]::after {
294
305
  content: "";
295
306
  position: absolute;
296
- left: -40px;
307
+ left: -28px;
297
308
  top: 0;
298
- width: 40px;
299
- height: 100%;
309
+ width: 24px;
310
+ height: 22px;
300
311
  cursor: pointer;
301
312
  z-index: 100;
302
313
  pointer-events: auto;
@@ -356,7 +367,7 @@
356
367
 
357
368
  .rte-editor li[dir="rtl"][role="checkbox"]::after {
358
369
  left: auto;
359
- right: -40px;
370
+ right: -28px;
360
371
  }
361
372
 
362
373
  /* Strikethrough support (Lexical uses <s> tag) */
@@ -425,21 +436,17 @@
425
436
  color: var(--rte-text-color);
426
437
  }
427
438
 
428
- /* Dropdown Menu - Modern Popover */
439
+ /* Dropdown Menu - Modern Popover (rendered via portal into document.body) */
429
440
  .rte-dropdown-menu {
430
- position: absolute;
431
- top: calc(100% + 4px);
432
- left: 0;
433
441
  background: var(--rte-content-bg);
434
442
  border: 1px solid var(--rte-border-color);
435
443
  border-radius: var(--rte-border-radius);
436
444
  box-shadow: var(--rte-shadow-popover);
437
- z-index: 1000;
445
+ z-index: 10000;
438
446
  min-width: 180px;
439
447
  max-height: 320px;
440
448
  overflow-y: auto;
441
449
  padding: var(--rte-padding-sm);
442
- margin-top: var(--rte-padding-xs);
443
450
  }
444
451
 
445
452
  .rte-dropdown-item {
@@ -800,12 +807,9 @@
800
807
  outline-offset: -2px;
801
808
  }
802
809
 
803
- /* Table Insert Dialog */
810
+ /* Table Insert Dialog (rendered via portal into document.body) */
804
811
  .rte-table-insert-dialog {
805
- position: absolute;
806
- top: 100%;
807
- left: 0;
808
- z-index: 1000;
812
+ z-index: 10000;
809
813
  background: var(--rte-content-bg);
810
814
  border: 1px solid var(--rte-border-color);
811
815
  border-radius: 8px;
@@ -1 +1 @@
1
- {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/utils/content.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAc,MAAM,UAAU,CAAC;AA4CrD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,WAAW,GAAG,aAAa,CAyVhE;AAED;;GAEG;AACH,wBAAgB,YAAY,CACxB,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,WAAW,EACtB,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,CAAC,EACF,qBAAqB,CAAC,EAAE,CACpB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,KAAK,CAAC,SAAS,KACxB,KAAK,CAAC,SAAS,GACrB,IAAI,CAoIN;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,aAAa,CAIlD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAI5D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,aAAa,CAK/D"}
1
+ {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/utils/content.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAc,MAAM,UAAU,CAAC;AA4CrD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,WAAW,GAAG,aAAa,CAoYhE;AAED;;GAEG;AACH,wBAAgB,YAAY,CACxB,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,WAAW,EACtB,mBAAmB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,CAAC,EACF,qBAAqB,CAAC,EAAE,CACpB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,KAAK,CAAC,SAAS,KACxB,KAAK,CAAC,SAAS,GACrB,IAAI,CAoIN;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,aAAa,CAIlD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAI5D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,aAAa,CAK/D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overlap/rte",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "A lightweight, extensible Rich Text Editor for React",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",