@harbour-enterprises/superdoc 1.0.0-next.2 → 1.0.0-next.3
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-eykNsWyi.es.js → PdfViewer-PUn0q_lG.es.js} +2 -2
- package/dist/chunks/{PdfViewer-B-xTd4XY.cjs → PdfViewer-cVGt7Ne7.cjs} +1 -1
- package/dist/chunks/{eventemitter3-CcXAdeql.es.js → eventemitter3-44XulWQe.es.js} +1 -1
- package/dist/chunks/{index-BDVXUeCy-Di6ozaOM.cjs → index-DLO-SgUP-BNtYQDPq.cjs} +1 -1
- package/dist/chunks/{index-BDVXUeCy-7mwhYeJ7.es.js → index-DLO-SgUP-c73otQJ5.es.js} +1 -1
- package/dist/chunks/{index-rF5HExWB.cjs → index-Djmhr-R6.cjs} +465 -228
- package/dist/chunks/{index-DpQ8ZYM0.es.js → index-mHanL4xN.es.js} +468 -231
- package/dist/chunks/{jszip-5vvIqAEE.es.js → jszip-VP334ufO.es.js} +1 -1
- package/dist/chunks/{super-editor.es-CcKbh84I.cjs → super-editor.es-Cve8WKfM.cjs} +619 -379
- package/dist/chunks/{super-editor.es-CxajnL9u.es.js → super-editor.es-S9Kp_7dy.es.js} +620 -380
- package/dist/chunks/{vue-Dysv_7z5.es.js → vue-BuPTonTJ.es.js} +27 -27
- package/dist/chunks/xml-js-LkEmUa9-.es.js +2 -0
- package/dist/packages/superdoc/src/composables/useUiFontFamily.d.ts +42 -0
- package/dist/packages/superdoc/src/composables/useUiFontFamily.d.ts.map +1 -0
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts +3 -3
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/packages/superdoc/src/core/types/index.d.ts +4 -167
- package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
- package/dist/style.css +88 -86
- package/dist/super-editor/ai-writer.es.js +3 -3
- package/dist/super-editor/chunks/{converter-DN_dhslo.js → converter-ByybZRFp.js} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-Bhl_yBjL.js → docx-zipper-CFQANTLI.js} +1 -1
- package/dist/super-editor/chunks/{editor-3klx7hyV.js → editor-Cu4hD14N.js} +16 -16
- package/dist/super-editor/chunks/{index-BDVXUeCy.js → index-DLO-SgUP.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-8YA9ltNC.js → toolbar-5MMla0sj.js} +804 -568
- 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/style.css +22 -21
- package/dist/super-editor/super-editor.es.js +10 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +1082 -605
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-ClO_jHnq.es.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E } from "./chunks/editor-Cu4hD14N.js";
|
|
2
|
+
import "./chunks/converter-ByybZRFp.js";
|
|
3
|
+
import "./chunks/docx-zipper-CFQANTLI.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -282,36 +282,37 @@
|
|
|
282
282
|
border-radius: 8px !important;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
.button-group[data-v-
|
|
285
|
+
.button-group[data-v-f732136c] {
|
|
286
286
|
display: flex;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
.superdoc-toolbar[data-v-
|
|
289
|
+
.superdoc-toolbar[data-v-c7a72aa9] {
|
|
290
290
|
display: flex;
|
|
291
291
|
width: 100%;
|
|
292
292
|
justify-content: space-between;
|
|
293
293
|
padding: 4px 16px;
|
|
294
294
|
box-sizing: border-box;
|
|
295
|
+
font-family: var(--sd-ui-font-family, Arial, Helvetica, sans-serif);
|
|
295
296
|
}
|
|
296
297
|
@media (max-width: 1280px) {
|
|
297
|
-
.superdoc-toolbar-group-side[data-v-
|
|
298
|
+
.superdoc-toolbar-group-side[data-v-c7a72aa9] {
|
|
298
299
|
min-width: auto !important;
|
|
299
300
|
}
|
|
300
301
|
}
|
|
301
302
|
@media (max-width: 768px) {
|
|
302
|
-
.superdoc-toolbar[data-v-
|
|
303
|
+
.superdoc-toolbar[data-v-c7a72aa9] {
|
|
303
304
|
padding: 4px 10px;
|
|
304
305
|
justify-content: inherit;
|
|
305
306
|
}
|
|
306
307
|
}
|
|
307
308
|
|
|
308
309
|
/* Add isolation styles */
|
|
309
|
-
.prosemirror-isolated[data-v-
|
|
310
|
+
.prosemirror-isolated[data-v-a4bc3d14] {
|
|
310
311
|
/* Make sure the component is above ProseMirror in z-index */
|
|
311
312
|
z-index: 100;
|
|
312
313
|
position: relative;
|
|
313
314
|
}
|
|
314
|
-
.ai-writer[data-v-
|
|
315
|
+
.ai-writer[data-v-a4bc3d14] {
|
|
315
316
|
background-color: white;
|
|
316
317
|
display: flex;
|
|
317
318
|
flex-direction: column;
|
|
@@ -329,12 +330,12 @@
|
|
|
329
330
|
}
|
|
330
331
|
|
|
331
332
|
/* Chrome, Safari, and Opera */
|
|
332
|
-
.ai-writer[data-v-
|
|
333
|
+
.ai-writer[data-v-a4bc3d14]::-webkit-scrollbar {
|
|
333
334
|
display: none;
|
|
334
335
|
}
|
|
335
336
|
|
|
336
337
|
/* Replace .ai-editable with .ai-textarea */
|
|
337
|
-
.ai-textarea[data-v-
|
|
338
|
+
.ai-textarea[data-v-a4bc3d14] {
|
|
338
339
|
padding-left: 8px;
|
|
339
340
|
width: 100%;
|
|
340
341
|
color: #47484a;
|
|
@@ -345,15 +346,15 @@
|
|
|
345
346
|
resize: none;
|
|
346
347
|
overflow: hidden;
|
|
347
348
|
height: 100%;
|
|
348
|
-
font-family:
|
|
349
|
+
font-family: var(--sd-ui-font-family, Arial, Helvetica, sans-serif);
|
|
349
350
|
}
|
|
350
351
|
|
|
351
352
|
/* Add specific styles for textarea placeholder */
|
|
352
|
-
.ai-textarea[data-v-
|
|
353
|
+
.ai-textarea[data-v-a4bc3d14]::placeholder {
|
|
353
354
|
color: #666;
|
|
354
355
|
font-weight: 400;
|
|
355
356
|
}
|
|
356
|
-
.ai-user-input-field[data-v-
|
|
357
|
+
.ai-user-input-field[data-v-a4bc3d14] {
|
|
357
358
|
line-height: 13px;
|
|
358
359
|
display: flex;
|
|
359
360
|
flex-direction: row;
|
|
@@ -363,27 +364,27 @@
|
|
|
363
364
|
border-radius: 8px;
|
|
364
365
|
margin-bottom: 10px;
|
|
365
366
|
}
|
|
366
|
-
.ai-textarea-icon[data-v-
|
|
367
|
+
.ai-textarea-icon[data-v-a4bc3d14] {
|
|
367
368
|
display: block;
|
|
368
369
|
font-weight: 800;
|
|
369
370
|
font-size: 14px;
|
|
370
371
|
width: 16px;
|
|
371
372
|
height: 16px;
|
|
372
373
|
}
|
|
373
|
-
.ai-textarea-icon svg[data-v-
|
|
374
|
+
.ai-textarea-icon svg[data-v-a4bc3d14] {
|
|
374
375
|
height: 16px;
|
|
375
376
|
width: 16px;
|
|
376
377
|
}
|
|
377
|
-
.ai-textarea-icon.loading[data-v-
|
|
378
|
-
animation: spin-
|
|
378
|
+
.ai-textarea-icon.loading[data-v-a4bc3d14] {
|
|
379
|
+
animation: spin-a4bc3d14 2s linear infinite;
|
|
379
380
|
}
|
|
380
|
-
.loading i[data-v-
|
|
381
|
+
.loading i[data-v-a4bc3d14] {
|
|
381
382
|
display: flex;
|
|
382
383
|
}
|
|
383
|
-
.error[data-v-
|
|
384
|
+
.error[data-v-a4bc3d14] {
|
|
384
385
|
fill: #ed4337;
|
|
385
386
|
}
|
|
386
|
-
.ai-submit-button[data-v-
|
|
387
|
+
.ai-submit-button[data-v-a4bc3d14] {
|
|
387
388
|
border: none;
|
|
388
389
|
padding: 0;
|
|
389
390
|
margin: 0;
|
|
@@ -391,10 +392,10 @@
|
|
|
391
392
|
display: flex;
|
|
392
393
|
align-items: center;
|
|
393
394
|
}
|
|
394
|
-
.ai-submit-button[data-v-
|
|
395
|
+
.ai-submit-button[data-v-a4bc3d14]:hover {
|
|
395
396
|
opacity: 0.8;
|
|
396
397
|
}
|
|
397
|
-
@keyframes spin-
|
|
398
|
+
@keyframes spin-a4bc3d14 {
|
|
398
399
|
from {
|
|
399
400
|
transform: rotate(0deg);
|
|
400
401
|
}
|
|
@@ -402,7 +403,7 @@ to {
|
|
|
402
403
|
transform: rotate(360deg);
|
|
403
404
|
}
|
|
404
405
|
}
|
|
405
|
-
.ai-loader[data-v-
|
|
406
|
+
.ai-loader[data-v-a4bc3d14] {
|
|
406
407
|
display: flex;
|
|
407
408
|
height: 14px;
|
|
408
409
|
justify-content: flex-end;
|
|
@@ -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 _MARK_TOGGLE_NAMES, _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, enrichTrackedChanges_fn, runCommandWithArgumentOnly_fn, syncStickyMarksFromState_fn, restoreStickyMarksIfNeeded_fn, ensureStoredMarksForMarkToggle_fn;
|
|
12
|
-
import { aK as getDefaultExportFromCjs, a0 as v4, T as TextSelection$1, v as getMarkRange, aN as vClickOutside, aO as getActiveFormatting, aD as isInTable, O as findParentNode, at as calculateResolvedParagraphProperties, a7 as twipsToLines, Q as isList, an as parseSizeUnit, a8 as pixelsToTwips, aP as getFileObject, P as PluginKey, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { ac, i, a9, aQ } from "./chunks/converter-
|
|
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, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as getEditorSurfaceElement, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, m as generateRulerDefinition, n as clampHandlePosition, o as calculateMarginFromHandle, p as measureCache, q as isHeadless, E as Editor, t as getStarterExtensions, P as PresentationEditor, v as Placeholder, w as getRichTextExtensions, D as DecorationSet, x as Decoration, M as Mark, z as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { F, I, G, T, B, H, C } from "./chunks/editor-
|
|
12
|
+
import { aK as getDefaultExportFromCjs, a0 as v4, T as TextSelection$1, v as getMarkRange, aN as vClickOutside, aO as getActiveFormatting, aD as isInTable, O as findParentNode, at as calculateResolvedParagraphProperties, a7 as twipsToLines, Q as isList, an as parseSizeUnit, a8 as pixelsToTwips, aP as getFileObject, P as PluginKey, a as Plugin } from "./chunks/converter-ByybZRFp.js";
|
|
13
|
+
import { ac, i, a9, aQ } from "./chunks/converter-ByybZRFp.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, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as getEditorSurfaceElement, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, m as generateRulerDefinition, n as clampHandlePosition, o as calculateMarginFromHandle, p as measureCache, q as isHeadless, E as Editor, t as getStarterExtensions, P as PresentationEditor, v as Placeholder, w as getRichTextExtensions, D as DecorationSet, x as Decoration, M as Mark, z as Extension, A as Attribute, N as Node } from "./chunks/editor-Cu4hD14N.js";
|
|
15
|
+
import { F, I, G, T, B, H, C } from "./chunks/editor-Cu4hD14N.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, defineComponent, reactive, onUnmounted, renderSlot, useCssVars, shallowRef, createBlock, Teleport, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-5MMla0sj.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-CFQANTLI.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
|
@@ -2860,6 +2860,10 @@ const _SuperToolbar = class _SuperToolbar extends EventEmitter {
|
|
|
2860
2860
|
this.config.selector = this.config.element;
|
|
2861
2861
|
}
|
|
2862
2862
|
this.toolbarContainer = this.findElementBySelector(this.config.selector);
|
|
2863
|
+
if (this.toolbarContainer) {
|
|
2864
|
+
const uiFontFamily = (this.config?.uiDisplayFallbackFont || "").toString().trim() || "Arial, Helvetica, sans-serif";
|
|
2865
|
+
this.toolbarContainer.style.setProperty("--sd-ui-font-family", uiFontFamily);
|
|
2866
|
+
}
|
|
2863
2867
|
__privateMethod(this, _SuperToolbar_instances, initToolbarGroups_fn).call(this);
|
|
2864
2868
|
__privateMethod(this, _SuperToolbar_instances, makeToolbarItems_fn).call(this, {
|
|
2865
2869
|
superToolbar: this,
|
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-Cve8WKfM.cjs");
|
|
4
4
|
require("./chunks/vue-jWLMl8Ts.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A, a, _, C, D, E, b, P, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-
|
|
2
|
-
import "./chunks/vue-
|
|
1
|
+
import { A, a, _, C, D, E, b, P, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-S9Kp_7dy.es.js";
|
|
2
|
+
import "./chunks/vue-BuPTonTJ.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|
|
5
5
|
a as AnnotatorHelpers,
|
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-Cve8WKfM.cjs");
|
|
4
|
+
const superdoc = require("./chunks/index-Djmhr-R6.cjs");
|
|
5
5
|
const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
|
7
7
|
exports.Editor = superEditor_es.Editor;
|
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-S9Kp_7dy.es.js";
|
|
2
|
+
import { D, H, P, S as S2, m, l } from "./chunks/index-mHanL4xN.es.js";
|
|
3
3
|
import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
|
|
4
4
|
export {
|
|
5
5
|
a as AnnotatorHelpers,
|