@eigenpal/docx-js-editor 0.0.1 → 0.0.2

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.
Files changed (46) hide show
  1. package/README.md +1 -1
  2. package/dist/chunk-3IYNTJO5.js +1 -0
  3. package/dist/chunk-7KNRIGGW.cjs +1 -0
  4. package/dist/chunk-AQ35GWDV.js +1 -0
  5. package/dist/chunk-CDT2SOKB.cjs +9 -0
  6. package/dist/chunk-CM5WP7HZ.cjs +10 -0
  7. package/dist/chunk-EU5LN2WS.js +11 -0
  8. package/dist/chunk-FOU7PS3K.cjs +1 -0
  9. package/dist/chunk-G4AXMTQY.cjs +11 -0
  10. package/dist/chunk-HRPNPUU4.js +1 -0
  11. package/dist/chunk-NI5OFVY2.js +57 -0
  12. package/dist/chunk-QHWHCIUW.js +1 -0
  13. package/dist/chunk-RGYAPHXT.cjs +57 -0
  14. package/dist/chunk-RTESADL3.cjs +1 -0
  15. package/dist/chunk-T3I3VSJ3.js +9 -0
  16. package/dist/chunk-XVFMG77A.cjs +1 -0
  17. package/dist/chunk-YJJ7HRPG.js +10 -0
  18. package/dist/core-plugins.cjs +1 -7131
  19. package/dist/core-plugins.js +1 -7102
  20. package/dist/executor-7DZMHPUF.js +1 -0
  21. package/dist/executor-FSMRGT73.cjs +1 -0
  22. package/dist/headless.cjs +4 -10984
  23. package/dist/headless.d.cts +4 -3
  24. package/dist/headless.d.ts +4 -3
  25. package/dist/headless.js +4 -10852
  26. package/dist/index.cjs +210 -44710
  27. package/dist/index.css +1 -369
  28. package/dist/index.d.cts +3 -3
  29. package/dist/index.d.ts +3 -3
  30. package/dist/index.js +210 -44385
  31. package/dist/mcp-cli.js +35 -9557
  32. package/dist/mcp.cjs +14 -8713
  33. package/dist/mcp.js +14 -8665
  34. package/dist/selectionRects-3PJ6FGHQ.js +1 -0
  35. package/dist/selectionRects-6QL5E7CE.cjs +1 -0
  36. package/package.json +3 -4
  37. package/dist/core-plugins.cjs.map +0 -1
  38. package/dist/core-plugins.js.map +0 -1
  39. package/dist/headless.cjs.map +0 -1
  40. package/dist/headless.js.map +0 -1
  41. package/dist/index.cjs.map +0 -1
  42. package/dist/index.css.map +0 -1
  43. package/dist/index.js.map +0 -1
  44. package/dist/mcp-cli.js.map +0 -1
  45. package/dist/mcp.cjs.map +0 -1
  46. package/dist/mcp.js.map +0 -1
package/dist/index.css CHANGED
@@ -1,369 +1 @@
1
- /* src/prosemirror/editor.css */
2
- .prosemirror-editor-wrapper {
3
- min-height: 100%;
4
- }
5
- .prosemirror-zoom-container {
6
- }
7
- .prosemirror-editor {
8
- width: var(--page-width, 8.5in);
9
- }
10
- .prosemirror-editor .ProseMirror {
11
- background: white;
12
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
13
- width: var(--page-width, 8.5in);
14
- min-height: var(--page-height, 11in);
15
- padding-top: var(--margin-top, 72px);
16
- padding-bottom: var(--margin-bottom, 72px);
17
- padding-left: var(--margin-left, 72px);
18
- padding-right: var(--margin-right, 72px);
19
- outline: none;
20
- font-family:
21
- "Calibri",
22
- "Arial",
23
- sans-serif;
24
- font-size: 11pt;
25
- color: #000;
26
- white-space: pre-wrap;
27
- word-wrap: break-word;
28
- -o-tab-size: 48;
29
- tab-size: 48;
30
- -moz-tab-size: 48;
31
- box-sizing: border-box;
32
- position: relative;
33
- }
34
- .prosemirror-editor .ProseMirror .docx-page-break {
35
- display: block;
36
- position: relative;
37
- height: 40px;
38
- margin: 0 calc(-1 * var(--margin-left, 72px));
39
- margin-right: calc(-1 * var(--margin-right, 72px));
40
- background: var(--doc-bg);
41
- border: none;
42
- pointer-events: none;
43
- }
44
- .prosemirror-editor .ProseMirror .docx-page-break::before {
45
- content: "";
46
- position: absolute;
47
- bottom: 0;
48
- left: 0;
49
- right: 0;
50
- height: 8px;
51
- background:
52
- linear-gradient(
53
- to bottom,
54
- transparent,
55
- rgba(0, 0, 0, 0.08));
56
- }
57
- .prosemirror-editor .ProseMirror .docx-page-break::after {
58
- content: "";
59
- position: absolute;
60
- top: 0;
61
- left: 0;
62
- right: 0;
63
- height: 8px;
64
- background:
65
- linear-gradient(
66
- to top,
67
- transparent,
68
- rgba(0, 0, 0, 0.08));
69
- }
70
- .prosemirror-editor .ProseMirror [data-page-break-before=true] {
71
- -moz-column-break-before: page;
72
- break-before: page;
73
- }
74
- .prosemirror-editor .ProseMirror .docx-page-break-line {
75
- display: block;
76
- position: relative;
77
- height: 1px;
78
- margin: 20px calc(-1 * var(--margin-left, 72px));
79
- margin-right: calc(-1 * var(--margin-right, 72px));
80
- border-top: 1px dashed var(--doc-border);
81
- }
82
- .prosemirror-editor .ProseMirror .docx-page-break-line::before {
83
- content: "Page Break";
84
- position: absolute;
85
- top: -10px;
86
- left: 50%;
87
- transform: translateX(-50%);
88
- background: var(--doc-bg);
89
- padding: 0 8px;
90
- font-size: 10px;
91
- color: var(--doc-text-muted);
92
- white-space: nowrap;
93
- }
94
- .prosemirror-editor .ProseMirror:focus {
95
- outline: none;
96
- }
97
- .prosemirror-editor .ProseMirror p {
98
- display: block;
99
- margin: 0;
100
- padding: 0;
101
- min-height: 1em;
102
- white-space: pre-wrap;
103
- word-wrap: break-word;
104
- line-height: normal;
105
- }
106
- .prosemirror-editor .ProseMirror p:empty::before {
107
- content: "\a0";
108
- }
109
- .prosemirror-editor .ProseMirror span {
110
- display: inline;
111
- white-space: pre-wrap;
112
- }
113
- .prosemirror-editor .ProseMirror .docx-list-bullet,
114
- .prosemirror-editor .ProseMirror .docx-list-numbered {
115
- position: relative;
116
- padding-left: 48px;
117
- }
118
- .prosemirror-editor .ProseMirror [data-list-marker]::before {
119
- content: attr(data-list-marker);
120
- position: absolute;
121
- left: 0;
122
- width: 44px;
123
- text-align: right;
124
- white-space: nowrap;
125
- }
126
- .prosemirror-editor .ProseMirror .docx-list-bullet:not([data-list-marker])::before {
127
- content: "\2022";
128
- position: absolute;
129
- left: 0;
130
- width: 44px;
131
- text-align: right;
132
- }
133
- .prosemirror-editor .ProseMirror .docx-list-numbered:not([data-list-marker]) {
134
- counter-increment: list-counter;
135
- }
136
- .prosemirror-editor .ProseMirror .docx-list-decimal:not([data-list-marker])::before {
137
- content: counter(list-counter) ".";
138
- position: absolute;
139
- left: 0;
140
- width: 44px;
141
- text-align: right;
142
- }
143
- .prosemirror-editor .ProseMirror .docx-list-lower-roman:not([data-list-marker])::before {
144
- content: counter(list-counter, lower-roman) ".";
145
- position: absolute;
146
- left: 0;
147
- width: 44px;
148
- text-align: right;
149
- }
150
- .prosemirror-editor .ProseMirror .docx-list-upper-roman:not([data-list-marker])::before {
151
- content: counter(list-counter, upper-roman) ".";
152
- position: absolute;
153
- left: 0;
154
- width: 44px;
155
- text-align: right;
156
- }
157
- .prosemirror-editor .ProseMirror .docx-list-lower-alpha:not([data-list-marker])::before {
158
- content: counter(list-counter, lower-alpha) ".";
159
- position: absolute;
160
- left: 0;
161
- width: 44px;
162
- text-align: right;
163
- }
164
- .prosemirror-editor .ProseMirror .docx-list-upper-alpha:not([data-list-marker])::before {
165
- content: counter(list-counter, upper-alpha) ".";
166
- position: absolute;
167
- left: 0;
168
- width: 44px;
169
- text-align: right;
170
- }
171
- .prosemirror-editor .ProseMirror .docx-list-level-0:not([data-list-marker]):first-of-type {
172
- counter-reset: list-counter;
173
- }
174
- .prosemirror-editor .ProseMirror .docx-list-level-1 {
175
- margin-left: 0.5in;
176
- }
177
- .prosemirror-editor .ProseMirror .docx-list-level-2 {
178
- margin-left: 1in;
179
- }
180
- .prosemirror-editor .ProseMirror .docx-list-level-3 {
181
- margin-left: 1.5in;
182
- }
183
- .prosemirror-editor .ProseMirror .docx-list-level-4 {
184
- margin-left: 2in;
185
- }
186
- .prosemirror-editor .ProseMirror .docx-list-level-5 {
187
- margin-left: 2.5in;
188
- }
189
- .prosemirror-editor .ProseMirror .docx-list-level-6 {
190
- margin-left: 3in;
191
- }
192
- .prosemirror-editor .ProseMirror .docx-list-level-7 {
193
- margin-left: 3.5in;
194
- }
195
- .prosemirror-editor .ProseMirror .docx-list-level-8 {
196
- margin-left: 4in;
197
- }
198
- .prosemirror-editor .ProseMirror ::-moz-selection {
199
- background: rgba(66, 133, 244, 0.3);
200
- }
201
- .prosemirror-editor .ProseMirror ::selection {
202
- background: rgba(66, 133, 244, 0.3);
203
- }
204
- .prosemirror-editor[data-placeholder]::before {
205
- content: attr(data-placeholder);
206
- color: #aaa;
207
- position: absolute;
208
- pointer-events: none;
209
- }
210
- .prosemirror-editor .ProseMirror img.docx-image {
211
- display: inline;
212
- max-width: 100%;
213
- -o-object-fit: contain;
214
- object-fit: contain;
215
- vertical-align: baseline;
216
- outline: none;
217
- }
218
- .prosemirror-editor .ProseMirror img.docx-image-float {
219
- }
220
- .prosemirror-editor .ProseMirror img.docx-image-float-left {
221
- clear: left;
222
- }
223
- .prosemirror-editor .ProseMirror img.docx-image-float-right {
224
- clear: right;
225
- }
226
- .prosemirror-editor .ProseMirror img.docx-image-block {
227
- clear: both;
228
- }
229
- .prosemirror-editor .ProseMirror p:has(img.docx-image-float)::after {
230
- content: "";
231
- display: table;
232
- clear: both;
233
- }
234
- .prosemirror-editor .ProseMirror img.docx-image.ProseMirror-selectednode {
235
- outline: 2px solid var(--doc-primary, #4285f4);
236
- outline-offset: 2px;
237
- }
238
- .prosemirror-editor .ProseMirror img:not(.docx-image) {
239
- max-width: 100%;
240
- height: auto;
241
- }
242
- .prosemirror-editor .ProseMirror a {
243
- color: var(--doc-link);
244
- text-decoration: underline;
245
- }
246
- .prosemirror-editor .ProseMirror a:hover {
247
- color: var(--doc-primary-hover);
248
- }
249
- .prosemirror-editor .ProseMirror .docx-footnote-ref,
250
- .prosemirror-editor .ProseMirror .docx-endnote-ref {
251
- color: var(--doc-link, #0066cc);
252
- cursor: pointer;
253
- vertical-align: super;
254
- font-size: smaller;
255
- }
256
- .prosemirror-editor .ProseMirror .docx-footnote-ref:hover,
257
- .prosemirror-editor .ProseMirror .docx-endnote-ref:hover {
258
- text-decoration: underline;
259
- }
260
- .prosemirror-editor .ProseMirror hr {
261
- border: none;
262
- border-top: 1px solid #000;
263
- margin: 12pt 0;
264
- height: 0;
265
- }
266
- .prosemirror-editor .ProseMirror table.docx-table {
267
- border-collapse: collapse;
268
- margin: 12pt 0;
269
- table-layout: auto;
270
- max-width: 100%;
271
- width: auto;
272
- }
273
- .prosemirror-editor .ProseMirror td.docx-table-cell,
274
- .prosemirror-editor .ProseMirror th.docx-table-header {
275
- padding: 4px 8px;
276
- vertical-align: top;
277
- min-width: 30px;
278
- }
279
- .prosemirror-editor .ProseMirror th.docx-table-header {
280
- font-weight: bold;
281
- text-align: left;
282
- }
283
- .prosemirror-editor .ProseMirror td p,
284
- .prosemirror-editor .ProseMirror th p {
285
- margin: 0;
286
- padding: 0;
287
- min-height: auto;
288
- }
289
- .prosemirror-editor .ProseMirror td p:first-child,
290
- .prosemirror-editor .ProseMirror th p:first-child {
291
- margin-top: 0;
292
- }
293
- .prosemirror-editor .ProseMirror td p:last-child,
294
- .prosemirror-editor .ProseMirror th p:last-child {
295
- margin-bottom: 0;
296
- }
297
- .prosemirror-editor .ProseMirror .selectedCell {
298
- background-color: rgba(66, 133, 244, 0.15);
299
- }
300
- .prosemirror-editor .ProseMirror .selectedCell::after {
301
- content: "";
302
- position: absolute;
303
- inset: 0;
304
- background: rgba(66, 133, 244, 0.1);
305
- pointer-events: none;
306
- }
307
- .prosemirror-editor .ProseMirror table table {
308
- margin: 4px 0;
309
- }
310
- .prosemirror-editor .ProseMirror .column-resize-handle {
311
- position: absolute;
312
- right: -2px;
313
- top: 0;
314
- bottom: 0;
315
- width: 4px;
316
- background-color: rgba(66, 133, 244, 0.5);
317
- cursor: col-resize;
318
- z-index: 20;
319
- }
320
- .prosemirror-editor .ProseMirror td.docx-table-cell,
321
- .prosemirror-editor .ProseMirror th.docx-table-header {
322
- position: relative;
323
- }
324
- .prosemirror-editor .ProseMirror.resize-cursor {
325
- cursor: col-resize;
326
- }
327
- .prosemirror-editor .ProseMirror table:not(:hover) .column-resize-handle {
328
- background-color: transparent;
329
- }
330
- .prosemirror-editor .ProseMirror table:hover .column-resize-handle {
331
- background-color: rgba(66, 133, 244, 0.3);
332
- }
333
- .prosemirror-editor .ProseMirror .column-resize-handle:hover {
334
- background-color: rgba(66, 133, 244, 0.7);
335
- }
336
- .prosemirror-editor .ProseMirror span.docx-tab {
337
- display: inline-block;
338
- min-width: 48px;
339
- white-space: pre;
340
- background: transparent;
341
- }
342
- .prosemirror-editor .ProseMirror span.docx-tab[data-leader=dot]::before {
343
- content: "...........";
344
- position: absolute;
345
- color: inherit;
346
- white-space: nowrap;
347
- overflow: hidden;
348
- }
349
- .prosemirror-editor .ProseMirror span.docx-tab[data-leader=hyphen]::before {
350
- content: "-----------";
351
- position: absolute;
352
- color: inherit;
353
- white-space: nowrap;
354
- overflow: hidden;
355
- }
356
- .prosemirror-editor .ProseMirror span.docx-tab[data-leader=underscore]::before {
357
- content: "___________";
358
- position: absolute;
359
- color: inherit;
360
- white-space: nowrap;
361
- overflow: hidden;
362
- }
363
- .prosemirror-editor .ProseMirror .docx-run-all-caps {
364
- text-transform: uppercase;
365
- }
366
- .prosemirror-editor .ProseMirror .docx-run-small-caps {
367
- font-variant: small-caps;
368
- }
369
- /*# sourceMappingURL=index.css.map */
1
+ .prosemirror-editor-wrapper{min-height:100%}.prosemirror-editor{width:var(--page-width, 8.5in)}.prosemirror-editor .ProseMirror{background:#fff;box-shadow:0 2px 8px #00000026;width:var(--page-width, 8.5in);min-height:var(--page-height, 11in);padding-top:var(--margin-top, 72px);padding-bottom:var(--margin-bottom, 72px);padding-left:var(--margin-left, 72px);padding-right:var(--margin-right, 72px);outline:none;font-family:Calibri,Arial,sans-serif;font-size:11pt;color:#000;white-space:pre-wrap;word-wrap:break-word;-o-tab-size:48;tab-size:48;-moz-tab-size:48;box-sizing:border-box;position:relative}.prosemirror-editor .ProseMirror .docx-page-break{display:block;position:relative;height:40px;margin:0 calc(-1 * var(--margin-left, 72px));margin-right:calc(-1 * var(--margin-right, 72px));background:var(--doc-bg);border:none;pointer-events:none}.prosemirror-editor .ProseMirror .docx-page-break:before{content:"";position:absolute;bottom:0;left:0;right:0;height:8px;background:linear-gradient(to bottom,transparent,rgba(0,0,0,.08))}.prosemirror-editor .ProseMirror .docx-page-break:after{content:"";position:absolute;top:0;left:0;right:0;height:8px;background:linear-gradient(to top,transparent,rgba(0,0,0,.08))}.prosemirror-editor .ProseMirror [data-page-break-before=true]{-moz-column-break-before:page;break-before:page}.prosemirror-editor .ProseMirror .docx-page-break-line{display:block;position:relative;height:1px;margin:20px calc(-1 * var(--margin-left, 72px));margin-right:calc(-1 * var(--margin-right, 72px));border-top:1px dashed var(--doc-border)}.prosemirror-editor .ProseMirror .docx-page-break-line:before{content:"Page Break";position:absolute;top:-10px;left:50%;transform:translate(-50%);background:var(--doc-bg);padding:0 8px;font-size:10px;color:var(--doc-text-muted);white-space:nowrap}.prosemirror-editor .ProseMirror:focus{outline:none}.prosemirror-editor .ProseMirror p{display:block;margin:0;padding:0;min-height:1em;white-space:pre-wrap;word-wrap:break-word;line-height:normal}.prosemirror-editor .ProseMirror p:empty:before{content:"\a0"}.prosemirror-editor .ProseMirror span{display:inline;white-space:pre-wrap}.prosemirror-editor .ProseMirror .docx-list-bullet,.prosemirror-editor .ProseMirror .docx-list-numbered{position:relative;padding-left:48px}.prosemirror-editor .ProseMirror [data-list-marker]:before{content:attr(data-list-marker);position:absolute;left:0;width:44px;text-align:right;white-space:nowrap}.prosemirror-editor .ProseMirror .docx-list-bullet:not([data-list-marker]):before{content:"\2022";position:absolute;left:0;width:44px;text-align:right}.prosemirror-editor .ProseMirror .docx-list-numbered:not([data-list-marker]){counter-increment:list-counter}.prosemirror-editor .ProseMirror .docx-list-decimal:not([data-list-marker]):before{content:counter(list-counter) ".";position:absolute;left:0;width:44px;text-align:right}.prosemirror-editor .ProseMirror .docx-list-lower-roman:not([data-list-marker]):before{content:counter(list-counter,lower-roman) ".";position:absolute;left:0;width:44px;text-align:right}.prosemirror-editor .ProseMirror .docx-list-upper-roman:not([data-list-marker]):before{content:counter(list-counter,upper-roman) ".";position:absolute;left:0;width:44px;text-align:right}.prosemirror-editor .ProseMirror .docx-list-lower-alpha:not([data-list-marker]):before{content:counter(list-counter,lower-alpha) ".";position:absolute;left:0;width:44px;text-align:right}.prosemirror-editor .ProseMirror .docx-list-upper-alpha:not([data-list-marker]):before{content:counter(list-counter,upper-alpha) ".";position:absolute;left:0;width:44px;text-align:right}.prosemirror-editor .ProseMirror .docx-list-level-0:not([data-list-marker]):first-of-type{counter-reset:list-counter}.prosemirror-editor .ProseMirror .docx-list-level-1{margin-left:.5in}.prosemirror-editor .ProseMirror .docx-list-level-2{margin-left:1in}.prosemirror-editor .ProseMirror .docx-list-level-3{margin-left:1.5in}.prosemirror-editor .ProseMirror .docx-list-level-4{margin-left:2in}.prosemirror-editor .ProseMirror .docx-list-level-5{margin-left:2.5in}.prosemirror-editor .ProseMirror .docx-list-level-6{margin-left:3in}.prosemirror-editor .ProseMirror .docx-list-level-7{margin-left:3.5in}.prosemirror-editor .ProseMirror .docx-list-level-8{margin-left:4in}.prosemirror-editor .ProseMirror ::-moz-selection{background:#4285f44d}.prosemirror-editor .ProseMirror ::selection{background:#4285f44d}.prosemirror-editor[data-placeholder]:before{content:attr(data-placeholder);color:#aaa;position:absolute;pointer-events:none}.prosemirror-editor .ProseMirror img.docx-image{display:inline;max-width:100%;-o-object-fit:contain;object-fit:contain;vertical-align:baseline;outline:none}.prosemirror-editor .ProseMirror img.docx-image-float-left{clear:left}.prosemirror-editor .ProseMirror img.docx-image-float-right{clear:right}.prosemirror-editor .ProseMirror img.docx-image-block{clear:both}.prosemirror-editor .ProseMirror p:has(img.docx-image-float):after{content:"";display:table;clear:both}.prosemirror-editor .ProseMirror img.docx-image.ProseMirror-selectednode{outline:2px solid var(--doc-primary, #4285f4);outline-offset:2px}.prosemirror-editor .ProseMirror img:not(.docx-image){max-width:100%;height:auto}.prosemirror-editor .ProseMirror a{color:var(--doc-link);text-decoration:underline}.prosemirror-editor .ProseMirror a:hover{color:var(--doc-primary-hover)}.prosemirror-editor .ProseMirror .docx-footnote-ref,.prosemirror-editor .ProseMirror .docx-endnote-ref{color:var(--doc-link, #0066cc);cursor:pointer;vertical-align:super;font-size:smaller}.prosemirror-editor .ProseMirror .docx-footnote-ref:hover,.prosemirror-editor .ProseMirror .docx-endnote-ref:hover{text-decoration:underline}.prosemirror-editor .ProseMirror hr{border:none;border-top:1px solid #000;margin:12pt 0;height:0}.prosemirror-editor .ProseMirror table.docx-table{border-collapse:collapse;margin:12pt 0;table-layout:auto;max-width:100%;width:auto}.prosemirror-editor .ProseMirror td.docx-table-cell,.prosemirror-editor .ProseMirror th.docx-table-header{padding:4px 8px;vertical-align:top;min-width:30px}.prosemirror-editor .ProseMirror th.docx-table-header{font-weight:700;text-align:left}.prosemirror-editor .ProseMirror td p,.prosemirror-editor .ProseMirror th p{margin:0;padding:0;min-height:auto}.prosemirror-editor .ProseMirror td p:first-child,.prosemirror-editor .ProseMirror th p:first-child{margin-top:0}.prosemirror-editor .ProseMirror td p:last-child,.prosemirror-editor .ProseMirror th p:last-child{margin-bottom:0}.prosemirror-editor .ProseMirror .selectedCell{background-color:#4285f426}.prosemirror-editor .ProseMirror .selectedCell:after{content:"";position:absolute;inset:0;background:#4285f41a;pointer-events:none}.prosemirror-editor .ProseMirror table table{margin:4px 0}.prosemirror-editor .ProseMirror .column-resize-handle{position:absolute;right:-2px;top:0;bottom:0;width:4px;background-color:#4285f480;cursor:col-resize;z-index:20}.prosemirror-editor .ProseMirror td.docx-table-cell,.prosemirror-editor .ProseMirror th.docx-table-header{position:relative}.prosemirror-editor .ProseMirror.resize-cursor{cursor:col-resize}.prosemirror-editor .ProseMirror table:not(:hover) .column-resize-handle{background-color:transparent}.prosemirror-editor .ProseMirror table:hover .column-resize-handle{background-color:#4285f44d}.prosemirror-editor .ProseMirror .column-resize-handle:hover{background-color:#4285f4b3}.prosemirror-editor .ProseMirror span.docx-tab{display:inline-block;min-width:48px;white-space:pre;background:transparent}.prosemirror-editor .ProseMirror span.docx-tab[data-leader=dot]:before{content:"...........";position:absolute;color:inherit;white-space:nowrap;overflow:hidden}.prosemirror-editor .ProseMirror span.docx-tab[data-leader=hyphen]:before{content:"-----------";position:absolute;color:inherit;white-space:nowrap;overflow:hidden}.prosemirror-editor .ProseMirror span.docx-tab[data-leader=underscore]:before{content:"___________";position:absolute;color:inherit;white-space:nowrap;overflow:hidden}.prosemirror-editor .ProseMirror .docx-run-all-caps{text-transform:uppercase}.prosemirror-editor .ProseMirror .docx-run-small-caps{font-variant:small-caps}
package/dist/index.d.cts CHANGED
@@ -759,7 +759,7 @@ interface DocxEditorProps {
759
759
  rulerUnit?: 'inch' | 'cm';
760
760
  /** Initial zoom level (default: 1.0) */
761
761
  initialZoom?: number;
762
- /** Whether the editor is read-only */
762
+ /** Whether the editor is read-only. When true, hides toolbar, rulers, and variable panel */
763
763
  readOnly?: boolean;
764
764
  /** Custom toolbar actions */
765
765
  toolbarExtra?: ReactNode;
@@ -4426,7 +4426,7 @@ declare function createSelectionFromDOM(): ClipboardSelection | null;
4426
4426
  */
4427
4427
  declare function useClipboard(options?: UseClipboardOptions): UseClipboardReturn;
4428
4428
 
4429
- declare const PLUGIN_HOST_STYLES = "\n.plugin-host {\n display: flex;\n width: 100%;\n height: 100%;\n overflow: visible;\n position: relative;\n}\n\n.plugin-host-editor {\n flex: 1;\n display: flex;\n flex-direction: column;\n min-width: 0;\n overflow: visible;\n}\n\n\n.plugin-panels-left,\n.plugin-panels-right {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n background: #f8f9fa;\n border-color: #e9ecef;\n}\n\n.plugin-panels-left {\n border-right: 1px solid #e9ecef;\n}\n\n.plugin-panels-right {\n border-left: 1px solid #e9ecef;\n}\n\n.plugin-panels-bottom {\n border-top: 1px solid #e9ecef;\n background: #f8f9fa;\n}\n\n.plugin-panel {\n position: relative;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n transition: width 0.2s ease, height 0.2s ease;\n}\n\n.plugin-panel.collapsed {\n overflow: visible;\n}\n\n.plugin-panel-toggle {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 6px 8px;\n background: transparent;\n border: none;\n cursor: pointer;\n font-size: 12px;\n color: #6c757d;\n white-space: nowrap;\n}\n\n.plugin-panel.collapsed .plugin-panel-toggle {\n writing-mode: vertical-rl;\n text-orientation: mixed;\n flex-direction: column;\n height: 100%;\n padding: 8px 6px;\n}\n\n.plugin-panel-toggle:hover {\n background: #e9ecef;\n color: #495057;\n}\n\n.plugin-panel-toggle-icon {\n font-weight: bold;\n font-size: 14px;\n}\n\n.plugin-panel.collapsed .plugin-panel-toggle-icon {\n transform: rotate(90deg);\n}\n\n.plugin-panel-toggle-label {\n font-weight: 500;\n}\n\n.plugin-panel-content {\n flex: 1;\n overflow: auto;\n}\n\n/* Overlay panels - positioned absolutely over the editor, outside the page */\n.plugin-panels-overlay-right {\n position: absolute;\n top: 0;\n right: 50%;\n margin-right: -600px; /* Position outside the ~816px page width / 2 + gap */\n bottom: 0;\n width: 220px;\n pointer-events: none;\n z-index: 10;\n overflow: visible;\n clip: unset;\n}\n\n.plugin-panel-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n flex-shrink: 0;\n pointer-events: none;\n background: transparent;\n overflow: visible;\n clip: unset;\n}\n\n.plugin-panel-overlay.collapsed {\n display: none;\n}\n\n.plugin-panel-overlay-content {\n flex: 1;\n overflow: visible;\n position: relative;\n clip: unset;\n}\n\n/* Plugin overlay container for rendering highlights/decorations */\n.plugin-overlays-container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n overflow: visible;\n z-index: 5;\n}\n\n.plugin-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n}\n\n.plugin-overlay > * {\n pointer-events: auto;\n}\n";
4429
+ declare const PLUGIN_HOST_STYLES = "\n.plugin-host {\n display: flex;\n width: 100%;\n height: 100%;\n overflow: visible;\n position: relative;\n}\n\n.plugin-host-editor {\n flex: 1;\n display: flex;\n flex-direction: column;\n min-width: 0;\n overflow: visible;\n}\n\n\n.plugin-panels-left,\n.plugin-panels-right {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n background: #f8f9fa;\n border-color: #e9ecef;\n}\n\n.plugin-panels-left {\n border-right: 1px solid #e9ecef;\n}\n\n.plugin-panels-right {\n border-left: 1px solid #e9ecef;\n}\n\n.plugin-panels-bottom {\n border-top: 1px solid #e9ecef;\n background: #f8f9fa;\n}\n\n.plugin-panel {\n position: relative;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n transition: width 0.2s ease, height 0.2s ease;\n}\n\n.plugin-panel.collapsed {\n overflow: visible;\n}\n\n.plugin-panel-toggle {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 6px 8px;\n background: transparent;\n border: none;\n cursor: pointer;\n font-size: 12px;\n color: #6c757d;\n white-space: nowrap;\n}\n\n.plugin-panel.collapsed .plugin-panel-toggle {\n writing-mode: vertical-rl;\n text-orientation: mixed;\n flex-direction: column;\n height: 100%;\n padding: 8px 6px;\n}\n\n.plugin-panel-toggle:hover {\n background: #e9ecef;\n color: #495057;\n}\n\n.plugin-panel-toggle-icon {\n font-weight: bold;\n font-size: 14px;\n}\n\n.plugin-panel.collapsed .plugin-panel-toggle-icon {\n transform: rotate(90deg);\n}\n\n.plugin-panel-toggle-label {\n font-weight: 500;\n}\n\n.plugin-panel-content {\n flex: 1;\n overflow: auto;\n}\n\n/* Right panel rendered inside viewport - scrolls with content */\n.plugin-panel-in-viewport {\n position: absolute;\n top: 0;\n /* Position is set dynamically via inline styles based on page edge */\n width: 220px;\n pointer-events: auto;\n z-index: 10;\n overflow: visible;\n}\n\n.plugin-panel-in-viewport.collapsed {\n width: 32px;\n}\n\n.plugin-panel-in-viewport .plugin-panel-toggle {\n position: sticky;\n top: 0;\n background: rgba(255, 255, 255, 0.95);\n border-radius: 4px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n}\n\n.plugin-panel-in-viewport-content {\n overflow: visible;\n position: relative;\n}\n\n/* Plugin overlay container for rendering highlights/decorations */\n.plugin-overlays-container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n overflow: visible;\n z-index: 5;\n}\n\n.plugin-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n}\n\n.plugin-overlay > * {\n pointer-events: auto;\n}\n";
4430
4430
  /**
4431
4431
  * PluginHost Component
4432
4432
  *
@@ -4574,6 +4574,6 @@ declare const templatePlugin: EditorPlugin<TemplatePluginState>;
4574
4574
  * import '@eigenpal/docx-js-editor/styles/editor.css';
4575
4575
  * ```
4576
4576
  */
4577
- declare const VERSION = "0.0.1";
4577
+ declare const VERSION = "0.0.2";
4578
4578
 
4579
4579
  export { AIAction, ANNOTATION_PANEL_STYLES, AgentResponse, AlignmentButtons, type AlignmentButtonsProps, AnnotationPanel, type AutoSaveStatus, BORDER_POSITIONS, BORDER_STYLES, BORDER_WIDTHS, type BorderConfig, type BorderPosition, type BorderStyleType, CLIPBOARD_TYPES, CellBackgroundPicker, type CellBackgroundPickerProps, type CellColorOption, type ClipboardContent, type ClipboardOptions, type ClipboardSelection, type ColorOption, ColorPicker, type ColorPickerProps, ContextMenu, type ContextMenuProps, DEFAULT_BORDER_CONFIG, DEFAULT_CELL_COLORS, DEFAULT_SELECTION_STYLE, type KeyboardShortcut$1 as DialogKeyboardShortcut, Document, DocumentAgent, DocumentViewer, type DocumentViewerProps, DocxEditor, type DocxEditorProps, type DocxEditorRef, type EditorPlugin, ErrorBoundary, type ErrorBoundaryProps, type ErrorContextValue, type ErrorNotification, ErrorProvider, type ErrorSeverity, type FindMatch, type FindOptions, FindReplaceDialog, type FindReplaceDialogProps, type FindReplaceOptions, type FindReplaceState, type FindResult, type FontOption, FontPicker, type FontPickerProps, FontSizePicker, type FontSizePickerProps, HIGH_CONTRAST_SELECTION_STYLE, HeaderFooter, type HighlightOptions, type HighlightRect, HorizontalRuler, type HorizontalRulerProps, type HyperlinkData, HyperlinkDialog, type HyperlinkDialogProps, INTERNAL_CLIPBOARD_TYPE, type ImageData, type IndicatorPosition, type IndicatorVariant, InsertImageDialog, type InsertImageDialogProps, type InsertPosition, InsertSymbolDialog, type InsertSymbolDialogProps, InsertTableDialog, type InsertTableDialogProps, type KeyboardShortcut, KeyboardShortcutsDialog, type KeyboardShortcutsDialogProps, type LineSpacingOption, LineSpacingPicker, type LineSpacingPickerProps, ListButtons, type ListButtonsProps, type ListState, LoadingIndicator, type LoadingIndicatorProps, type LoadingOperation, type LoadingSize, type LoadingVariant, NAVIGATION_SHORTCUTS, type NavigationAction, type NavigationDirection, type NavigationUnit, PLUGIN_HOST_STYLES, type PageIndicatorPosition, type PageIndicatorVariant, PageNavigator, type PageNavigatorPosition, type PageNavigatorProps, type PageNavigatorVariant, PageNumberIndicator, type PageNumberIndicatorProps, type PanelConfig, Paragraph, ParagraphFormatting, ParseErrorDisplay, type ParseErrorDisplayProps, type ParsedClipboardContent, type PasteOption, PasteSpecialDialog, type PasteSpecialDialogProps, type PluginContext, PluginHost, type PluginHostProps, type PluginHostRef, type PluginPanelProps, PrintButton, type PrintButtonProps, type PrintOptions, PrintPreview, type PrintPreviewProps, PrintStyles, ResponsePreview, type ResponsePreviewProps, type ResponsePreviewState, ResponsiveToolbar, ToolbarGroup as ResponsiveToolbarGroup, type ToolbarGroupProps as ResponsiveToolbarGroupProps, type ResponsiveToolbarProps, Run, RunContent, SELECTION_CSS_VARS, SYMBOL_CATEGORIES, type SavedDocumentData, SectionProperties, SelectionContext, type SelectionHighlightConfig, type SelectionOverlayProps, type SelectionRange, type ShortcutCategory, Style, type StyleOption, StylePicker, type StylePickerProps, type SymbolCategory, TABLE_DATA_ATTRIBUTES, TEMPLATE_DECORATION_STYLES, Table, type TableAction, TableBorderPicker, type TableBorderPickerProps, TableCell, type TableConfig, type TableContext, type TableSelection, type TableSelectionState, TableToolbar, type TableToolbarProps, type TagType, type TemplateTag, type TextContextAction, TextContextMenu, type TextContextMenuItem, type TextContextMenuProps, TextFormatting, Theme, Toolbar, ToolbarButton, ToolbarGroup$1 as ToolbarGroup, type ToolbarItem, type ToolbarItemPriority, type ToolbarProps, ToolbarSeparator, UnsavedIndicator, type UnsavedIndicatorProps, UnsupportedFeatureWarning, type UnsupportedFeatureWarningProps, type UseAutoSaveOptions, type UseAutoSaveReturn, type UseClipboardOptions, type UseClipboardReturn, type UseFindReplaceReturn, type UseKeyboardShortcutsDialogOptions, type UseKeyboardShortcutsDialogReturn, type UseLoadingOptions, type UseLoadingReturn, type UsePasteSpecialOptions, type UsePasteSpecialReturn, type UseResponsiveToolbarOptions, type UseResponsiveToolbarReturn, type UseSelectionHighlightOptions, type UseSelectionHighlightReturn, type UseTableSelectionOptions, type UseTableSelectionReturn, type UseTextContextMenuOptions, type UseTextContextMenuReturn, type UseUnsavedChangesOptions, type UseUnsavedChangesReturn, type UseWheelZoomOptions, type UseWheelZoomReturn, VERSION, VariablePanel, type VariablePanelProps, type WordSelectionResult, ZOOM_PRESETS, ZoomControl, type ZoomControlProps, addColumn, addRow, areSelectionStylesInjected, calculateFitDimensions, calculateFitPageZoom, calculateFitWidthZoom, calculateProgress, calculateScrollToPage, calculateVisiblePage, canRenderFont, clampPageNumber, clampTableConfig, clampZoom, cleanWordHtml, clearSelection, copyParagraphs, copyRuns, countPageBreaks, createBorderConfig, createBorderSpec, createCellColorOption, createChangeTracker, createClipboardHandlers, createColumnBreak, createDefaultFindOptions, createDefaultListState, createDefaultTableConfig, createDoubleClickWordSelector, createErrorResponse, createHorizontalRule, createLineBreak, createMockResponse, createPageBreak, createPageBreakParagraph, createPageBreakRun, createPageFormat, createSearchPattern, createSelectionChangeHandler, createSelectionFromDOM, createShadingFromColor, createTableContext, createPlugin as createTemplatePlugin, createTemplatePlugin as createTemplateProseMirrorPlugin, createToolbarItem, createToolbarItems, createTripleClickParagraphSelector, dataUrlToBlob, DocxEditor as default, delay, deleteColumn, deleteRow, describeShortcut, escapeRegexString, expandSelectionToWord, expandSelectionToWordBoundaries, extendSelectionTo, findAllMatches, findInDocument, findInParagraph, findNearestZoomPreset, findNextWordStart, findPageBreaks, findPreviousWordStart, findVisualLineEnd, findVisualLineStart, findWordAt, findWordBoundaries, findWordEnd, findWordStart, formatFileSize, formatLastSaveTime, formatPageOrdinal, formatPageRange$1 as formatPageRange, formatPageRange as formatPrintPageRange, formatShortcutKeys, formatStorageSize, formatTableDimensions, formatZoom, generateOverlayElements, generateSelectionCSS, getActionShortcut, getAllActions, getAllCategories, getAllPositions as getAllIndicatorPositions, getAllVariants as getAllIndicatorVariants, getAllLoadingSizes, getAllLoadingVariants, getAllPasteOptions, getAutoSaveStatusLabel, getAutoSaveStorageSize, getAvailableBorderStyles, getAvailableBorderWidths, getBorderPositionLabel, getCategoryLabel, getCellAt, getCellColorName, getColorFromShading, getColumnCount, getCommonShortcuts, getContrastingTextColor, getDefaultActions, getDefaultCellColors, getDefaultHighlightOptions, getDefaultPasteOption, getDefaultPrintOptions, getDefaultShortcuts, getDefaultTextContextMenuItems, getHighlightRectStyle, getImageAcceptString, getImageDimensions, getLoadedFonts, getLoadingVariantLabel, getMarginInUnits, getMatchCountText, getMergedSelectionRects, getNavigationShortcutDescriptions, getNavigationShortcuts, getNextZoomPreset, getPageProgress, getPasteOption, getPreviousZoomPreset, getRecommendedPriority, getRulerDimensions, getSelectedText, getSelectionBoundingRect, getSelectionInfo, getSelectionRects, getSelectionRuns, getShortcutsByCategory, getSupportedImageExtensions, getSymbolCategories, getSymbolInfo as getSymbolUnicodeInfo, getSymbolsByCategory, getTablePresets, getTemplateTags as getTemplatePluginTags, getTextActionLabel, getTextActionShortcut, getUserFriendlyMessage, getVariantLabel, getVisiblePages, getWordAt, getWordAtCursor, getZoomPresets, handleClickForMultiClick, handleNavigationKey, handlePasteEvent, hasActiveSelection, hasPageBreakBefore, highlightTextRange, htmlToRuns, injectSelectionStyles, insertHorizontalRule, insertPageBreak, isActionAvailable, isAutoSaveSupported, isBreakContent, isColumnBreak, isDefaultCellColor, isEditorHtml, isEmptySearch, isFirstPage, isFontLoaded, isLoading as isFontsLoading, isLastPage, isLineBreak, isNavigationKey, isPageBreak, isParseError, isPasteSpecialShortcut, isPrintSupported, isPunctuation, isSelectionBackwards, isSelectionWithin, isTextActionAvailable, isValidImageFile, isValidPageNumber, isValidTableConfig, isWhitespace$1 as isWhitespace, isWhitespace as isWhitespaceChar, isWordCharacter as isWordChar, isWordCharacter$1 as isWordCharacter, isWordHtml, isZoomPreset, loadFont, loadFontFromBuffer, loadFonts, mapStyleToCss, matchesShortcut, mergeAdjacentRects, mergeCells, moveByWord, moveToLineEdge, normalizeSelectionDirection, onFontsLoaded, openPrintWindow, paragraphsToClipboardContent, parseClipboardHtml, parseMarginFromUnits, parseNavigationAction, parsePageInput, parsePageRange, parseZoom, positionToMargin, preloadCommonFonts, readFromClipboard, removePageBreak, removeSelectionStyles, replaceAllInContent, replaceFirstInContent, runsToClipboardContent, scrollToMatch, scrollToPage, searchSymbols, selectParagraphAtCursor, selectRange, selectWordAtCursor, selectWordInTextNode, setHoveredElement, setSelectedElement, setSelectionPosition, splitCell, symbolFromCodePoint, templatePlugin, templatePluginKey, triggerPrint, useAutoSave, useClipboard, useContextMenu, useErrorNotifications, useFindReplace, useHyperlinkDialog, useInsertImageDialog, useInsertSymbolDialog, useInsertTableDialog, useKeyboardShortcutsDialog, useLoading, useLoadingOperations, usePasteSpecial, useResponsePreview, useResponsiveToolbar, useSelectionHighlight, useTableSelection, useTextContextMenu, useUnsavedChanges, useWheelZoom, writeToClipboard };
package/dist/index.d.ts CHANGED
@@ -759,7 +759,7 @@ interface DocxEditorProps {
759
759
  rulerUnit?: 'inch' | 'cm';
760
760
  /** Initial zoom level (default: 1.0) */
761
761
  initialZoom?: number;
762
- /** Whether the editor is read-only */
762
+ /** Whether the editor is read-only. When true, hides toolbar, rulers, and variable panel */
763
763
  readOnly?: boolean;
764
764
  /** Custom toolbar actions */
765
765
  toolbarExtra?: ReactNode;
@@ -4426,7 +4426,7 @@ declare function createSelectionFromDOM(): ClipboardSelection | null;
4426
4426
  */
4427
4427
  declare function useClipboard(options?: UseClipboardOptions): UseClipboardReturn;
4428
4428
 
4429
- declare const PLUGIN_HOST_STYLES = "\n.plugin-host {\n display: flex;\n width: 100%;\n height: 100%;\n overflow: visible;\n position: relative;\n}\n\n.plugin-host-editor {\n flex: 1;\n display: flex;\n flex-direction: column;\n min-width: 0;\n overflow: visible;\n}\n\n\n.plugin-panels-left,\n.plugin-panels-right {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n background: #f8f9fa;\n border-color: #e9ecef;\n}\n\n.plugin-panels-left {\n border-right: 1px solid #e9ecef;\n}\n\n.plugin-panels-right {\n border-left: 1px solid #e9ecef;\n}\n\n.plugin-panels-bottom {\n border-top: 1px solid #e9ecef;\n background: #f8f9fa;\n}\n\n.plugin-panel {\n position: relative;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n transition: width 0.2s ease, height 0.2s ease;\n}\n\n.plugin-panel.collapsed {\n overflow: visible;\n}\n\n.plugin-panel-toggle {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 6px 8px;\n background: transparent;\n border: none;\n cursor: pointer;\n font-size: 12px;\n color: #6c757d;\n white-space: nowrap;\n}\n\n.plugin-panel.collapsed .plugin-panel-toggle {\n writing-mode: vertical-rl;\n text-orientation: mixed;\n flex-direction: column;\n height: 100%;\n padding: 8px 6px;\n}\n\n.plugin-panel-toggle:hover {\n background: #e9ecef;\n color: #495057;\n}\n\n.plugin-panel-toggle-icon {\n font-weight: bold;\n font-size: 14px;\n}\n\n.plugin-panel.collapsed .plugin-panel-toggle-icon {\n transform: rotate(90deg);\n}\n\n.plugin-panel-toggle-label {\n font-weight: 500;\n}\n\n.plugin-panel-content {\n flex: 1;\n overflow: auto;\n}\n\n/* Overlay panels - positioned absolutely over the editor, outside the page */\n.plugin-panels-overlay-right {\n position: absolute;\n top: 0;\n right: 50%;\n margin-right: -600px; /* Position outside the ~816px page width / 2 + gap */\n bottom: 0;\n width: 220px;\n pointer-events: none;\n z-index: 10;\n overflow: visible;\n clip: unset;\n}\n\n.plugin-panel-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n flex-shrink: 0;\n pointer-events: none;\n background: transparent;\n overflow: visible;\n clip: unset;\n}\n\n.plugin-panel-overlay.collapsed {\n display: none;\n}\n\n.plugin-panel-overlay-content {\n flex: 1;\n overflow: visible;\n position: relative;\n clip: unset;\n}\n\n/* Plugin overlay container for rendering highlights/decorations */\n.plugin-overlays-container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n overflow: visible;\n z-index: 5;\n}\n\n.plugin-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n}\n\n.plugin-overlay > * {\n pointer-events: auto;\n}\n";
4429
+ declare const PLUGIN_HOST_STYLES = "\n.plugin-host {\n display: flex;\n width: 100%;\n height: 100%;\n overflow: visible;\n position: relative;\n}\n\n.plugin-host-editor {\n flex: 1;\n display: flex;\n flex-direction: column;\n min-width: 0;\n overflow: visible;\n}\n\n\n.plugin-panels-left,\n.plugin-panels-right {\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n background: #f8f9fa;\n border-color: #e9ecef;\n}\n\n.plugin-panels-left {\n border-right: 1px solid #e9ecef;\n}\n\n.plugin-panels-right {\n border-left: 1px solid #e9ecef;\n}\n\n.plugin-panels-bottom {\n border-top: 1px solid #e9ecef;\n background: #f8f9fa;\n}\n\n.plugin-panel {\n position: relative;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n transition: width 0.2s ease, height 0.2s ease;\n}\n\n.plugin-panel.collapsed {\n overflow: visible;\n}\n\n.plugin-panel-toggle {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 6px 8px;\n background: transparent;\n border: none;\n cursor: pointer;\n font-size: 12px;\n color: #6c757d;\n white-space: nowrap;\n}\n\n.plugin-panel.collapsed .plugin-panel-toggle {\n writing-mode: vertical-rl;\n text-orientation: mixed;\n flex-direction: column;\n height: 100%;\n padding: 8px 6px;\n}\n\n.plugin-panel-toggle:hover {\n background: #e9ecef;\n color: #495057;\n}\n\n.plugin-panel-toggle-icon {\n font-weight: bold;\n font-size: 14px;\n}\n\n.plugin-panel.collapsed .plugin-panel-toggle-icon {\n transform: rotate(90deg);\n}\n\n.plugin-panel-toggle-label {\n font-weight: 500;\n}\n\n.plugin-panel-content {\n flex: 1;\n overflow: auto;\n}\n\n/* Right panel rendered inside viewport - scrolls with content */\n.plugin-panel-in-viewport {\n position: absolute;\n top: 0;\n /* Position is set dynamically via inline styles based on page edge */\n width: 220px;\n pointer-events: auto;\n z-index: 10;\n overflow: visible;\n}\n\n.plugin-panel-in-viewport.collapsed {\n width: 32px;\n}\n\n.plugin-panel-in-viewport .plugin-panel-toggle {\n position: sticky;\n top: 0;\n background: rgba(255, 255, 255, 0.95);\n border-radius: 4px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n}\n\n.plugin-panel-in-viewport-content {\n overflow: visible;\n position: relative;\n}\n\n/* Plugin overlay container for rendering highlights/decorations */\n.plugin-overlays-container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n overflow: visible;\n z-index: 5;\n}\n\n.plugin-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n}\n\n.plugin-overlay > * {\n pointer-events: auto;\n}\n";
4430
4430
  /**
4431
4431
  * PluginHost Component
4432
4432
  *
@@ -4574,6 +4574,6 @@ declare const templatePlugin: EditorPlugin<TemplatePluginState>;
4574
4574
  * import '@eigenpal/docx-js-editor/styles/editor.css';
4575
4575
  * ```
4576
4576
  */
4577
- declare const VERSION = "0.0.1";
4577
+ declare const VERSION = "0.0.2";
4578
4578
 
4579
4579
  export { AIAction, ANNOTATION_PANEL_STYLES, AgentResponse, AlignmentButtons, type AlignmentButtonsProps, AnnotationPanel, type AutoSaveStatus, BORDER_POSITIONS, BORDER_STYLES, BORDER_WIDTHS, type BorderConfig, type BorderPosition, type BorderStyleType, CLIPBOARD_TYPES, CellBackgroundPicker, type CellBackgroundPickerProps, type CellColorOption, type ClipboardContent, type ClipboardOptions, type ClipboardSelection, type ColorOption, ColorPicker, type ColorPickerProps, ContextMenu, type ContextMenuProps, DEFAULT_BORDER_CONFIG, DEFAULT_CELL_COLORS, DEFAULT_SELECTION_STYLE, type KeyboardShortcut$1 as DialogKeyboardShortcut, Document, DocumentAgent, DocumentViewer, type DocumentViewerProps, DocxEditor, type DocxEditorProps, type DocxEditorRef, type EditorPlugin, ErrorBoundary, type ErrorBoundaryProps, type ErrorContextValue, type ErrorNotification, ErrorProvider, type ErrorSeverity, type FindMatch, type FindOptions, FindReplaceDialog, type FindReplaceDialogProps, type FindReplaceOptions, type FindReplaceState, type FindResult, type FontOption, FontPicker, type FontPickerProps, FontSizePicker, type FontSizePickerProps, HIGH_CONTRAST_SELECTION_STYLE, HeaderFooter, type HighlightOptions, type HighlightRect, HorizontalRuler, type HorizontalRulerProps, type HyperlinkData, HyperlinkDialog, type HyperlinkDialogProps, INTERNAL_CLIPBOARD_TYPE, type ImageData, type IndicatorPosition, type IndicatorVariant, InsertImageDialog, type InsertImageDialogProps, type InsertPosition, InsertSymbolDialog, type InsertSymbolDialogProps, InsertTableDialog, type InsertTableDialogProps, type KeyboardShortcut, KeyboardShortcutsDialog, type KeyboardShortcutsDialogProps, type LineSpacingOption, LineSpacingPicker, type LineSpacingPickerProps, ListButtons, type ListButtonsProps, type ListState, LoadingIndicator, type LoadingIndicatorProps, type LoadingOperation, type LoadingSize, type LoadingVariant, NAVIGATION_SHORTCUTS, type NavigationAction, type NavigationDirection, type NavigationUnit, PLUGIN_HOST_STYLES, type PageIndicatorPosition, type PageIndicatorVariant, PageNavigator, type PageNavigatorPosition, type PageNavigatorProps, type PageNavigatorVariant, PageNumberIndicator, type PageNumberIndicatorProps, type PanelConfig, Paragraph, ParagraphFormatting, ParseErrorDisplay, type ParseErrorDisplayProps, type ParsedClipboardContent, type PasteOption, PasteSpecialDialog, type PasteSpecialDialogProps, type PluginContext, PluginHost, type PluginHostProps, type PluginHostRef, type PluginPanelProps, PrintButton, type PrintButtonProps, type PrintOptions, PrintPreview, type PrintPreviewProps, PrintStyles, ResponsePreview, type ResponsePreviewProps, type ResponsePreviewState, ResponsiveToolbar, ToolbarGroup as ResponsiveToolbarGroup, type ToolbarGroupProps as ResponsiveToolbarGroupProps, type ResponsiveToolbarProps, Run, RunContent, SELECTION_CSS_VARS, SYMBOL_CATEGORIES, type SavedDocumentData, SectionProperties, SelectionContext, type SelectionHighlightConfig, type SelectionOverlayProps, type SelectionRange, type ShortcutCategory, Style, type StyleOption, StylePicker, type StylePickerProps, type SymbolCategory, TABLE_DATA_ATTRIBUTES, TEMPLATE_DECORATION_STYLES, Table, type TableAction, TableBorderPicker, type TableBorderPickerProps, TableCell, type TableConfig, type TableContext, type TableSelection, type TableSelectionState, TableToolbar, type TableToolbarProps, type TagType, type TemplateTag, type TextContextAction, TextContextMenu, type TextContextMenuItem, type TextContextMenuProps, TextFormatting, Theme, Toolbar, ToolbarButton, ToolbarGroup$1 as ToolbarGroup, type ToolbarItem, type ToolbarItemPriority, type ToolbarProps, ToolbarSeparator, UnsavedIndicator, type UnsavedIndicatorProps, UnsupportedFeatureWarning, type UnsupportedFeatureWarningProps, type UseAutoSaveOptions, type UseAutoSaveReturn, type UseClipboardOptions, type UseClipboardReturn, type UseFindReplaceReturn, type UseKeyboardShortcutsDialogOptions, type UseKeyboardShortcutsDialogReturn, type UseLoadingOptions, type UseLoadingReturn, type UsePasteSpecialOptions, type UsePasteSpecialReturn, type UseResponsiveToolbarOptions, type UseResponsiveToolbarReturn, type UseSelectionHighlightOptions, type UseSelectionHighlightReturn, type UseTableSelectionOptions, type UseTableSelectionReturn, type UseTextContextMenuOptions, type UseTextContextMenuReturn, type UseUnsavedChangesOptions, type UseUnsavedChangesReturn, type UseWheelZoomOptions, type UseWheelZoomReturn, VERSION, VariablePanel, type VariablePanelProps, type WordSelectionResult, ZOOM_PRESETS, ZoomControl, type ZoomControlProps, addColumn, addRow, areSelectionStylesInjected, calculateFitDimensions, calculateFitPageZoom, calculateFitWidthZoom, calculateProgress, calculateScrollToPage, calculateVisiblePage, canRenderFont, clampPageNumber, clampTableConfig, clampZoom, cleanWordHtml, clearSelection, copyParagraphs, copyRuns, countPageBreaks, createBorderConfig, createBorderSpec, createCellColorOption, createChangeTracker, createClipboardHandlers, createColumnBreak, createDefaultFindOptions, createDefaultListState, createDefaultTableConfig, createDoubleClickWordSelector, createErrorResponse, createHorizontalRule, createLineBreak, createMockResponse, createPageBreak, createPageBreakParagraph, createPageBreakRun, createPageFormat, createSearchPattern, createSelectionChangeHandler, createSelectionFromDOM, createShadingFromColor, createTableContext, createPlugin as createTemplatePlugin, createTemplatePlugin as createTemplateProseMirrorPlugin, createToolbarItem, createToolbarItems, createTripleClickParagraphSelector, dataUrlToBlob, DocxEditor as default, delay, deleteColumn, deleteRow, describeShortcut, escapeRegexString, expandSelectionToWord, expandSelectionToWordBoundaries, extendSelectionTo, findAllMatches, findInDocument, findInParagraph, findNearestZoomPreset, findNextWordStart, findPageBreaks, findPreviousWordStart, findVisualLineEnd, findVisualLineStart, findWordAt, findWordBoundaries, findWordEnd, findWordStart, formatFileSize, formatLastSaveTime, formatPageOrdinal, formatPageRange$1 as formatPageRange, formatPageRange as formatPrintPageRange, formatShortcutKeys, formatStorageSize, formatTableDimensions, formatZoom, generateOverlayElements, generateSelectionCSS, getActionShortcut, getAllActions, getAllCategories, getAllPositions as getAllIndicatorPositions, getAllVariants as getAllIndicatorVariants, getAllLoadingSizes, getAllLoadingVariants, getAllPasteOptions, getAutoSaveStatusLabel, getAutoSaveStorageSize, getAvailableBorderStyles, getAvailableBorderWidths, getBorderPositionLabel, getCategoryLabel, getCellAt, getCellColorName, getColorFromShading, getColumnCount, getCommonShortcuts, getContrastingTextColor, getDefaultActions, getDefaultCellColors, getDefaultHighlightOptions, getDefaultPasteOption, getDefaultPrintOptions, getDefaultShortcuts, getDefaultTextContextMenuItems, getHighlightRectStyle, getImageAcceptString, getImageDimensions, getLoadedFonts, getLoadingVariantLabel, getMarginInUnits, getMatchCountText, getMergedSelectionRects, getNavigationShortcutDescriptions, getNavigationShortcuts, getNextZoomPreset, getPageProgress, getPasteOption, getPreviousZoomPreset, getRecommendedPriority, getRulerDimensions, getSelectedText, getSelectionBoundingRect, getSelectionInfo, getSelectionRects, getSelectionRuns, getShortcutsByCategory, getSupportedImageExtensions, getSymbolCategories, getSymbolInfo as getSymbolUnicodeInfo, getSymbolsByCategory, getTablePresets, getTemplateTags as getTemplatePluginTags, getTextActionLabel, getTextActionShortcut, getUserFriendlyMessage, getVariantLabel, getVisiblePages, getWordAt, getWordAtCursor, getZoomPresets, handleClickForMultiClick, handleNavigationKey, handlePasteEvent, hasActiveSelection, hasPageBreakBefore, highlightTextRange, htmlToRuns, injectSelectionStyles, insertHorizontalRule, insertPageBreak, isActionAvailable, isAutoSaveSupported, isBreakContent, isColumnBreak, isDefaultCellColor, isEditorHtml, isEmptySearch, isFirstPage, isFontLoaded, isLoading as isFontsLoading, isLastPage, isLineBreak, isNavigationKey, isPageBreak, isParseError, isPasteSpecialShortcut, isPrintSupported, isPunctuation, isSelectionBackwards, isSelectionWithin, isTextActionAvailable, isValidImageFile, isValidPageNumber, isValidTableConfig, isWhitespace$1 as isWhitespace, isWhitespace as isWhitespaceChar, isWordCharacter as isWordChar, isWordCharacter$1 as isWordCharacter, isWordHtml, isZoomPreset, loadFont, loadFontFromBuffer, loadFonts, mapStyleToCss, matchesShortcut, mergeAdjacentRects, mergeCells, moveByWord, moveToLineEdge, normalizeSelectionDirection, onFontsLoaded, openPrintWindow, paragraphsToClipboardContent, parseClipboardHtml, parseMarginFromUnits, parseNavigationAction, parsePageInput, parsePageRange, parseZoom, positionToMargin, preloadCommonFonts, readFromClipboard, removePageBreak, removeSelectionStyles, replaceAllInContent, replaceFirstInContent, runsToClipboardContent, scrollToMatch, scrollToPage, searchSymbols, selectParagraphAtCursor, selectRange, selectWordAtCursor, selectWordInTextNode, setHoveredElement, setSelectedElement, setSelectionPosition, splitCell, symbolFromCodePoint, templatePlugin, templatePluginKey, triggerPrint, useAutoSave, useClipboard, useContextMenu, useErrorNotifications, useFindReplace, useHyperlinkDialog, useInsertImageDialog, useInsertSymbolDialog, useInsertTableDialog, useKeyboardShortcutsDialog, useLoading, useLoadingOperations, usePasteSpecial, useResponsePreview, useResponsiveToolbar, useSelectionHighlight, useTableSelection, useTextContextMenu, useUnsavedChanges, useWheelZoom, writeToClipboard };