@superdoc-dev/cli 0.3.0-next.23 → 0.3.0-next.25

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 +96 -26
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -1884,8 +1884,8 @@ var init_operation_definitions = __esm(() => {
1884
1884
  },
1885
1885
  "styles.paragraph.setStyle": {
1886
1886
  memberPath: "styles.paragraph.setStyle",
1887
- description: "Set the paragraph style reference (w:pStyle) on a paragraph-like block.",
1888
- expectedResult: "Returns a ParagraphMutationResult; reports NO_OP if the style already matches.",
1887
+ description: "Apply a paragraph style (w:pStyle) to a paragraph-like block, clearing direct run formatting while preserving character-style references.",
1888
+ expectedResult: "Returns a ParagraphMutationResult; reports NO_OP if the style already matches. When the style changes, direct run formatting is cleared while character-style references are preserved.",
1889
1889
  requiresDocumentContext: true,
1890
1890
  metadata: mutationOperation({
1891
1891
  idempotency: "conditional",
@@ -39004,7 +39004,7 @@ var init_remark_gfm_z_sDF4ss_es = __esm(() => {
39004
39004
  emptyOptions2 = {};
39005
39005
  });
39006
39006
 
39007
- // ../../packages/superdoc/dist/chunks/SuperConverter-Dt28Xb1l.es.js
39007
+ // ../../packages/superdoc/dist/chunks/SuperConverter-BcBeadrv.es.js
39008
39008
  function getExtensionConfigField(extension$1, field, context = { name: "" }) {
39009
39009
  const fieldValue = extension$1.config[field];
39010
39010
  if (typeof fieldValue === "function")
@@ -81793,11 +81793,10 @@ var isRegExp = (value) => {
81793
81793
  converter.footerIds[sectionType] = rId;
81794
81794
  });
81795
81795
  }, findSectPr = (obj, result = []) => {
81796
- for (const key in obj)
81797
- if (obj[key] === "w:sectPr")
81798
- result.push(obj);
81799
- else if (typeof obj[key] === "object")
81800
- findSectPr(obj[key], result);
81796
+ if (obj && obj.name === "w:sectPr")
81797
+ result.push(obj);
81798
+ if (obj && obj.elements)
81799
+ obj.elements.forEach((el) => findSectPr(el, result));
81801
81800
  return result;
81802
81801
  }, getHeaderFooterSectionData = (sectionData, docx) => {
81803
81802
  const rId = sectionData.attributes.Id;
@@ -82489,7 +82488,7 @@ var isRegExp = (value) => {
82489
82488
  state.kern = kernNode.attributes["w:val"];
82490
82489
  }
82491
82490
  }, SuperConverter;
82492
- var init_SuperConverter_Dt28Xb1l_es = __esm(() => {
82491
+ var init_SuperConverter_BcBeadrv_es = __esm(() => {
82493
82492
  init_rolldown_runtime_B2q5OVn9_es();
82494
82493
  init_jszip_ChlR43oI_es();
82495
82494
  init_xml_js_BtmJ6bNs_es();
@@ -86203,8 +86202,8 @@ var init_SuperConverter_Dt28Xb1l_es = __esm(() => {
86203
86202
  },
86204
86203
  "styles.paragraph.setStyle": {
86205
86204
  memberPath: "styles.paragraph.setStyle",
86206
- description: "Set the paragraph style reference (w:pStyle) on a paragraph-like block.",
86207
- expectedResult: "Returns a ParagraphMutationResult; reports NO_OP if the style already matches.",
86205
+ description: "Apply a paragraph style (w:pStyle) to a paragraph-like block, clearing direct run formatting while preserving character-style references.",
86206
+ expectedResult: "Returns a ParagraphMutationResult; reports NO_OP if the style already matches. When the style changes, direct run formatting is cleared while character-style references are preserved.",
86208
86207
  requiresDocumentContext: true,
86209
86208
  metadata: mutationOperation2({
86210
86209
  idempotency: "conditional",
@@ -144353,7 +144352,7 @@ var init_remark_gfm_CjV8kaUy_es = __esm(() => {
144353
144352
  init_remark_gfm_z_sDF4ss_es();
144354
144353
  });
144355
144354
 
144356
- // ../../packages/superdoc/dist/chunks/src-EwkFfYFq.es.js
144355
+ // ../../packages/superdoc/dist/chunks/src-zd0A71x4.es.js
144357
144356
  function deleteProps(obj, propOrProps) {
144358
144357
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
144359
144358
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -159490,7 +159489,48 @@ function noOpResult(operation) {
159490
159489
  }
159491
159490
  };
159492
159491
  }
159493
- function mutateParagraphProperties(editor, candidate, operation, target, transform, options) {
159492
+ function getPreservedCharacterStyleAttrs(mark2) {
159493
+ const styleId = mark2.attrs?.[TEXT_STYLE_CHARACTER_STYLE_ATTR];
159494
+ if (typeof styleId !== "string" || styleId.length === 0)
159495
+ return null;
159496
+ return { [TEXT_STYLE_CHARACTER_STYLE_ATTR]: styleId };
159497
+ }
159498
+ function hasTextStyleDirectFormatting(mark2) {
159499
+ return Object.entries(mark2.attrs ?? {}).some(([key$1, value]) => key$1 !== TEXT_STYLE_CHARACTER_STYLE_ATTR && value != null);
159500
+ }
159501
+ function clearTextStyleDirectFormatting(tr, from$1, to, mark2) {
159502
+ const preservedCharacterStyle = getPreservedCharacterStyleAttrs(mark2);
159503
+ const hadDirectFormatting = hasTextStyleDirectFormatting(mark2);
159504
+ if (!hadDirectFormatting && preservedCharacterStyle)
159505
+ return false;
159506
+ tr.removeMark?.(from$1, to, mark2);
159507
+ if (hadDirectFormatting && preservedCharacterStyle && mark2.type?.create && tr.addMark)
159508
+ tr.addMark(from$1, to, mark2.type.create(preservedCharacterStyle));
159509
+ return true;
159510
+ }
159511
+ function clearDirectFormattingInBlock(tr, pos, nodeSize2) {
159512
+ if (!tr.doc?.nodesBetween || !tr.removeMark || nodeSize2 <= 2)
159513
+ return false;
159514
+ let changed = false;
159515
+ tr.doc.nodesBetween(pos + 1, pos + nodeSize2 - 1, (node3, nodePos) => {
159516
+ if (!node3.isText || !Array.isArray(node3.marks) || node3.marks.length === 0 || typeof node3.nodeSize !== "number")
159517
+ return true;
159518
+ node3.marks.forEach((mark2) => {
159519
+ const markName = mark2?.type?.name;
159520
+ if (!markName || !DIRECT_FORMATTING_MARK_NAMES.has(markName))
159521
+ return;
159522
+ if (markName === "textStyle") {
159523
+ changed = clearTextStyleDirectFormatting(tr, nodePos, nodePos + node3.nodeSize, mark2) || changed;
159524
+ return;
159525
+ }
159526
+ tr.removeMark(nodePos, nodePos + node3.nodeSize, mark2);
159527
+ changed = true;
159528
+ });
159529
+ return true;
159530
+ });
159531
+ return changed;
159532
+ }
159533
+ function mutateParagraphProperties(editor, candidate, operation, target, transform, options, extras) {
159494
159534
  if (options?.dryRun)
159495
159535
  return successResult(target);
159496
159536
  if (executeDomainCommand(editor, () => {
@@ -159502,6 +159542,8 @@ function mutateParagraphProperties(editor, candidate, operation, target, transfo
159502
159542
  if (JSON.stringify(existing) === JSON.stringify(updated))
159503
159543
  return false;
159504
159544
  const tr = editor.state.tr;
159545
+ if (extras?.clearDirectFormatting)
159546
+ clearDirectFormattingInBlock(tr, candidate.pos, node3.nodeSize);
159505
159547
  tr.setNodeMarkup(candidate.pos, undefined, {
159506
159548
  ...node3.attrs,
159507
159549
  paragraphProperties: updated
@@ -159547,7 +159589,7 @@ function paragraphsSetStyleWrapper(editor, input2, options) {
159547
159589
  return mutateParagraphProperties(editor, resolveParagraphBlock(editor, input2.target), "styles.paragraph.setStyle", input2.target, (pPr) => ({
159548
159590
  ...pPr,
159549
159591
  styleId: input2.styleId
159550
- }), options);
159592
+ }), options, { clearDirectFormatting: true });
159551
159593
  }
159552
159594
  function paragraphsClearStyleWrapper(editor, input2, options) {
159553
159595
  rejectTrackedMode("styles.paragraph.clearStyle", options);
@@ -162676,6 +162718,23 @@ function addColSpan2(attrs, pos, n = 1) {
162676
162718
  }
162677
162719
  return result;
162678
162720
  }
162721
+ function isHeaderColumn(tableNode, map$12, col) {
162722
+ for (let row2 = 0;row2 < map$12.height; row2++) {
162723
+ const cell2 = tableNode.nodeAt(map$12.map[col + row2 * map$12.width]);
162724
+ if (!cell2 || cell2.type.name !== "tableHeader")
162725
+ return false;
162726
+ }
162727
+ return true;
162728
+ }
162729
+ function resolveInsertedColumnCellType(tableNode, map$12, index2, col) {
162730
+ let refColumn = col > 0 ? -1 : 0;
162731
+ if (isHeaderColumn(tableNode, map$12, col + refColumn))
162732
+ refColumn = col === 0 || col === map$12.width ? null : 0;
162733
+ if (refColumn == null)
162734
+ return tableNode.type.schema.nodes.tableCell ?? null;
162735
+ const refPos = map$12.map[index2 + refColumn];
162736
+ return refPos != null ? tableNode.nodeAt(refPos)?.type ?? null : null;
162737
+ }
162679
162738
  function addColumnToTable(tr, tablePos, col) {
162680
162739
  const tableNode = tr.doc.nodeAt(tablePos);
162681
162740
  if (!tableNode || tableNode.type.name !== "table")
@@ -162685,18 +162744,19 @@ function addColumnToTable(tr, tablePos, col) {
162685
162744
  const mapStart = tr.mapping.maps.length;
162686
162745
  for (let row2 = 0;row2 < map$12.height; row2++) {
162687
162746
  const index2 = row2 * map$12.width + col;
162688
- const pos = map$12.map[index2];
162689
- const cell2 = tableNode.nodeAt(pos);
162690
- if (!cell2)
162691
- continue;
162692
- if (col > 0 && map$12.map[index2 - 1] === pos) {
162747
+ if (col > 0 && col < map$12.width && map$12.map[index2 - 1] === map$12.map[index2]) {
162748
+ const pos = map$12.map[index2];
162749
+ const cell2 = tableNode.nodeAt(pos);
162750
+ if (!cell2)
162751
+ continue;
162693
162752
  tr.setNodeMarkup(tr.mapping.slice(mapStart).map(tableStart + pos), null, addColSpan2(cell2.attrs, col - map$12.colCount(pos)));
162694
162753
  row2 += (cell2.attrs.rowspan || 1) - 1;
162695
162754
  } else {
162696
- const refType = col > 0 ? tableNode.nodeAt(map$12.map[index2 - 1])?.type ?? cell2.type : cell2.type;
162755
+ const refType = resolveInsertedColumnCellType(tableNode, map$12, index2, col);
162756
+ if (!refType)
162757
+ continue;
162697
162758
  const cellPos = map$12.positionAt(row2, col, tableNode);
162698
162759
  tr.insert(tr.mapping.slice(mapStart).map(tableStart + cellPos), refType.createAndFill());
162699
- row2 += (cell2.attrs?.rowspan || 1) - 1;
162700
162760
  }
162701
162761
  }
162702
162762
  }
@@ -205994,7 +206054,7 @@ var Node$13 = class Node$14 {
205994
206054
  return;
205995
206055
  const candidate = run2.pmEnd;
205996
206056
  return typeof candidate === "number" ? candidate : undefined;
205997
- }, engines_exports, DEFAULT_HEADER_FOOTER_MARGIN_PX = 0, LINK_MARK_NAME = "link", COMMENT_MARK_NAME, SUPPORTED_INLINE_TYPES, cacheByEditor, OBJECT_REPLACEMENT_CHAR = "", LINE_NUMBER_RESTART_VALUES, PAGE_NUMBER_FORMAT_VALUES, SECTION_ORIENTATION_VALUES, SECTION_VERTICAL_ALIGN_VALUES, readSectPrHeaderFooterRefs, PIXELS_PER_INCH$2 = 96, BULLET_FORMATS$1, LOCK_MODE_TO_SDT_LOCK, SDT_NODE_NAMES, SDT_BLOCK_NAME = "structuredContentBlock", VALID_CONTROL_TYPES, VALID_LOCK_MODES, VALID_APPEARANCES, SNIPPET_PADDING = 30, DUAL_KIND_TYPES, KNOWN_BLOCK_PM_NODE_TYPES, KNOWN_INLINE_PM_NODE_TYPES, MAX_PATTERN_LENGTH = 1024, TOGGLE_MARK_SPECS, CORE_MARK_NAMES, METADATA_MARK_NAMES, CSS_NAMED_COLORS, HEADING_STYLE_DEPTH, BULLET_FORMATS, MARK_PRIORITY, remarkProcessor, DEFAULT_UNFLATTEN_LISTS = true, DERIVED_ID_LENGTH = 24, groupedCache, FIELD_LIKE_SDT_TYPES, liveDocumentCountsCache, REQUIRED_COMMANDS, VALID_CAPABILITY_REASON_CODES, REQUIRED_HELPERS, SCHEMA_NODE_GATES, schemaGatedIds, SUPPORTED_NON_UNIFORM_STRATEGIES, SUPPORTED_SET_MARKS, REGEX_MAX_PATTERN_LENGTH = 1024, registry, VALID_CREATE_POSITIONS, REF_HANDLERS, STEP_INTERACTION_MATRIX, MATRIX_EXEMPT_OPS, DEFAULT_INLINE_POLICY, CORE_SET_MARK_KEYS, BOOLEAN_INLINE_MARK_KEYS, TEXT_STYLE_KEYS, PRESERVE_RUN_PROPERTIES_META_KEY = "sdPreserveRunPropertiesKeys", CONTENT_CAPABILITIES, INLINE_CAPABILITIES, SDT_LOCK_TO_LOCK_MODE, STUB_WHERE, EMPTY_RESOLUTION, CONTAINER_NODE_TYPES, VALID_EDGE_NODE_TYPES3, FALLBACK_STORE_KEY = "__documentApiComments", STYLES_PART = "word/styles.xml", PROPERTIES_KEY_BY_CHANNEL, XML_PATH_BY_CHANNEL2, UNDERLINE_API_TO_STORAGE, UNDERLINE_STORAGE_TO_API, HEX_SUBKEYS_BY_PROPERTY, PARAGRAPH_NODE_TYPES, ALIGNMENT_TO_JUSTIFICATION, SUPPORTED_DELETE_NODE_TYPES3, REJECTED_DELETE_NODE_TYPES3, TEXT_PREVIEW_MAX_LENGTH = 80, RANGE_DELETE_SAFE_NODE_TYPES, INDENT_PER_LEVEL_TWIPS = 720, HANGING_INDENT_TWIPS = 360, ORDERED_PRESET_CONFIG, BULLET_PRESET_CONFIG, PRESET_TEMPLATES, LevelFormattingHelpers, NUMBERING_PART = "word/numbering.xml", DEFAULT_PRESET_FOR_KIND, PREVIEW_TEXT_MAX_LENGTH = 2000, BLOCK_PREVIEW_MAX_LENGTH = 200, EDGE_NODE_TYPES, DOCX_HEX_ID_LENGTH = 8, SETTINGS_PART_PATH = "word/settings.xml", POINTS_TO_PIXELS, POINTS_TO_TWIPS = 20, PIXELS_TO_TWIPS, DEFAULT_TABLE_GRID_WIDTH_TWIPS = 1500, SETTINGS_PART = "word/settings.xml", TABLE_ADAPTER_DISPATCH, ROW_OPS, TABLE_SCOPED_OPS, registered = false, STYLES_PART_ID = "word/styles.xml", stylesPartDescriptor, settingsPartDescriptor, RELS_PART_ID2 = "word/_rels/document.xml.rels", RELS_XMLNS$1 = "http://schemas.openxmlformats.org/package/2006/relationships", HEADER_RELATIONSHIP_TYPE$2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE$2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", relsPartDescriptor, DOCUMENT_RELS_PATH$1 = "word/_rels/document.xml.rels", RELS_XMLNS2 = "http://schemas.openxmlformats.org/package/2006/relationships", HEADER_RELATIONSHIP_TYPE$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", WORDPROCESSINGML_XMLNS = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", OFFICE_DOCUMENT_RELS_XMLNS = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", RELATIONSHIP_ID_PATTERN, HEADER_FILE_PATTERN$1, FOOTER_FILE_PATTERN$1, HISTORY_UNSAFE_OPS, IGNORED_ATTRIBUTE_KEYS, TRACK_CHANGE_MARK_NAMES, TRACK_CHANGE_IGNORED_ATTRIBUTE_KEYS, VOLATILE_PARAGRAPH_ATTRS, VOLATILE_IMAGE_ORIGINAL_ATTR_KEYS, SIMILARITY_THRESHOLD = 0.65, MIN_LENGTH_FOR_SIMILARITY = 4, COMMENT_ATTRS_DIFF_IGNORED_KEYS, setNestedValue = (target, path2, value) => {
206057
+ }, engines_exports, DEFAULT_HEADER_FOOTER_MARGIN_PX = 0, LINK_MARK_NAME = "link", COMMENT_MARK_NAME, SUPPORTED_INLINE_TYPES, cacheByEditor, OBJECT_REPLACEMENT_CHAR = "", LINE_NUMBER_RESTART_VALUES, PAGE_NUMBER_FORMAT_VALUES, SECTION_ORIENTATION_VALUES, SECTION_VERTICAL_ALIGN_VALUES, readSectPrHeaderFooterRefs, PIXELS_PER_INCH$2 = 96, BULLET_FORMATS$1, LOCK_MODE_TO_SDT_LOCK, SDT_NODE_NAMES, SDT_BLOCK_NAME = "structuredContentBlock", VALID_CONTROL_TYPES, VALID_LOCK_MODES, VALID_APPEARANCES, SNIPPET_PADDING = 30, DUAL_KIND_TYPES, KNOWN_BLOCK_PM_NODE_TYPES, KNOWN_INLINE_PM_NODE_TYPES, MAX_PATTERN_LENGTH = 1024, TOGGLE_MARK_SPECS, CORE_MARK_NAMES, METADATA_MARK_NAMES, CSS_NAMED_COLORS, HEADING_STYLE_DEPTH, BULLET_FORMATS, MARK_PRIORITY, remarkProcessor, DEFAULT_UNFLATTEN_LISTS = true, DERIVED_ID_LENGTH = 24, groupedCache, FIELD_LIKE_SDT_TYPES, liveDocumentCountsCache, REQUIRED_COMMANDS, VALID_CAPABILITY_REASON_CODES, REQUIRED_HELPERS, SCHEMA_NODE_GATES, schemaGatedIds, SUPPORTED_NON_UNIFORM_STRATEGIES, SUPPORTED_SET_MARKS, REGEX_MAX_PATTERN_LENGTH = 1024, registry, VALID_CREATE_POSITIONS, REF_HANDLERS, STEP_INTERACTION_MATRIX, MATRIX_EXEMPT_OPS, DEFAULT_INLINE_POLICY, CORE_SET_MARK_KEYS, BOOLEAN_INLINE_MARK_KEYS, TEXT_STYLE_KEYS, PRESERVE_RUN_PROPERTIES_META_KEY = "sdPreserveRunPropertiesKeys", CONTENT_CAPABILITIES, INLINE_CAPABILITIES, SDT_LOCK_TO_LOCK_MODE, STUB_WHERE, EMPTY_RESOLUTION, CONTAINER_NODE_TYPES, VALID_EDGE_NODE_TYPES3, FALLBACK_STORE_KEY = "__documentApiComments", STYLES_PART = "word/styles.xml", PROPERTIES_KEY_BY_CHANNEL, XML_PATH_BY_CHANNEL2, UNDERLINE_API_TO_STORAGE, UNDERLINE_STORAGE_TO_API, HEX_SUBKEYS_BY_PROPERTY, PARAGRAPH_NODE_TYPES, TEXT_STYLE_CHARACTER_STYLE_ATTR = "styleId", DIRECT_FORMATTING_MARK_NAMES, ALIGNMENT_TO_JUSTIFICATION, SUPPORTED_DELETE_NODE_TYPES3, REJECTED_DELETE_NODE_TYPES3, TEXT_PREVIEW_MAX_LENGTH = 80, RANGE_DELETE_SAFE_NODE_TYPES, INDENT_PER_LEVEL_TWIPS = 720, HANGING_INDENT_TWIPS = 360, ORDERED_PRESET_CONFIG, BULLET_PRESET_CONFIG, PRESET_TEMPLATES, LevelFormattingHelpers, NUMBERING_PART = "word/numbering.xml", DEFAULT_PRESET_FOR_KIND, PREVIEW_TEXT_MAX_LENGTH = 2000, BLOCK_PREVIEW_MAX_LENGTH = 200, EDGE_NODE_TYPES, DOCX_HEX_ID_LENGTH = 8, SETTINGS_PART_PATH = "word/settings.xml", POINTS_TO_PIXELS, POINTS_TO_TWIPS = 20, PIXELS_TO_TWIPS, DEFAULT_TABLE_GRID_WIDTH_TWIPS = 1500, SETTINGS_PART = "word/settings.xml", TABLE_ADAPTER_DISPATCH, ROW_OPS, TABLE_SCOPED_OPS, registered = false, STYLES_PART_ID = "word/styles.xml", stylesPartDescriptor, settingsPartDescriptor, RELS_PART_ID2 = "word/_rels/document.xml.rels", RELS_XMLNS$1 = "http://schemas.openxmlformats.org/package/2006/relationships", HEADER_RELATIONSHIP_TYPE$2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE$2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", relsPartDescriptor, DOCUMENT_RELS_PATH$1 = "word/_rels/document.xml.rels", RELS_XMLNS2 = "http://schemas.openxmlformats.org/package/2006/relationships", HEADER_RELATIONSHIP_TYPE$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", WORDPROCESSINGML_XMLNS = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", OFFICE_DOCUMENT_RELS_XMLNS = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", RELATIONSHIP_ID_PATTERN, HEADER_FILE_PATTERN$1, FOOTER_FILE_PATTERN$1, HISTORY_UNSAFE_OPS, IGNORED_ATTRIBUTE_KEYS, TRACK_CHANGE_MARK_NAMES, TRACK_CHANGE_IGNORED_ATTRIBUTE_KEYS, VOLATILE_PARAGRAPH_ATTRS, VOLATILE_IMAGE_ORIGINAL_ATTR_KEYS, SIMILARITY_THRESHOLD = 0.65, MIN_LENGTH_FOR_SIMILARITY = 4, COMMENT_ATTRS_DIFF_IGNORED_KEYS, setNestedValue = (target, path2, value) => {
205998
206058
  if (!path2.includes(".")) {
205999
206059
  target[path2] = value;
206000
206060
  return;
@@ -225019,9 +225079,9 @@ var Node$13 = class Node$14 {
225019
225079
  return false;
225020
225080
  return Boolean(checker(attrs));
225021
225081
  }, SuperToolbar, ICONS, TEXTS, tableActionsOptions;
225022
- var init_src_EwkFfYFq_es = __esm(() => {
225082
+ var init_src_zd0A71x4_es = __esm(() => {
225023
225083
  init_rolldown_runtime_B2q5OVn9_es();
225024
- init_SuperConverter_Dt28Xb1l_es();
225084
+ init_SuperConverter_BcBeadrv_es();
225025
225085
  init_jszip_ChlR43oI_es();
225026
225086
  init_uuid_qzgm05fK_es();
225027
225087
  init_constants_ep1_Gwqi_es();
@@ -232919,6 +232979,16 @@ function print() { __p += __j.call(arguments, '') }
232919
232979
  "heading",
232920
232980
  "listItem"
232921
232981
  ]);
232982
+ DIRECT_FORMATTING_MARK_NAMES = new Set([
232983
+ "textStyle",
232984
+ "bold",
232985
+ "italic",
232986
+ "underline",
232987
+ "strike",
232988
+ "subscript",
232989
+ "superscript",
232990
+ "highlight"
232991
+ ]);
232922
232992
  ALIGNMENT_TO_JUSTIFICATION = {
232923
232993
  left: "left",
232924
232994
  center: "center",
@@ -258108,8 +258178,8 @@ var init_zipper_DqXT7uTa_es = __esm(() => {
258108
258178
 
258109
258179
  // ../../packages/superdoc/dist/super-editor.es.js
258110
258180
  var init_super_editor_es = __esm(() => {
258111
- init_src_EwkFfYFq_es();
258112
- init_SuperConverter_Dt28Xb1l_es();
258181
+ init_src_zd0A71x4_es();
258182
+ init_SuperConverter_BcBeadrv_es();
258113
258183
  init_jszip_ChlR43oI_es();
258114
258184
  init_xml_js_BtmJ6bNs_es();
258115
258185
  init_constants_ep1_Gwqi_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.3.0-next.23",
3
+ "version": "0.3.0-next.25",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -20,21 +20,21 @@
20
20
  "@types/bun": "^1.3.8",
21
21
  "@types/node": "22.19.2",
22
22
  "typescript": "^5.9.2",
23
- "@superdoc/document-api": "0.0.1",
24
23
  "@superdoc/pm-adapter": "0.0.0",
24
+ "@superdoc/super-editor": "0.0.1",
25
25
  "superdoc": "1.20.0",
26
- "@superdoc/super-editor": "0.0.1"
26
+ "@superdoc/document-api": "0.0.1"
27
27
  },
28
28
  "module": "src/index.ts",
29
29
  "publishConfig": {
30
30
  "access": "public"
31
31
  },
32
32
  "optionalDependencies": {
33
- "@superdoc-dev/cli-darwin-arm64": "0.3.0-next.23",
34
- "@superdoc-dev/cli-darwin-x64": "0.3.0-next.23",
35
- "@superdoc-dev/cli-linux-x64": "0.3.0-next.23",
36
- "@superdoc-dev/cli-windows-x64": "0.3.0-next.23",
37
- "@superdoc-dev/cli-linux-arm64": "0.3.0-next.23"
33
+ "@superdoc-dev/cli-darwin-arm64": "0.3.0-next.25",
34
+ "@superdoc-dev/cli-darwin-x64": "0.3.0-next.25",
35
+ "@superdoc-dev/cli-linux-x64": "0.3.0-next.25",
36
+ "@superdoc-dev/cli-windows-x64": "0.3.0-next.25",
37
+ "@superdoc-dev/cli-linux-arm64": "0.3.0-next.25"
38
38
  },
39
39
  "scripts": {
40
40
  "predev": "node scripts/ensure-superdoc-build.js",