@harbour-enterprises/superdoc 0.20.0-next.4 → 0.20.0-next.6
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/chunks/{PdfViewer-Ne_-LxpG.cjs → PdfViewer--YKlzafo.cjs} +1 -1
- package/dist/chunks/{PdfViewer-BjZBgs8x.es.js → PdfViewer-CuiUv0d5.es.js} +1 -1
- package/dist/chunks/{index-BVjAJUtV.es.js → index-Cl1u_lKk.es.js} +2 -2
- package/dist/chunks/{index-OFvCtpf7.cjs → index-CuHtS7O9.cjs} +2 -2
- package/dist/chunks/{super-editor.es-CCU9etUT.cjs → super-editor.es-BIW7iKAk.cjs} +1792 -1307
- package/dist/chunks/{super-editor.es-DgTNVbvS.es.js → super-editor.es-DN4v75aq.es.js} +1792 -1307
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BPTfSIJf.js → converter-kutpjDQU.js} +687 -470
- package/dist/super-editor/chunks/{docx-zipper-ikgI-2vM.js → docx-zipper-BjcI24VU.js} +1 -1
- package/dist/super-editor/chunks/{editor-C1C_smD4.js → editor-ps-v4FlA.js} +687 -434
- package/dist/super-editor/chunks/{toolbar-pP4CmNcz.js → toolbar-Ch271j8X.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/src/core/super-converter/v2/importer/tableImporter.d.ts +0 -22
- package/dist/super-editor/src/core/super-converter/v3/handlers/utils.d.ts +10 -3
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/bidiVisual-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bidiVisual/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/bottom-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/bottom/marginBottom-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/end-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/end/marginEnd-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/gridCol-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/gridCol/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideH/insideH-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/insideV/insideV-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/left-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/left/marginLeft-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/marginRight-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/right/right-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/shd/shd-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/marginStart-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/start/start-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tbl/tbl-translator.d.ts +28 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblBorders/tblBorders-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCaption/tblCaption-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblCellMar/tblCellMar-translator.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblDescription/tblDescription-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblGrid/tblGrid-translator.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblInd/tblInd-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLayout/tblLayout-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblLook/tblLook-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblOverlap/tblOverlap-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblPr/tblPr-translator.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyle/tblStyle-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleColBandSize/tblStyleColBandSize-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblStyleRowBandSize/tblStyleRowBandSize-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblW/tblW-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tblpPr/tblpPr-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/tc/helpers/legacy-handle-table-cell-node.d.ts +1 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/marginTop-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/top/top-translator.d.ts +6 -0
- package/dist/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +3 -1
- package/dist/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +1 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/handleUrl.d.ts +2 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/imageRegistrationPlugin.d.ts +11 -0
- package/dist/super-editor/src/extensions/image/imageHelpers/index.d.ts +1 -1
- package/dist/super-editor/src/extensions/image/imageHelpers/processUploadedImage.d.ts +2 -2
- package/dist/super-editor/src/extensions/image/imageHelpers/startImageUpload.d.ts +18 -23
- package/dist/super-editor/src/extensions/table/table.d.ts +330 -0
- package/dist/super-editor/super-editor.es.js +65 -50
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +2420 -1935
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/super-editor/src/extensions/image/imageHelpers/imagePlaceholderPlugin.d.ts +0 -5
|
@@ -135,4 +135,334 @@ export type CurrentCellInfo = {
|
|
|
135
135
|
*/
|
|
136
136
|
attrs: any;
|
|
137
137
|
};
|
|
138
|
+
/**
|
|
139
|
+
* Theme color options
|
|
140
|
+
*/
|
|
141
|
+
export type ThemeColor = "dark1" | "light1" | "dark2" | "light2" | "accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6" | "hyperlink" | "followedHyperlink" | "none" | "background1" | "text1" | "background2" | "text2";
|
|
142
|
+
/**
|
|
143
|
+
* Shading pattern options
|
|
144
|
+
*/
|
|
145
|
+
export type ShadingPattern = "nil" | "clear" | "solid" | "horzStripe" | "vertStripe" | "reverseDiagStripe" | "diagStripe" | "horzCross" | "diagCross" | "thinHorzStripe" | "thinVertStripe" | "thinReverseDiagStripe" | "thinDiagStripe" | "thinHorzCross" | "thinDiagCross";
|
|
146
|
+
/**
|
|
147
|
+
* Shading properties
|
|
148
|
+
*/
|
|
149
|
+
export type ShadingProperties = {
|
|
150
|
+
/**
|
|
151
|
+
* - Shading color (hex without # or "auto" for automatic)
|
|
152
|
+
*/
|
|
153
|
+
color?: string | "auto";
|
|
154
|
+
/**
|
|
155
|
+
* - Shading fill color (hex without # or "auto" for automatic)
|
|
156
|
+
*/
|
|
157
|
+
fill?: string | "auto";
|
|
158
|
+
/**
|
|
159
|
+
* - Theme color name
|
|
160
|
+
*/
|
|
161
|
+
themeColor?: ThemeColor;
|
|
162
|
+
/**
|
|
163
|
+
* - Theme fill name
|
|
164
|
+
*/
|
|
165
|
+
themeFill?: ThemeColor;
|
|
166
|
+
/**
|
|
167
|
+
* - Theme fill shade (0-255 in hex format without #)
|
|
168
|
+
*/
|
|
169
|
+
themeFillShade?: string;
|
|
170
|
+
/**
|
|
171
|
+
* - Theme fill tint (0-255 in hex format without #)
|
|
172
|
+
*/
|
|
173
|
+
themeFillTint?: string;
|
|
174
|
+
/**
|
|
175
|
+
* - Theme shade (0-255 in hex format without #)
|
|
176
|
+
*/
|
|
177
|
+
themeShade?: string;
|
|
178
|
+
/**
|
|
179
|
+
* - Theme tint (0-255 in hex format without #)
|
|
180
|
+
*/
|
|
181
|
+
themeTint?: string;
|
|
182
|
+
/**
|
|
183
|
+
* - Shading pattern
|
|
184
|
+
*/
|
|
185
|
+
val?: ShadingPattern;
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* Table width options
|
|
189
|
+
*/
|
|
190
|
+
export type TableMeasurement = {
|
|
191
|
+
/**
|
|
192
|
+
* - Width value in twips
|
|
193
|
+
*/
|
|
194
|
+
value: number;
|
|
195
|
+
/**
|
|
196
|
+
* - Table width type (dxa=twips, pct=percentage, auto=automatic)
|
|
197
|
+
*/
|
|
198
|
+
type?: "dxa" | "pct" | "auto";
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* Table look options
|
|
202
|
+
*/
|
|
203
|
+
export type TableLook = {
|
|
204
|
+
/**
|
|
205
|
+
* - Specifies that the first column conditional formatting should be applied
|
|
206
|
+
*/
|
|
207
|
+
firstColumn?: boolean;
|
|
208
|
+
/**
|
|
209
|
+
* - Specifies that the first row conditional formatting should be applied
|
|
210
|
+
*/
|
|
211
|
+
firstRow?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* - Specifies that the last column conditional formatting should be applied
|
|
214
|
+
*/
|
|
215
|
+
lastColumn?: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* - Specifies that the last row conditional formatting should be applied
|
|
218
|
+
*/
|
|
219
|
+
lastRow?: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* - Specifies that no horizontal banding conditional formatting should be applied
|
|
222
|
+
*/
|
|
223
|
+
noHBand?: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* - Specifies that no vertical banding conditional formatting should be applied
|
|
226
|
+
*/
|
|
227
|
+
noVBand?: boolean;
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* Floating table properties
|
|
231
|
+
*/
|
|
232
|
+
export type FloatingTableProperties = {
|
|
233
|
+
/**
|
|
234
|
+
* - Specifies the minimum distance in twips which shall be maintained between the current floating table and the edge of text in the paragraph which is to the left of this floating table.
|
|
235
|
+
*/
|
|
236
|
+
leftFromText?: number;
|
|
237
|
+
/**
|
|
238
|
+
* - Specifies the minimum distance in twips which shall be maintained between the current floating table and the edge of text in the paragraph which is to the right of this floating table.
|
|
239
|
+
*/
|
|
240
|
+
rightFromText?: number;
|
|
241
|
+
/**
|
|
242
|
+
* - Specifies the minimum distance in twips which shall be maintained between the current floating table and the bottom edge of text in the paragraph which is above this floating table.
|
|
243
|
+
*/
|
|
244
|
+
topFromText?: number;
|
|
245
|
+
/**
|
|
246
|
+
* - Specifies the minimum distance in twips which shall be maintained between the current floating table and the top edge of text in the paragraph which is below this floating table.
|
|
247
|
+
*/
|
|
248
|
+
bottomFromText?: number;
|
|
249
|
+
/**
|
|
250
|
+
* - Specifies and absolute horizontal position for the floating table. The position is measured from the horizontal anchor point (horzAnchor) in twips.
|
|
251
|
+
*/
|
|
252
|
+
tblpX?: number;
|
|
253
|
+
/**
|
|
254
|
+
* - Specifies and absolute vertical position for the floating table. The position is measured from the vertical anchor point (vertAnchor) in twips.
|
|
255
|
+
*/
|
|
256
|
+
tblpY?: number;
|
|
257
|
+
/**
|
|
258
|
+
* - Horizontal anchor point for tblpX
|
|
259
|
+
*/
|
|
260
|
+
horzAnchor?: "margin" | "page" | "text";
|
|
261
|
+
/**
|
|
262
|
+
* - Vertical anchor point for tblpY
|
|
263
|
+
*/
|
|
264
|
+
vertAnchor?: "margin" | "page" | "text";
|
|
265
|
+
/**
|
|
266
|
+
* - Specifies a relative horizontal position for the floating table. Supercedes tblpX if both are specified.
|
|
267
|
+
*/
|
|
268
|
+
tblpXSpec?: "left" | "center" | "right" | "inside" | "outside";
|
|
269
|
+
/**
|
|
270
|
+
* - Specifies a relative vertical position for the floating table. Supercedes tblpY if both are specified.
|
|
271
|
+
*/
|
|
272
|
+
tblpYSpec?: "inline" | "top" | "center" | "bottom" | "inside" | "outside";
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* Table border specification
|
|
276
|
+
*/
|
|
277
|
+
export type TableBorderSpec = {
|
|
278
|
+
/**
|
|
279
|
+
* - Border style (e.g., 'single', 'double', 'dashed', etc.)
|
|
280
|
+
*/
|
|
281
|
+
val?: string;
|
|
282
|
+
/**
|
|
283
|
+
* - Border color (hex without #, e.g., 'FF0000' for red)
|
|
284
|
+
*/
|
|
285
|
+
color?: string;
|
|
286
|
+
/**
|
|
287
|
+
* - Theme color name
|
|
288
|
+
*/
|
|
289
|
+
themeColor?: ThemeColor;
|
|
290
|
+
/**
|
|
291
|
+
* - Theme tint (0-255 in hex format without #)
|
|
292
|
+
*/
|
|
293
|
+
themeTint?: string;
|
|
294
|
+
/**
|
|
295
|
+
* - Theme shade (0-255 in hex format without #)
|
|
296
|
+
*/
|
|
297
|
+
themeShade?: string;
|
|
298
|
+
/**
|
|
299
|
+
* - Border size in eighths of a point (e.g., 8 = 1pt, 16 = 2pt)
|
|
300
|
+
*/
|
|
301
|
+
size?: number;
|
|
302
|
+
/**
|
|
303
|
+
* - Space in points between border and text
|
|
304
|
+
*/
|
|
305
|
+
space?: number;
|
|
306
|
+
/**
|
|
307
|
+
* - Whether the border has a shadow
|
|
308
|
+
*/
|
|
309
|
+
shadow?: boolean;
|
|
310
|
+
/**
|
|
311
|
+
* - Whether the border is a frame
|
|
312
|
+
*/
|
|
313
|
+
frame?: boolean;
|
|
314
|
+
};
|
|
315
|
+
/**
|
|
316
|
+
* Table borders properties
|
|
317
|
+
*/
|
|
318
|
+
export type TableBorders = {
|
|
319
|
+
/**
|
|
320
|
+
* - Bottom border specification
|
|
321
|
+
*/
|
|
322
|
+
bottom?: TableBorderSpec;
|
|
323
|
+
/**
|
|
324
|
+
* - End (right in LTR, left in RTL) border specification
|
|
325
|
+
*/
|
|
326
|
+
end?: TableBorderSpec;
|
|
327
|
+
/**
|
|
328
|
+
* - Inside horizontal border specification
|
|
329
|
+
*/
|
|
330
|
+
insideH?: TableBorderSpec;
|
|
331
|
+
/**
|
|
332
|
+
* - Inside vertical border specification
|
|
333
|
+
*/
|
|
334
|
+
insideV?: TableBorderSpec;
|
|
335
|
+
/**
|
|
336
|
+
* - Left border specification
|
|
337
|
+
*/
|
|
338
|
+
left?: TableBorderSpec;
|
|
339
|
+
/**
|
|
340
|
+
* - Right border specification
|
|
341
|
+
*/
|
|
342
|
+
right?: TableBorderSpec;
|
|
343
|
+
/**
|
|
344
|
+
* - Start (left in LTR, right in RTL) border specification
|
|
345
|
+
*/
|
|
346
|
+
start?: TableBorderSpec;
|
|
347
|
+
/**
|
|
348
|
+
* - Top border specification
|
|
349
|
+
*/
|
|
350
|
+
top?: TableBorderSpec;
|
|
351
|
+
};
|
|
352
|
+
/**
|
|
353
|
+
* Table cell margin properties
|
|
354
|
+
*/
|
|
355
|
+
export type TableCellMargins = {
|
|
356
|
+
/**
|
|
357
|
+
* - Top cell margin
|
|
358
|
+
*/
|
|
359
|
+
top?: TableMeasurement;
|
|
360
|
+
/**
|
|
361
|
+
* - Left cell margin
|
|
362
|
+
*/
|
|
363
|
+
left?: TableMeasurement;
|
|
364
|
+
/**
|
|
365
|
+
* - Bottom cell margin
|
|
366
|
+
*/
|
|
367
|
+
bottom?: TableMeasurement;
|
|
368
|
+
/**
|
|
369
|
+
* - Start cell margin (left in LTR, right in RTL)
|
|
370
|
+
*/
|
|
371
|
+
start?: TableMeasurement;
|
|
372
|
+
/**
|
|
373
|
+
* - End cell margin (right in LTR, left in RTL)
|
|
374
|
+
*/
|
|
375
|
+
end?: TableMeasurement;
|
|
376
|
+
/**
|
|
377
|
+
* - Right cell margin
|
|
378
|
+
*/
|
|
379
|
+
right?: TableMeasurement;
|
|
380
|
+
};
|
|
381
|
+
/**
|
|
382
|
+
* Table properties
|
|
383
|
+
*/
|
|
384
|
+
export type TableProperties = {
|
|
385
|
+
/**
|
|
386
|
+
* - Specifies that the cells with this table shall be visually represented in a right to left direction
|
|
387
|
+
*/
|
|
388
|
+
rightToLeft?: boolean;
|
|
389
|
+
/**
|
|
390
|
+
* - The alignment of the set of rows which are part of the current table.
|
|
391
|
+
*/
|
|
392
|
+
justification?: "center" | "end" | "left" | "right" | "start";
|
|
393
|
+
/**
|
|
394
|
+
* - Shading properties for the table
|
|
395
|
+
*/
|
|
396
|
+
shading?: ShadingProperties;
|
|
397
|
+
/**
|
|
398
|
+
* - Caption text for the table
|
|
399
|
+
*/
|
|
400
|
+
caption?: string;
|
|
401
|
+
/**
|
|
402
|
+
* - Description text for the table
|
|
403
|
+
*/
|
|
404
|
+
description?: string;
|
|
405
|
+
/**
|
|
406
|
+
* - Cell spacing
|
|
407
|
+
*/
|
|
408
|
+
tableCellSpacing?: TableMeasurement;
|
|
409
|
+
/**
|
|
410
|
+
* - Table indentation
|
|
411
|
+
*/
|
|
412
|
+
tableIndent?: TableMeasurement;
|
|
413
|
+
/**
|
|
414
|
+
* - Table layout algorithm
|
|
415
|
+
*/
|
|
416
|
+
tableLayout?: "fixed" | "autofit";
|
|
417
|
+
/**
|
|
418
|
+
* - Various boolean flags that affect the rendering of the table
|
|
419
|
+
*/
|
|
420
|
+
tableLook?: TableLook;
|
|
421
|
+
/**
|
|
422
|
+
* - Specifies whether the current table should allow other floating tables to overlap its extents when the tables are displayed in a document
|
|
423
|
+
*/
|
|
424
|
+
overlap?: "never" | "overlap";
|
|
425
|
+
/**
|
|
426
|
+
* - Reference to table style ID
|
|
427
|
+
*/
|
|
428
|
+
tableStyleId?: string;
|
|
429
|
+
/**
|
|
430
|
+
* - Number of columns for which the table style is applied
|
|
431
|
+
*/
|
|
432
|
+
tableStyleColBandSize?: number;
|
|
433
|
+
/**
|
|
434
|
+
* - Number of rows for which the table style is applied
|
|
435
|
+
*/
|
|
436
|
+
tableStyleRowBandSize?: number;
|
|
437
|
+
/**
|
|
438
|
+
* - Table width
|
|
439
|
+
*/
|
|
440
|
+
tableWidth?: TableMeasurement;
|
|
441
|
+
/**
|
|
442
|
+
* - Floating table properties
|
|
443
|
+
*/
|
|
444
|
+
floatingTableProperties?: FloatingTableProperties;
|
|
445
|
+
/**
|
|
446
|
+
* - Table border configuration
|
|
447
|
+
*/
|
|
448
|
+
borders?: TableBorders;
|
|
449
|
+
};
|
|
450
|
+
/**
|
|
451
|
+
* Column width definition
|
|
452
|
+
*/
|
|
453
|
+
export type ColWidth = {
|
|
454
|
+
/**
|
|
455
|
+
* - Column width in twips
|
|
456
|
+
*/
|
|
457
|
+
col: number;
|
|
458
|
+
};
|
|
459
|
+
/**
|
|
460
|
+
* Table grid definition
|
|
461
|
+
*/
|
|
462
|
+
export type TableGrid = {
|
|
463
|
+
/**
|
|
464
|
+
* - Array of column widths in twips
|
|
465
|
+
*/
|
|
466
|
+
colWidths?: ColWidth[];
|
|
467
|
+
};
|
|
138
468
|
import { Node } from '@core/index.js';
|
|
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
10
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
11
11
|
var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener,
|
|
15
|
-
import {
|
|
12
|
+
import { aw as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, az as vClickOutside, H as findParentNode, aA as getActiveFormatting, aq as isInTable, aB as readFromClipboard, aC as handleClipboardPaste, aD as getFileObject, a as Plugin } from "./chunks/converter-kutpjDQU.js";
|
|
13
|
+
import { aE, a5, i, a2, aF } from "./chunks/converter-kutpjDQU.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, y as yUndoPluginKey, f as undoDepth, h as redoDepth, S as SlashMenuPluginKey, E as Editor, i as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-ps-v4FlA.js";
|
|
15
|
+
import { n, C, o, T, l, p, m } from "./chunks/editor-ps-v4FlA.js";
|
|
16
16
|
import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-Ch271j8X.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-BjcI24VU.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
|
@@ -69,8 +69,8 @@ function requireEventemitter3() {
|
|
|
69
69
|
var evt = prefix ? prefix + event : event, handlers = this._events[evt];
|
|
70
70
|
if (!handlers) return [];
|
|
71
71
|
if (handlers.fn) return [handlers.fn];
|
|
72
|
-
for (var
|
|
73
|
-
ee[
|
|
72
|
+
for (var i2 = 0, l2 = handlers.length, ee = new Array(l2); i2 < l2; i2++) {
|
|
73
|
+
ee[i2] = handlers[i2].fn;
|
|
74
74
|
}
|
|
75
75
|
return ee;
|
|
76
76
|
};
|
|
@@ -83,7 +83,7 @@ function requireEventemitter3() {
|
|
|
83
83
|
EventEmitter2.prototype.emit = function emit(event, a1, a22, a3, a4, a52) {
|
|
84
84
|
var evt = prefix ? prefix + event : event;
|
|
85
85
|
if (!this._events[evt]) return false;
|
|
86
|
-
var listeners = this._events[evt], len = arguments.length, args,
|
|
86
|
+
var listeners = this._events[evt], len = arguments.length, args, i2;
|
|
87
87
|
if (listeners.fn) {
|
|
88
88
|
if (listeners.once) this.removeListener(event, listeners.fn, void 0, true);
|
|
89
89
|
switch (len) {
|
|
@@ -100,32 +100,32 @@ function requireEventemitter3() {
|
|
|
100
100
|
case 6:
|
|
101
101
|
return listeners.fn.call(listeners.context, a1, a22, a3, a4, a52), true;
|
|
102
102
|
}
|
|
103
|
-
for (
|
|
104
|
-
args[
|
|
103
|
+
for (i2 = 1, args = new Array(len - 1); i2 < len; i2++) {
|
|
104
|
+
args[i2 - 1] = arguments[i2];
|
|
105
105
|
}
|
|
106
106
|
listeners.fn.apply(listeners.context, args);
|
|
107
107
|
} else {
|
|
108
|
-
var length = listeners.length,
|
|
109
|
-
for (
|
|
110
|
-
if (listeners[
|
|
108
|
+
var length = listeners.length, j;
|
|
109
|
+
for (i2 = 0; i2 < length; i2++) {
|
|
110
|
+
if (listeners[i2].once) this.removeListener(event, listeners[i2].fn, void 0, true);
|
|
111
111
|
switch (len) {
|
|
112
112
|
case 1:
|
|
113
|
-
listeners[
|
|
113
|
+
listeners[i2].fn.call(listeners[i2].context);
|
|
114
114
|
break;
|
|
115
115
|
case 2:
|
|
116
|
-
listeners[
|
|
116
|
+
listeners[i2].fn.call(listeners[i2].context, a1);
|
|
117
117
|
break;
|
|
118
118
|
case 3:
|
|
119
|
-
listeners[
|
|
119
|
+
listeners[i2].fn.call(listeners[i2].context, a1, a22);
|
|
120
120
|
break;
|
|
121
121
|
case 4:
|
|
122
|
-
listeners[
|
|
122
|
+
listeners[i2].fn.call(listeners[i2].context, a1, a22, a3);
|
|
123
123
|
break;
|
|
124
124
|
default:
|
|
125
|
-
if (!args) for (
|
|
126
|
-
args[
|
|
125
|
+
if (!args) for (j = 1, args = new Array(len - 1); j < len; j++) {
|
|
126
|
+
args[j - 1] = arguments[j];
|
|
127
127
|
}
|
|
128
|
-
listeners[
|
|
128
|
+
listeners[i2].fn.apply(listeners[i2].context, args);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
}
|
|
@@ -150,9 +150,9 @@ function requireEventemitter3() {
|
|
|
150
150
|
clearEvent(this, evt);
|
|
151
151
|
}
|
|
152
152
|
} else {
|
|
153
|
-
for (var
|
|
154
|
-
if (listeners[
|
|
155
|
-
events.push(listeners[
|
|
153
|
+
for (var i2 = 0, events = [], length = listeners.length; i2 < length; i2++) {
|
|
154
|
+
if (listeners[i2].fn !== fn || once && !listeners[i2].once || context && listeners[i2].context !== context) {
|
|
155
|
+
events.push(listeners[i2]);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;
|
|
@@ -1145,8 +1145,8 @@ const _sfc_main$7 = {
|
|
|
1145
1145
|
const selectGridItems = (allItems, cols, rows) => {
|
|
1146
1146
|
selectedCols.value = cols;
|
|
1147
1147
|
selectedRows.value = rows;
|
|
1148
|
-
for (let
|
|
1149
|
-
let item = allItems[
|
|
1148
|
+
for (let i2 = 0; i2 < allItems.length; i2++) {
|
|
1149
|
+
let item = allItems[i2];
|
|
1150
1150
|
let itemsCols = parseInt(item.dataset.cols, 10);
|
|
1151
1151
|
let itemsRows = parseInt(item.dataset.rows, 10);
|
|
1152
1152
|
if (itemsCols <= cols && itemsRows <= rows) {
|
|
@@ -1223,20 +1223,20 @@ const _sfc_main$7 = {
|
|
|
1223
1223
|
onMouseover: onTableGridMouseOver,
|
|
1224
1224
|
"data-grid": "true"
|
|
1225
1225
|
}, [
|
|
1226
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(5, (
|
|
1227
|
-
return openBlock(), createElementBlock(Fragment, { key:
|
|
1228
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(5, (
|
|
1226
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(5, (i2) => {
|
|
1227
|
+
return openBlock(), createElementBlock(Fragment, { key: i2 }, [
|
|
1228
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(5, (n2) => {
|
|
1229
1229
|
return createElementVNode("div", {
|
|
1230
1230
|
class: "toolbar-table-grid__item",
|
|
1231
|
-
key: `${
|
|
1232
|
-
"data-cols":
|
|
1233
|
-
"data-rows":
|
|
1231
|
+
key: `${i2}_${n2}`,
|
|
1232
|
+
"data-cols": n2,
|
|
1233
|
+
"data-rows": i2,
|
|
1234
1234
|
"data-item": "true",
|
|
1235
1235
|
ref_for: true,
|
|
1236
1236
|
ref_key: "tableGridItems",
|
|
1237
1237
|
ref: tableGridItems,
|
|
1238
|
-
onKeydown: withModifiers((event) => handleKeyDown(event,
|
|
1239
|
-
onClick: withModifiers(($event) => handleClick({ cols:
|
|
1238
|
+
onKeydown: withModifiers((event) => handleKeyDown(event, n2, i2), ["prevent"]),
|
|
1239
|
+
onClick: withModifiers(($event) => handleClick({ cols: n2, rows: i2 }), ["stop", "prevent"])
|
|
1240
1240
|
}, null, 40, _hoisted_1$6);
|
|
1241
1241
|
}), 64))
|
|
1242
1242
|
], 64);
|
|
@@ -1457,7 +1457,7 @@ const makeDefaultItems = ({
|
|
|
1457
1457
|
onActivate: ({ fontFamily }) => {
|
|
1458
1458
|
if (!fontFamily) return;
|
|
1459
1459
|
fontButton.label.value = fontFamily;
|
|
1460
|
-
const foundFont = fontOptions.find((
|
|
1460
|
+
const foundFont = fontOptions.find((i2) => i2.label === fontFamily);
|
|
1461
1461
|
if (foundFont) {
|
|
1462
1462
|
fontButton.selectedValue.value = foundFont.key;
|
|
1463
1463
|
} else {
|
|
@@ -1543,8 +1543,8 @@ const makeDefaultItems = ({
|
|
|
1543
1543
|
if (sanitizedValue < 8) sanitizedValue = 8;
|
|
1544
1544
|
if (sanitizedValue > 96) sanitizedValue = 96;
|
|
1545
1545
|
let sanitizedValueStr = String(sanitizedValue);
|
|
1546
|
-
const foundSize = fontSizeOptions.find((
|
|
1547
|
-
return
|
|
1546
|
+
const foundSize = fontSizeOptions.find((i2) => {
|
|
1547
|
+
return i2.label === sanitizedValueStr || i2.key === sanitizedValueStr;
|
|
1548
1548
|
});
|
|
1549
1549
|
if (foundSize) {
|
|
1550
1550
|
fontSize.selectedValue.value = foundSize.key;
|
|
@@ -2643,10 +2643,25 @@ class SuperToolbar extends EventEmitter {
|
|
|
2643
2643
|
if (!result?.file) {
|
|
2644
2644
|
return;
|
|
2645
2645
|
}
|
|
2646
|
-
|
|
2646
|
+
const { size, file } = await checkAndProcessImage({
|
|
2647
|
+
file: result.file,
|
|
2648
|
+
getMaxContentSize: () => this.activeEditor.getMaxContentSize()
|
|
2649
|
+
});
|
|
2650
|
+
if (!file) {
|
|
2651
|
+
return;
|
|
2652
|
+
}
|
|
2653
|
+
const id = {};
|
|
2654
|
+
replaceSelectionWithImagePlaceholder({
|
|
2655
|
+
view: this.activeEditor.view,
|
|
2656
|
+
editorOptions: this.activeEditor.options,
|
|
2657
|
+
id
|
|
2658
|
+
});
|
|
2659
|
+
await uploadAndInsertImage({
|
|
2647
2660
|
editor: this.activeEditor,
|
|
2648
2661
|
view: this.activeEditor.view,
|
|
2649
|
-
file
|
|
2662
|
+
file,
|
|
2663
|
+
size,
|
|
2664
|
+
id
|
|
2650
2665
|
});
|
|
2651
2666
|
},
|
|
2652
2667
|
/**
|
|
@@ -3977,11 +3992,11 @@ const _sfc_main$3 = {
|
|
|
3977
3992
|
pageMargins.value = docMargins;
|
|
3978
3993
|
rightHandle.x = docSize.width * 96 - docMargins.right * 96;
|
|
3979
3994
|
leftHandle.x = docMargins.left * 96;
|
|
3980
|
-
for (let
|
|
3995
|
+
for (let i2 = 0; i2 < docSize.width; i2++) {
|
|
3981
3996
|
const marginNum = 0.0625 * 96 - 0.5;
|
|
3982
3997
|
const margin = `${marginNum}px`;
|
|
3983
|
-
const diff = docSize.width -
|
|
3984
|
-
rulerItems.push(...generateSection(1, "main", "20%", margin,
|
|
3998
|
+
const diff = docSize.width - i2;
|
|
3999
|
+
rulerItems.push(...generateSection(1, "main", "20%", margin, i2));
|
|
3985
4000
|
rulerItems.push(...generateSection(3, "eighth", "10%", margin));
|
|
3986
4001
|
rulerItems.push(...generateSection(1, "half", "40%", margin));
|
|
3987
4002
|
if (diff <= 0.5) break;
|
|
@@ -3990,7 +4005,7 @@ const _sfc_main$3 = {
|
|
|
3990
4005
|
return rulerItems;
|
|
3991
4006
|
};
|
|
3992
4007
|
const generateSection = (qty, size, height, margin, index) => {
|
|
3993
|
-
return Array.from({ length: qty }, (_,
|
|
4008
|
+
return Array.from({ length: qty }, (_, i2) => {
|
|
3994
4009
|
const item = {
|
|
3995
4010
|
className: `${size}-unit ruler-section`,
|
|
3996
4011
|
height,
|
|
@@ -4611,13 +4626,13 @@ const Extensions = {
|
|
|
4611
4626
|
};
|
|
4612
4627
|
export {
|
|
4613
4628
|
AIWriter,
|
|
4614
|
-
|
|
4615
|
-
|
|
4629
|
+
n as AnnotatorHelpers,
|
|
4630
|
+
aE as BasicUpload,
|
|
4616
4631
|
C as CommentsPluginKey,
|
|
4617
4632
|
D as DocxZipper,
|
|
4618
4633
|
Editor,
|
|
4619
4634
|
Extensions,
|
|
4620
|
-
|
|
4635
|
+
o as SectionHelpers,
|
|
4621
4636
|
_sfc_main$4 as SlashMenu,
|
|
4622
4637
|
a5 as SuperConverter,
|
|
4623
4638
|
SuperEditor,
|
|
@@ -4626,13 +4641,13 @@ export {
|
|
|
4626
4641
|
Toolbar,
|
|
4627
4642
|
T as TrackChangesBasePluginKey,
|
|
4628
4643
|
createZip,
|
|
4629
|
-
|
|
4644
|
+
l as fieldAnnotationHelpers,
|
|
4630
4645
|
getActiveFormatting,
|
|
4631
|
-
|
|
4646
|
+
p as getAllowedImageDimensions,
|
|
4632
4647
|
i as getMarksFromSelection,
|
|
4633
4648
|
getRichTextExtensions,
|
|
4634
4649
|
getStarterExtensions,
|
|
4635
4650
|
a2 as helpers,
|
|
4636
|
-
|
|
4637
|
-
|
|
4651
|
+
aF as registeredHandlers,
|
|
4652
|
+
m as trackChangesHelpers
|
|
4638
4653
|
};
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-BIW7iKAk.cjs");
|
|
4
4
|
require("./chunks/vue-DWle4Cai.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-
|
|
1
|
+
import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-DN4v75aq.es.js";
|
|
2
2
|
import "./chunks/vue-CXxsqYcP.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const superEditor_es = require("./chunks/super-editor.es-
|
|
4
|
-
const superdoc = require("./chunks/index-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-BIW7iKAk.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-CuHtS7O9.cjs");
|
|
5
5
|
require("./chunks/vue-DWle4Cai.cjs");
|
|
6
6
|
require("./chunks/jszip-b7l8QkfH.cjs");
|
|
7
7
|
const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-
|
|
2
|
-
import { D, H, P, S as S2, m, l } from "./chunks/index-
|
|
1
|
+
import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-DN4v75aq.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-Cl1u_lKk.es.js";
|
|
3
3
|
import "./chunks/vue-CXxsqYcP.es.js";
|
|
4
4
|
import "./chunks/jszip-B8KIZSNe.es.js";
|
|
5
5
|
import { B } from "./chunks/blank-docx-iwdyG9RH.es.js";
|