@superdoc-dev/cli 0.11.0-next.3 → 0.11.0-next.5

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -8
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -209584,7 +209584,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
209584
209584
  init_remark_gfm_BhnWr3yf_es();
209585
209585
  });
209586
209586
 
209587
- // ../../packages/superdoc/dist/chunks/src-DpTIyIYi.es.js
209587
+ // ../../packages/superdoc/dist/chunks/src-89KDSWz7.es.js
209588
209588
  function deleteProps(obj, propOrProps) {
209589
209589
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
209590
209590
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -219896,6 +219896,8 @@ function shouldProcessEqualAsModification$1(oldParagraph, newParagraph) {
219896
219896
  return JSON.stringify(oldNormalized) !== JSON.stringify(newNormalized);
219897
219897
  }
219898
219898
  function paragraphComparator(oldParagraph, newParagraph) {
219899
+ if (oldParagraph?.depth !== newParagraph?.depth)
219900
+ return false;
219899
219901
  const oldId = oldParagraph?.node?.attrs?.paraId;
219900
219902
  const newId = newParagraph?.node?.attrs?.paraId;
219901
219903
  if (oldId && newId && oldId === newId)
@@ -219938,6 +219940,8 @@ function buildModifiedParagraphDiff(oldParagraph, newParagraph) {
219938
219940
  };
219939
219941
  }
219940
219942
  function canTreatAsModification(oldParagraph, newParagraph) {
219943
+ if (oldParagraph?.depth !== newParagraph?.depth)
219944
+ return false;
219941
219945
  if (paragraphComparator(oldParagraph, newParagraph))
219942
219946
  return true;
219943
219947
  const oldText = oldParagraph.fullText;
@@ -267059,12 +267063,8 @@ function tableNodeToBlock(node3, { nextBlockId, positions, storyKey, trackedChan
267059
267063
  const tableProperties = node3.attrs?.tableProperties;
267060
267064
  if (tableProperties && typeof tableProperties === "object")
267061
267065
  tableAttrs.tableProperties = tableProperties;
267062
- const styleResolvedTableProps = effectiveStyleId && converterContext?.translatedLinkedStyles ? resolveTableProperties(effectiveStyleId, converterContext.translatedLinkedStyles) : undefined;
267063
267066
  const inlineProps = rawTableProperties;
267064
- const styleProps = styleResolvedTableProps;
267065
- const inlineVisual = inlineProps?.rightToLeft ?? inlineProps?.bidiVisual;
267066
- const styleVisual = styleProps?.rightToLeft ?? styleProps?.bidiVisual;
267067
- tableAttrs.tableDirectionContext = resolveTableDirection({ rightToLeft: inlineVisual ?? styleVisual }, converterContext?.sectionDirectionContext ?? resolveSectionDirection(undefined));
267067
+ tableAttrs.tableDirectionContext = resolveTableDirection({ rightToLeft: inlineProps?.rightToLeft ?? inlineProps?.bidiVisual }, converterContext?.sectionDirectionContext ?? resolveSectionDirection(undefined));
267068
267068
  let columnWidths = undefined;
267069
267069
  const twipsToPixels$2 = (twips) => {
267070
267070
  return twips / 1440 * 96;
@@ -304353,7 +304353,7 @@ menclose::after {
304353
304353
  return;
304354
304354
  console.log(...args$1);
304355
304355
  }, HEADER_FOOTER_INIT_BUDGET_MS = 200, MAX_ZOOM_WARNING_THRESHOLD = 10, MAX_SELECTION_RECTS_PER_USER = 100, SEMANTIC_RESIZE_DEBOUNCE_MS = 120, MIN_SEMANTIC_CONTENT_WIDTH_PX = 1, GLOBAL_PERFORMANCE, PresentationEditor, ICONS, TEXTS, tableActionsOptions;
304356
- var init_src_DpTIyIYi_es = __esm(() => {
304356
+ var init_src_89KDSWz7_es = __esm(() => {
304357
304357
  init_rolldown_runtime_Bg48TavK_es();
304358
304358
  init_SuperConverter_CnwfJPj6_es();
304359
304359
  init_jszip_C49i9kUs_es();
@@ -342572,7 +342572,7 @@ var init_zipper_BxRAi0_5_es = __esm(() => {
342572
342572
 
342573
342573
  // ../../packages/superdoc/dist/super-editor.es.js
342574
342574
  var init_super_editor_es = __esm(() => {
342575
- init_src_DpTIyIYi_es();
342575
+ init_src_89KDSWz7_es();
342576
342576
  init_SuperConverter_CnwfJPj6_es();
342577
342577
  init_jszip_C49i9kUs_es();
342578
342578
  init_xml_js_CqGKpaft_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.11.0-next.3",
3
+ "version": "0.11.0-next.5",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -24,21 +24,21 @@
24
24
  "@types/node": "22.19.2",
25
25
  "@types/ws": "^8.5.13",
26
26
  "typescript": "^5.9.2",
27
- "@superdoc/document-api": "0.0.1",
28
27
  "@superdoc/pm-adapter": "0.0.0",
29
28
  "@superdoc/super-editor": "0.0.1",
30
- "superdoc": "1.33.1"
29
+ "superdoc": "1.33.1",
30
+ "@superdoc/document-api": "0.0.1"
31
31
  },
32
32
  "module": "src/index.ts",
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@superdoc-dev/cli-darwin-arm64": "0.11.0-next.3",
38
- "@superdoc-dev/cli-darwin-x64": "0.11.0-next.3",
39
- "@superdoc-dev/cli-linux-x64": "0.11.0-next.3",
40
- "@superdoc-dev/cli-windows-x64": "0.11.0-next.3",
41
- "@superdoc-dev/cli-linux-arm64": "0.11.0-next.3"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.11.0-next.5",
38
+ "@superdoc-dev/cli-darwin-x64": "0.11.0-next.5",
39
+ "@superdoc-dev/cli-linux-x64": "0.11.0-next.5",
40
+ "@superdoc-dev/cli-windows-x64": "0.11.0-next.5",
41
+ "@superdoc-dev/cli-linux-arm64": "0.11.0-next.5"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",