@harbour-enterprises/superdoc 0.19.0-next.8 → 0.19.0
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-fT3KFJal.es.js → PdfViewer-D0lSSW0x.es.js} +1 -1
- package/dist/chunks/{PdfViewer-HREDD6qb.cjs → PdfViewer-DJb0akn3.cjs} +1 -1
- package/dist/chunks/{index-CSvNxbRW.es.js → index-BZOsYVVo.es.js} +2 -3
- package/dist/chunks/{index-wEO3Mdf3.cjs → index-CeLW_JxI.cjs} +2 -3
- package/dist/chunks/{super-editor.es-C_ozmHgp.es.js → super-editor.es-B1rC4GHL.es.js} +13874 -14077
- package/dist/chunks/{super-editor.es-D4jQmQ_2.cjs → super-editor.es-FNewwzSy.cjs} +13874 -14077
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/style.css +6 -6
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-B0DE5RlJ.js → converter-CFVPKGqT.js} +12977 -13047
- package/dist/super-editor/chunks/{docx-zipper-CynIq8Em.js → docx-zipper-CGdYHGDa.js} +1 -1
- package/dist/super-editor/chunks/{editor-W_wtetmC.js → editor-DrhZRXX9.js} +99 -227
- package/dist/super-editor/chunks/{toolbar-BzRxJlN2.js → toolbar-CKQ-GucL.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/core/Editor.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/exporter.d.ts +1 -19
- package/dist/super-editor/src/core/super-converter/v2/exporter/documentSectionExporter.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v2/exporter/index.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/annotationImporter.d.ts +9 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/docPartGalleryImporter.d.ts +1 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/docPartObjImporter.d.ts +4 -0
- package/dist/super-editor/src/core/super-converter/v2/importer/structuredDocumentNodeImporter.d.ts +8 -0
- package/dist/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +8 -8
- package/dist/super-editor/style.css +6 -6
- package/dist/super-editor/super-editor.es.js +8 -13
- 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 +13997 -14201
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/super-editor/src/core/inputRules/html/transform-copied-lists.d.ts +0 -3
- package/dist/super-editor/src/core/super-converter/v2/importer/sdtNodeImporter.d.ts +0 -8
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-annotation-node.d.ts +0 -22
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-doc-part-obj.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-document-section-node.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-structured-content-node.d.ts +0 -5
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/parse-tag-value-json.d.ts +0 -5
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/sdt-node-type-strategy.d.ts +0 -9
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-document-section.d.ts +0 -7
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-field-annotation.d.ts +0 -80
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-structured-content.d.ts +0 -5
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/index.d.ts +0 -1
- package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/sdt-translator.d.ts +0 -6
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param {Object} params
|
|
3
|
-
* @returns {Object|null}
|
|
4
|
-
*/
|
|
5
|
-
export function handleAnnotationNode(params: any): any | null;
|
|
6
|
-
export function getAttrsFromElements({ sdtPr, tag, alias }: {
|
|
7
|
-
sdtPr: any;
|
|
8
|
-
tag: any;
|
|
9
|
-
alias: any;
|
|
10
|
-
}): {
|
|
11
|
-
type: any;
|
|
12
|
-
fieldId: any;
|
|
13
|
-
displayLabel: any;
|
|
14
|
-
fieldType: any;
|
|
15
|
-
fieldColor: any;
|
|
16
|
-
multipleImage: boolean;
|
|
17
|
-
fontFamily: any;
|
|
18
|
-
fontSize: any;
|
|
19
|
-
textColor: any;
|
|
20
|
-
textHighlight: any;
|
|
21
|
-
};
|
|
22
|
-
export function parseAnnotationMarks(content?: any): any;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Handle document section node. Special case of w:sdt nodes
|
|
3
|
-
* @param {Object} params - The parameters containing nodes and nodeListHandler
|
|
4
|
-
* @returns {Object|null} An object containing the processed node and consumed count
|
|
5
|
-
*/
|
|
6
|
-
export function handleDocumentSectionNode(params: any): any | null;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* There are multiple types of w:sdt nodes.
|
|
3
|
-
* We need to route to the correct handler depending on certain properties.
|
|
4
|
-
* Example: If tag has documentSection type, we handle it as a document section node.
|
|
5
|
-
* If it has structuredContent type, we handle it as a structured content node.
|
|
6
|
-
* @param {Object} node
|
|
7
|
-
* @returns {Object}
|
|
8
|
-
*/
|
|
9
|
-
export function sdtNodeTypeStrategy(node: any): any;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Translate a structured content block node to its XML representation.
|
|
3
|
-
* @param {Object} params - The parameters for translation.
|
|
4
|
-
* @returns {Object} The XML representation of the structured content block.
|
|
5
|
-
*/
|
|
6
|
-
export function translateDocumentSection(params: any): any;
|
|
7
|
-
export function generateSdtPrTagForDocumentSection(id: string, title: string, tag: string): any;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Translate a field annotation node
|
|
3
|
-
* @param {Object} params - The parameters for translation.
|
|
4
|
-
* @returns {Object} The XML representation.
|
|
5
|
-
*/
|
|
6
|
-
export function translateFieldAnnotation(params: any): any;
|
|
7
|
-
/**
|
|
8
|
-
* Returns node handler based on annotation type
|
|
9
|
-
*
|
|
10
|
-
* @param {String} annotationType
|
|
11
|
-
* @returns {Function} handler for provided annotation type
|
|
12
|
-
*/
|
|
13
|
-
export function getTranslationByAnnotationType(annotationType: string, annotationFieldType: any): Function;
|
|
14
|
-
/**
|
|
15
|
-
* Translates text annotations
|
|
16
|
-
* @param {Object} params
|
|
17
|
-
* @returns {Object}
|
|
18
|
-
*/
|
|
19
|
-
export function prepareTextAnnotation(params: any): any;
|
|
20
|
-
/**
|
|
21
|
-
* Translates image annotations
|
|
22
|
-
* @param {Object} params
|
|
23
|
-
* @param {Object} imageSize Object contains width and height for image in EMU
|
|
24
|
-
* @returns {Object} The translated image node
|
|
25
|
-
*/
|
|
26
|
-
export function prepareImageAnnotation(params: any, imageSize: any): any;
|
|
27
|
-
/**
|
|
28
|
-
* Translates checkbox annotations
|
|
29
|
-
* @param {Object} params
|
|
30
|
-
* @returns {Object} The translated checkbox node
|
|
31
|
-
*/
|
|
32
|
-
export function prepareCheckboxAnnotation(params: any): any;
|
|
33
|
-
/**
|
|
34
|
-
* Translates html annotations
|
|
35
|
-
* @param {Object} params
|
|
36
|
-
* @returns {Object} The translated html node
|
|
37
|
-
*/
|
|
38
|
-
export function prepareHtmlAnnotation(params: any): any;
|
|
39
|
-
/**
|
|
40
|
-
* Translates URL annotations
|
|
41
|
-
* @param {Object} params
|
|
42
|
-
* @returns {Object} The translated URL node
|
|
43
|
-
*/
|
|
44
|
-
export function prepareUrlAnnotation(params: any): any;
|
|
45
|
-
export function translateFieldAttrsToMarks(attrs?: {}): ({
|
|
46
|
-
type: string;
|
|
47
|
-
attrs: {
|
|
48
|
-
fontFamily: any;
|
|
49
|
-
fontSize?: undefined;
|
|
50
|
-
color?: undefined;
|
|
51
|
-
};
|
|
52
|
-
} | {
|
|
53
|
-
type: string;
|
|
54
|
-
attrs: {
|
|
55
|
-
fontSize: any;
|
|
56
|
-
fontFamily?: undefined;
|
|
57
|
-
color?: undefined;
|
|
58
|
-
};
|
|
59
|
-
} | {
|
|
60
|
-
type: string;
|
|
61
|
-
attrs: {
|
|
62
|
-
fontFamily?: undefined;
|
|
63
|
-
fontSize?: undefined;
|
|
64
|
-
color?: undefined;
|
|
65
|
-
};
|
|
66
|
-
} | {
|
|
67
|
-
type: string;
|
|
68
|
-
attrs: {
|
|
69
|
-
color: any;
|
|
70
|
-
fontFamily?: undefined;
|
|
71
|
-
fontSize?: undefined;
|
|
72
|
-
};
|
|
73
|
-
})[];
|
|
74
|
-
export function applyMarksToHtmlAnnotation(state: any, marks: any): any;
|
|
75
|
-
/**
|
|
76
|
-
* Get the JSON representation of the field highlight
|
|
77
|
-
* @param {string} fieldsHighlightColor - The highlight color for the field. Must be valid HEX.
|
|
78
|
-
* @returns {Object} The JSON representation of the field highlight
|
|
79
|
-
*/
|
|
80
|
-
export function getFieldHighlightJson(fieldsHighlightColor: string): any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./sdt-translator";
|