@harbour-enterprises/superdoc 0.19.0-next.9 → 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.
Files changed (49) hide show
  1. package/dist/chunks/{PdfViewer-Dt_ISEZh.es.js → PdfViewer-D0lSSW0x.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-Br7tqQjO.cjs → PdfViewer-DJb0akn3.cjs} +1 -1
  3. package/dist/chunks/{index-BijsfKdg.es.js → index-BZOsYVVo.es.js} +2 -3
  4. package/dist/chunks/{index-DroNZHhs.cjs → index-CeLW_JxI.cjs} +2 -3
  5. package/dist/chunks/{super-editor.es-DT9O7SCK.es.js → super-editor.es-B1rC4GHL.es.js} +13874 -14082
  6. package/dist/chunks/{super-editor.es-D7MlgnUc.cjs → super-editor.es-FNewwzSy.cjs} +13874 -14082
  7. package/dist/core/SuperDoc.d.ts.map +1 -1
  8. package/dist/style.css +6 -6
  9. package/dist/super-editor/ai-writer.es.js +2 -2
  10. package/dist/super-editor/chunks/{converter-DPiYwzDY.js → converter-CFVPKGqT.js} +12921 -12996
  11. package/dist/super-editor/chunks/{docx-zipper-CS-lB2JG.js → docx-zipper-CGdYHGDa.js} +1 -1
  12. package/dist/super-editor/chunks/{editor-BqdYfCl0.js → editor-DrhZRXX9.js} +99 -227
  13. package/dist/super-editor/chunks/{toolbar-Dr4JWMZ7.js → toolbar-CKQ-GucL.js} +2 -2
  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/Editor.d.ts +0 -2
  19. package/dist/super-editor/src/core/super-converter/exporter.d.ts +1 -19
  20. package/dist/super-editor/src/core/super-converter/v2/exporter/documentSectionExporter.d.ts +1 -0
  21. package/dist/super-editor/src/core/super-converter/v2/exporter/index.d.ts +1 -0
  22. package/dist/super-editor/src/core/super-converter/v2/importer/annotationImporter.d.ts +9 -0
  23. package/dist/super-editor/src/core/super-converter/v2/importer/docPartGalleryImporter.d.ts +1 -0
  24. package/dist/super-editor/src/core/super-converter/v2/importer/docPartObjImporter.d.ts +4 -0
  25. package/dist/super-editor/src/core/super-converter/v2/importer/structuredDocumentNodeImporter.d.ts +8 -0
  26. package/dist/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +8 -8
  27. package/dist/super-editor/style.css +6 -6
  28. package/dist/super-editor/super-editor.es.js +8 -13
  29. package/dist/super-editor/toolbar.es.js +2 -2
  30. package/dist/super-editor.cjs +1 -1
  31. package/dist/super-editor.es.js +1 -1
  32. package/dist/superdoc.cjs +2 -2
  33. package/dist/superdoc.es.js +2 -2
  34. package/dist/superdoc.umd.js +13997 -14206
  35. package/dist/superdoc.umd.js.map +1 -1
  36. package/package.json +1 -1
  37. package/dist/super-editor/src/core/inputRules/html/transform-copied-lists.d.ts +0 -3
  38. package/dist/super-editor/src/core/super-converter/v2/importer/sdtNodeImporter.d.ts +0 -8
  39. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-annotation-node.d.ts +0 -22
  40. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-doc-part-obj.d.ts +0 -6
  41. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-document-section-node.d.ts +0 -6
  42. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-structured-content-node.d.ts +0 -5
  43. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/parse-tag-value-json.d.ts +0 -5
  44. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/sdt-node-type-strategy.d.ts +0 -9
  45. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-document-section.d.ts +0 -7
  46. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-field-annotation.d.ts +0 -80
  47. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-structured-content.d.ts +0 -5
  48. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/index.d.ts +0 -1
  49. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/sdt-translator.d.ts +0 -6
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@harbour-enterprises/superdoc",
3
3
  "type": "module",
4
- "version": "0.19.0-next.9",
4
+ "version": "0.19.0",
5
5
  "license": "AGPL-3.0",
6
6
  "readme": "../../README.md",
7
7
  "files": [
@@ -1,3 +0,0 @@
1
- export function transformListsInCopiedContent(html: string): string;
2
- export function getListStyleType(numFmt: any, lvlText: any): string;
3
- export function getLevel(node: any): number;
@@ -1,8 +0,0 @@
1
- export function handleSdtNode(params: any): {
2
- nodes: any[];
3
- consumed: number;
4
- };
5
- /**
6
- * @type {Object}
7
- */
8
- export const sdtNodeHandlerEntity: any;
@@ -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
- * @param {Object} params
3
- * @returns {Array|null}
4
- */
5
- export function handleDocPartObj(params: any): any[] | null;
6
- export function tableOfContentsHandler(params: 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,5 +0,0 @@
1
- /**
2
- * @param {Object} params
3
- * @returns {Object|null}
4
- */
5
- export function handleStructuredContentNode(params: any): any | null;
@@ -1,5 +0,0 @@
1
- /**
2
- * @param {string} json
3
- * @returns {Object}
4
- */
5
- export function parseTagValueJSON(json: string): any;
@@ -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,5 +0,0 @@
1
- /**
2
- * @param {Object} params - The parameters for translation.
3
- * @returns {Object} The XML representation.
4
- */
5
- export function translateStructuredContent(params: any): any;
@@ -1 +0,0 @@
1
- export * from "./sdt-translator";
@@ -1,6 +0,0 @@
1
- /** @type {import('@translator').NodeTranslatorConfig} */
2
- export const config: import("@translator").NodeTranslatorConfig;
3
- /**
4
- * @type {import('@translator').NodeTranslator}
5
- */
6
- export const translator: import("@translator").NodeTranslator;