@harbour-enterprises/superdoc 0.21.0-next.6 → 0.21.0-next.7
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-CJAEtjUD.es.js → PdfViewer-B8R1j6LP.es.js} +1 -1
- package/dist/chunks/{PdfViewer-BrJSIJjF.cjs → PdfViewer-DWWRw_re.cjs} +1 -1
- package/dist/chunks/{index-NiOytIlp.cjs → index-Bpp8Ruyf.cjs} +2 -2
- package/dist/chunks/{index-BDfKQQiO.es.js → index-CLGEbkfW.es.js} +2 -2
- package/dist/chunks/{super-editor.es-iVTtEcot.es.js → super-editor.es-DWm41myg.es.js} +75 -909
- package/dist/chunks/{super-editor.es-DmkkMNKU.cjs → super-editor.es-aBw27Tag.cjs} +75 -909
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/style.css +11 -11
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-CYC0HBJe.js → converter-DYAHhSrg.js} +65 -26
- package/dist/super-editor/chunks/{docx-zipper-DlwteneT.js → docx-zipper-BDbCmfbE.js} +1 -1
- package/dist/super-editor/chunks/{editor-BzT9rpXb.js → editor-VW8eKYoK.js} +15 -59
- package/dist/super-editor/chunks/{toolbar-BnTHDmlP.js → toolbar-B1up5fYV.js} +7 -6
- 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/commands/__tests__/schemaWithLists.d.ts +2 -0
- package/dist/super-editor/src/core/commands/__tests__/testHelpers.d.ts +4 -0
- package/dist/super-editor/src/core/commands/__tests__/testSchema.d.ts +2 -0
- package/dist/super-editor/src/core/commands/tests/commandTestUtils.d.ts +7 -0
- package/dist/super-editor/src/core/commands/tests/test-schema.d.ts +2 -0
- package/dist/super-editor/style.css +11 -11
- package/dist/super-editor/super-editor.es.js +85 -876
- 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 +75 -909
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/super-editor/src/extensions/noderesizer/helpers.d.ts +0 -2
- package/dist/super-editor/src/extensions/run-item/index.d.ts +0 -1
- package/dist/super-editor/src/extensions/run-item/run-item.d.ts +0 -26
- package/dist/super-editor/src/utils/shadow-root.d.ts +0 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/types/index.js"],"names":[],"mappings":";;;;;;;UAEc,MAAM;;;;WACN,MAAM;;;;YACN,MAAM,GAAG,IAAI;;;;;;;;;cAKb,OAAO;;;;iBACP,MAAM;;;;eACN,MAAM;;;;sBACN,MAAM;;;;;;SAKN,MAAM;;;;UACN,MAAM;;;;WACN,IAAI,GAAG,IAAI,GAAG,IAAI;;;;WAClB,MAAM;;;;UACN,MAAM;;;;gBACN,OAAO;;;;WACP,OAAO,KAAK,EAAE,GAAG;;;;eACjB,OAAO,sBAAsB,EAAE,kBAAkB;;;;;;;;;;SAO5D;QAAuB,MAAM,GAAlB,MAAM;QACM,QAAQ,GAApB,MAAM;KACjB;;;;;;;;;;;;gBAGA;QAA6B,WAAW;QACR,YAAY;QACb,mBAAmB,GAAvC,OAAO;KACpB;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/types/index.js"],"names":[],"mappings":";;;;;;;UAEc,MAAM;;;;WACN,MAAM;;;;YACN,MAAM,GAAG,IAAI;;;;;;;;;cAKb,OAAO;;;;iBACP,MAAM;;;;eACN,MAAM;;;;sBACN,MAAM;;;;;;SAKN,MAAM;;;;UACN,MAAM;;;;WACN,IAAI,GAAG,IAAI,GAAG,IAAI;;;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v-53e13009] {
|
|
|
653
653
|
border-radius: 8px !important;
|
|
654
654
|
}
|
|
655
655
|
|
|
656
|
-
.button-group[data-v-
|
|
656
|
+
.button-group[data-v-f42ec7e6] {
|
|
657
657
|
display: flex;
|
|
658
658
|
}
|
|
659
659
|
|
|
@@ -2215,10 +2215,10 @@ on the right if it is inside shape textbox.
|
|
|
2215
2215
|
min-height: 40px;
|
|
2216
2216
|
}
|
|
2217
2217
|
|
|
2218
|
-
.editor-element[data-v-
|
|
2218
|
+
.editor-element[data-v-0c36dd72] {
|
|
2219
2219
|
position: relative;
|
|
2220
2220
|
}
|
|
2221
|
-
.super-editor-container[data-v-
|
|
2221
|
+
.super-editor-container[data-v-0c36dd72] {
|
|
2222
2222
|
width: auto;
|
|
2223
2223
|
height: auto;
|
|
2224
2224
|
min-width: 8in;
|
|
@@ -2227,13 +2227,13 @@ on the right if it is inside shape textbox.
|
|
|
2227
2227
|
display: flex;
|
|
2228
2228
|
flex-direction: column;
|
|
2229
2229
|
}
|
|
2230
|
-
.ruler[data-v-
|
|
2230
|
+
.ruler[data-v-0c36dd72] {
|
|
2231
2231
|
margin-bottom: 2px;
|
|
2232
2232
|
}
|
|
2233
|
-
.super-editor[data-v-
|
|
2233
|
+
.super-editor[data-v-0c36dd72] {
|
|
2234
2234
|
color: initial;
|
|
2235
2235
|
}
|
|
2236
|
-
.placeholder-editor[data-v-
|
|
2236
|
+
.placeholder-editor[data-v-0c36dd72] {
|
|
2237
2237
|
position: absolute;
|
|
2238
2238
|
top: 0;
|
|
2239
2239
|
left: 0;
|
|
@@ -2245,13 +2245,13 @@ on the right if it is inside shape textbox.
|
|
|
2245
2245
|
background-color: white;
|
|
2246
2246
|
box-sizing: border-box;
|
|
2247
2247
|
}
|
|
2248
|
-
.placeholder-title[data-v-
|
|
2248
|
+
.placeholder-title[data-v-0c36dd72] {
|
|
2249
2249
|
display: flex;
|
|
2250
2250
|
justify-content: center;
|
|
2251
2251
|
margin-bottom: 40px;
|
|
2252
2252
|
}
|
|
2253
2253
|
|
|
2254
|
-
.super-editor[data-v-
|
|
2254
|
+
.super-editor[data-v-4d5cff52] {
|
|
2255
2255
|
box-sizing: border-box;
|
|
2256
2256
|
width: 100%;
|
|
2257
2257
|
height: 100%;
|
|
@@ -2260,17 +2260,17 @@ on the right if it is inside shape textbox.
|
|
|
2260
2260
|
transition: border 0.2s ease;
|
|
2261
2261
|
background-color: white;
|
|
2262
2262
|
}
|
|
2263
|
-
.super-input[data-v-
|
|
2263
|
+
.super-input[data-v-4d5cff52] {
|
|
2264
2264
|
font-size: 13px;
|
|
2265
2265
|
font-family: inherit;
|
|
2266
2266
|
}
|
|
2267
|
-
.editor-element[data-v-
|
|
2267
|
+
.editor-element[data-v-4d5cff52] {
|
|
2268
2268
|
height: 100%;
|
|
2269
2269
|
width: 100%;
|
|
2270
2270
|
border: none;
|
|
2271
2271
|
outline: none;
|
|
2272
2272
|
}
|
|
2273
|
-
.super-input-active[data-v-
|
|
2273
|
+
.super-input-active[data-v-4d5cff52] {
|
|
2274
2274
|
border: 1px solid #007bff;
|
|
2275
2275
|
outline: none;
|
|
2276
2276
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, onMounted, onUnmounted, computed, createElementBlock, openBlock, withModifiers, createElementVNode, withDirectives, unref, vModelText, createCommentVNode, nextTick } from "vue";
|
|
2
|
-
import { T as TextSelection } from "./chunks/converter-
|
|
3
|
-
import { _ as _export_sfc } from "./chunks/editor-
|
|
2
|
+
import { T as TextSelection } from "./chunks/converter-DYAHhSrg.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-VW8eKYoK.js";
|
|
4
4
|
const DEFAULT_API_ENDPOINT = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights";
|
|
5
5
|
const SYSTEM_PROMPT = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
|
|
6
6
|
async function baseInsightsFetch(payload, options = {}) {
|
|
@@ -33768,7 +33768,7 @@ export {
|
|
|
33768
33768
|
objectIncludes as Z,
|
|
33769
33769
|
AddMarkStep as _,
|
|
33770
33770
|
Plugin as a,
|
|
33771
|
-
translator$
|
|
33771
|
+
translator$M as a$,
|
|
33772
33772
|
twipsToLines as a0,
|
|
33773
33773
|
pixelsToTwips as a1,
|
|
33774
33774
|
helpers as a2,
|
|
@@ -33783,29 +33783,29 @@ export {
|
|
|
33783
33783
|
handleClipboardPaste as aB,
|
|
33784
33784
|
getFileObject as aC,
|
|
33785
33785
|
runPropertyTranslators as aD,
|
|
33786
|
-
translator$
|
|
33787
|
-
translator$
|
|
33788
|
-
translator$
|
|
33789
|
-
translator$
|
|
33790
|
-
translator$
|
|
33791
|
-
translator$
|
|
33792
|
-
translator$
|
|
33793
|
-
translator$
|
|
33794
|
-
translator$
|
|
33786
|
+
translator$5 as aE,
|
|
33787
|
+
translator$6 as aF,
|
|
33788
|
+
translator$I as aG,
|
|
33789
|
+
translator$J as aH,
|
|
33790
|
+
translator$10 as aI,
|
|
33791
|
+
translator$H as aJ,
|
|
33792
|
+
translator$K as aK,
|
|
33793
|
+
translator$G as aL,
|
|
33794
|
+
translator$g as aM,
|
|
33795
33795
|
translator$8 as aN,
|
|
33796
|
-
translator$
|
|
33797
|
-
translator$
|
|
33798
|
-
translator$
|
|
33799
|
-
translator$
|
|
33800
|
-
translator$
|
|
33801
|
-
translator$
|
|
33802
|
-
translator$
|
|
33803
|
-
translator$
|
|
33804
|
-
translator$
|
|
33805
|
-
translator$
|
|
33806
|
-
translator$
|
|
33807
|
-
translator$
|
|
33808
|
-
translator$
|
|
33796
|
+
translator$t as aO,
|
|
33797
|
+
translator$u as aP,
|
|
33798
|
+
translator$v as aQ,
|
|
33799
|
+
translator$w as aR,
|
|
33800
|
+
translator$x as aS,
|
|
33801
|
+
translator$c as aT,
|
|
33802
|
+
translator$y as aU,
|
|
33803
|
+
translator$z as aV,
|
|
33804
|
+
translator$A as aW,
|
|
33805
|
+
translator$B as aX,
|
|
33806
|
+
translator$L as aY,
|
|
33807
|
+
translator$a as aZ,
|
|
33808
|
+
translator$C as a_,
|
|
33809
33809
|
hasSomeParentWithClass as aa,
|
|
33810
33810
|
isActive as ab,
|
|
33811
33811
|
unflattenListsInHtml as ac,
|
|
@@ -33833,9 +33833,48 @@ export {
|
|
|
33833
33833
|
vClickOutside as ay,
|
|
33834
33834
|
getActiveFormatting as az,
|
|
33835
33835
|
Slice as b,
|
|
33836
|
-
translator$
|
|
33837
|
-
translator$
|
|
33838
|
-
|
|
33836
|
+
translator$d as b0,
|
|
33837
|
+
translator$D as b1,
|
|
33838
|
+
translator$e as b2,
|
|
33839
|
+
translator$9 as b3,
|
|
33840
|
+
translator$14 as b4,
|
|
33841
|
+
translator$W as b5,
|
|
33842
|
+
translator$X as b6,
|
|
33843
|
+
translator$$ as b7,
|
|
33844
|
+
translator$i as b8,
|
|
33845
|
+
translator$E as b9,
|
|
33846
|
+
translator$2 as bA,
|
|
33847
|
+
translator$1 as bB,
|
|
33848
|
+
translator$F as bC,
|
|
33849
|
+
translator$12 as bD,
|
|
33850
|
+
translator as bE,
|
|
33851
|
+
_sfc_main as bF,
|
|
33852
|
+
translator$3 as ba,
|
|
33853
|
+
translator$k as bb,
|
|
33854
|
+
translator$Y as bc,
|
|
33855
|
+
translator$V as bd,
|
|
33856
|
+
translator$Z as be,
|
|
33857
|
+
translator$U as bf,
|
|
33858
|
+
translator$13 as bg,
|
|
33859
|
+
translator$m as bh,
|
|
33860
|
+
translator$N as bi,
|
|
33861
|
+
translator$n as bj,
|
|
33862
|
+
translator$o as bk,
|
|
33863
|
+
translator$11 as bl,
|
|
33864
|
+
translator$7 as bm,
|
|
33865
|
+
translator$15 as bn,
|
|
33866
|
+
translator$O as bo,
|
|
33867
|
+
translator$b as bp,
|
|
33868
|
+
translator$P as bq,
|
|
33869
|
+
translator$Q as br,
|
|
33870
|
+
translator$q as bs,
|
|
33871
|
+
translator$4 as bt,
|
|
33872
|
+
translator$R as bu,
|
|
33873
|
+
translator$_ as bv,
|
|
33874
|
+
translator$S as bw,
|
|
33875
|
+
translator$T as bx,
|
|
33876
|
+
translator$16 as by,
|
|
33877
|
+
translator$s as bz,
|
|
33839
33878
|
DOMParser$1 as c,
|
|
33840
33879
|
Mark as d,
|
|
33841
33880
|
dropPoint as e,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as process$1, au as commonjsGlobal, B as Buffer, av as getDefaultExportFromCjs, aw as getContentTypesFromXml, ax as xmljs } from "./converter-
|
|
1
|
+
import { p as process$1, au as commonjsGlobal, B as Buffer, av as getDefaultExportFromCjs, aw as getContentTypesFromXml, ax as xmljs } from "./converter-DYAHhSrg.js";
|
|
2
2
|
function commonjsRequire(path) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -12,9 +12,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
12
12
|
var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _editor, _stateValidators, _xmlValidators, _requiredNodeTypes, _requiredMarkTypes, _SuperValidator_instances, initializeValidators_fn, collectValidatorRequirements_fn, analyzeDocument_fn, _commandService, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, registerCopyHandler_fn, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, createSchema_fn, generatePmData_fn, createView_fn, onCollaborationReady_fn, initComments_fn, initPagination_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, validateDocumentInit_fn, validateDocumentExport_fn, initDevTools_fn, _ListItemNodeView_instances, init_fn2, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn, _DocumentSectionView_instances, init_fn3, addToolTip_fn;
|
|
13
13
|
import * as Y from "yjs";
|
|
14
14
|
import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
|
|
15
|
-
import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as InputRule, ah as kebabCase, ai as findParentNodeClosestToPos, aj as getListItemStyleDefinitions, ak as docxNumberigHelpers, al as parseIndentElement, am as combineIndents, an as SelectionRange, ao as Transform, ap as isInTable$1, aq as generateDocxRandomId, ar as insertNewRelationship, as as updateDOMAttributes, at as htmlHandler } from "./converter-
|
|
15
|
+
import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as InputRule, ah as kebabCase, ai as findParentNodeClosestToPos, aj as getListItemStyleDefinitions, ak as docxNumberigHelpers, al as parseIndentElement, am as combineIndents, an as SelectionRange, ao as Transform, ap as isInTable$1, aq as generateDocxRandomId, ar as insertNewRelationship, as as updateDOMAttributes, at as htmlHandler } from "./converter-DYAHhSrg.js";
|
|
16
16
|
import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
|
|
17
|
-
import { D as DocxZipper } from "./docx-zipper-
|
|
17
|
+
import { D as DocxZipper } from "./docx-zipper-BDbCmfbE.js";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
20
20
|
};
|
|
@@ -11675,11 +11675,9 @@ const toggleHeaderFooterEditMode = ({ editor, focusedSectionEditor, isEditMode,
|
|
|
11675
11675
|
item.editor.view.dom.setAttribute("documentmode", documentMode);
|
|
11676
11676
|
});
|
|
11677
11677
|
if (isEditMode) {
|
|
11678
|
-
const pm =
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
pm.setAttribute("aria-readonly", true);
|
|
11682
|
-
}
|
|
11678
|
+
const pm = document.querySelector(".ProseMirror");
|
|
11679
|
+
pm.classList.add("header-footer-edit");
|
|
11680
|
+
pm.setAttribute("aria-readonly", true);
|
|
11683
11681
|
}
|
|
11684
11682
|
if (focusedSectionEditor) {
|
|
11685
11683
|
focusedSectionEditor.view.focus();
|
|
@@ -14334,7 +14332,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14334
14332
|
setDocumentMode(documentMode) {
|
|
14335
14333
|
let cleanedMode = documentMode?.toLowerCase() || "editing";
|
|
14336
14334
|
if (!this.extensionService || !this.state) return;
|
|
14337
|
-
const pm =
|
|
14335
|
+
const pm = document.querySelector(".ProseMirror");
|
|
14338
14336
|
if (this.options.role === "viewer") cleanedMode = "viewing";
|
|
14339
14337
|
if (this.options.role === "suggester" && cleanedMode === "editing") cleanedMode = "suggesting";
|
|
14340
14338
|
if (cleanedMode === "viewing") {
|
|
@@ -14564,6 +14562,8 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14564
14562
|
element.style.isolation = "isolate";
|
|
14565
14563
|
proseMirror.style.outline = "none";
|
|
14566
14564
|
proseMirror.style.border = "none";
|
|
14565
|
+
element.style.backgroundColor = "#fff";
|
|
14566
|
+
proseMirror.style.backgroundColor = "#fff";
|
|
14567
14567
|
const { typeface, fontSizePt, fontFamilyCss } = this.converter.getDocumentDefaultStyles() ?? {};
|
|
14568
14568
|
const resolvedFontFamily = fontFamilyCss || typeface;
|
|
14569
14569
|
if (resolvedFontFamily) {
|
|
@@ -15380,11 +15380,9 @@ createView_fn = function(element) {
|
|
|
15380
15380
|
isEditMode: false,
|
|
15381
15381
|
documentMode: this.options.documentMode
|
|
15382
15382
|
});
|
|
15383
|
-
const pm =
|
|
15384
|
-
|
|
15385
|
-
|
|
15386
|
-
pm.setAttribute("aria-readonly", false);
|
|
15387
|
-
}
|
|
15383
|
+
const pm = document.querySelector(".ProseMirror");
|
|
15384
|
+
pm.classList.remove("header-footer-edit");
|
|
15385
|
+
pm.setAttribute("aria-readonly", false);
|
|
15388
15386
|
}
|
|
15389
15387
|
setWordSelection(view, pos);
|
|
15390
15388
|
}
|
|
@@ -33362,45 +33360,6 @@ const Search = Extension.create({
|
|
|
33362
33360
|
};
|
|
33363
33361
|
}
|
|
33364
33362
|
});
|
|
33365
|
-
let cachedShadowRootCtor;
|
|
33366
|
-
const getShadowRootCtor = () => {
|
|
33367
|
-
if (cachedShadowRootCtor === void 0) {
|
|
33368
|
-
const ctor = globalThis.ShadowRoot;
|
|
33369
|
-
cachedShadowRootCtor = typeof ctor === "function" ? ctor : null;
|
|
33370
|
-
}
|
|
33371
|
-
return cachedShadowRootCtor;
|
|
33372
|
-
};
|
|
33373
|
-
let cachedElementCtor;
|
|
33374
|
-
const getElementCtor = () => {
|
|
33375
|
-
if (cachedElementCtor === void 0) {
|
|
33376
|
-
const ctor = globalThis.Element;
|
|
33377
|
-
cachedElementCtor = typeof ctor === "function" ? ctor : null;
|
|
33378
|
-
}
|
|
33379
|
-
return cachedElementCtor;
|
|
33380
|
-
};
|
|
33381
|
-
const queryWithinRoot = (domNode, selector) => {
|
|
33382
|
-
const shadowRoot = domNode?.shadowRoot;
|
|
33383
|
-
if (shadowRoot && typeof shadowRoot.querySelector === "function") {
|
|
33384
|
-
return shadowRoot.querySelector(selector);
|
|
33385
|
-
}
|
|
33386
|
-
const rawRoot = domNode?.getRootNode?.();
|
|
33387
|
-
const ShadowRootCtor = getShadowRootCtor();
|
|
33388
|
-
const isShadowRoot2 = !!ShadowRootCtor && rawRoot instanceof ShadowRootCtor;
|
|
33389
|
-
if (isShadowRoot2 && typeof rawRoot.querySelector === "function") {
|
|
33390
|
-
return rawRoot.querySelector(selector);
|
|
33391
|
-
}
|
|
33392
|
-
if (domNode && typeof domNode.querySelector === "function") {
|
|
33393
|
-
const localMatch = domNode.querySelector(selector);
|
|
33394
|
-
if (localMatch) return localMatch;
|
|
33395
|
-
}
|
|
33396
|
-
return typeof document !== "undefined" ? document.querySelector(selector) : null;
|
|
33397
|
-
};
|
|
33398
|
-
const findInEventPath = (event, selector) => {
|
|
33399
|
-
if (!event || !selector) return void 0;
|
|
33400
|
-
const path = typeof event.composedPath === "function" ? event.composedPath() : [];
|
|
33401
|
-
const ElementCtor = getElementCtor();
|
|
33402
|
-
return path.find((node) => ElementCtor && node instanceof ElementCtor && node.matches(selector));
|
|
33403
|
-
};
|
|
33404
33363
|
const NodeResizerKey = new PluginKey("node-resizer");
|
|
33405
33364
|
const nodeResizer = (nodeNames = ["image"], editor) => {
|
|
33406
33365
|
let resizeState = {
|
|
@@ -33455,19 +33414,16 @@ const nodeResizer = (nodeNames = ["image"], editor) => {
|
|
|
33455
33414
|
view(view) {
|
|
33456
33415
|
editorView = view;
|
|
33457
33416
|
globalClickHandler = (event) => {
|
|
33458
|
-
|
|
33459
|
-
const containerInPath = findInEventPath(event, ".sd-editor-resize-container");
|
|
33460
|
-
if (!wrapperInPath && !containerInPath) {
|
|
33417
|
+
if (!event.target.closest(".sd-editor-resizable-wrapper") && !event.target.closest(".sd-editor-resize-container")) {
|
|
33461
33418
|
hideResizeHandles();
|
|
33462
33419
|
}
|
|
33463
33420
|
};
|
|
33464
33421
|
document.addEventListener("click", globalClickHandler);
|
|
33465
33422
|
globalMousedownHandler = (event) => {
|
|
33466
|
-
|
|
33467
|
-
if (handle) {
|
|
33423
|
+
if (event.target.closest(".sd-editor-resize-handle")) {
|
|
33468
33424
|
event.preventDefault();
|
|
33469
33425
|
event.stopPropagation();
|
|
33470
|
-
startResize(editorView, event,
|
|
33426
|
+
startResize(editorView, event, event.target);
|
|
33471
33427
|
return true;
|
|
33472
33428
|
}
|
|
33473
33429
|
};
|
|
@@ -33484,7 +33440,7 @@ const nodeResizer = (nodeNames = ["image"], editor) => {
|
|
|
33484
33440
|
const prevSelection = prevState.selection;
|
|
33485
33441
|
if (selection.from !== prevSelection.from || selection.to !== prevSelection.to) {
|
|
33486
33442
|
setTimeout(() => {
|
|
33487
|
-
const selectedResizableWrapper =
|
|
33443
|
+
const selectedResizableWrapper = document.querySelector(".sd-editor-resizable-wrapper");
|
|
33488
33444
|
if (selectedResizableWrapper) {
|
|
33489
33445
|
showResizeHandles(view2, selectedResizableWrapper);
|
|
33490
33446
|
} else {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
|
|
2
|
-
import { p as process$1 } from "./converter-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
2
|
+
import { p as process$1 } from "./converter-DYAHhSrg.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-VW8eKYoK.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -9827,7 +9827,6 @@ const _sfc_main$1 = {
|
|
|
9827
9827
|
const toolbarItemRefs = ref([]);
|
|
9828
9828
|
const props = __props;
|
|
9829
9829
|
const currentItem = ref(null);
|
|
9830
|
-
const { proxy } = getCurrentInstance();
|
|
9831
9830
|
const { isHighContrastMode } = useHighContrastMode();
|
|
9832
9831
|
const isMobile = window.matchMedia("(max-width: 768px)").matches;
|
|
9833
9832
|
const styleMap = {
|
|
@@ -9926,8 +9925,10 @@ const _sfc_main$1 = {
|
|
|
9926
9925
|
nextButtonGroup.setAttribute("tabindex", "0");
|
|
9927
9926
|
nextButtonGroup.focus();
|
|
9928
9927
|
} else {
|
|
9929
|
-
const
|
|
9930
|
-
|
|
9928
|
+
const editor = document.querySelector(".ProseMirror");
|
|
9929
|
+
if (editor) {
|
|
9930
|
+
editor.focus();
|
|
9931
|
+
}
|
|
9931
9932
|
}
|
|
9932
9933
|
};
|
|
9933
9934
|
const moveToPreviousButtonGroup = (e) => {
|
|
@@ -10073,7 +10074,7 @@ const _sfc_main$1 = {
|
|
|
10073
10074
|
};
|
|
10074
10075
|
}
|
|
10075
10076
|
};
|
|
10076
|
-
const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
10077
|
+
const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-f42ec7e6"]]);
|
|
10077
10078
|
const _sfc_main = {
|
|
10078
10079
|
__name: "Toolbar",
|
|
10079
10080
|
emits: ["command", "toggle", "select"],
|
|
@@ -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-VW8eKYoK.js";
|
|
2
|
+
import "./chunks/converter-DYAHhSrg.js";
|
|
3
|
+
import "./chunks/docx-zipper-BDbCmfbE.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export function createState(doc: any): EditorState;
|
|
2
|
+
export function setSelection(state: any, pos: any, end?: any): any;
|
|
3
|
+
export function createDispatch(): {
|
|
4
|
+
dispatch: (tr: any) => number;
|
|
5
|
+
dispatched: any[];
|
|
6
|
+
};
|
|
7
|
+
import { EditorState } from 'prosemirror-state';
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
border-radius: 8px !important;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
.button-group[data-v-
|
|
282
|
+
.button-group[data-v-f42ec7e6] {
|
|
283
283
|
display: flex;
|
|
284
284
|
}
|
|
285
285
|
|
|
@@ -1841,10 +1841,10 @@ on the right if it is inside shape textbox.
|
|
|
1841
1841
|
min-height: 40px;
|
|
1842
1842
|
}
|
|
1843
1843
|
|
|
1844
|
-
.editor-element[data-v-
|
|
1844
|
+
.editor-element[data-v-0c36dd72] {
|
|
1845
1845
|
position: relative;
|
|
1846
1846
|
}
|
|
1847
|
-
.super-editor-container[data-v-
|
|
1847
|
+
.super-editor-container[data-v-0c36dd72] {
|
|
1848
1848
|
width: auto;
|
|
1849
1849
|
height: auto;
|
|
1850
1850
|
min-width: 8in;
|
|
@@ -1853,13 +1853,13 @@ on the right if it is inside shape textbox.
|
|
|
1853
1853
|
display: flex;
|
|
1854
1854
|
flex-direction: column;
|
|
1855
1855
|
}
|
|
1856
|
-
.ruler[data-v-
|
|
1856
|
+
.ruler[data-v-0c36dd72] {
|
|
1857
1857
|
margin-bottom: 2px;
|
|
1858
1858
|
}
|
|
1859
|
-
.super-editor[data-v-
|
|
1859
|
+
.super-editor[data-v-0c36dd72] {
|
|
1860
1860
|
color: initial;
|
|
1861
1861
|
}
|
|
1862
|
-
.placeholder-editor[data-v-
|
|
1862
|
+
.placeholder-editor[data-v-0c36dd72] {
|
|
1863
1863
|
position: absolute;
|
|
1864
1864
|
top: 0;
|
|
1865
1865
|
left: 0;
|
|
@@ -1871,13 +1871,13 @@ on the right if it is inside shape textbox.
|
|
|
1871
1871
|
background-color: white;
|
|
1872
1872
|
box-sizing: border-box;
|
|
1873
1873
|
}
|
|
1874
|
-
.placeholder-title[data-v-
|
|
1874
|
+
.placeholder-title[data-v-0c36dd72] {
|
|
1875
1875
|
display: flex;
|
|
1876
1876
|
justify-content: center;
|
|
1877
1877
|
margin-bottom: 40px;
|
|
1878
1878
|
}
|
|
1879
1879
|
|
|
1880
|
-
.super-editor[data-v-
|
|
1880
|
+
.super-editor[data-v-4d5cff52] {
|
|
1881
1881
|
box-sizing: border-box;
|
|
1882
1882
|
width: 100%;
|
|
1883
1883
|
height: 100%;
|
|
@@ -1886,17 +1886,17 @@ on the right if it is inside shape textbox.
|
|
|
1886
1886
|
transition: border 0.2s ease;
|
|
1887
1887
|
background-color: white;
|
|
1888
1888
|
}
|
|
1889
|
-
.super-input[data-v-
|
|
1889
|
+
.super-input[data-v-4d5cff52] {
|
|
1890
1890
|
font-size: 13px;
|
|
1891
1891
|
font-family: inherit;
|
|
1892
1892
|
}
|
|
1893
|
-
.editor-element[data-v-
|
|
1893
|
+
.editor-element[data-v-4d5cff52] {
|
|
1894
1894
|
height: 100%;
|
|
1895
1895
|
width: 100%;
|
|
1896
1896
|
border: none;
|
|
1897
1897
|
outline: none;
|
|
1898
1898
|
}
|
|
1899
|
-
.super-input-active[data-v-
|
|
1899
|
+
.super-input-active[data-v-4d5cff52] {
|
|
1900
1900
|
border: 1px solid #007bff;
|
|
1901
1901
|
outline: none;
|
|
1902
1902
|
}
|