@harbour-enterprises/superdoc 0.20.0-next.14 → 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.
- package/dist/chunks/{PdfViewer-_NPRPRHl.es.js → PdfViewer-D3gJ5ozH.es.js} +1 -1
- package/dist/chunks/{PdfViewer-D-erp24R.cjs → PdfViewer-DuEWa8ox.cjs} +1 -1
- package/dist/chunks/{index-duHcNiwD.cjs → index-D2h9q27o.cjs} +31 -8
- package/dist/chunks/{index-dMbV_syB.es.js → index-DiSIyVKk.es.js} +31 -8
- package/dist/chunks/{super-editor.es-BKurmwFy.es.js → super-editor.es-4Ig7dBJr.es.js} +2846 -851
- package/dist/chunks/{super-editor.es-ly_a915J.cjs → super-editor.es-lzaBZOn2.cjs} +2846 -851
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/stores/comments-store.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-Brf9NxwA.js → converter-BJVy6JMW.js} +1971 -636
- package/dist/super-editor/chunks/{docx-zipper-Dld3TtPb.js → docx-zipper-DWDJGX0b.js} +1 -1
- package/dist/super-editor/chunks/{editor-N0dhAC41.js → editor-BUCOmU2Y.js} +1026 -410
- package/dist/super-editor/chunks/{toolbar-CXinz1gO.js → toolbar-CiBIcgiI.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/src/components/toolbar/format-negation.d.ts +5 -0
- package/dist/super-editor/src/core/commands/index.d.ts +1 -0
- package/dist/super-editor/src/core/commands/toggleMarkCascade.d.ts +42 -0
- package/dist/super-editor/src/core/commands/types/index.d.ts +29 -1
- package/dist/super-editor/src/core/super-converter/SuperConverter.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/exporter.d.ts +8 -0
- package/dist/super-editor/src/core/super-converter/helpers.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts +12 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/runNodeImporter.d.ts +6 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/constants/east-asian-regex.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/constants/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/index.d.ts +2 -12
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/index.d.ts +3 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/b-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/b/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-color.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-shade.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-theme-tint.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/color/color-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/highlight/highlight-translator.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/i/i-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-del.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r-pr.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/attributes/w-rsid-r.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/helpers.d.ts +40 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/index.d.ts +3 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/split-run-properties.d.ts +9 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/helpers/track-change-helpers.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/r/r-translator.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-ascii.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-cs.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-east-asia.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-hansi.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rFonts/rFonts-translator.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/rpr-translator.d.ts +5 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts +11 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts +7 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sz/sz-translator.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/szcs/szcs-translator.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/index.d.ts +2 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-color.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-color.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-shade.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-theme-tint.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/attributes/w-val.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/u/u-translator.d.ts +7 -0
- package/dist/super-editor/src/extensions/index.d.ts +2 -2
- package/dist/super-editor/src/extensions/linked-styles/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/linked-styles/underline-css.d.ts +17 -0
- package/dist/super-editor/src/extensions/list-item/helpers/listItemTypography.d.ts +62 -0
- package/dist/super-editor/src/extensions/run/commands/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/run/commands/split-run.d.ts +1 -0
- package/dist/super-editor/src/extensions/run/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/run/run.d.ts +6 -0
- package/dist/super-editor/src/extensions/shared/cascade-toggle.d.ts +8 -0
- package/dist/super-editor/src/extensions/tab/helpers/tabDecorations.d.ts +12 -0
- package/dist/super-editor/src/extensions/tab/tab.d.ts +4 -0
- package/dist/super-editor/src/tests/helpers/getParagraphText.d.ts +2 -0
- package/dist/super-editor/super-editor.es.js +90 -21
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +2877 -859
- package/dist/superdoc.umd.js.map +1 -1
- 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-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { E } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
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
|
};
|
|
@@ -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").
|
|
2
|
+
* @type {import("./docxImporter").NodeHandlerEntry}
|
|
3
3
|
*/
|
|
4
|
-
export const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
export const runNodeHandlerEntity: import("./docxImporter").NodeHandlerEntry;
|
|
5
|
+
export function handleRunNode(params: import("./docxImporter").NodeHandlerParams): {
|
|
6
|
+
nodes: any[];
|
|
7
|
+
consumed: number;
|
|
8
|
+
};
|
package/dist/super-editor/src/core/super-converter/v3/handlers/constants/east-asian-regex.d.ts
ADDED
|
@@ -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
|
-
|
|
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,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,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,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,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 @@
|
|
|
1
|
+
export * from "./r-translator.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./rFonts-translator.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./rstyle-translator.js";
|
package/dist/super-editor/src/core/super-converter/v3/handlers/w/rStyle/rstyle-translator.d.ts
ADDED
|
@@ -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";
|
package/dist/super-editor/src/core/super-converter/v3/handlers/w/rpr/run-property-translators.d.ts
ADDED
|
@@ -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[];
|
package/dist/super-editor/src/core/super-converter/v3/handlers/w/strike/strike-translator.d.ts
ADDED
|
@@ -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;
|