@harbour-enterprises/superdoc 0.6.101 → 0.6.102

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.
@@ -20629,7 +20629,7 @@ const _SuperConverter = class _SuperConverter2 {
20629
20629
  return;
20630
20630
  }
20631
20631
  }
20632
- static updateDocumentVersion(docx = this.convertedXml, version = "0.6.101") {
20632
+ static updateDocumentVersion(docx = this.convertedXml, version = "0.6.102") {
20633
20633
  const customLocation = "docProps/custom.xml";
20634
20634
  if (!docx[customLocation]) {
20635
20635
  docx[customLocation] = generateCustomXml();
@@ -20902,7 +20902,7 @@ function storeSuperdocVersion(docx) {
20902
20902
  function generateCustomXml() {
20903
20903
  return DEFAULT_CUSTOM_XML;
20904
20904
  }
20905
- function generateSuperdocVersion(pid = 2, version = "0.6.101") {
20905
+ function generateSuperdocVersion(pid = 2, version = "0.6.102") {
20906
20906
  return {
20907
20907
  type: "element",
20908
20908
  name: "property",
@@ -35128,7 +35128,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
35128
35128
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
35129
35129
  */
35130
35130
  processCollaborationMigrations() {
35131
- console.debug("[checkVersionMigrations] Current editor version", "0.6.101");
35131
+ console.debug("[checkVersionMigrations] Current editor version", "0.6.102");
35132
35132
  if (!this.options.ydoc) return;
35133
35133
  const metaMap = this.options.ydoc.getMap("meta");
35134
35134
  let docVersion = metaMap.get("version");
@@ -35253,7 +35253,7 @@ checkHeadless_fn = function(options2) {
35253
35253
  insertNewFileData_fn = function() {
35254
35254
  if (!this.options.isNewFile) return;
35255
35255
  this.options.isNewFile = false;
35256
- const doc2 = __privateMethod$1(this, _Editor_instances, generatePmData_fn).call(this, true);
35256
+ const doc2 = __privateMethod$1(this, _Editor_instances, generatePmData_fn).call(this);
35257
35257
  const tr = this.state.tr.replaceWith(0, this.state.doc.content.size, doc2);
35258
35258
  this.view.dispatch(tr);
35259
35259
  setTimeout(() => {
@@ -35309,13 +35309,13 @@ initMedia_fn = function() {
35309
35309
  createSchema_fn = function() {
35310
35310
  this.schema = this.extensionService.schema;
35311
35311
  };
35312
- generatePmData_fn = function(includeComments) {
35312
+ generatePmData_fn = function() {
35313
35313
  let doc2;
35314
35314
  try {
35315
35315
  const { mode, fragment, isHeadless, content, loadFromSchema } = this.options;
35316
35316
  if (mode === "docx") {
35317
35317
  doc2 = createDocument(this.converter, this.schema, this);
35318
- if (includeComments) doc2 = __privateMethod$1(this, _Editor_instances, prepareDocumentForImport_fn).call(this, doc2);
35318
+ doc2 = __privateMethod$1(this, _Editor_instances, prepareDocumentForImport_fn).call(this, doc2);
35319
35319
  if (fragment && isHeadless) {
35320
35320
  doc2 = yXmlFragmentToProseMirrorRootNode(fragment, this.schema);
35321
35321
  }
@@ -58632,4 +58632,4 @@ export {
58632
58632
  helpers as k,
58633
58633
  index as l
58634
58634
  };
58635
- //# sourceMappingURL=super-editor.es-j2PukWRy.js.map
58635
+ //# sourceMappingURL=super-editor.es-DpMrL-bU.js.map