@harbour-enterprises/superdoc 0.20.0-next.13 → 0.20.0-next.15

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 (108) hide show
  1. package/README.md +4 -4
  2. package/dist/chunks/{PdfViewer-Beoed5G0.es.js → PdfViewer-D3gJ5ozH.es.js} +1 -1
  3. package/dist/chunks/{PdfViewer-Dh2tr2ag.cjs → PdfViewer-DuEWa8ox.cjs} +1 -1
  4. package/dist/chunks/{index-BFe2eMYK.cjs → index-D2h9q27o.cjs} +32 -9
  5. package/dist/chunks/{index-OC4NDn1G.es.js → index-DiSIyVKk.es.js} +32 -9
  6. package/dist/chunks/{super-editor.es-cgub83Px.es.js → super-editor.es-4Ig7dBJr.es.js} +2901 -902
  7. package/dist/chunks/{super-editor.es-4ltXjey_.cjs → super-editor.es-lzaBZOn2.cjs} +2901 -902
  8. package/dist/core/SuperDoc.d.ts.map +1 -1
  9. package/dist/stores/comments-store.d.ts.map +1 -1
  10. package/dist/super-editor/ai-writer.es.js +2 -2
  11. package/dist/super-editor/chunks/{converter-CTJIyTAA.js → converter-BJVy6JMW.js} +1996 -657
  12. package/dist/super-editor/chunks/{docx-zipper-BwicJKh2.js → docx-zipper-DWDJGX0b.js} +1 -1
  13. package/dist/super-editor/chunks/{editor-B97u3IuY.js → editor-BUCOmU2Y.js} +1027 -411
  14. package/dist/super-editor/chunks/{toolbar-BcdsHEOP.js → toolbar-CiBIcgiI.js} +2 -2
  15. package/dist/super-editor/converter.es.js +1 -1
  16. package/dist/super-editor/docx-zipper.es.js +2 -2
  17. package/dist/super-editor/editor.es.js +3 -3
  18. package/dist/super-editor/file-zipper.es.js +1 -1
  19. package/dist/super-editor/src/components/toolbar/format-negation.d.ts +5 -0
  20. package/dist/super-editor/src/core/commands/index.d.ts +1 -0
  21. package/dist/super-editor/src/core/commands/toggleMarkCascade.d.ts +42 -0
  22. package/dist/super-editor/src/core/commands/types/index.d.ts +29 -1
  23. package/dist/super-editor/src/core/super-converter/SuperConverter.d.ts +5 -0
  24. package/dist/super-editor/src/core/super-converter/exporter.d.ts +8 -0
  25. package/dist/super-editor/src/core/super-converter/helpers.d.ts +2 -0
  26. package/dist/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts +12 -0
  27. package/dist/super-editor/src/core/super-converter/v2/importer/runNodeImporter.d.ts +6 -6
  28. package/dist/super-editor/src/core/super-converter/v3/handlers/constants/east-asian-regex.d.ts +1 -0
  29. package/dist/super-editor/src/core/super-converter/v3/handlers/constants/index.d.ts +1 -0
  30. package/dist/super-editor/src/core/super-converter/v3/handlers/index.d.ts +2 -12
  31. package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/index.d.ts +3 -0
  32. package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/w-val.d.ts +4 -0
  33. package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/b-translator.d.ts +7 -0
  34. package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/index.d.ts +1 -0
  35. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/index.d.ts +2 -0
  36. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-color.d.ts +4 -0
  37. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-shade.d.ts +4 -0
  38. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-tint.d.ts +4 -0
  39. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-val.d.ts +4 -0
  40. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/color-translator.d.ts +7 -0
  41. package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/attributes/index.d.ts +2 -0
  42. package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/attributes/w-val.d.ts +4 -0
  43. package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/highlight-translator.d.ts +4 -0
  44. package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/index.d.ts +2 -0
  45. package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/w-val.d.ts +4 -0
  46. package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/i-translator.d.ts +7 -0
  47. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/index.d.ts +2 -0
  48. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-del.d.ts +4 -0
  49. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r-pr.d.ts +4 -0
  50. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r.d.ts +4 -0
  51. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/helpers.d.ts +40 -0
  52. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/index.d.ts +3 -0
  53. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/split-run-properties.d.ts +9 -0
  54. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/track-change-helpers.d.ts +5 -0
  55. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/index.d.ts +1 -0
  56. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/r-translator.d.ts +4 -0
  57. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/index.d.ts +2 -0
  58. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-ascii.d.ts +4 -0
  59. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-cs.d.ts +4 -0
  60. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-east-asia.d.ts +4 -0
  61. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-hansi.d.ts +4 -0
  62. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-val.d.ts +4 -0
  63. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/index.d.ts +1 -0
  64. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/rFonts-translator.d.ts +5 -0
  65. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/index.d.ts +2 -0
  66. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/w-val.d.ts +4 -0
  67. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/index.d.ts +1 -0
  68. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts +7 -0
  69. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/index.d.ts +1 -0
  70. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/rpr-translator.d.ts +5 -0
  71. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts +11 -0
  72. package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/index.d.ts +2 -0
  73. package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/w-val.d.ts +4 -0
  74. package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts +7 -0
  75. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/index.d.ts +2 -0
  76. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/w-val.d.ts +4 -0
  77. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/sz-translator.d.ts +4 -0
  78. package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/attributes/index.d.ts +2 -0
  79. package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/attributes/w-val.d.ts +4 -0
  80. package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/szcs-translator.d.ts +4 -0
  81. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/index.d.ts +2 -0
  82. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-color.d.ts +4 -0
  83. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-color.d.ts +4 -0
  84. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-shade.d.ts +4 -0
  85. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-tint.d.ts +4 -0
  86. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-val.d.ts +4 -0
  87. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/u-translator.d.ts +7 -0
  88. package/dist/super-editor/src/extensions/index.d.ts +2 -2
  89. package/dist/super-editor/src/extensions/linked-styles/index.d.ts +1 -0
  90. package/dist/super-editor/src/extensions/linked-styles/underline-css.d.ts +17 -0
  91. package/dist/super-editor/src/extensions/list-item/helpers/listItemTypography.d.ts +62 -0
  92. package/dist/super-editor/src/extensions/run/commands/index.d.ts +1 -0
  93. package/dist/super-editor/src/extensions/run/commands/split-run.d.ts +1 -0
  94. package/dist/super-editor/src/extensions/run/index.d.ts +1 -0
  95. package/dist/super-editor/src/extensions/run/run.d.ts +6 -0
  96. package/dist/super-editor/src/extensions/shared/cascade-toggle.d.ts +8 -0
  97. package/dist/super-editor/src/extensions/tab/helpers/tabDecorations.d.ts +12 -0
  98. package/dist/super-editor/src/extensions/tab/tab.d.ts +4 -0
  99. package/dist/super-editor/src/tests/helpers/getParagraphText.d.ts +2 -0
  100. package/dist/super-editor/super-editor.es.js +90 -21
  101. package/dist/super-editor/toolbar.es.js +2 -2
  102. package/dist/super-editor.cjs +1 -1
  103. package/dist/super-editor.es.js +1 -1
  104. package/dist/superdoc.cjs +2 -2
  105. package/dist/superdoc.es.js +2 -2
  106. package/dist/superdoc.umd.js +2933 -911
  107. package/dist/superdoc.umd.js.map +1 -1
  108. package/package.json +7 -4
@@ -1,6 +1,6 @@
1
1
  import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
2
- import { p as process$1 } from "./converter-CTJIyTAA.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-B97u3IuY.js";
2
+ import { p as process$1 } from "./converter-BJVy6JMW.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-BUCOmU2Y.js";
4
4
  const sanitizeNumber = (value, defaultNumber) => {
5
5
  let sanitized = value.replace(/[^0-9.]/g, "");
6
6
  sanitized = parseFloat(sanitized);
@@ -1,4 +1,4 @@
1
- import { a5 } from "./chunks/converter-CTJIyTAA.js";
1
+ import { a5 } from "./chunks/converter-BJVy6JMW.js";
2
2
  import "vue";
3
3
  export {
4
4
  a5 as SuperConverter
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-CTJIyTAA.js";
2
- import { D } from "./chunks/docx-zipper-BwicJKh2.js";
1
+ import "./chunks/converter-BJVy6JMW.js";
2
+ import { D } from "./chunks/docx-zipper-DWDJGX0b.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-B97u3IuY.js";
2
- import "./chunks/converter-CTJIyTAA.js";
3
- import "./chunks/docx-zipper-BwicJKh2.js";
1
+ import { E } from "./chunks/editor-BUCOmU2Y.js";
2
+ import "./chunks/converter-BJVy6JMW.js";
3
+ import "./chunks/docx-zipper-DWDJGX0b.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-BwicJKh2.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-DWDJGX0b.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -0,0 +1,5 @@
1
+ export function isOffValue(value: unknown): boolean;
2
+ /** @type {Record<string, (attrs?: Record<string, unknown>) => boolean>} */
3
+ export const negationChecks: Record<string, (attrs?: Record<string, unknown>) => boolean>;
4
+ export function isNegatedMark(name: string, attrs?: Record<string, unknown>): boolean;
5
+ export default isNegatedMark;
@@ -12,6 +12,7 @@ export * from "./setMark.js";
12
12
  export * from "./unsetMark.js";
13
13
  export * from "./unsetAllMarks.js";
14
14
  export * from "./toggleMark.js";
15
+ export * from "./toggleMarkCascade.js";
15
16
  export * from "./clearNodes.js";
16
17
  export * from "./setNode.js";
17
18
  export * from "./toggleNode.js";
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Default style detector that checks run-level or paragraph-level styleId
3
+ * @param {Object} params
4
+ * @returns {boolean}
5
+ */
6
+ export function defaultStyleDetector({ state, selectionMarks, markName, editor }: any): boolean;
7
+ /**
8
+ * Determines the effective style ID for the current selection/cursor position
9
+ * by checking multiple sources in priority order.
10
+ *
11
+ * Priority hierarchy:
12
+ * 1. Run-level rStyle from selection marks (highest priority)
13
+ * 2. Cursor-adjacent node marks (handles boundaries where selection marks omit run mark)
14
+ * 3. TextStyle styleId mark from selection marks
15
+ * 4. Paragraph ancestor styleId (lowest priority)
16
+ *
17
+ * @param {Object} state - The ProseMirror editor state
18
+ * @param {Array} selectionMarks - Array of marks from the current selection
19
+ * @returns {string|null} The effective style ID, or null if none found
20
+ */
21
+ export function getEffectiveStyleId(state: any, selectionMarks: any[]): string | null;
22
+ /**
23
+ * Get the style ID from an array of marks.
24
+ * @param {import('prosemirror-model').Mark[]} marks
25
+ * @returns {string|null}
26
+ */
27
+ export function getStyleIdFromMarks(marks: import("prosemirror-model").Mark[]): string | null;
28
+ /**
29
+ * Maps a mark name to its corresponding style key.
30
+ * Special case: both 'textStyle' and 'color' marks map to the 'color' style key.
31
+ * All other mark names map directly to themselves.
32
+ *
33
+ * @param {string} markName - The name of the mark to map
34
+ * @returns {string} The corresponding style key
35
+ */
36
+ export function mapMarkToStyleKey(markName: string): string;
37
+ export function isStyleTokenEnabled(val: any): boolean;
38
+ export function toggleMarkCascade(markName: string, options?: {}): ({ state, chain, editor }: {
39
+ state: any;
40
+ chain: any;
41
+ editor: any;
42
+ }) => any;
@@ -47,7 +47,7 @@ export type CanObject = Record<string, CanCommand> & {
47
47
  chain: () => ChainableCommandObject;
48
48
  };
49
49
  /**
50
- * Command props
50
+ * Command props made available to every command handler.
51
51
  */
52
52
  export type CommandProps = {
53
53
  /**
@@ -58,4 +58,32 @@ export type CommandProps = {
58
58
  * - The ProseMirror transaction
59
59
  */
60
60
  tr: import("prosemirror-state").Transaction;
61
+ /**
62
+ * - The current editor state
63
+ */
64
+ state: import("prosemirror-state").EditorState;
65
+ /**
66
+ * - The active editor view
67
+ */
68
+ view: import("prosemirror-view").EditorView;
69
+ /**
70
+ * - Optional dispatcher
71
+ */
72
+ dispatch?: (tr: import("prosemirror-state").Transaction) => void;
73
+ /**
74
+ * - Helper to build command chains
75
+ */
76
+ chain: () => ChainableCommandObject;
77
+ /**
78
+ * - Helper to check command availability
79
+ */
80
+ can: () => CanObject;
81
+ /**
82
+ * - Lazy command map bound to current props
83
+ */
84
+ commands: EditorCommands;
61
85
  };
86
+ /**
87
+ * A command handler invoked by the command service.
88
+ */
89
+ export type Command = (props: CommandProps) => boolean;
@@ -47,6 +47,9 @@ export class SuperConverter {
47
47
  'w:tcPr': "tableCellProperties";
48
48
  }>;
49
49
  static elements: Set<string>;
50
+ static getFontTableEntry(docx: any, fontName: any): any;
51
+ static getFallbackFromFontTable(docx: any, fontName: any): any;
52
+ static toCssFontFamily(fontName: any, docx: any): any;
50
53
  static getStoredSuperdocVersion(docx: any): any;
51
54
  static updateDocumentVersion(docx?: any, version?: any): any;
52
55
  constructor(params?: any);
@@ -100,11 +103,13 @@ export class SuperConverter {
100
103
  kern?: undefined;
101
104
  typeface?: undefined;
102
105
  panose?: undefined;
106
+ fontFamilyCss?: undefined;
103
107
  } | {
104
108
  fontSizePt: number;
105
109
  kern: any;
106
110
  typeface: any;
107
111
  panose: any;
112
+ fontFamilyCss: any;
108
113
  };
109
114
  getDocumentFonts(): string;
110
115
  getDocumentInternalId(): void;
@@ -44,6 +44,13 @@ export function exportSchemaToJson(params: ExportParams): XmlReadyNode;
44
44
  * @returns {XmlReadyNode} JSON of the XML-ready paragraph node
45
45
  */
46
46
  export function translateParagraphNode(params: any): XmlReadyNode;
47
+ /**
48
+ * Generate the w:pPr props for a paragraph node
49
+ *
50
+ * @param {SchemaNode} node
51
+ * @returns {XmlReadyNode} The paragraph properties node
52
+ */
53
+ export function generateParagraphProperties(node: SchemaNode): XmlReadyNode;
47
54
  /**
48
55
  * Helper function to be used for text node translation
49
56
  * Also used for transforming text annotations for the final submit
@@ -96,6 +103,7 @@ export function translateHardBreak(params: any): {
96
103
  };
97
104
  }[];
98
105
  };
106
+ export function isLineBreakOnlyRun(node: any): any;
99
107
  export class DocxExporter {
100
108
  constructor(converter: any);
101
109
  converter: any;
@@ -16,6 +16,8 @@ export function degreesToRot(degrees: any): number;
16
16
  export function getArrayBufferFromUrl(input: any, isHeadless: any): Promise<ArrayBuffer>;
17
17
  export function getContentTypesFromXml(contentTypesXml: any): string[];
18
18
  export function getHexColorFromDocxSystem(docxColor: any): string;
19
+ export function getDocxHighlightKeywordFromHex(hexColor: any): any;
20
+ export function normalizeHexColor(hex: any): any;
19
21
  export function isValidHexColor(color: any): boolean;
20
22
  export function rgbToHex(rgb: any): string;
21
23
  export function ptToTwips(pt: any): number;
@@ -17,3 +17,15 @@ export function handleStyleChangeMarks(rPr: XmlNode, currentMarks: PmMarkJson[])
17
17
  * @returns {PmMarkJson[]}
18
18
  */
19
19
  export function createImportMarks(marks: PmMarkJson[]): PmMarkJson[];
20
+ /**
21
+ *
22
+ * @param {string} markType
23
+ * @param attributes
24
+ * @returns {*}
25
+ */
26
+ export function getMarkValue(markType: string, attributes: any, docx: any): any;
27
+ export function getFontFamilyValue(attributes: any, docx: any): any;
28
+ export function getIndentValue(attributes: any): string;
29
+ export function getLineHeightValue(attributes: any): string;
30
+ export function getHighLightValue(attributes: any): string;
31
+ export function getStrikeValue(attributes: any): string;
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @type {import("docxImporter").NodeHandler}
2
+ * @type {import("./docxImporter").NodeHandlerEntry}
3
3
  */
4
- export const handleRunNode: any;
5
- /**
6
- * @type {import("docxImporter").NodeHandlerEntry}
7
- */
8
- export const runNodeHandlerEntity: any;
4
+ export const runNodeHandlerEntity: import("./docxImporter").NodeHandlerEntry;
5
+ export function handleRunNode(params: import("./docxImporter").NodeHandlerParams): {
6
+ nodes: any[];
7
+ consumed: number;
8
+ };
@@ -0,0 +1 @@
1
+ export const EAST_ASIAN_CHARACTER_REGEX: RegExp;
@@ -0,0 +1 @@
1
+ export * from "./east-asian-regex.js";
@@ -1,13 +1,3 @@
1
- /**
2
- * @typedef {Object} RegisteredHandlers
3
- */
4
- export const registeredHandlers: Readonly<{
5
- 'w:br': import("../node-translator/node-translator.js").NodeTranslator;
6
- 'w:tab': import("../node-translator/node-translator.js").NodeTranslator;
7
- 'w:p': import("../node-translator/node-translator.js").NodeTranslator;
8
- 'wp:anchor': import("../node-translator/node-translator.js").NodeTranslator;
9
- 'wp:inline': import("../node-translator/node-translator.js").NodeTranslator;
10
- 'w:bookmarkStart': import("../node-translator/node-translator.js").NodeTranslator;
11
- 'w:bookmarkEnd': import("../node-translator/node-translator.js").NodeTranslator;
12
- }>;
1
+ /** @type {RegisteredHandlers} */
2
+ export const registeredHandlers: RegisteredHandlers;
13
3
  export type RegisteredHandlers = any;
@@ -0,0 +1,3 @@
1
+ export default validXmlAttributes;
2
+ /** @type {import('@translator').AttrConfig[]} */
3
+ declare const validXmlAttributes: import("@translator").AttrConfig[];
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: Record<string, string>): boolean | undefined;
2
+ export function decode(runProps: Record<string, any>): string | undefined;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,7 @@
1
+ /** @type {import('@translator').NodeTranslatorConfig} */
2
+ export const config: import("@translator").NodeTranslatorConfig;
3
+ /**
4
+ * The NodeTranslator instance for the w:b element.
5
+ * @type {import('@translator').NodeTranslator}
6
+ */
7
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1 @@
1
+ export * from "./b-translator.js";
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@translator").AttrConfig[];
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,7 @@
1
+ /** @type {import('@translator').NodeTranslatorConfig} */
2
+ export const config: import("@translator").NodeTranslatorConfig;
3
+ /**
4
+ * The NodeTranslator instance for the w:color element.
5
+ * @type {import('@translator').NodeTranslator}
6
+ */
7
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@translator").AttrConfig[];
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,4 @@
1
+ /** @type {import('@translator').NodeTranslatorConfig} */
2
+ export const config: import("@translator").NodeTranslatorConfig;
3
+ /** @type {import('@translator').NodeTranslator} */
4
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@translator").AttrConfig[];
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): boolean;
2
+ export function decode(attrs: any): string;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,7 @@
1
+ /** @type {import('@translator').NodeTranslatorConfig} */
2
+ export const config: import("@translator").NodeTranslatorConfig;
3
+ /**
4
+ * The NodeTranslator instance for the w:i element.
5
+ * @type {import('@translator').NodeTranslator}
6
+ */
7
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@translator").AttrConfig[];
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): string | undefined;
2
+ export function decode(attrs: any): string | undefined;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): string | undefined;
2
+ export function decode(attrs: any): string | undefined;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): string | undefined;
2
+ export function decode(attrs: any): string | undefined;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,40 @@
1
+ export function collectRunProperties(params: any, rPrNode: any, translator?: import("../../../../node-translator/node-translator.js").NodeTranslator): {
2
+ entries: any;
3
+ hadRPr: boolean;
4
+ styleChangeMarks: PmMarkJson[];
5
+ };
6
+ export function buildRunAttrs(encodedAttrs: {}, hadRPr: any, runProps: any): Record<string, any>;
7
+ export function normalizeTextStyleAttrsForNode(textStyleAttrs: any, node: any): any;
8
+ export function applyRunMarks(node: any, inlineMarks: any, textStyleAttrs: any): any;
9
+ export function deriveStyleMarks({ docx, paragraphStyleId, runStyleId }: {
10
+ docx: any;
11
+ paragraphStyleId: any;
12
+ runStyleId: any;
13
+ }): {
14
+ inlineMarks: any[];
15
+ textStyleAttrs: any;
16
+ };
17
+ export function collectStyleMarks(styleId: any, docx: any, seen?: Set<any>): {
18
+ inlineMarks: any[];
19
+ textStyleAttrs: {};
20
+ };
21
+ export function collectStyleChain(styleId: any, docx: any, seen: any): any;
22
+ export function findStyleTag(docx: any, styleId: any): any;
23
+ export function extractMarksFromStyle(styleTag: any, docx: any): {
24
+ inlineMarks: any[];
25
+ textStyleAttrs: {};
26
+ };
27
+ export function mergeInlineMarkSets(...markSets: any[]): any[];
28
+ export function mergeTextStyleAttrs(...attrsList: any[]): any;
29
+ export function cloneRunAttrs(attrs: any): any;
30
+ export function cloneMark(mark: any): any;
31
+ export function normalizeBool(value: any): boolean;
32
+ export function createRunPropertiesElement(entries?: any[]): {
33
+ name: string;
34
+ elements: {
35
+ name: any;
36
+ attributes: any;
37
+ }[];
38
+ };
39
+ export function cloneXmlNode(nodeLike: any): any;
40
+ export function applyRunPropertiesTemplate(runNode: any, runPropertiesTemplate: any): void;
@@ -0,0 +1,3 @@
1
+ export * from "./helpers.js";
2
+ export * from "./split-run-properties.js";
3
+ export * from "./track-change-helpers.js";
@@ -0,0 +1,9 @@
1
+ export function splitRunProperties(entries?: Array<{
2
+ xmlName?: string;
3
+ attributes?: Record<string, any>;
4
+ }>, docx?: any): {
5
+ remainingProps: any[];
6
+ inlineMarks: any[];
7
+ textStyleAttrs: Record<string, any> | null;
8
+ runStyleId: string | null;
9
+ };
@@ -0,0 +1,5 @@
1
+ export function prepareRunTrackingContext(node?: {}): {
2
+ runNode: any;
3
+ trackingMarksByType: Map<any, any>;
4
+ };
5
+ export function ensureTrackedWrapper(runs: any, trackingMarksByType?: Map<any, any>): any;
@@ -0,0 +1 @@
1
+ export * from "./r-translator.js";
@@ -0,0 +1,4 @@
1
+ /** @type {import('@translator').NodeTranslatorConfig} */
2
+ export const config: import("@translator").NodeTranslatorConfig;
3
+ /** @type {import('@translator').NodeTranslator} */
4
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@translator").AttrConfig[];
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1 @@
1
+ export * from "./rFonts-translator.js";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The NodeTranslator instance for the w:rFonts element.
3
+ * @type {import('@translator').NodeTranslator}
4
+ */
5
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@translator").AttrConfig[];
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1 @@
1
+ export * from "./rstyle-translator.js";
@@ -0,0 +1,7 @@
1
+ /** @type {import('@translator').NodeTranslatorConfig} */
2
+ export const config: import("@translator").NodeTranslatorConfig;
3
+ /**
4
+ * The NodeTranslator instance for the w:rStyle element.
5
+ * @type {import('@translator').NodeTranslator}
6
+ */
7
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1 @@
1
+ export * from "./rpr-translator.js";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The NodeTranslator instance for the w:rPr element.
3
+ * @type {import('@translator').NodeTranslator}
4
+ */
5
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Map of OOXML run property element names to their translators.
3
+ * These translators emit attribute-shaped payloads that can be aggregated onto the run mark.
4
+ * @type {Record<string, import('@translator').NodeTranslator>}
5
+ */
6
+ export const runPropertyTranslators: Record<string, import("@translator").NodeTranslator>;
7
+ /**
8
+ * Valid child names that do not yet have dedicated translators but should still be preserved verbatim.
9
+ * @type {readonly string[]}
10
+ */
11
+ export const rawRunPropertyXmlNames: readonly string[];
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@translator").AttrConfig[];
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): boolean;
2
+ export function decode(attrs: any): string;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,7 @@
1
+ /** @type {import('@translator').NodeTranslatorConfig} */
2
+ export const config: import("@translator").NodeTranslatorConfig;
3
+ /**
4
+ * The NodeTranslator instance for the w:strike element.
5
+ * @type {import('@translator').NodeTranslator}
6
+ */
7
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@translator").AttrConfig[];
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,4 @@
1
+ /** @type {import('@translator').NodeTranslatorConfig} */
2
+ export const config: import("@translator").NodeTranslatorConfig;
3
+ /** @type {import('@translator').NodeTranslator} */
4
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@translator").AttrConfig[];
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,4 @@
1
+ /** @type {import('@translator').NodeTranslatorConfig} */
2
+ export const config: import("@translator").NodeTranslatorConfig;
3
+ /** @type {import('@translator').NodeTranslator} */
4
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@translator").AttrConfig[];
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;
@@ -0,0 +1,4 @@
1
+ export function encode(attributes: any): any;
2
+ export function decode(attrs: any): any;
3
+ /** @type {import('@translator').AttrConfig} */
4
+ export const attrConfig: import("@translator").AttrConfig;