@superdoc-dev/cli 0.5.0-next.16 → 0.5.0-next.18

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 +22 -12
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -63334,7 +63334,7 @@ var init_remark_gfm_z_sDF4ss_es = __esm(() => {
63334
63334
  emptyOptions2 = {};
63335
63335
  });
63336
63336
 
63337
- // ../../packages/superdoc/dist/chunks/SuperConverter-CMIR0kxi.es.js
63337
+ // ../../packages/superdoc/dist/chunks/SuperConverter-C5AwlcXn.es.js
63338
63338
  function getExtensionConfigField(extension$1, field, context = { name: "" }) {
63339
63339
  const fieldValue = extension$1.config[field];
63340
63340
  if (typeof fieldValue === "function")
@@ -100998,13 +100998,15 @@ var isRegExp = (value) => {
100998
100998
  const docPartGalleryType = params3.extraParams.docPartGalleryType;
100999
100999
  const id2 = sdtPr?.elements?.find((el) => el.name === "w:id")?.attributes["w:val"] || "";
101000
101000
  const docPartObj = sdtPr?.elements.find((el) => el.name === "w:docPartObj");
101001
+ const docPartGallery = docPartGalleryType ?? docPartObj?.elements?.find((el) => el.name === "w:docPartGallery")?.attributes?.["w:val"] ?? null;
101002
+ const docPartUnique = docPartObj?.elements.some((el) => el.name === "w:docPartUnique") ?? false;
101001
101003
  return {
101002
101004
  type: "documentPartObject",
101003
- content: translatedContent,
101005
+ content: normalizeDocPartContent(translatedContent),
101004
101006
  attrs: {
101005
101007
  id: id2,
101006
- docPartGallery: docPartGalleryType ?? docPartObj?.elements?.find((el) => el.name === "w:docPartGallery")?.attributes?.["w:val"] ?? null,
101007
- docPartUnique: docPartObj?.elements.some((el) => el.name === "w:docPartUnique") ?? false,
101008
+ docPartGallery,
101009
+ docPartUnique,
101008
101010
  sdtPr
101009
101011
  }
101010
101012
  };
@@ -113373,9 +113375,10 @@ var isRegExp = (value) => {
113373
113375
  const exportStrategy = typeof threadingProfile === "string" ? threadingProfile : "word";
113374
113376
  const profile = typeof threadingProfile === "string" ? null : threadingProfile;
113375
113377
  const hasThreadedComments = comments.some((comment) => comment.threadingParentCommentId || comment.parentCommentId);
113378
+ const hasResolvedComments = comments.some((comment) => comment.resolvedTime || comment.isDone);
113376
113379
  const shouldGenerateCommentsExtended = profile ? profile.defaultStyle === "commentsExtended" || profile.mixed || comments.some((comment) => resolveThreadingStyle(comment, profile) === "commentsExtended") : exportStrategy !== "google-docs";
113377
113380
  const shouldIncludeForThreads = hasThreadedComments;
113378
- if (!shouldGenerateCommentsExtended && !shouldIncludeForThreads)
113381
+ if (!shouldGenerateCommentsExtended && !shouldIncludeForThreads && !hasResolvedComments)
113379
113382
  return null;
113380
113383
  const xmlCopy = carbonCopy(commentsExtendedXml);
113381
113384
  const commentsEx = comments.map((comment) => {
@@ -113984,7 +113987,7 @@ var isRegExp = (value) => {
113984
113987
  state.kern = kernNode.attributes["w:val"];
113985
113988
  }
113986
113989
  }, SuperConverter;
113987
- var init_SuperConverter_CMIR0kxi_es = __esm(() => {
113990
+ var init_SuperConverter_C5AwlcXn_es = __esm(() => {
113988
113991
  init_rolldown_runtime_B2q5OVn9_es();
113989
113992
  init_jszip_ChlR43oI_es();
113990
113993
  init_xml_js_40FWvL78_es();
@@ -129565,7 +129568,14 @@ var init_SuperConverter_CMIR0kxi_es = __esm(() => {
129565
129568
  };
129566
129569
  translator$6 = NodeTranslator.from(config$30);
129567
129570
  validGalleryTypeMap = { "Table of Contents": tableOfContentsHandler };
129568
- inlineNodeTypes = new Set(["bookmarkStart", "bookmarkEnd"]);
129571
+ inlineNodeTypes = new Set([
129572
+ "bookmarkStart",
129573
+ "bookmarkEnd",
129574
+ "commentRangeStart",
129575
+ "commentRangeEnd",
129576
+ "permStart",
129577
+ "permEnd"
129578
+ ]);
129569
129579
  factor16 = Math.pow(2, 16);
129570
129580
  StepMap.empty = new StepMap([]);
129571
129581
  stepsByID = Object.create(null);
@@ -172493,7 +172503,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
172493
172503
  init_remark_gfm_z_sDF4ss_es();
172494
172504
  });
172495
172505
 
172496
- // ../../packages/superdoc/dist/chunks/src-CeG3wOI4.es.js
172506
+ // ../../packages/superdoc/dist/chunks/src-BsYkmXvk.es.js
172497
172507
  function deleteProps(obj, propOrProps) {
172498
172508
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
172499
172509
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -253902,9 +253912,9 @@ var Node$13 = class Node$14 {
253902
253912
  return;
253903
253913
  console.log(...args$1);
253904
253914
  }, 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;
253905
- var init_src_CeG3wOI4_es = __esm(() => {
253915
+ var init_src_BsYkmXvk_es = __esm(() => {
253906
253916
  init_rolldown_runtime_B2q5OVn9_es();
253907
- init_SuperConverter_CMIR0kxi_es();
253917
+ init_SuperConverter_C5AwlcXn_es();
253908
253918
  init_jszip_ChlR43oI_es();
253909
253919
  init_uuid_qzgm05fK_es();
253910
253920
  init_constants_Qqwopz80_es();
@@ -287854,8 +287864,8 @@ var init_zipper_YmNpPIyc_es = __esm(() => {
287854
287864
 
287855
287865
  // ../../packages/superdoc/dist/super-editor.es.js
287856
287866
  var init_super_editor_es = __esm(() => {
287857
- init_src_CeG3wOI4_es();
287858
- init_SuperConverter_CMIR0kxi_es();
287867
+ init_src_BsYkmXvk_es();
287868
+ init_SuperConverter_C5AwlcXn_es();
287859
287869
  init_jszip_ChlR43oI_es();
287860
287870
  init_xml_js_40FWvL78_es();
287861
287871
  init_constants_Qqwopz80_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.5.0-next.16",
3
+ "version": "0.5.0-next.18",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -25,8 +25,8 @@
25
25
  "@types/ws": "^8.5.13",
26
26
  "typescript": "^5.9.2",
27
27
  "@superdoc/document-api": "0.0.1",
28
- "superdoc": "1.23.0",
29
28
  "@superdoc/super-editor": "0.0.1",
29
+ "superdoc": "1.23.0",
30
30
  "@superdoc/pm-adapter": "0.0.0"
31
31
  },
32
32
  "module": "src/index.ts",
@@ -34,11 +34,11 @@
34
34
  "access": "public"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@superdoc-dev/cli-darwin-arm64": "0.5.0-next.16",
38
- "@superdoc-dev/cli-darwin-x64": "0.5.0-next.16",
39
- "@superdoc-dev/cli-linux-x64": "0.5.0-next.16",
40
- "@superdoc-dev/cli-linux-arm64": "0.5.0-next.16",
41
- "@superdoc-dev/cli-windows-x64": "0.5.0-next.16"
37
+ "@superdoc-dev/cli-darwin-arm64": "0.5.0-next.18",
38
+ "@superdoc-dev/cli-darwin-x64": "0.5.0-next.18",
39
+ "@superdoc-dev/cli-linux-x64": "0.5.0-next.18",
40
+ "@superdoc-dev/cli-linux-arm64": "0.5.0-next.18",
41
+ "@superdoc-dev/cli-windows-x64": "0.5.0-next.18"
42
42
  },
43
43
  "scripts": {
44
44
  "predev": "node scripts/ensure-superdoc-build.js",