superdoc 1.16.0-next.8 → 1.16.1-next.1

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.
@@ -33833,7 +33833,7 @@ var SuperConverter = class SuperConverter {
33833
33833
  static getStoredSuperdocVersion(docx) {
33834
33834
  return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
33835
33835
  }
33836
- static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.16.0-next.8") {
33836
+ static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.16.1-next.1") {
33837
33837
  return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
33838
33838
  }
33839
33839
  static generateWordTimestamp() {
@@ -33819,7 +33819,7 @@ var SuperConverter = class SuperConverter {
33819
33819
  static getStoredSuperdocVersion(docx) {
33820
33820
  return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
33821
33821
  }
33822
- static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.16.0-next.8") {
33822
+ static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.16.1-next.1") {
33823
33823
  return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
33824
33824
  }
33825
33825
  static generateWordTimestamp() {
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-Dp2H1eGw.cjs");
2
- const require_SuperConverter = require("./SuperConverter-BvmZtfvw.cjs");
2
+ const require_SuperConverter = require("./SuperConverter-CMnE_n80.cjs");
3
3
  const require_jszip = require("./jszip-DCT9QYaK.cjs");
4
4
  const require_uuid = require("./uuid-CHj_rjgt.cjs");
5
5
  const require_constants = require("./constants-CpniKo9Z.cjs");
@@ -261,7 +261,7 @@ var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
261
261
  const COMMUNITY_LICENSE_KEY = "community-and-eval-agplv3";
262
262
  function getSuperdocVersion() {
263
263
  try {
264
- return "1.16.0-next.8";
264
+ return "1.16.1-next.1";
265
265
  } catch {
266
266
  return "unknown";
267
267
  }
@@ -4302,12 +4302,7 @@ var DOMObserver = class {
4302
4302
  if (result.typeOver) typeOver = true;
4303
4303
  }
4304
4304
  }
4305
- if (added.some((n) => n.nodeName == "BR") && (view.input.lastKeyCode == 8 || view.input.lastKeyCode == 46)) {
4306
- for (let node of added) if (node.nodeName == "BR" && node.parentNode) {
4307
- let after = node.nextSibling;
4308
- if (after && after.nodeType == 1 && after.contentEditable == "false") node.parentNode.removeChild(node);
4309
- }
4310
- } else if (gecko && added.length) {
4305
+ if (gecko && added.length) {
4311
4306
  let brs = added.filter((n) => n.nodeName == "BR");
4312
4307
  if (brs.length == 2) {
4313
4308
  let [a, b$1] = brs;
@@ -4320,6 +4315,11 @@ var DOMObserver = class {
4320
4315
  if (parent && parent.nodeName == "LI" && (!focusNode || blockParent(view, focusNode) != parent)) br.remove();
4321
4316
  }
4322
4317
  }
4318
+ } else if ((chrome || safari) && added.some((n) => n.nodeName == "BR") && (view.input.lastKeyCode == 8 || view.input.lastKeyCode == 46)) {
4319
+ for (let node of added) if (node.nodeName == "BR" && node.parentNode) {
4320
+ let after = node.nextSibling;
4321
+ if (after && after.nodeType == 1 && after.contentEditable == "false") node.parentNode.removeChild(node);
4322
+ }
4323
4323
  }
4324
4324
  let readSel = null;
4325
4325
  if (from$1 < 0 && newSel && view.input.lastFocus > Date.now() - 200 && Math.max(view.input.lastTouch, view.input.lastClick.time) < Date.now() - 300 && selectionCollapsed(sel) && (readSel = selectionFromDOM(view)) && readSel.eq(require_SuperConverter.Selection.near(view.state.doc.resolve(0), 1))) {
@@ -20734,7 +20734,7 @@ const canUseDOM = () => {
20734
20734
  return false;
20735
20735
  }
20736
20736
  };
20737
- var summaryVersion = "1.16.0-next.8";
20737
+ var summaryVersion = "1.16.1-next.1";
20738
20738
  var nodeKeys = [
20739
20739
  "group",
20740
20740
  "content",
@@ -28180,7 +28180,7 @@ var Editor = class Editor extends EventEmitter$1 {
28180
28180
  return migrations.length > 0;
28181
28181
  }
28182
28182
  processCollaborationMigrations() {
28183
- console.debug("[checkVersionMigrations] Current editor version", "1.16.0-next.8");
28183
+ console.debug("[checkVersionMigrations] Current editor version", "1.16.1-next.1");
28184
28184
  if (!this.options.ydoc) return;
28185
28185
  let docVersion = this.options.ydoc.getMap("meta").get("version");
28186
28186
  if (!docVersion) docVersion = "initial";
@@ -34198,7 +34198,7 @@ var LINK_AND_TOC_STYLES = `
34198
34198
  }
34199
34199
 
34200
34200
  /* Screen reader only content (WCAG SC 1.3.1) */
34201
- .sr-only {
34201
+ .superdoc-sr-only {
34202
34202
  position: absolute;
34203
34203
  width: 1px;
34204
34204
  height: 1px;
@@ -42431,7 +42431,7 @@ var DomPainter = class DomPainter {
42431
42431
  const descId = `link-desc-${linkId}`;
42432
42432
  const descElem = this.doc.createElement("span");
42433
42433
  descElem.id = descId;
42434
- descElem.className = "sr-only";
42434
+ descElem.className = "superdoc-sr-only";
42435
42435
  descElem.textContent = tooltip;
42436
42436
  if (elem.parentElement) {
42437
42437
  elem.parentElement.appendChild(descElem);
@@ -1,5 +1,5 @@
1
1
  import { a as __toCommonJS, n as __esmMin, r as __export, t as __commonJSMin } from "./rolldown-runtime-B2q5OVn9.es.js";
2
- import { $ as TextSelection$1, A as findMark, At as Mark$1, B as defaultBlockAt$1, C as docxNumberingHelpers, Ct as TrackDeleteMarkName, D as posToDOMRect, Dt as DOMParser$1, E as isInTable, Et as carbonCopy, F as isMarkActive, Ft as getExtensionConfigField, G as createDocument, H as getNodeType, I as getMarkRange, J as NodeSelection, K as AllSelection, L as isTextSelection, M as isActive, Mt as Slice, N as isNodeActive, Nt as minMax, O as findChildren$1, Ot as DOMSerializer, P as getSchemaTypeNameByName, Pt as callOrGet, Q as SelectionRange, R as findParentNode, S as getResolvedParagraphProperties, St as getUnderlineCssString, T as CommandService, Tt as TrackInsertMarkName, U as cleanSchemaItem, V as getMarkType, W as getSchemaTypeByName, X as PluginKey, Y as Plugin, Z as Selection, _ as ListHelpers, _t as encodeMarksFromRPr, a as _getReferencedTableStyles, at as Transform, b as isList, bt as resolveRunProperties, c as processContent, ct as dropPoint, d as createCellBorders, dt as replaceStep$1, et as AddMarkStep, f as InputRule, ft as generateDocxRandomId, g as unflattenListsInHtml, gt as encodeCSSFromRPr, h as inputRulesPlugin, ht as encodeCSSFromPPr, it as ReplaceStep, j as getMarksFromSelection, jt as Schema$1, k as getActiveFormatting, kt as Fragment$1, l as createDocFromMarkdown, lt as joinPoint, m as htmlHandler, mt as decodeRPrFromMarks, n as kebabCase$1, nt as RemoveMarkStep, o as helpers_exports, ot as canJoin, p as handleClipboardPaste, pt as generateRandomSigned32BitIntStrId, q as EditorState, r as insertNewRelationship, rt as ReplaceAroundStep$1, s as updateDOMAttributes, st as canSplit, t as SuperConverter, tt as Mapping, u as createDocFromHTML, ut as liftTarget, v as changeListLevel, vt as resolveDocxFontFamily, w as generateOrderedListIndex, wt as TrackFormatMarkName, x as calculateResolvedParagraphProperties, xt as resolveTableCellProperties, y as updateNumberingProperties, yt as resolveParagraphProperties, z as findParentNodeClosestToPos } from "./SuperConverter-CiVOwDWk.es.js";
2
+ import { $ as TextSelection$1, A as findMark, At as Mark$1, B as defaultBlockAt$1, C as docxNumberingHelpers, Ct as TrackDeleteMarkName, D as posToDOMRect, Dt as DOMParser$1, E as isInTable, Et as carbonCopy, F as isMarkActive, Ft as getExtensionConfigField, G as createDocument, H as getNodeType, I as getMarkRange, J as NodeSelection, K as AllSelection, L as isTextSelection, M as isActive, Mt as Slice, N as isNodeActive, Nt as minMax, O as findChildren$1, Ot as DOMSerializer, P as getSchemaTypeNameByName, Pt as callOrGet, Q as SelectionRange, R as findParentNode, S as getResolvedParagraphProperties, St as getUnderlineCssString, T as CommandService, Tt as TrackInsertMarkName, U as cleanSchemaItem, V as getMarkType, W as getSchemaTypeByName, X as PluginKey, Y as Plugin, Z as Selection, _ as ListHelpers, _t as encodeMarksFromRPr, a as _getReferencedTableStyles, at as Transform, b as isList, bt as resolveRunProperties, c as processContent, ct as dropPoint, d as createCellBorders, dt as replaceStep$1, et as AddMarkStep, f as InputRule, ft as generateDocxRandomId, g as unflattenListsInHtml, gt as encodeCSSFromRPr, h as inputRulesPlugin, ht as encodeCSSFromPPr, it as ReplaceStep, j as getMarksFromSelection, jt as Schema$1, k as getActiveFormatting, kt as Fragment$1, l as createDocFromMarkdown, lt as joinPoint, m as htmlHandler, mt as decodeRPrFromMarks, n as kebabCase$1, nt as RemoveMarkStep, o as helpers_exports, ot as canJoin, p as handleClipboardPaste, pt as generateRandomSigned32BitIntStrId, q as EditorState, r as insertNewRelationship, rt as ReplaceAroundStep$1, s as updateDOMAttributes, st as canSplit, t as SuperConverter, tt as Mapping, u as createDocFromHTML, ut as liftTarget, v as changeListLevel, vt as resolveDocxFontFamily, w as generateOrderedListIndex, wt as TrackFormatMarkName, x as calculateResolvedParagraphProperties, xt as resolveTableCellProperties, y as updateNumberingProperties, yt as resolveParagraphProperties, z as findParentNodeClosestToPos } from "./SuperConverter-DUvUEmWN.es.js";
3
3
  import { a as init_dist$2, i as global, n as init_dist, o as Buffer$3, r as process$1, s as init_dist$1 } from "./jszip-ChlR43oI.es.js";
4
4
  import { t as v4_default } from "./uuid-2IzDu5nl.es.js";
5
5
  import { A as resolveOpcTargetPath, E as pixelsToTwips, F as twipsToLines, I as twipsToPixels, P as twipsToInches, _ as halfPointToPoints, c as convertSizeToCSS, k as ptToTwips, p as getArrayBufferFromUrl, t as COMMENT_FILE_BASENAMES, v as inchesToPixels, x as linesToTwips, y as inchesToTwips } from "./constants-DBKi0Amm.es.js";
@@ -260,7 +260,7 @@ var v_click_outside_default = {
260
260
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
261
261
  function getSuperdocVersion() {
262
262
  try {
263
- return "1.16.0-next.8";
263
+ return "1.16.1-next.1";
264
264
  } catch {
265
265
  return "unknown";
266
266
  }
@@ -4301,12 +4301,7 @@ var DOMObserver = class {
4301
4301
  if (result.typeOver) typeOver = true;
4302
4302
  }
4303
4303
  }
4304
- if (added.some((n) => n.nodeName == "BR") && (view.input.lastKeyCode == 8 || view.input.lastKeyCode == 46)) {
4305
- for (let node of added) if (node.nodeName == "BR" && node.parentNode) {
4306
- let after = node.nextSibling;
4307
- if (after && after.nodeType == 1 && after.contentEditable == "false") node.parentNode.removeChild(node);
4308
- }
4309
- } else if (gecko && added.length) {
4304
+ if (gecko && added.length) {
4310
4305
  let brs = added.filter((n) => n.nodeName == "BR");
4311
4306
  if (brs.length == 2) {
4312
4307
  let [a, b$1] = brs;
@@ -4319,6 +4314,11 @@ var DOMObserver = class {
4319
4314
  if (parent && parent.nodeName == "LI" && (!focusNode || blockParent(view, focusNode) != parent)) br.remove();
4320
4315
  }
4321
4316
  }
4317
+ } else if ((chrome || safari) && added.some((n) => n.nodeName == "BR") && (view.input.lastKeyCode == 8 || view.input.lastKeyCode == 46)) {
4318
+ for (let node of added) if (node.nodeName == "BR" && node.parentNode) {
4319
+ let after = node.nextSibling;
4320
+ if (after && after.nodeType == 1 && after.contentEditable == "false") node.parentNode.removeChild(node);
4321
+ }
4322
4322
  }
4323
4323
  let readSel = null;
4324
4324
  if (from$1 < 0 && newSel && view.input.lastFocus > Date.now() - 200 && Math.max(view.input.lastTouch, view.input.lastClick.time) < Date.now() - 300 && selectionCollapsed(sel) && (readSel = selectionFromDOM(view)) && readSel.eq(Selection.near(view.state.doc.resolve(0), 1))) {
@@ -20715,7 +20715,7 @@ const canUseDOM = () => {
20715
20715
  return false;
20716
20716
  }
20717
20717
  };
20718
- var summaryVersion = "1.16.0-next.8";
20718
+ var summaryVersion = "1.16.1-next.1";
20719
20719
  var nodeKeys = [
20720
20720
  "group",
20721
20721
  "content",
@@ -27915,7 +27915,7 @@ var Editor = class Editor extends EventEmitter$1 {
27915
27915
  return migrations.length > 0;
27916
27916
  }
27917
27917
  processCollaborationMigrations() {
27918
- console.debug("[checkVersionMigrations] Current editor version", "1.16.0-next.8");
27918
+ console.debug("[checkVersionMigrations] Current editor version", "1.16.1-next.1");
27919
27919
  if (!this.options.ydoc) return;
27920
27920
  let docVersion = this.options.ydoc.getMap("meta").get("version");
27921
27921
  if (!docVersion) docVersion = "initial";
@@ -33933,7 +33933,7 @@ var LINK_AND_TOC_STYLES = `
33933
33933
  }
33934
33934
 
33935
33935
  /* Screen reader only content (WCAG SC 1.3.1) */
33936
- .sr-only {
33936
+ .superdoc-sr-only {
33937
33937
  position: absolute;
33938
33938
  width: 1px;
33939
33939
  height: 1px;
@@ -42155,7 +42155,7 @@ var DomPainter = class DomPainter {
42155
42155
  const descId = `link-desc-${linkId}`;
42156
42156
  const descElem = this.doc.createElement("span");
42157
42157
  descElem.id = descId;
42158
- descElem.className = "sr-only";
42158
+ descElem.className = "superdoc-sr-only";
42159
42159
  descElem.textContent = tooltip;
42160
42160
  if (elem.parentElement) {
42161
42161
  elem.parentElement.appendChild(descElem);