@harbour-enterprises/superdoc 0.34.9 → 0.35.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{PdfViewer-C2rB3UFf.es.js → PdfViewer-BFtgOHmf.es.js} +1 -1
- package/dist/chunks/{PdfViewer-DE24U_pv.cjs → PdfViewer-CjZkPY58.cjs} +1 -1
- package/dist/chunks/{index-myYbO6wO.cjs → index-2Tp2kFsl.cjs} +46 -5
- package/dist/chunks/{index-CHtB4uAl-BS8u99OE.es.js → index-CzChRmiA-C73DMMSu.es.js} +1 -1
- package/dist/chunks/{index-CHtB4uAl-D-zQo-Zr.cjs → index-CzChRmiA-Db3kkVxc.cjs} +1 -1
- package/dist/chunks/{index-tHw-DC34.es.js → index-cSTBvMaB.es.js} +46 -5
- package/dist/chunks/{super-editor.es-Cs1TKdep.cjs → super-editor.es-CyHF2Y6u.cjs} +86 -25
- package/dist/chunks/{super-editor.es-C8J_Vybd.es.js → super-editor.es-DgptwjrT.es.js} +86 -25
- package/dist/packages/superdoc/src/composables/use-document.d.ts.map +1 -1
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/packages/superdoc/src/core/collaboration/collaboration.d.ts +11 -0
- package/dist/packages/superdoc/src/core/collaboration/collaboration.d.ts.map +1 -1
- package/dist/packages/superdoc/src/core/types/index.d.ts +64 -1
- package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
- package/dist/style.css +6 -6
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-9FsB3Hi4.js → converter-CNQW31Bb.js} +11 -5
- package/dist/super-editor/chunks/{docx-zipper-C_3Ejzf5.js → docx-zipper-WzK7I7n3.js} +1 -1
- package/dist/super-editor/chunks/{editor-BMv3Pr_v.js → editor-tmuPz5Wb.js} +54 -17
- package/dist/super-editor/chunks/{index-CHtB4uAl.js → index-CzChRmiA.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-B9ZfgQpl.js → toolbar-BVEErXhc.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 +6 -6
- package/dist/super-editor/super-editor/src/core/commands/deleteSelection.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/extensions/editable.d.ts +11 -0
- package/dist/super-editor/super-editor/src/core/extensions/editable.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/documentCommentsImporter.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/comment/comments-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor.es.js +29 -11
- 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 +131 -29
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperDoc.d.ts","sourceRoot":"","sources":["../../../../../src/core/SuperDoc.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SuperDoc.d.ts","sourceRoot":"","sources":["../../../../../src/core/SuperDoc.js"],"names":[],"mappings":"AAuBA,6CAA6C;AAC7C,mEAAmE;AACnE,qDAAqD;AACrD,mDAAmD;AACnD,iDAAiD;AACjD,6DAA6D;AAC7D,iDAAiD;AACjD,6DAA6D;AAE7D;;;;;;GAMG;AACH;IACE,4BAA4B;IAC5B,qBADW,KAAK,CAAC,MAAM,CAAC,CACgB;IA0ExC;;OAEG;IACH,oBAFW,MAAM,EAKhB;IA9ED,qBAAqB;IACrB,SADW,MAAM,CACT;IAER,qBAAqB;IACrB,OADW,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;IACH,SAFa,IAAI,CAahB;IAED;;;;OAIG;IACH,oCAHW,OAAO,GACL,IAAI,CAMhB;;CACF;mBA78Ba,OAAO,SAAS,EAAE,IAAI;8BACtB,OAAO,SAAS,EAAE,eAAe;uBACjC,OAAO,SAAS,EAAE,QAAQ;sBAC1B,OAAO,SAAS,EAAE,OAAO;qBACzB,OAAO,SAAS,EAAE,MAAM;2BACxB,OAAO,SAAS,EAAE,YAAY;qBAC9B,OAAO,SAAS,EAAE,MAAM;2BACxB,OAAO,SAAS,EAAE,YAAY;6BA5Bf,eAAe;0BASlB,4BAA4B;6BAJd,mCAAmC;8BAC7C,iEAAiE"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Main function to create a provider for collaboration.
|
|
3
3
|
* Currently only hocuspocus is actually supported.
|
|
4
4
|
*
|
|
5
|
+
* @deprecated Use external provider instead. Pass { ydoc, provider } to modules.collaboration config.
|
|
5
6
|
* @param {Object} param The config object
|
|
6
7
|
* @param {Object} param.config The configuration object
|
|
7
8
|
* @param {Object} param.ydoc The Yjs document
|
|
@@ -15,4 +16,14 @@ export function createProvider({ config, user, documentId, socket, superdocInsta
|
|
|
15
16
|
user: any;
|
|
16
17
|
documentId: string;
|
|
17
18
|
}): any;
|
|
19
|
+
/**
|
|
20
|
+
* Setup awareness handler for external providers.
|
|
21
|
+
* Wires up awareness 'change' events to emit superdoc 'awareness-update' events.
|
|
22
|
+
*
|
|
23
|
+
* @param {Object} provider The external provider (must have awareness property)
|
|
24
|
+
* @param {Object} superdocInstance The SuperDoc instance
|
|
25
|
+
* @param {Object} user The user object for local awareness state
|
|
26
|
+
* @returns {void}
|
|
27
|
+
*/
|
|
28
|
+
export function setupAwarenessHandler(provider: any, superdocInstance: any, user: any): void;
|
|
18
29
|
//# sourceMappingURL=collaboration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collaboration.d.ts","sourceRoot":"","sources":["../../../../../../src/core/collaboration/collaboration.js"],"names":[],"mappings":"AAiCA
|
|
1
|
+
{"version":3,"file":"collaboration.d.ts","sourceRoot":"","sources":["../../../../../../src/core/collaboration/collaboration.js"],"names":[],"mappings":"AAiCA;;;;;;;;;;;GAWG;AACH,uFANG;IAAsB,MAAM;IACN,IAAI;IACJ,IAAI;IACJ,UAAU,EAAxB,MAAM;CACd,OAeF;AA8ED;;;;;;;;GAQG;AACH,wFAFa,IAAI,CAqBhB"}
|
|
@@ -70,6 +70,69 @@ export type Document = {
|
|
|
70
70
|
*/
|
|
71
71
|
provider?: import("@hocuspocus/provider").HocuspocusProvider;
|
|
72
72
|
};
|
|
73
|
+
/**
|
|
74
|
+
* External collaboration provider interface
|
|
75
|
+
* Accepts any Yjs-compatible provider (HocuspocusProvider, LiveblocksYjsProvider, TiptapCollabProvider, etc.)
|
|
76
|
+
*/
|
|
77
|
+
export type CollaborationProvider = {
|
|
78
|
+
/**
|
|
79
|
+
* The Yjs awareness instance (optional, may be null)
|
|
80
|
+
*/
|
|
81
|
+
awareness?: any;
|
|
82
|
+
/**
|
|
83
|
+
* Event listener
|
|
84
|
+
*/
|
|
85
|
+
on?: (event: string, handler: Function) => void;
|
|
86
|
+
/**
|
|
87
|
+
* Event unsubscriber
|
|
88
|
+
*/
|
|
89
|
+
off?: (event: string, handler: Function) => void;
|
|
90
|
+
/**
|
|
91
|
+
* Disconnect from the provider
|
|
92
|
+
*/
|
|
93
|
+
disconnect?: () => void;
|
|
94
|
+
/**
|
|
95
|
+
* Destroy the provider
|
|
96
|
+
*/
|
|
97
|
+
destroy?: () => void;
|
|
98
|
+
/**
|
|
99
|
+
* Whether the provider has synced
|
|
100
|
+
*/
|
|
101
|
+
synced?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Alternative sync property (used by some providers)
|
|
104
|
+
*/
|
|
105
|
+
isSynced?: boolean;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Collaboration module configuration
|
|
109
|
+
*/
|
|
110
|
+
export type CollaborationConfig = {
|
|
111
|
+
/**
|
|
112
|
+
* External Yjs document (provider-agnostic mode)
|
|
113
|
+
*/
|
|
114
|
+
ydoc?: any;
|
|
115
|
+
/**
|
|
116
|
+
* External collaboration provider (provider-agnostic mode)
|
|
117
|
+
*/
|
|
118
|
+
provider?: CollaborationProvider;
|
|
119
|
+
/**
|
|
120
|
+
* Internal provider type (deprecated)
|
|
121
|
+
*/
|
|
122
|
+
providerType?: "hocuspocus" | "superdoc";
|
|
123
|
+
/**
|
|
124
|
+
* WebSocket URL for internal provider (deprecated)
|
|
125
|
+
*/
|
|
126
|
+
url?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Authentication token for internal provider (deprecated)
|
|
129
|
+
*/
|
|
130
|
+
token?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Additional params for internal provider (deprecated)
|
|
133
|
+
*/
|
|
134
|
+
params?: any;
|
|
135
|
+
};
|
|
73
136
|
export type Modules = {
|
|
74
137
|
/**
|
|
75
138
|
* Comments module configuration
|
|
@@ -95,7 +158,7 @@ export type Modules = {
|
|
|
95
158
|
/**
|
|
96
159
|
* Collaboration module configuration
|
|
97
160
|
*/
|
|
98
|
-
collaboration?:
|
|
161
|
+
collaboration?: CollaborationConfig;
|
|
99
162
|
/**
|
|
100
163
|
* Toolbar module configuration
|
|
101
164
|
*/
|
|
@@ -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
|
|
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;;;;aACZ,MAAM;;;;uBACN,KAAQ;;;;iBACR,OAAO;;;;YACP,MAAM;;;;oBACN,KAAQ;;;;eACR,OAAO;;;;wBACP,CAAS,IAAI,EAAJ,IAAI,KAAG,OAAO,CAAC,MAAM,CAAC;;;;eAC/B,IAAI;;;;aACJ,OAAO;;;;gCACP,OAAO;;;;;;;;yBAEP,OAAO;;;;WACP,MAAM;;;;eACN,MAAM;;;;cACN,OAAO"}
|
package/dist/style.css
CHANGED
|
@@ -2323,10 +2323,10 @@ on the right if it is inside shape textbox.
|
|
|
2323
2323
|
min-height: 40px;
|
|
2324
2324
|
}
|
|
2325
2325
|
|
|
2326
|
-
.editor-element[data-v-
|
|
2326
|
+
.editor-element[data-v-86fdd359] {
|
|
2327
2327
|
position: relative;
|
|
2328
2328
|
}
|
|
2329
|
-
.super-editor-container[data-v-
|
|
2329
|
+
.super-editor-container[data-v-86fdd359] {
|
|
2330
2330
|
width: auto;
|
|
2331
2331
|
height: auto;
|
|
2332
2332
|
min-width: 8in;
|
|
@@ -2335,13 +2335,13 @@ on the right if it is inside shape textbox.
|
|
|
2335
2335
|
display: flex;
|
|
2336
2336
|
flex-direction: column;
|
|
2337
2337
|
}
|
|
2338
|
-
.ruler[data-v-
|
|
2338
|
+
.ruler[data-v-86fdd359] {
|
|
2339
2339
|
margin-bottom: 2px;
|
|
2340
2340
|
}
|
|
2341
|
-
.super-editor[data-v-
|
|
2341
|
+
.super-editor[data-v-86fdd359] {
|
|
2342
2342
|
color: initial;
|
|
2343
2343
|
}
|
|
2344
|
-
.placeholder-editor[data-v-
|
|
2344
|
+
.placeholder-editor[data-v-86fdd359] {
|
|
2345
2345
|
position: absolute;
|
|
2346
2346
|
top: 0;
|
|
2347
2347
|
left: 0;
|
|
@@ -2353,7 +2353,7 @@ on the right if it is inside shape textbox.
|
|
|
2353
2353
|
background-color: white;
|
|
2354
2354
|
box-sizing: border-box;
|
|
2355
2355
|
}
|
|
2356
|
-
.placeholder-title[data-v-
|
|
2356
|
+
.placeholder-title[data-v-86fdd359] {
|
|
2357
2357
|
display: flex;
|
|
2358
2358
|
justify-content: center;
|
|
2359
2359
|
margin-bottom: 40px;
|
|
@@ -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-CNQW31Bb.js";
|
|
3
|
+
import { _ as _export_sfc } from "./chunks/editor-tmuPz5Wb.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 = {}) {
|
|
@@ -33128,7 +33128,7 @@ function importCommentData({ docx, editor, converter }) {
|
|
|
33128
33128
|
const trackedDeletedText = attributes["custom:trackedDeletedText"] !== "null" ? attributes["custom:trackedDeletedText"] : null;
|
|
33129
33129
|
const date = new Date(createdDate);
|
|
33130
33130
|
const unixTimestampMs = date.getTime();
|
|
33131
|
-
const
|
|
33131
|
+
const parsedElements = nodeListHandler.handler({
|
|
33132
33132
|
nodes: el.elements,
|
|
33133
33133
|
nodeListHandler,
|
|
33134
33134
|
docx,
|
|
@@ -33136,7 +33136,7 @@ function importCommentData({ docx, editor, converter }) {
|
|
|
33136
33136
|
converter,
|
|
33137
33137
|
path: [el]
|
|
33138
33138
|
});
|
|
33139
|
-
const { attrs } =
|
|
33139
|
+
const { attrs } = parsedElements[0];
|
|
33140
33140
|
const paraId = attrs["w14:paraId"];
|
|
33141
33141
|
return {
|
|
33142
33142
|
commentId: internalId || v4(),
|
|
@@ -33144,7 +33144,8 @@ function importCommentData({ docx, editor, converter }) {
|
|
|
33144
33144
|
creatorName: authorName,
|
|
33145
33145
|
creatorEmail: authorEmail,
|
|
33146
33146
|
createdTime: unixTimestampMs,
|
|
33147
|
-
textJson:
|
|
33147
|
+
textJson: parsedElements[0],
|
|
33148
|
+
elements: parsedElements,
|
|
33148
33149
|
initials,
|
|
33149
33150
|
paraId,
|
|
33150
33151
|
trackedChange,
|
|
@@ -33166,7 +33167,12 @@ const generateCommentsWithExtendedData = ({ docx, comments }) => {
|
|
|
33166
33167
|
const { elements = [] } = initialElements[0] ?? {};
|
|
33167
33168
|
const commentEx = elements.filter((el) => el.name === "w15:commentEx");
|
|
33168
33169
|
return comments.map((comment) => {
|
|
33169
|
-
const extendedDef = commentEx.find((ce2) =>
|
|
33170
|
+
const extendedDef = commentEx.find((ce2) => {
|
|
33171
|
+
const isIncludedInCommentElements = comment.elements.some(
|
|
33172
|
+
(el) => el.attrs["w14:paraId"] === ce2.attributes["w15:paraId"]
|
|
33173
|
+
);
|
|
33174
|
+
return isIncludedInCommentElements;
|
|
33175
|
+
});
|
|
33170
33176
|
if (!extendedDef) return { ...comment, isDone: comment.isDone ?? false };
|
|
33171
33177
|
const { isDone, paraIdParent } = getExtendedDetails(extendedDef);
|
|
33172
33178
|
let parentComment;
|
|
@@ -36061,7 +36067,7 @@ const _SuperConverter = class _SuperConverter {
|
|
|
36061
36067
|
static getStoredSuperdocVersion(docx) {
|
|
36062
36068
|
return _SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
36063
36069
|
}
|
|
36064
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version = "0.
|
|
36070
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version = "0.35.2") {
|
|
36065
36071
|
return _SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
|
|
36066
36072
|
}
|
|
36067
36073
|
/**
|
|
@@ -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-CNQW31Bb.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-CNQW31Bb.js";
|
|
16
|
+
import { D as DocxZipper } from "./docx-zipper-WzK7I7n3.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() {
|
|
@@ -8986,6 +8986,12 @@ const toggleNode = (typeOrName, toggleTypeOrName, attrs = {}) => ({ state, comma
|
|
|
8986
8986
|
const selectAll = () => ({ state, dispatch }) => selectAll$1(state, dispatch);
|
|
8987
8987
|
const deleteSelection = () => ({ state, tr, dispatch }) => {
|
|
8988
8988
|
const { from: from2, to, empty: empty2 } = state.selection;
|
|
8989
|
+
if (document && document.getSelection) {
|
|
8990
|
+
const currentDomSelection = document.getSelection();
|
|
8991
|
+
if (currentDomSelection?.baseNode?.data?.length == 1) {
|
|
8992
|
+
return false;
|
|
8993
|
+
}
|
|
8994
|
+
}
|
|
8989
8995
|
if (empty2) {
|
|
8990
8996
|
return deleteSelection$1(state, dispatch);
|
|
8991
8997
|
}
|
|
@@ -10556,12 +10562,41 @@ const Keymap = Extension.create({
|
|
|
10556
10562
|
const Editable = Extension.create({
|
|
10557
10563
|
name: "editable",
|
|
10558
10564
|
addPmPlugins() {
|
|
10565
|
+
const editor = this.editor;
|
|
10559
10566
|
const editablePlugin = new Plugin({
|
|
10560
10567
|
key: new PluginKey("editable"),
|
|
10561
10568
|
props: {
|
|
10562
|
-
editable: () =>
|
|
10563
|
-
|
|
10564
|
-
|
|
10569
|
+
editable: () => editor.options.editable,
|
|
10570
|
+
handleDOMEvents: {
|
|
10571
|
+
beforeinput: (_view, event) => {
|
|
10572
|
+
if (!editor.options.editable) {
|
|
10573
|
+
event.preventDefault();
|
|
10574
|
+
return true;
|
|
10575
|
+
}
|
|
10576
|
+
return false;
|
|
10577
|
+
},
|
|
10578
|
+
mousedown: (_view, event) => {
|
|
10579
|
+
if (!editor.options.editable) {
|
|
10580
|
+
event.preventDefault();
|
|
10581
|
+
return true;
|
|
10582
|
+
}
|
|
10583
|
+
return false;
|
|
10584
|
+
},
|
|
10585
|
+
focus: (view, event) => {
|
|
10586
|
+
if (!editor.options.editable) {
|
|
10587
|
+
event.preventDefault();
|
|
10588
|
+
view.dom.blur();
|
|
10589
|
+
return true;
|
|
10590
|
+
}
|
|
10591
|
+
return false;
|
|
10592
|
+
}
|
|
10593
|
+
},
|
|
10594
|
+
handleClick: () => !editor.options.editable,
|
|
10595
|
+
handleDoubleClick: () => !editor.options.editable,
|
|
10596
|
+
handleTripleClick: () => !editor.options.editable,
|
|
10597
|
+
handleKeyDown: () => !editor.options.editable,
|
|
10598
|
+
handlePaste: () => !editor.options.editable,
|
|
10599
|
+
handleDrop: () => !editor.options.editable
|
|
10565
10600
|
}
|
|
10566
10601
|
});
|
|
10567
10602
|
return [editablePlugin];
|
|
@@ -11581,12 +11616,14 @@ const prepareCommentsForImport = (doc2, tr, schema, converter) => {
|
|
|
11581
11616
|
importedId: node.attrs["w:id"]
|
|
11582
11617
|
});
|
|
11583
11618
|
if (type.name === "commentRangeStart") {
|
|
11584
|
-
|
|
11585
|
-
|
|
11586
|
-
|
|
11587
|
-
|
|
11588
|
-
|
|
11589
|
-
|
|
11619
|
+
if (!matchingImportedComment.isDone) {
|
|
11620
|
+
toMark.push({
|
|
11621
|
+
commentId: resolvedCommentId,
|
|
11622
|
+
importedId,
|
|
11623
|
+
internal,
|
|
11624
|
+
start: pos
|
|
11625
|
+
});
|
|
11626
|
+
}
|
|
11590
11627
|
ensureFallbackComment({
|
|
11591
11628
|
converter,
|
|
11592
11629
|
matchingImportedComment,
|
|
@@ -15192,7 +15229,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
15192
15229
|
{ default: remarkStringify },
|
|
15193
15230
|
{ default: remarkGfm }
|
|
15194
15231
|
] = await Promise.all([
|
|
15195
|
-
import("./index-
|
|
15232
|
+
import("./index-CzChRmiA.js"),
|
|
15196
15233
|
import("./index-DRCvimau.js"),
|
|
15197
15234
|
import("./index-C_x_N6Uh.js"),
|
|
15198
15235
|
import("./index-D_sWOSiG.js"),
|
|
@@ -15302,7 +15339,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
15302
15339
|
Object.entries(this.converter.convertedXml).forEach(([name, json2]) => {
|
|
15303
15340
|
if (name.includes("header") || name.includes("footer")) {
|
|
15304
15341
|
const resultXml = this.converter.schemaToXml(json2.elements[0]);
|
|
15305
|
-
updatedHeadersFooters[name] = String(resultXml);
|
|
15342
|
+
updatedHeadersFooters[name] = String(resultXml.replace(/\[\[sdspace\]\]/g, ""));
|
|
15306
15343
|
}
|
|
15307
15344
|
});
|
|
15308
15345
|
const numberingData = this.converter.convertedXml["word/numbering.xml"];
|
|
@@ -15410,7 +15447,7 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
15410
15447
|
* @returns {Object | void} Migration results
|
|
15411
15448
|
*/
|
|
15412
15449
|
processCollaborationMigrations() {
|
|
15413
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.
|
|
15450
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.35.2");
|
|
15414
15451
|
if (!this.options.ydoc) return;
|
|
15415
15452
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
15416
15453
|
let docVersion = metaMap.get("version");
|
|
@@ -33320,11 +33357,11 @@ const getChangesByIdToResolve = (state, id) => {
|
|
|
33320
33357
|
break;
|
|
33321
33358
|
}
|
|
33322
33359
|
const [left2, right2] = direction < 0 ? [neighbor, currentChange] : [currentChange, neighbor];
|
|
33323
|
-
if (!areDirectlyConnected(left2, right2)) {
|
|
33324
|
-
break;
|
|
33325
|
-
}
|
|
33326
33360
|
const sharesId = neighbor.mark.attrs.id === matchingId;
|
|
33327
33361
|
const complementary = isComplementaryPair(currentChange.mark.type.name, neighbor.mark.type.name);
|
|
33362
|
+
if (!sharesId && !areDirectlyConnected(left2, right2)) {
|
|
33363
|
+
break;
|
|
33364
|
+
}
|
|
33328
33365
|
if (!sharesId && !complementary) {
|
|
33329
33366
|
break;
|
|
33330
33367
|
}
|
|
@@ -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-CNQW31Bb.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-tmuPz5Wb.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-tmuPz5Wb.js";
|
|
2
|
+
import "./chunks/converter-CNQW31Bb.js";
|
|
3
|
+
import "./chunks/docx-zipper-WzK7I7n3.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -1949,10 +1949,10 @@ on the right if it is inside shape textbox.
|
|
|
1949
1949
|
min-height: 40px;
|
|
1950
1950
|
}
|
|
1951
1951
|
|
|
1952
|
-
.editor-element[data-v-
|
|
1952
|
+
.editor-element[data-v-86fdd359] {
|
|
1953
1953
|
position: relative;
|
|
1954
1954
|
}
|
|
1955
|
-
.super-editor-container[data-v-
|
|
1955
|
+
.super-editor-container[data-v-86fdd359] {
|
|
1956
1956
|
width: auto;
|
|
1957
1957
|
height: auto;
|
|
1958
1958
|
min-width: 8in;
|
|
@@ -1961,13 +1961,13 @@ on the right if it is inside shape textbox.
|
|
|
1961
1961
|
display: flex;
|
|
1962
1962
|
flex-direction: column;
|
|
1963
1963
|
}
|
|
1964
|
-
.ruler[data-v-
|
|
1964
|
+
.ruler[data-v-86fdd359] {
|
|
1965
1965
|
margin-bottom: 2px;
|
|
1966
1966
|
}
|
|
1967
|
-
.super-editor[data-v-
|
|
1967
|
+
.super-editor[data-v-86fdd359] {
|
|
1968
1968
|
color: initial;
|
|
1969
1969
|
}
|
|
1970
|
-
.placeholder-editor[data-v-
|
|
1970
|
+
.placeholder-editor[data-v-86fdd359] {
|
|
1971
1971
|
position: absolute;
|
|
1972
1972
|
top: 0;
|
|
1973
1973
|
left: 0;
|
|
@@ -1979,7 +1979,7 @@ on the right if it is inside shape textbox.
|
|
|
1979
1979
|
background-color: white;
|
|
1980
1980
|
box-sizing: border-box;
|
|
1981
1981
|
}
|
|
1982
|
-
.placeholder-title[data-v-
|
|
1982
|
+
.placeholder-title[data-v-86fdd359] {
|
|
1983
1983
|
display: flex;
|
|
1984
1984
|
justify-content: center;
|
|
1985
1985
|
margin-bottom: 40px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteSelection.d.ts","sourceRoot":"","sources":["../../../../../src/core/commands/deleteSelection.js"],"names":[],"mappings":"AAKO,oCAEJ;;;;CAAuB,
|
|
1
|
+
{"version":3,"file":"deleteSelection.d.ts","sourceRoot":"","sources":["../../../../../src/core/commands/deleteSelection.js"],"names":[],"mappings":"AAKO,oCAEJ;;;;CAAuB,aAuCvB"}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Editable extension controls whether the editor accepts user input.
|
|
3
|
+
*
|
|
4
|
+
* When editable is false, all user interactions are blocked:
|
|
5
|
+
* - Text input via beforeinput events
|
|
6
|
+
* - Mouse interactions via mousedown
|
|
7
|
+
* - Focus via automatic blur
|
|
8
|
+
* - Click, double-click, and triple-click events
|
|
9
|
+
* - Keyboard shortcuts via handleKeyDown
|
|
10
|
+
* - Paste and drop events
|
|
11
|
+
*/
|
|
1
12
|
export const Editable: Extension;
|
|
2
13
|
import { Extension } from '../Extension.js';
|
|
3
14
|
//# sourceMappingURL=editable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editable.d.ts","sourceRoot":"","sources":["../../../../../src/core/extensions/editable.js"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"editable.d.ts","sourceRoot":"","sources":["../../../../../src/core/extensions/editable.js"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,iCA4CG;0BAzDuB,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentCommentsImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/documentCommentsImporter.js"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,+DANG;IAA2B,IAAI,EAAvB,UAAU;IACc,eAAe,EAAvC,eAAe;IACQ,SAAS,EAAhC,cAAc;IACC,MAAM,EAArB,MAAM;CACd,
|
|
1
|
+
{"version":3,"file":"documentCommentsImporter.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/super-converter/v2/importer/documentCommentsImporter.js"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,+DANG;IAA2B,IAAI,EAAvB,UAAU;IACc,eAAe,EAAvC,eAAe;IACQ,SAAS,EAAhC,cAAc;IACC,MAAM,EAArB,MAAM;CACd,SA6DF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comments-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/comment/comments-helpers.js"],"names":[],"mappings":"AAcO,uEANJ;IAAuB,SAAS,EAAxB,MAAM;CACd,GAGU,IAAI,CAUhB;AASM,gEAHI,OAAO,mBAAmB,EAAE,IAAI,SAkB1C;AAWM,8CANI,OAAO,mBAAmB,EAAE,IAAI,MAChC,OAAO,mBAAmB,EAAE,WAAW,UACvC,OAAO,mBAAmB,EAAE,MAAM,mBAEhC,IAAI,CAyEhB;AAQM,oDAMN;AAUM,8CALI,OAAO,mBAAmB,EAAE,IAAI,MAChC,OAAO,mBAAmB,EAAE,WAAW,UACvC,OAAO,mBAAmB,EAAE,MAAM,mBAChC,IAAI,
|
|
1
|
+
{"version":3,"file":"comments-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/comment/comments-helpers.js"],"names":[],"mappings":"AAcO,uEANJ;IAAuB,SAAS,EAAxB,MAAM;CACd,GAGU,IAAI,CAUhB;AASM,gEAHI,OAAO,mBAAmB,EAAE,IAAI,SAkB1C;AAWM,8CANI,OAAO,mBAAmB,EAAE,IAAI,MAChC,OAAO,mBAAmB,EAAE,WAAW,UACvC,OAAO,mBAAmB,EAAE,MAAM,mBAEhC,IAAI,CAyEhB;AAQM,oDAMN;AAUM,8CALI,OAAO,mBAAmB,EAAE,IAAI,MAChC,OAAO,mBAAmB,EAAE,WAAW,UACvC,OAAO,mBAAmB,EAAE,MAAM,mBAChC,IAAI,CAoEhB;AAUM,qEA2DN;AAYM,oFANJ;IAAuB,cAAc;IACd,QAAQ;IACP,UAAU;IACP,MAAM,EAAzB,UAAU;CAClB,UAQF"}
|
package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/track-changes/permission-helpers.js"],"names":[],"mappings":"AAgDO,2DALJ;IAAwD,KAAK,EAArD,OAAO,mBAAmB,EAAE,WAAW;IACxB,IAAI,EAAnB,MAAM;IACS,EAAE,EAAjB,MAAM;CACd,GAAU,KAAK,KAAQ,CAkBzB;AA+BM,iFALJ;IAAmE,MAAM,EAAjE;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"permission-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/track-changes/permission-helpers.js"],"names":[],"mappings":"AAgDO,2DALJ;IAAwD,KAAK,EAArD,OAAO,mBAAmB,EAAE,WAAW;IACxB,IAAI,EAAnB,MAAM;IACS,EAAE,EAAjB,MAAM;CACd,GAAU,KAAK,KAAQ,CAkBzB;AA+BM,iFALJ;IAAmE,MAAM,EAAjE;;;;;;;;;;;;0BAsDgtkgB,aAAa;;;;2BAAgoB,IAAI;;;;;;;6BAAwmI,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAAwte,aAAa;0BAA3kyB,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAAsmpC,UAAU;kDAAuV,UAAU,aAA+E,UAAU;oCAAgZ,UAAU;;;;;;;;;KAtD/gliB;IACxB,MAAM,EAAhC,QAAQ,GAAC,QAAQ;IACK,cAAc,EAApC,KAAK,KAAQ;CACrB,GAAU,OAAO,CAkCnB;AAWM,iFALJ;IAAwD,KAAK,EAArD,OAAO,mBAAmB,EAAE,WAAW;IACnB,GAAG,EAAvB,MAAM,GAAC,IAAI;IACS,eAAe,EAAnC,MAAM,GAAC,IAAI;CACnB,GAAU,KAAK,KAAQ,CAOzB"}
|
|
@@ -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, enrichTrackedChanges_fn, runCommandWithArgumentOnly_fn;
|
|
12
|
-
import { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, aE as getActiveFormatting, av as isInTable, aF as readFromClipboard, aG as handleClipboardPaste, aH as getFileObject, aI as runPropertyTranslators, aJ as translator, aK as translator$1, aL as translator$2, aM as translator$3, aN as translator$4, aO as translator$5, aP as translator$6, aQ as translator$7, aR as translator$8, aS as translator$9, aT as translator$a, aU as translator$b, aV as translator$c, aW as translator$d, aX as translator$e, aY as commentRangeEndTranslator, aZ as commentRangeStartTranslator, a_ as translator$f, a$ as translator$g, b0 as translator$h, b1 as translator$i, b2 as translator$j, b3 as translator$k, b4 as translator$l, b5 as translator$m, b6 as translator$n, b7 as translator$o, b8 as translator$p, b9 as translator$q, ba as translator$r, bb as translator$s, bc as translator$t, bd as translator$u, be as translator$v, bf as translator$w, bg as translator$x, bh as translator$y, bi as translator$z, bj as translator$A, bk as translator$B, bl as translator$C, bm as translator$D, bn as translator$E, bo as translator$F, bp as translator$G, bq as translator$H, br as translator$I, bs as translator$J, bt as translator$K, bu as translator$L, bv as translator$M, bw as translator$N, bx as translator$O, by as translator$P, bz as translator$Q, bA as translator$R, bB as translator$S, bC as translator$T, bD as translator$U, bE as translator$V, bF as translator$W, bG as translator$X, bH as translator$Y, bI as translator$Z, bJ as translator$_, bK as translator$$, bL as translator$10, bM as translator$11, bN as translator$12, bO as translator$13, bP as translator$14, bQ as translator$15, bR as translator$16, bS as translator$17, bT as translator$18, bU as translator$19, bV as translator$1a, bW as translator$1b, bX as translator$1c, bY as translator$1d, bZ as translator$1e, b_ as translator$1f, b$ as translator$1g, c0 as translator$1h, P as PluginKey, a as Plugin } from "./chunks/converter-
|
|
13
|
-
import { a5, i, a2 } from "./chunks/converter-
|
|
14
|
-
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as collectTargetListItemPositions, d as getFileOpener, e as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, f as uploadAndInsertImage, h as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, j as undoDepth, k as redoDepth, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, m as isHeadless, E as Editor, n as getStarterExtensions, P as Placeholder, o as getRichTextExtensions, D as DecorationSet, p as Decoration, M as Mark, q as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
15
|
-
import { w, C, x, T, t, z, v } from "./chunks/editor-
|
|
12
|
+
import { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, aE as getActiveFormatting, av as isInTable, aF as readFromClipboard, aG as handleClipboardPaste, aH as getFileObject, aI as runPropertyTranslators, aJ as translator, aK as translator$1, aL as translator$2, aM as translator$3, aN as translator$4, aO as translator$5, aP as translator$6, aQ as translator$7, aR as translator$8, aS as translator$9, aT as translator$a, aU as translator$b, aV as translator$c, aW as translator$d, aX as translator$e, aY as commentRangeEndTranslator, aZ as commentRangeStartTranslator, a_ as translator$f, a$ as translator$g, b0 as translator$h, b1 as translator$i, b2 as translator$j, b3 as translator$k, b4 as translator$l, b5 as translator$m, b6 as translator$n, b7 as translator$o, b8 as translator$p, b9 as translator$q, ba as translator$r, bb as translator$s, bc as translator$t, bd as translator$u, be as translator$v, bf as translator$w, bg as translator$x, bh as translator$y, bi as translator$z, bj as translator$A, bk as translator$B, bl as translator$C, bm as translator$D, bn as translator$E, bo as translator$F, bp as translator$G, bq as translator$H, br as translator$I, bs as translator$J, bt as translator$K, bu as translator$L, bv as translator$M, bw as translator$N, bx as translator$O, by as translator$P, bz as translator$Q, bA as translator$R, bB as translator$S, bC as translator$T, bD as translator$U, bE as translator$V, bF as translator$W, bG as translator$X, bH as translator$Y, bI as translator$Z, bJ as translator$_, bK as translator$$, bL as translator$10, bM as translator$11, bN as translator$12, bO as translator$13, bP as translator$14, bQ as translator$15, bR as translator$16, bS as translator$17, bT as translator$18, bU as translator$19, bV as translator$1a, bW as translator$1b, bX as translator$1c, bY as translator$1d, bZ as translator$1e, b_ as translator$1f, b$ as translator$1g, c0 as translator$1h, P as PluginKey, a as Plugin } from "./chunks/converter-CNQW31Bb.js";
|
|
13
|
+
import { a5, i, a2 } from "./chunks/converter-CNQW31Bb.js";
|
|
14
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as collectTargetListItemPositions, d as getFileOpener, e as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, f as uploadAndInsertImage, h as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, j as undoDepth, k as redoDepth, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, m as isHeadless, E as Editor, n as getStarterExtensions, P as Placeholder, o as getRichTextExtensions, D as DecorationSet, p as Decoration, M as Mark, q as Extension, A as Attribute, N as Node } from "./chunks/editor-tmuPz5Wb.js";
|
|
15
|
+
import { w, C, x, T, t, z, v } from "./chunks/editor-tmuPz5Wb.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, shallowRef, createBlock, 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-BVEErXhc.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-WzK7I7n3.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
var hasRequiredEventemitter3;
|
|
@@ -4837,11 +4837,29 @@ const _sfc_main$1 = {
|
|
|
4837
4837
|
delete props.options.content;
|
|
4838
4838
|
const ydoc = props.options.ydoc;
|
|
4839
4839
|
const provider = props.options.collaborationProvider;
|
|
4840
|
-
const
|
|
4841
|
-
|
|
4842
|
-
|
|
4840
|
+
const waitForSync = () => {
|
|
4841
|
+
if (provider.isSynced || provider.synced) return Promise.resolve();
|
|
4842
|
+
return new Promise((resolve) => {
|
|
4843
|
+
const onSync = (synced) => {
|
|
4844
|
+
if (synced === false) return;
|
|
4845
|
+
provider.off("synced", onSync);
|
|
4846
|
+
provider.off("sync", onSync);
|
|
4847
|
+
resolve();
|
|
4848
|
+
};
|
|
4849
|
+
provider.on("synced", onSync);
|
|
4850
|
+
provider.on("sync", onSync);
|
|
4851
|
+
});
|
|
4843
4852
|
};
|
|
4844
|
-
|
|
4853
|
+
waitForSync().then(async () => {
|
|
4854
|
+
const metaMap = ydoc.getMap("meta");
|
|
4855
|
+
if (metaMap.has("docx")) {
|
|
4856
|
+
pollForMetaMapData(ydoc);
|
|
4857
|
+
} else {
|
|
4858
|
+
props.options.isNewFile = true;
|
|
4859
|
+
const fileData = await loadNewFileData();
|
|
4860
|
+
if (fileData) initEditor(fileData);
|
|
4861
|
+
}
|
|
4862
|
+
});
|
|
4845
4863
|
}
|
|
4846
4864
|
};
|
|
4847
4865
|
const getExtensions = () => {
|
|
@@ -5025,7 +5043,7 @@ const _sfc_main$1 = {
|
|
|
5025
5043
|
};
|
|
5026
5044
|
}
|
|
5027
5045
|
};
|
|
5028
|
-
const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
5046
|
+
const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-86fdd359"]]);
|
|
5029
5047
|
const _hoisted_1 = ["innerHTML"];
|
|
5030
5048
|
const _sfc_main = {
|
|
5031
5049
|
__name: "SuperInput",
|
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-CyHF2Y6u.cjs");
|
|
4
4
|
require("./chunks/vue-Cwv-wUpm.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-DgptwjrT.es.js";
|
|
2
2
|
import "./chunks/vue-CKmzTNVs.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|