@harbour-enterprises/superdoc 0.29.0-next.12 → 0.29.0-next.14
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-DAWwYr-F.es.js → PdfViewer-BEO8hsqF.es.js} +1 -1
- package/dist/chunks/{PdfViewer-U2ZBANin.cjs → PdfViewer-DLN3Y3_F.cjs} +1 -1
- package/dist/chunks/{index-CpJ0GMj4.es.js → index-BXgp6uWu.es.js} +3 -3
- package/dist/chunks/{index-B94MJaYY.cjs → index-BaAAtu4I.cjs} +3 -3
- package/dist/chunks/{index-DBw1vVxp-DXP9vLwJ.cjs → index-yUHHKfBN-4EGB8drV.cjs} +1 -1
- package/dist/chunks/{index-DBw1vVxp-BN3dKqpa.es.js → index-yUHHKfBN-ChT8BlSW.es.js} +1 -1
- package/dist/chunks/{super-editor.es-D8srSeCh.es.js → super-editor.es-CuXZDBte.es.js} +1170 -744
- package/dist/chunks/{super-editor.es-CoFPqbTT.cjs → super-editor.es-w3oeQ-Dp.cjs} +1170 -744
- package/dist/style.css +26 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-Dm0jV5Xz.js → converter-BeTmlsUD.js} +525 -373
- package/dist/super-editor/chunks/{docx-zipper-muW4_VK6.js → docx-zipper-BMC2MmfQ.js} +1 -1
- package/dist/super-editor/chunks/{editor-zBDWyinq.js → editor-Cl128I8j.js} +298 -24
- package/dist/super-editor/chunks/{index-DBw1vVxp.js → index-yUHHKfBN.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-B9wfn0zu.js → toolbar-B47oEw9Q.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/style.css +26 -1
- package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/relationship-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/mc/altermateContent/alternate-content-translator.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/index.d.ts +2 -1
- package/dist/super-editor/super-editor/src/extensions/index.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/search/prosemirror-search-patched.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/shape-group/ShapeGroupView.d.ts +22 -0
- package/dist/super-editor/super-editor/src/extensions/shape-group/ShapeGroupView.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/extensions/shape-group/index.d.ts +3 -0
- package/dist/super-editor/super-editor/src/extensions/shape-group/index.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/extensions/shape-group/shape-group.d.ts +3 -0
- package/dist/super-editor/super-editor/src/extensions/shape-group/shape-group.d.ts.map +1 -0
- package/dist/super-editor/super-editor.es.js +6 -6
- 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 +934 -508
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as process$1, az as commonjsGlobal, B as Buffer, aA as getDefaultExportFromCjs, aB as getContentTypesFromXml, aC as xmljs } from "./converter-
|
|
1
|
+
import { p as process$1, az as commonjsGlobal, B as Buffer, aA as getDefaultExportFromCjs, aB as getContentTypesFromXml, aC as xmljs } from "./converter-BeTmlsUD.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,8 +12,8 @@ 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, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, checkFonts_fn, determineUnsupportedFonts_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, _DocumentSectionView_instances, init_fn2, addToolTip_fn, _ListItemNodeView_instances, init_fn3, applyIndentStyling_fn, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_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 updateDOMAttributes, ah as findChildren$5, ai as htmlHandler, aj as generateRandomSigned32BitIntStrId, ak as InputRule, al as kebabCase, am as findParentNodeClosestToPos, an as getListItemStyleDefinitions, ao as docxNumberingHelpers, ap as parseIndentElement, aq as combineIndents, ar as twipsToPixels, as as PIXELS_PER_INCH, at as SelectionRange, au as Transform, av as isInTable$1, aw as generateDocxRandomId, ax as insertNewRelationship, ay as inchesToPixels } from "./converter-
|
|
16
|
-
import { D as DocxZipper } from "./docx-zipper-
|
|
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 updateDOMAttributes, ah as findChildren$5, ai as htmlHandler, aj as generateRandomSigned32BitIntStrId, ak as InputRule, al as kebabCase, am as findParentNodeClosestToPos, an as getListItemStyleDefinitions, ao as docxNumberingHelpers, ap as parseIndentElement, aq as combineIndents, ar as twipsToPixels, as as PIXELS_PER_INCH, at as SelectionRange, au as Transform, av as isInTable$1, aw as generateDocxRandomId, ax as insertNewRelationship, ay as inchesToPixels } from "./converter-BeTmlsUD.js";
|
|
16
|
+
import { D as DocxZipper } from "./docx-zipper-BMC2MmfQ.js";
|
|
17
17
|
import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
@@ -15072,7 +15072,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
15072
15072
|
{ default: remarkStringify },
|
|
15073
15073
|
{ default: remarkGfm }
|
|
15074
15074
|
] = await Promise.all([
|
|
15075
|
-
import("./index-
|
|
15075
|
+
import("./index-yUHHKfBN.js"),
|
|
15076
15076
|
import("./index-DRCvimau.js"),
|
|
15077
15077
|
import("./index-C_x_N6Uh.js"),
|
|
15078
15078
|
import("./index-D_sWOSiG.js"),
|
|
@@ -15290,7 +15290,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
15290
15290
|
* @returns {Object | void} Migration results
|
|
15291
15291
|
*/
|
|
15292
15292
|
processCollaborationMigrations() {
|
|
15293
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.
|
|
15293
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.14");
|
|
15294
15294
|
if (!this.options.ydoc) return;
|
|
15295
15295
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
15296
15296
|
let docVersion = metaMap.get("version");
|
|
@@ -31470,6 +31470,255 @@ const VectorShape = Node$1.create({
|
|
|
31470
31470
|
};
|
|
31471
31471
|
}
|
|
31472
31472
|
});
|
|
31473
|
+
class ShapeGroupView {
|
|
31474
|
+
constructor(props) {
|
|
31475
|
+
__publicField(this, "node");
|
|
31476
|
+
__publicField(this, "view");
|
|
31477
|
+
__publicField(this, "getPos");
|
|
31478
|
+
__publicField(this, "decorations");
|
|
31479
|
+
__publicField(this, "innerDecorations");
|
|
31480
|
+
__publicField(this, "editor");
|
|
31481
|
+
__publicField(this, "extension");
|
|
31482
|
+
__publicField(this, "htmlAttributes");
|
|
31483
|
+
__publicField(this, "root");
|
|
31484
|
+
this.node = props.node;
|
|
31485
|
+
this.view = props.editor.view;
|
|
31486
|
+
this.getPos = props.getPos;
|
|
31487
|
+
this.decorations = props.decorations;
|
|
31488
|
+
this.innerDecorations = props.innerDecorations;
|
|
31489
|
+
this.editor = props.editor;
|
|
31490
|
+
this.extension = props.extension;
|
|
31491
|
+
this.htmlAttributes = props.htmlAttributes;
|
|
31492
|
+
this.mount();
|
|
31493
|
+
}
|
|
31494
|
+
mount() {
|
|
31495
|
+
this.buildView();
|
|
31496
|
+
}
|
|
31497
|
+
get dom() {
|
|
31498
|
+
return this.root;
|
|
31499
|
+
}
|
|
31500
|
+
get contentDOM() {
|
|
31501
|
+
return null;
|
|
31502
|
+
}
|
|
31503
|
+
createElement() {
|
|
31504
|
+
const attrs = this.node.attrs;
|
|
31505
|
+
const { groupTransform, shapes, size } = attrs;
|
|
31506
|
+
const container = document.createElement("div");
|
|
31507
|
+
container.classList.add("sd-shape-group");
|
|
31508
|
+
container.setAttribute("data-shape-group", "");
|
|
31509
|
+
const width = size?.width || groupTransform?.width || 300;
|
|
31510
|
+
const height = size?.height || groupTransform?.height || 200;
|
|
31511
|
+
container.style.width = `${width}px`;
|
|
31512
|
+
container.style.height = `${height}px`;
|
|
31513
|
+
container.style.position = "relative";
|
|
31514
|
+
container.style.display = "inline-block";
|
|
31515
|
+
const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
31516
|
+
svg.setAttribute("version", "1.1");
|
|
31517
|
+
svg.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
31518
|
+
svg.setAttribute("width", width.toString());
|
|
31519
|
+
svg.setAttribute("height", height.toString());
|
|
31520
|
+
svg.setAttribute("viewBox", `0 0 ${width} ${height}`);
|
|
31521
|
+
svg.style.display = "block";
|
|
31522
|
+
if (shapes && Array.isArray(shapes)) {
|
|
31523
|
+
shapes.forEach((shape) => {
|
|
31524
|
+
if (shape.shapeType === "vectorShape") {
|
|
31525
|
+
const shapeElement = this.createShapeElement(shape, groupTransform);
|
|
31526
|
+
if (shapeElement) {
|
|
31527
|
+
svg.appendChild(shapeElement);
|
|
31528
|
+
}
|
|
31529
|
+
}
|
|
31530
|
+
});
|
|
31531
|
+
}
|
|
31532
|
+
container.appendChild(svg);
|
|
31533
|
+
return { element: container };
|
|
31534
|
+
}
|
|
31535
|
+
createShapeElement(shape, groupTransform) {
|
|
31536
|
+
const attrs = shape.attrs;
|
|
31537
|
+
if (!attrs) return null;
|
|
31538
|
+
const x = attrs.x || 0;
|
|
31539
|
+
const y = attrs.y || 0;
|
|
31540
|
+
const width = attrs.width || 100;
|
|
31541
|
+
const height = attrs.height || 100;
|
|
31542
|
+
const g = document.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
31543
|
+
const transforms = [];
|
|
31544
|
+
transforms.push(`translate(${x}, ${y})`);
|
|
31545
|
+
if (attrs.rotation !== 0) {
|
|
31546
|
+
transforms.push(`rotate(${attrs.rotation} ${width / 2} ${height / 2})`);
|
|
31547
|
+
}
|
|
31548
|
+
if (attrs.flipH) {
|
|
31549
|
+
transforms.push(`scale(-1, 1) translate(${-width}, 0)`);
|
|
31550
|
+
}
|
|
31551
|
+
if (attrs.flipV) {
|
|
31552
|
+
transforms.push(`scale(1, -1) translate(0, ${-height})`);
|
|
31553
|
+
}
|
|
31554
|
+
if (transforms.length > 0) {
|
|
31555
|
+
g.setAttribute("transform", transforms.join(" "));
|
|
31556
|
+
}
|
|
31557
|
+
const shapeKind = attrs.kind || "rect";
|
|
31558
|
+
const fillColor = attrs.fillColor || "#5b9bd5";
|
|
31559
|
+
const strokeColor = attrs.strokeColor || "#000000";
|
|
31560
|
+
const strokeWidth = attrs.strokeWidth || 1;
|
|
31561
|
+
try {
|
|
31562
|
+
const svgContent = k({
|
|
31563
|
+
preset: shapeKind,
|
|
31564
|
+
styleOverrides: {
|
|
31565
|
+
fill: fillColor || "none",
|
|
31566
|
+
stroke: strokeColor || "none",
|
|
31567
|
+
strokeWidth: strokeWidth || 0
|
|
31568
|
+
},
|
|
31569
|
+
width,
|
|
31570
|
+
height
|
|
31571
|
+
});
|
|
31572
|
+
if (svgContent) {
|
|
31573
|
+
const tempDiv = document.createElement("div");
|
|
31574
|
+
tempDiv.innerHTML = svgContent;
|
|
31575
|
+
const svgElement = tempDiv.querySelector("svg");
|
|
31576
|
+
if (svgElement) {
|
|
31577
|
+
Array.from(svgElement.children).forEach((child) => {
|
|
31578
|
+
const clonedChild = child.cloneNode(true);
|
|
31579
|
+
if (clonedChild.tagName === "ellipse") {
|
|
31580
|
+
clonedChild.setAttribute("cx", (width / 2).toString());
|
|
31581
|
+
clonedChild.setAttribute("cy", (height / 2).toString());
|
|
31582
|
+
clonedChild.setAttribute("rx", (width / 2).toString());
|
|
31583
|
+
clonedChild.setAttribute("ry", (height / 2).toString());
|
|
31584
|
+
} else if (clonedChild.tagName === "circle") {
|
|
31585
|
+
if (width !== height) {
|
|
31586
|
+
const ellipse = document.createElementNS("http://www.w3.org/2000/svg", "ellipse");
|
|
31587
|
+
ellipse.setAttribute("cx", (width / 2).toString());
|
|
31588
|
+
ellipse.setAttribute("cy", (height / 2).toString());
|
|
31589
|
+
ellipse.setAttribute("rx", (width / 2).toString());
|
|
31590
|
+
ellipse.setAttribute("ry", (height / 2).toString());
|
|
31591
|
+
Array.from(clonedChild.attributes).forEach((attr) => {
|
|
31592
|
+
if (!["cx", "cy", "r"].includes(attr.name)) {
|
|
31593
|
+
ellipse.setAttribute(attr.name, attr.value);
|
|
31594
|
+
}
|
|
31595
|
+
});
|
|
31596
|
+
g.appendChild(ellipse);
|
|
31597
|
+
return;
|
|
31598
|
+
} else {
|
|
31599
|
+
clonedChild.setAttribute("cx", (width / 2).toString());
|
|
31600
|
+
clonedChild.setAttribute("cy", (height / 2).toString());
|
|
31601
|
+
clonedChild.setAttribute("r", (width / 2).toString());
|
|
31602
|
+
}
|
|
31603
|
+
} else if (clonedChild.tagName === "rect") {
|
|
31604
|
+
clonedChild.setAttribute("width", width.toString());
|
|
31605
|
+
clonedChild.setAttribute("height", height.toString());
|
|
31606
|
+
} else if (clonedChild.tagName === "path" && svgElement.hasAttribute("viewBox")) {
|
|
31607
|
+
const viewBox = svgElement.getAttribute("viewBox").split(" ").map(Number);
|
|
31608
|
+
if (viewBox.length === 4) {
|
|
31609
|
+
const [, , vbWidth, vbHeight] = viewBox;
|
|
31610
|
+
const scaleX = width / vbWidth;
|
|
31611
|
+
const scaleY = height / vbHeight;
|
|
31612
|
+
if (scaleX !== 1 || scaleY !== 1) {
|
|
31613
|
+
const pathTransform = `scale(${scaleX}, ${scaleY})`;
|
|
31614
|
+
const existingTransform = clonedChild.getAttribute("transform");
|
|
31615
|
+
clonedChild.setAttribute(
|
|
31616
|
+
"transform",
|
|
31617
|
+
existingTransform ? `${existingTransform} ${pathTransform}` : pathTransform
|
|
31618
|
+
);
|
|
31619
|
+
}
|
|
31620
|
+
}
|
|
31621
|
+
} else if (clonedChild.hasAttribute("width")) {
|
|
31622
|
+
clonedChild.setAttribute("width", width.toString());
|
|
31623
|
+
}
|
|
31624
|
+
if (clonedChild.hasAttribute("height") && clonedChild.tagName !== "ellipse") {
|
|
31625
|
+
clonedChild.setAttribute("height", height.toString());
|
|
31626
|
+
}
|
|
31627
|
+
g.appendChild(clonedChild);
|
|
31628
|
+
});
|
|
31629
|
+
}
|
|
31630
|
+
}
|
|
31631
|
+
} catch (error) {
|
|
31632
|
+
console.warn("Failed to generate shape SVG:", error);
|
|
31633
|
+
const rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
31634
|
+
rect.setAttribute("width", width.toString());
|
|
31635
|
+
rect.setAttribute("height", height.toString());
|
|
31636
|
+
rect.setAttribute("fill", fillColor);
|
|
31637
|
+
rect.setAttribute("stroke", strokeColor);
|
|
31638
|
+
rect.setAttribute("stroke-width", strokeWidth.toString());
|
|
31639
|
+
g.appendChild(rect);
|
|
31640
|
+
}
|
|
31641
|
+
return g;
|
|
31642
|
+
}
|
|
31643
|
+
buildView() {
|
|
31644
|
+
const { element } = this.createElement();
|
|
31645
|
+
this.root = element;
|
|
31646
|
+
}
|
|
31647
|
+
update() {
|
|
31648
|
+
return false;
|
|
31649
|
+
}
|
|
31650
|
+
}
|
|
31651
|
+
const ShapeGroup = Node$1.create({
|
|
31652
|
+
name: "shapeGroup",
|
|
31653
|
+
group: "inline",
|
|
31654
|
+
inline: true,
|
|
31655
|
+
atom: true,
|
|
31656
|
+
addOptions() {
|
|
31657
|
+
return {
|
|
31658
|
+
htmlAttributes: {
|
|
31659
|
+
contenteditable: false
|
|
31660
|
+
}
|
|
31661
|
+
};
|
|
31662
|
+
},
|
|
31663
|
+
addAttributes() {
|
|
31664
|
+
return {
|
|
31665
|
+
groupTransform: {
|
|
31666
|
+
default: {},
|
|
31667
|
+
renderDOM: () => ({})
|
|
31668
|
+
},
|
|
31669
|
+
shapes: {
|
|
31670
|
+
default: [],
|
|
31671
|
+
renderDOM: () => ({})
|
|
31672
|
+
},
|
|
31673
|
+
size: {
|
|
31674
|
+
default: null,
|
|
31675
|
+
renderDOM: (attrs) => {
|
|
31676
|
+
if (!attrs.size) return {};
|
|
31677
|
+
const sizeData = {};
|
|
31678
|
+
if (attrs.size.width) sizeData["data-width"] = attrs.size.width;
|
|
31679
|
+
if (attrs.size.height) sizeData["data-height"] = attrs.size.height;
|
|
31680
|
+
return sizeData;
|
|
31681
|
+
}
|
|
31682
|
+
},
|
|
31683
|
+
padding: {
|
|
31684
|
+
default: null,
|
|
31685
|
+
renderDOM: (attrs) => {
|
|
31686
|
+
if (!attrs.padding) return {};
|
|
31687
|
+
const paddingData = {};
|
|
31688
|
+
if (attrs.padding.top != null) paddingData["data-padding-top"] = attrs.padding.top;
|
|
31689
|
+
if (attrs.padding.right != null) paddingData["data-padding-right"] = attrs.padding.right;
|
|
31690
|
+
if (attrs.padding.bottom != null) paddingData["data-padding-bottom"] = attrs.padding.bottom;
|
|
31691
|
+
if (attrs.padding.left != null) paddingData["data-padding-left"] = attrs.padding.left;
|
|
31692
|
+
return paddingData;
|
|
31693
|
+
}
|
|
31694
|
+
},
|
|
31695
|
+
marginOffset: {
|
|
31696
|
+
default: null,
|
|
31697
|
+
renderDOM: (attrs) => {
|
|
31698
|
+
if (!attrs.marginOffset) return {};
|
|
31699
|
+
const offsetData = {};
|
|
31700
|
+
if (attrs.marginOffset.horizontal != null) offsetData["data-offset-x"] = attrs.marginOffset.horizontal;
|
|
31701
|
+
if (attrs.marginOffset.top != null) offsetData["data-offset-y"] = attrs.marginOffset.top;
|
|
31702
|
+
return offsetData;
|
|
31703
|
+
}
|
|
31704
|
+
},
|
|
31705
|
+
drawingContent: {
|
|
31706
|
+
rendered: false
|
|
31707
|
+
}
|
|
31708
|
+
};
|
|
31709
|
+
},
|
|
31710
|
+
parseDOM() {
|
|
31711
|
+
return false;
|
|
31712
|
+
},
|
|
31713
|
+
renderDOM({ htmlAttributes }) {
|
|
31714
|
+
return ["div", Attribute.mergeAttributes(this.options.htmlAttributes, htmlAttributes, { "data-shape-group": "" })];
|
|
31715
|
+
},
|
|
31716
|
+
addNodeView() {
|
|
31717
|
+
return (props) => {
|
|
31718
|
+
return new ShapeGroupView({ ...props });
|
|
31719
|
+
};
|
|
31720
|
+
}
|
|
31721
|
+
});
|
|
31473
31722
|
const TextStyle = Mark.create({
|
|
31474
31723
|
name: "textStyle",
|
|
31475
31724
|
addOptions() {
|
|
@@ -37710,6 +37959,7 @@ function validRegExp(source) {
|
|
|
37710
37959
|
}
|
|
37711
37960
|
}
|
|
37712
37961
|
const TextContentCache = /* @__PURE__ */ new WeakMap();
|
|
37962
|
+
const transparentInlineNodes = /* @__PURE__ */ new Set(["run", "bookmarkStart"]);
|
|
37713
37963
|
function textContent(node) {
|
|
37714
37964
|
let cached = TextContentCache.get(node);
|
|
37715
37965
|
if (cached) return cached;
|
|
@@ -37718,7 +37968,7 @@ function textContent(node) {
|
|
|
37718
37968
|
let child = node.child(i);
|
|
37719
37969
|
if (child.isText) content += child.text;
|
|
37720
37970
|
else if (child.isLeaf) content += "";
|
|
37721
|
-
else if (child.type && child.type.name
|
|
37971
|
+
else if (child.type && transparentInlineNodes.has(child.type.name)) content += textContent(child);
|
|
37722
37972
|
else content += " " + textContent(child) + " ";
|
|
37723
37973
|
}
|
|
37724
37974
|
TextContentCache.set(node, content);
|
|
@@ -37726,26 +37976,49 @@ function textContent(node) {
|
|
|
37726
37976
|
}
|
|
37727
37977
|
function mapIndexToDocPos(node, start2, index2) {
|
|
37728
37978
|
if (index2 <= 0) return start2;
|
|
37729
|
-
const
|
|
37730
|
-
if (index2 >=
|
|
37731
|
-
|
|
37732
|
-
|
|
37733
|
-
|
|
37734
|
-
|
|
37735
|
-
|
|
37736
|
-
|
|
37737
|
-
const
|
|
37738
|
-
|
|
37739
|
-
|
|
37740
|
-
|
|
37741
|
-
return
|
|
37979
|
+
const fullTextLength = textContent(node).length;
|
|
37980
|
+
if (index2 >= fullTextLength) return start2 + node.content.size;
|
|
37981
|
+
return mapIndexWithinNode(node, start2, index2);
|
|
37982
|
+
}
|
|
37983
|
+
function mapIndexWithinNode(node, start2, index2) {
|
|
37984
|
+
if (index2 <= 0) return start2;
|
|
37985
|
+
let offset2 = start2;
|
|
37986
|
+
for (let i = 0; i < node.childCount; i++) {
|
|
37987
|
+
const child = node.child(i);
|
|
37988
|
+
const childStart = offset2;
|
|
37989
|
+
if (child.isText) {
|
|
37990
|
+
const len = child.text.length;
|
|
37991
|
+
if (index2 <= len) return childStart + index2;
|
|
37992
|
+
index2 -= len;
|
|
37993
|
+
offset2 += child.nodeSize;
|
|
37994
|
+
continue;
|
|
37742
37995
|
}
|
|
37743
|
-
|
|
37744
|
-
|
|
37745
|
-
|
|
37746
|
-
|
|
37996
|
+
if (child.isLeaf) {
|
|
37997
|
+
if (index2 <= 1) return childStart + Math.min(index2, 1);
|
|
37998
|
+
index2 -= 1;
|
|
37999
|
+
offset2 += child.nodeSize;
|
|
38000
|
+
continue;
|
|
38001
|
+
}
|
|
38002
|
+
const isTransparentInline = child.inlineContent && child.type && transparentInlineNodes.has(child.type.name);
|
|
38003
|
+
const innerTextLength = textContent(child).length;
|
|
38004
|
+
if (isTransparentInline) {
|
|
38005
|
+
if (index2 <= innerTextLength) return mapIndexWithinNode(child, childStart + 1, index2);
|
|
38006
|
+
index2 -= innerTextLength;
|
|
38007
|
+
offset2 += child.nodeSize;
|
|
38008
|
+
continue;
|
|
38009
|
+
}
|
|
38010
|
+
const contribution = innerTextLength + 2;
|
|
38011
|
+
const relativeIndex = index2 - 1;
|
|
38012
|
+
if (relativeIndex < 0) return childStart;
|
|
38013
|
+
if (relativeIndex <= innerTextLength) {
|
|
38014
|
+
return mapIndexWithinNode(child, childStart + 1, relativeIndex);
|
|
38015
|
+
}
|
|
38016
|
+
if (relativeIndex === innerTextLength + 1) return childStart + child.nodeSize;
|
|
38017
|
+
index2 -= contribution;
|
|
38018
|
+
offset2 += child.nodeSize;
|
|
38019
|
+
}
|
|
38020
|
+
return start2 + node.content.size;
|
|
37747
38021
|
}
|
|
37748
|
-
const transparentInlineNodes = /* @__PURE__ */ new Set(["run"]);
|
|
37749
38022
|
function scanTextblocks(node, from2, to, f2, nodeStart = 0) {
|
|
37750
38023
|
const isTransparentInline = node.inlineContent && node.type && transparentInlineNodes.has(node.type.name);
|
|
37751
38024
|
if (node.inlineContent && !isTransparentInline) {
|
|
@@ -38343,7 +38616,8 @@ const getStarterExtensions = () => {
|
|
|
38343
38616
|
NodeResizer,
|
|
38344
38617
|
CustomSelection,
|
|
38345
38618
|
TextTransform,
|
|
38346
|
-
VectorShape
|
|
38619
|
+
VectorShape,
|
|
38620
|
+
ShapeGroup
|
|
38347
38621
|
];
|
|
38348
38622
|
};
|
|
38349
38623
|
export {
|
|
@@ -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-BeTmlsUD.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-Cl128I8j.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -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-Cl128I8j.js";
|
|
2
|
+
import "./chunks/converter-BeTmlsUD.js";
|
|
3
|
+
import "./chunks/docx-zipper-BMC2MmfQ.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -415,9 +415,13 @@ to {
|
|
|
415
415
|
.sd-editor-scoped :where(*),
|
|
416
416
|
.sd-editor-scoped :where(*::before),
|
|
417
417
|
.sd-editor-scoped :where(*::after) {
|
|
418
|
-
all: revert;
|
|
418
|
+
/* all: revert; - affects display of SVGs - paths are not being rendered. */
|
|
419
419
|
box-sizing: border-box;
|
|
420
420
|
}
|
|
421
|
+
.sd-editor-scoped svg {
|
|
422
|
+
display: inline-block;
|
|
423
|
+
overflow: visible;
|
|
424
|
+
}
|
|
421
425
|
.sd-editor-scoped {
|
|
422
426
|
display: block;
|
|
423
427
|
}
|
|
@@ -1214,6 +1218,27 @@ on the right if it is inside shape textbox.
|
|
|
1214
1218
|
height: 100%;
|
|
1215
1219
|
display: block;
|
|
1216
1220
|
}
|
|
1221
|
+
.sd-shape-group {
|
|
1222
|
+
display: inline-block;
|
|
1223
|
+
vertical-align: bottom;
|
|
1224
|
+
position: relative;
|
|
1225
|
+
border: 1px dashed transparent;
|
|
1226
|
+
transition: border-color 0.2s ease;
|
|
1227
|
+
}
|
|
1228
|
+
.sd-shape-group:hover {
|
|
1229
|
+
border-color: rgba(91, 155, 213, 0.3);
|
|
1230
|
+
}
|
|
1231
|
+
.sd-shape-group svg {
|
|
1232
|
+
display: block;
|
|
1233
|
+
}
|
|
1234
|
+
.sd-shape-group[data-selected] {
|
|
1235
|
+
border-color: rgba(91, 155, 213, 0.6);
|
|
1236
|
+
background-color: rgba(91, 155, 213, 0.05);
|
|
1237
|
+
}
|
|
1238
|
+
/* Ensure shapes within the group are properly positioned */
|
|
1239
|
+
.sd-shape-group svg g {
|
|
1240
|
+
transform-origin: top left;
|
|
1241
|
+
}
|
|
1217
1242
|
|
|
1218
1243
|
.alignment-buttons[data-v-d84f57b6] {
|
|
1219
1244
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAiHA;;;;GAIG;AACH,kDAHW,KAAK,KAAQ,MAAO,GAClB,KAAK,KAAQ,CAgDzB;AAED;;;;;;GAMG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,
|
|
1
|
+
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAiHA;;;;GAIG;AACH,kDAHW,KAAK,KAAQ,MAAO,GAClB,KAAK,KAAQ,CAgDzB;AAED;;;;;;GAMG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAyDxB;AAyFD;;;;;GAKG;AACH,qDAFa,YAAY,CA2BxB;AAoBD;;;;;GAKG;AACH,kDAHW,UAAU,GACR,YAAY,CAwLxB;AAiDD;;;;;;;GAOG;AAEH,0DAJW,KAAQ,gBACN,YAAY,CA0DxB;AAED;;;;;GAKG;AACH,6DAFa,YAAY,CAYxB;AAED;;;;;GAKG;AACH,yCAHW,KAAQ;;;EAQlB;AAED;;;;;GAKG;AACH,2CAHW,QAAQ,EAAE,SAgBpB;AAED,uDA2CC;AAED;;;;;;GAMG;AACH,+CAJW,YAAY,QACZ,MAAM,GACJ,MAAM,CAqBlB;AA6UD;;;;;;;;;EAgBC;AAvmCM,8EAiDN;AAEM,mDAON;AA+iCD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAoFF;;;;;;;;;;;;;oBAhlCa,KAAQ;;;;;;;;;;UAMR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
|
package/dist/super-editor/super-editor/src/core/super-converter/relationship-helpers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relationship-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/relationship-helpers.js"],"names":[],"mappings":"AAUO,yDAHI,GAA4C,EAAE,GAC5C,MAAM,CAQlB;AAUM,kEAJI,GAA4C,EAAE,qBAC9C,GAA4C,EAAE,GAC5C,GAA4C,EAAE,
|
|
1
|
+
{"version":3,"file":"relationship-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/relationship-helpers.js"],"names":[],"mappings":"AAUO,yDAHI,GAA4C,EAAE,GAC5C,MAAM,CAQlB;AAUM,kEAJI,GAA4C,EAAE,qBAC9C,GAA4C,EAAE,GAC5C,GAA4C,EAAE,CA0D1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alternate-content-translator.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/mc/altermateContent/alternate-content-translator.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alternate-content-translator.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/mc/altermateContent/alternate-content-translator.js"],"names":[],"mappings":"AAwFA;;;;GAIG;AACH,qDAHW,OAAO,aAAa,EAAE,aAAa,CAAC,MAAM,CAAC,GACzC;IAAE,MAAM,EAAE,OAAO,aAAa,EAAE,OAAO,GAAC,IAAI,CAAC;IAAC,QAAQ,EAAE,OAAO,aAAa,EAAE,OAAO,EAAE,GAAC,IAAI,CAAA;CAAE,CA8B1G;AAtHD,0BAA0B;AAC1B,mDADW,GAAG,CAAC,MAAM,CAAC,CAcnB;AA6DH,yDAAyD;AACzD,qBADW,OAAO,aAAa,EAAE,oBAAoB,CAQnD;AAqCF;;GAEG;AACH,yBAFU,OAAO,aAAa,EAAE,cAAc,CAEQ"}
|
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
* @returns {Object} XML node
|
|
5
5
|
*/
|
|
6
6
|
export function translateVectorShape(params: any): any;
|
|
7
|
+
/**
|
|
8
|
+
* Translates a shapeGroup node back to XML.
|
|
9
|
+
* @param {Object} params - Translation parameters
|
|
10
|
+
* @returns {Object} XML node
|
|
11
|
+
*/
|
|
12
|
+
export function translateShapeGroup(params: any): any;
|
|
7
13
|
export function translateImageNode(params: any): any;
|
|
8
14
|
/**
|
|
9
15
|
* Decodes image into export XML
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decode-image-node-helpers.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.js"],"names":[],"mappings":"AAyVA;;;;GAIG;AACH,uDAqBC;
|
|
1
|
+
{"version":3,"file":"decode-image-node-helpers.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/wp/helpers/decode-image-node-helpers.js"],"names":[],"mappings":"AAyVA;;;;GAIG;AACH,uDAqBC;AAED;;;;GAIG;AACH,sDA+BC;AA1YM,qDAkPN;;;;;;;;;;;;;;;;mBAtPa,KAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encode-image-node-helpers.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"encode-image-node-helpers.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/super-converter/v3/handlers/wp/helpers/encode-image-node-helpers.js"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,wEAFa,MAAO,IAAI,CA8OvB;AA+SD;;;;;;;GAOG;AACH,wDAJG;IAAwB,MAAM;IACN,WAAW;CACnC,GAAU,MAAO,IAAI,CA0DvB"}
|
|
@@ -65,5 +65,6 @@ import { NodeResizer } from './noderesizer/index.js';
|
|
|
65
65
|
import { CustomSelection } from './custom-selection/index.js';
|
|
66
66
|
import { TextTransform } from './text-transform/index.js';
|
|
67
67
|
import { VectorShape } from './vector-shape/index.js';
|
|
68
|
-
|
|
68
|
+
import { ShapeGroup } from './shape-group/index.js';
|
|
69
|
+
export { History, Heading, Document, Text, Run, BulletList, OrderedList, ListItem, Paragraph, CommentRangeStart, CommentRangeEnd, CommentReference, TabNode, LineBreak, HardBreak, Bold, Italic, Underline, Highlight, Strike, Color, FontFamily, FontSize, TextAlign, TextIndent, TextStyle, LineHeight, FormatCommands, CommentsPlugin, Gapcursor, Table, TableRow, TableCell, TableHeader, Placeholder, DropCursor, BlockNode, FieldAnnotation, fieldAnnotationHelpers, Image, BookmarkStart, BookmarkEnd, PopoverPlugin, Mention, Collaboration, CollaborationCursor, TrackChanges, TrackInsert, TrackDelete, TrackFormat, CommentsMark, trackChangesHelpers, AiMark, AiAnimationMark, AiLoaderNode, AiPlugin, Search, StructuredContent, StructuredContentBlock, StructuredContentCommands, DocumentSection, NodeResizer, CustomSelection, TextTransform, VectorShape, ShapeGroup };
|
|
69
70
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/index.js"],"names":[],"mappings":"wBACwB,oBAAoB;wBAwBpB,oBAAoB;yBAPnB,qBAAqB;qBACzB,iBAAiB;oBAClB,gBAAgB;2BACT,wBAAwB;4BACvB,yBAAyB;yBAC5B,sBAAsB;0BACrB,sBAAsB;kCAEqB,oBAAoB;gCAApB,oBAAoB;iCAApB,oBAAoB;wBACjE,gBAAgB;0BACH,uBAAuB;0BAAvB,uBAAuB;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/index.js"],"names":[],"mappings":"wBACwB,oBAAoB;wBAwBpB,oBAAoB;yBAPnB,qBAAqB;qBACzB,iBAAiB;oBAClB,gBAAgB;2BACT,wBAAwB;4BACvB,yBAAyB;yBAC5B,sBAAsB;0BACrB,sBAAsB;kCAEqB,oBAAoB;gCAApB,oBAAoB;iCAApB,oBAAoB;wBACjE,gBAAgB;0BACH,uBAAuB;0BAAvB,uBAAuB;qBA2BvC,iBAAiB;uBACf,mBAAmB;0BAChB,sBAAsB;0BACtB,sBAAsB;uBACzB,mBAAmB;sBAzDpB,kBAAkB;2BACb,wBAAwB;yBAC1B,sBAAsB;0BACrB,uBAAuB;2BACtB,wBAAwB;0BAgDzB,4BAA4B;2BA/C3B,wBAAwB;+BACpB,4BAA4B;+BA0D5B,oBAAoB;0BAxDzB,sBAAsB;sBAmB1B,kBAAkB;yBAEf,sBAAsB;0BACrB,uBAAuB;4BAFrB,yBAAyB;4BAqCzB,wBAAwB;2BA1DzB,uBAAuB;0BAuCxB,uBAAuB;gCAfO,6BAA6B;uCAA7B,6BAA6B;sBAC/D,kBAAkB;8BACG,sBAAsB;4BAAtB,sBAAsB;8BAiCnC,2BAA2B;wBAhCjC,oBAAoB;8BAzBd,0BAA0B;oCACpB,iCAAiC;6BAyDxC,0BAA0B;4BARD,0BAA0B;4BAA1B,0BAA0B;4BAA1B,0BAA0B;6BACnD,oBAAoB;oCAeb,0BAA0B;AA6C9D,uJA6EC;AAxHD,wJAyCC;uBA3G+D,eAAe;gCAAf,eAAe;6BAAf,eAAe;yBAAf,eAAe;uBA2DxD,mBAAmB;kCAzBnC,+BAA+B;uCAA/B,+BAA+B;0CAhCI,+BAA+B;gCAgClE,+BAA+B;4BA0BV,wBAAwB;gCACpB,6BAA6B;8BAX/B,2BAA2B;4BAb7B,yBAAyB;2BAC1B,wBAAwB"}
|
package/dist/super-editor/super-editor/src/extensions/search/prosemirror-search-patched.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prosemirror-search-patched.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/search/prosemirror-search-patched.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prosemirror-search-patched.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/search/prosemirror-search-patched.js"],"names":[],"mappings":"AAwPA,oDAaC;AA9PD;IACE;;QAEI;IACJ,yBAUC;IATC,YAA2B;IAC3B,uBAA2C;IAC3C,iBAA+B;IAC/B,gBAA6B;IAC7B,aAAmC;IACnC,eAAyE;IACzE,mBAAmC;IACnC,YAAmC;IACnC;;;kCAAiG;IAEnG;;QAEI;IACJ,wBAQC;IACD;;QAEI;IACJ,mDAOC;IACD;;;QAGI;IACJ,mDAOC;IACD;;QAEI;IACJ,0CAKC;IACD;;QAEI;IACJ,0BAIC;IACD;;;;;;;;;;QAUI;IACJ;;;;QAkCC;CACF;AAwWQ,6DASN;AATM,mEASN;AATM,6DASN;AATM,mEASN;AArCH;;;EAGE;AACF,oDAGC;AAdD;;;EAGE;AACF,gDAEC;AAyGD;;EAEE;AACF,+DAwBC;AAtEQ,mEAyBN;AAzBM,gEAyBN;AAzBM,sEAyBN;AA9HH;;;EAGE;AACF,0DA4BC;AAgBD;;;EAGE;AACF,sEAEC;AA7SD;IACE,wBAGC;IAFC,WAAkB;IAClB,eAAoF;IAEtF,8CAWC;IACD,8CAiBC;CACF;AAvED;IACE,wBAKC;IAJC,WAAkB;IAGlB,YAAoB;IAEtB,8CAYC;IACD,8CAaC;CACF;sBA9J+B,mBAAmB;AAiYnD;IACE,+CAIC;IAHC,WAAkB;IAClB,WAAkB;IAClB,UAAgB;CAEnB;uBAzYgD,mBAAmB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export class ShapeGroupView {
|
|
2
|
+
constructor(props: any);
|
|
3
|
+
node: any;
|
|
4
|
+
view: any;
|
|
5
|
+
getPos: any;
|
|
6
|
+
decorations: any;
|
|
7
|
+
innerDecorations: any;
|
|
8
|
+
editor: any;
|
|
9
|
+
extension: any;
|
|
10
|
+
htmlAttributes: any;
|
|
11
|
+
root: any;
|
|
12
|
+
mount(): void;
|
|
13
|
+
get dom(): any;
|
|
14
|
+
get contentDOM(): any;
|
|
15
|
+
createElement(): {
|
|
16
|
+
element: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
createShapeElement(shape: any, groupTransform: any): SVGGElement;
|
|
19
|
+
buildView(): void;
|
|
20
|
+
update(): boolean;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=ShapeGroupView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShapeGroupView.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/shape-group/ShapeGroupView.js"],"names":[],"mappings":"AAGA;IAmBE,wBAWC;IA7BD,UAAK;IAEL,UAAK;IAEL,YAAO;IAEP,iBAAY;IAEZ,sBAAiB;IAEjB,YAAO;IAEP,eAAU;IAEV,oBAAe;IAEf,UAAK;IAeL,cAEC;IAED,eAEC;IAED,sBAEC;IAED;;MAyCC;IAED,iEAuIC;IAED,kBAGC;IAED,kBAGC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/shape-group/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shape-group.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/shape-group/shape-group.js"],"names":[],"mappings":"AAGA,8BAmFG;qBAtF6B,aAAa"}
|