@harbour-enterprises/superdoc 0.20.1 → 0.21.0-RC1

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 (95) hide show
  1. package/dist/chunks/{PdfViewer-BLwxuMWh.cjs → PdfViewer-BdrjIRpr.cjs} +1 -1
  2. package/dist/chunks/{PdfViewer-t_JS3Mbo.es.js → PdfViewer-DK1etjvu.es.js} +1 -1
  3. package/dist/chunks/{index-CBTSdULo.cjs → index-C_zTr1ZR.cjs} +14 -33
  4. package/dist/chunks/{index-Vp2WxlNm.es.js → index-ucP9WQ5I.es.js} +14 -33
  5. package/dist/chunks/{super-editor.es-DGV2_J23.es.js → super-editor.es-KKA9G1l1.es.js} +1846 -404
  6. package/dist/chunks/{super-editor.es-Cten5oWF.cjs → super-editor.es-XC168Mlw.cjs} +1846 -404
  7. package/dist/core/SuperDoc.d.ts.map +1 -1
  8. package/dist/stores/comments-store.d.ts.map +1 -1
  9. package/dist/super-editor/ai-writer.es.js +2 -2
  10. package/dist/super-editor/chunks/{converter-Dq0PLazx.js → converter-B61ZUb-V.js} +1401 -310
  11. package/dist/super-editor/chunks/{docx-zipper-jT0gaoep.js → docx-zipper-B8nhsVFW.js} +1 -1
  12. package/dist/super-editor/chunks/{editor-BEtv1kuN.js → editor-CQ0o4v54.js} +420 -65
  13. package/dist/super-editor/chunks/{toolbar-CJfSHfLU.js → toolbar-DWzoslZk.js} +11 -21
  14. package/dist/super-editor/converter.es.js +1 -1
  15. package/dist/super-editor/docx-zipper.es.js +2 -2
  16. package/dist/super-editor/editor.es.js +3 -3
  17. package/dist/super-editor/file-zipper.es.js +1 -1
  18. package/dist/super-editor/src/core/commands/index.d.ts +1 -0
  19. package/dist/super-editor/src/core/commands/toggleMarkCascade.d.ts +41 -0
  20. package/dist/super-editor/src/core/super-converter/SuperConverter.d.ts +5 -0
  21. package/dist/super-editor/src/core/super-converter/helpers.d.ts +2 -0
  22. package/dist/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts +12 -0
  23. package/dist/super-editor/src/core/super-converter/v2/importer/runNodeImporter.d.ts +6 -6
  24. package/dist/super-editor/src/core/super-converter/v3/handlers/index.d.ts +20 -4
  25. package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/index.d.ts +3 -0
  26. package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/w-val.d.ts +4 -0
  27. package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/b-translator.d.ts +7 -0
  28. package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/index.d.ts +1 -0
  29. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/index.d.ts +2 -0
  30. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-color.d.ts +4 -0
  31. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-shade.d.ts +4 -0
  32. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-tint.d.ts +4 -0
  33. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-val.d.ts +4 -0
  34. package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/color-translator.d.ts +7 -0
  35. package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/attributes/index.d.ts +2 -0
  36. package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/attributes/w-val.d.ts +4 -0
  37. package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/highlight-translator.d.ts +4 -0
  38. package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/index.d.ts +2 -0
  39. package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/w-val.d.ts +4 -0
  40. package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/i-translator.d.ts +7 -0
  41. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/index.d.ts +2 -0
  42. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-del.d.ts +4 -0
  43. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r-pr.d.ts +4 -0
  44. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r.d.ts +4 -0
  45. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/helpers.d.ts +40 -0
  46. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/index.d.ts +2 -0
  47. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/split-run-properties.d.ts +9 -0
  48. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/index.d.ts +1 -0
  49. package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/r-translator.d.ts +4 -0
  50. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/index.d.ts +2 -0
  51. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-ascii.d.ts +4 -0
  52. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-cs.d.ts +4 -0
  53. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-east-asia.d.ts +4 -0
  54. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-hansi.d.ts +4 -0
  55. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-val.d.ts +4 -0
  56. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/index.d.ts +1 -0
  57. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/rFonts-translator.d.ts +5 -0
  58. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/index.d.ts +2 -0
  59. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/w-val.d.ts +4 -0
  60. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/index.d.ts +1 -0
  61. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts +7 -0
  62. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/index.d.ts +1 -0
  63. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/rpr-translator.d.ts +5 -0
  64. package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts +11 -0
  65. package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/index.d.ts +2 -0
  66. package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/w-val.d.ts +4 -0
  67. package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts +7 -0
  68. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/index.d.ts +2 -0
  69. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/w-val.d.ts +4 -0
  70. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/sz-translator.d.ts +4 -0
  71. package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/attributes/index.d.ts +2 -0
  72. package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/attributes/w-val.d.ts +4 -0
  73. package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/szcs-translator.d.ts +4 -0
  74. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/index.d.ts +2 -0
  75. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-color.d.ts +4 -0
  76. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-color.d.ts +4 -0
  77. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-shade.d.ts +4 -0
  78. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-tint.d.ts +4 -0
  79. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-val.d.ts +4 -0
  80. package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/u-translator.d.ts +7 -0
  81. package/dist/super-editor/src/extensions/index.d.ts +2 -2
  82. package/dist/super-editor/src/extensions/linked-styles/index.d.ts +1 -0
  83. package/dist/super-editor/src/extensions/linked-styles/underline-css.d.ts +17 -0
  84. package/dist/super-editor/src/extensions/run/index.d.ts +1 -0
  85. package/dist/super-editor/src/extensions/run/run.d.ts +6 -0
  86. package/dist/super-editor/src/extensions/shared/cascade-toggle.d.ts +8 -0
  87. package/dist/super-editor/super-editor.es.js +49 -23
  88. package/dist/super-editor/toolbar.es.js +2 -2
  89. package/dist/super-editor.cjs +1 -1
  90. package/dist/super-editor.es.js +1 -1
  91. package/dist/superdoc.cjs +2 -2
  92. package/dist/superdoc.es.js +2 -2
  93. package/dist/superdoc.umd.js +1860 -437
  94. package/dist/superdoc.umd.js.map +1 -1
  95. package/package.json +1 -1
@@ -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-Dq0PLazx.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-BEtv1kuN.js";
2
+ import { p as process$1 } from "./converter-B61ZUb-V.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-CQ0o4v54.js";
4
4
  const sanitizeNumber = (value, defaultNumber) => {
5
5
  let sanitized = value.replace(/[^0-9.]/g, "");
6
6
  sanitized = parseFloat(sanitized);
@@ -2483,7 +2483,7 @@ function resolveTo(selector) {
2483
2483
  if (typeof selector === "string") {
2484
2484
  return document.querySelector(selector);
2485
2485
  }
2486
- return selector() || null;
2486
+ return selector();
2487
2487
  }
2488
2488
  const LazyTeleport = defineComponent({
2489
2489
  name: "LazyTeleport",
@@ -2571,11 +2571,8 @@ const oppositeAlignCssPositionProps = {
2571
2571
  };
2572
2572
  const keepOffsetDirection = {
2573
2573
  top: true,
2574
- // top++
2575
2574
  bottom: false,
2576
- // top--
2577
2575
  left: true,
2578
- // left++
2579
2576
  right: false
2580
2577
  // left--
2581
2578
  };
@@ -3692,6 +3689,7 @@ function isFocusable(element) {
3692
3689
  return !!element.href && element.rel !== "ignore";
3693
3690
  case "INPUT":
3694
3691
  return element.type !== "hidden" && element.type !== "file";
3692
+ case "BUTTON":
3695
3693
  case "SELECT":
3696
3694
  case "TEXTAREA":
3697
3695
  return true;
@@ -3710,8 +3708,8 @@ const FocusTrap = defineComponent({
3710
3708
  default: true
3711
3709
  },
3712
3710
  onEsc: Function,
3713
- initialFocusTo: [String, Function],
3714
- finalFocusTo: [String, Function],
3711
+ initialFocusTo: String,
3712
+ finalFocusTo: String,
3715
3713
  returnFocusOnDeactivated: {
3716
3714
  type: Boolean,
3717
3715
  default: true
@@ -5809,7 +5807,6 @@ function self$6(vars) {
5809
5807
  });
5810
5808
  }
5811
5809
  const scrollbarLight = {
5812
- name: "Scrollbar",
5813
5810
  common: derived,
5814
5811
  self: self$6
5815
5812
  };
@@ -7325,14 +7322,11 @@ function self$5(vars) {
7325
7322
  boxShadow: boxShadow2
7326
7323
  });
7327
7324
  }
7328
- const popoverLight = createTheme({
7325
+ const popoverLight = {
7329
7326
  name: "Popover",
7330
7327
  common: derived,
7331
- peers: {
7332
- Scrollbar: scrollbarLight
7333
- },
7334
7328
  self: self$5
7335
- });
7329
+ };
7336
7330
  const oppositePlacement = {
7337
7331
  top: "bottom",
7338
7332
  bottom: "top",
@@ -7552,11 +7546,9 @@ const NPopoverBody = defineComponent({
7552
7546
  const {
7553
7547
  namespaceRef,
7554
7548
  mergedClsPrefixRef,
7555
- inlineThemeDisabled,
7556
- mergedRtlRef
7549
+ inlineThemeDisabled
7557
7550
  } = useConfig(props);
7558
7551
  const themeRef = useTheme("Popover", "-popover", style$3, popoverLight, props, mergedClsPrefixRef);
7559
- const rtlEnabledRef = useRtl("Popover", mergedRtlRef, mergedClsPrefixRef);
7560
7552
  const followerRef = ref(null);
7561
7553
  const NPopover2 = inject("NPopover");
7562
7554
  const bodyRef = ref(null);
@@ -7754,8 +7746,6 @@ const NPopoverBody = defineComponent({
7754
7746
  style: props.contentStyle
7755
7747
  }, slots);
7756
7748
  const maybeScrollableBody = props.scrollable ? h(XScrollbar, {
7757
- themeOverrides: themeRef.value.peerOverrides.Scrollbar,
7758
- theme: themeRef.value.peers.Scrollbar,
7759
7749
  contentClass: hasHeaderOrFooter ? void 0 : `${mergedClsPrefix}-popover__content ${(_b = props.contentClass) !== null && _b !== void 0 ? _b : ""}`,
7760
7750
  contentStyle: hasHeaderOrFooter ? void 0 : props.contentStyle
7761
7751
  }, {
@@ -7771,7 +7761,7 @@ const NPopoverBody = defineComponent({
7771
7761
  return [maybeScrollableBody, arrow];
7772
7762
  };
7773
7763
  contentNode = h("div", mergeProps({
7774
- class: [`${mergedClsPrefix}-popover`, `${mergedClsPrefix}-popover-shared`, (rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) && `${mergedClsPrefix}-popover--rtl`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, extraClass.map((v) => `${mergedClsPrefix}-${v}`), {
7764
+ class: [`${mergedClsPrefix}-popover`, `${mergedClsPrefix}-popover-shared`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, extraClass.map((v) => `${mergedClsPrefix}-${v}`), {
7775
7765
  [`${mergedClsPrefix}-popover--scrollable`]: props.scrollable,
7776
7766
  [`${mergedClsPrefix}-popover--show-header-or-footer`]: hasHeaderOrFooter,
7777
7767
  [`${mergedClsPrefix}-popover--raw`]: props.raw,
@@ -7795,7 +7785,7 @@ const NPopoverBody = defineComponent({
7795
7785
  // The popover class and overlap class must exists, they will be used
7796
7786
  // to place the body & transition animation.
7797
7787
  // Shadow class exists for reuse box-shadow.
7798
- [`${mergedClsPrefix}-popover-shared`, (rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) && `${mergedClsPrefix}-popover--rtl`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, props.overlap && `${mergedClsPrefix}-popover-shared--overlap`, props.showArrow && `${mergedClsPrefix}-popover-shared--show-arrow`, props.arrowPointToCenter && `${mergedClsPrefix}-popover-shared--center-arrow`],
7788
+ [`${mergedClsPrefix}-popover-shared`, themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value, props.overlap && `${mergedClsPrefix}-popover-shared--overlap`, props.showArrow && `${mergedClsPrefix}-popover-shared--show-arrow`, props.arrowPointToCenter && `${mergedClsPrefix}-popover-shared--center-arrow`],
7799
7789
  bodyRef,
7800
7790
  styleRef.value,
7801
7791
  handleMouseEnter,
@@ -1,4 +1,4 @@
1
- import { a5 } from "./chunks/converter-Dq0PLazx.js";
1
+ import { a5 } from "./chunks/converter-B61ZUb-V.js";
2
2
  import "vue";
3
3
  export {
4
4
  a5 as SuperConverter
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-Dq0PLazx.js";
2
- import { D } from "./chunks/docx-zipper-jT0gaoep.js";
1
+ import "./chunks/converter-B61ZUb-V.js";
2
+ import { D } from "./chunks/docx-zipper-B8nhsVFW.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-BEtv1kuN.js";
2
- import "./chunks/converter-Dq0PLazx.js";
3
- import "./chunks/docx-zipper-jT0gaoep.js";
1
+ import { E } from "./chunks/editor-CQ0o4v54.js";
2
+ import "./chunks/converter-B61ZUb-V.js";
3
+ import "./chunks/docx-zipper-B8nhsVFW.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-jT0gaoep.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-B8nhsVFW.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -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,41 @@
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 toggleMarkCascade(markName: string, options?: {}): ({ state, chain, editor }: {
38
+ state: any;
39
+ chain: any;
40
+ editor: any;
41
+ }) => any;
@@ -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;
@@ -14,6 +14,8 @@ export function pixelsToEightPoints(pixels: any): number;
14
14
  export function getArrayBufferFromUrl(input: any, isHeadless: any): Promise<ArrayBuffer>;
15
15
  export function getContentTypesFromXml(contentTypesXml: any): string[];
16
16
  export function getHexColorFromDocxSystem(docxColor: any): string;
17
+ export function getDocxHighlightKeywordFromHex(hexColor: any): any;
18
+ export function normalizeHexColor(hex: any): any;
17
19
  export function isValidHexColor(color: any): boolean;
18
20
  export function rgbToHex(rgb: any): string;
19
21
  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
+ };
@@ -1,9 +1,25 @@
1
- /**
2
- * @typedef {Object} RegisteredHandlers
3
- */
4
1
  export const registeredHandlers: Readonly<{
5
2
  'w:br': import("../node-translator/node-translator.js").NodeTranslator;
6
- 'w:tab': import("../node-translator/node-translator.js").NodeTranslator;
3
+ 'w:cantSplit': import("../node-translator/node-translator.js").NodeTranslator;
4
+ 'w:cnfStyle': import("../node-translator/node-translator.js").NodeTranslator;
5
+ 'w:divId': import("../node-translator/node-translator.js").NodeTranslator;
6
+ 'w:gridAfter': import("../node-translator/node-translator.js").NodeTranslator;
7
+ 'w:gridBefore': import("../node-translator/node-translator.js").NodeTranslator;
8
+ 'w:hidden': import("../node-translator/node-translator.js").NodeTranslator;
9
+ 'w:hyperlink': import("../node-translator/node-translator.js").NodeTranslator;
10
+ 'w:jc': import("../node-translator/node-translator.js").NodeTranslator;
7
11
  'w:p': import("../node-translator/node-translator.js").NodeTranslator;
12
+ 'w:r': import("../node-translator/node-translator.js").NodeTranslator;
13
+ 'w:rPr': import("../node-translator/node-translator.js").NodeTranslator;
14
+ 'w:sdt': import("../node-translator/node-translator.js").NodeTranslator;
15
+ 'w:tab': import("../node-translator/node-translator.js").NodeTranslator;
16
+ 'w:tblCellSpacing': import("../node-translator/node-translator.js").NodeTranslator;
17
+ 'w:tblHeader': import("../node-translator/node-translator.js").NodeTranslator;
18
+ 'w:tc': import("../node-translator/node-translator.js").NodeTranslator;
19
+ 'w:tr': import("../node-translator/node-translator.js").NodeTranslator;
20
+ 'w:trHeight': import("../node-translator/node-translator.js").NodeTranslator;
21
+ 'w:trPr': import("../node-translator/node-translator.js").NodeTranslator;
22
+ 'w:wAfter': import("../node-translator/node-translator.js").NodeTranslator;
23
+ 'w:wBefore': import("../node-translator/node-translator.js").NodeTranslator;
8
24
  }>;
9
25
  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 applyRunMarks(node: any, runAttrs: any, inlineMarks: any, textStyleAttrs: any): any;
8
+ export function createRunMark(attrs?: {}): {
9
+ type: string;
10
+ attrs: any;
11
+ } | {
12
+ type: string;
13
+ attrs?: undefined;
14
+ };
15
+ export function deriveStyleMarks({ docx, paragraphStyleId, runStyleId }: {
16
+ docx: any;
17
+ paragraphStyleId: any;
18
+ runStyleId: any;
19
+ }): {
20
+ inlineMarks: any[];
21
+ textStyleAttrs: any;
22
+ };
23
+ export function collectStyleMarks(styleId: any, docx: any, seen?: Set<any>): {
24
+ inlineMarks: any[];
25
+ textStyleAttrs: {};
26
+ };
27
+ export function collectStyleChain(styleId: any, docx: any, seen: any): any;
28
+ export function findStyleTag(docx: any, styleId: any): any;
29
+ export function extractMarksFromStyle(styleTag: any, docx: any): {
30
+ inlineMarks: any[];
31
+ textStyleAttrs: {};
32
+ };
33
+ export function mergeInlineMarkSets(...markSets: any[]): any[];
34
+ export function mergeTextStyleAttrs(...attrsList: any[]): any;
35
+ export function cloneRunAttrs(attrs: any): any;
36
+ export function cloneMark(mark: any): any;
37
+ export function mergeRunAttrs(existing?: {}, incoming?: {}): any;
38
+ export function normalizeBool(value: any): boolean;
39
+ export function resolveRunElement(node: any): any;
40
+ export function ensureRunPropertiesContainer(runElement: any): any;
@@ -0,0 +1,2 @@
1
+ export * from "./helpers.js";
2
+ export * from "./split-run-properties.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 @@
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;