@harbour-enterprises/superdoc 0.22.1 → 0.23.0-next.10

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 (77) hide show
  1. package/dist/chunks/{PdfViewer-D2BPnEBG.cjs → PdfViewer-BsnSIYxD.cjs} +2 -2
  2. package/dist/chunks/{PdfViewer-CBmOiHsj.es.js → PdfViewer-CPZ7QD5u.es.js} +2 -2
  3. package/dist/chunks/{eventemitter3-CZv6vEhA.es.js → eventemitter3-CR2eBWft.es.js} +1 -1
  4. package/dist/chunks/{eventemitter3-B_kO1Pxm.cjs → eventemitter3-DSRogsNq.cjs} +1 -1
  5. package/dist/chunks/{index-BSDcfSFc.es.js → index-Cd9h9gMj.es.js} +32 -22
  6. package/dist/chunks/{index-B0CI50e4.cjs → index-DOd9uvCv.cjs} +32 -22
  7. package/dist/chunks/{jszip-b7l8QkfH.cjs → jszip-B4LDL19y.cjs} +1 -1
  8. package/dist/chunks/{jszip-B8KIZSNe.es.js → jszip-DAXEPCUv.es.js} +1 -1
  9. package/dist/chunks/{super-editor.es-DOOwW-Iv.cjs → super-editor.es-DAS3_Nt9.cjs} +1786 -1085
  10. package/dist/chunks/{super-editor.es-BW1T3N2-.es.js → super-editor.es-l3dTZlZX.es.js} +1786 -1085
  11. package/dist/chunks/{vue-DWle4Cai.cjs → vue-DKMj1I9B.cjs} +39 -42
  12. package/dist/chunks/{vue-CXxsqYcP.es.js → vue-ZWZLQtoU.es.js} +39 -42
  13. package/dist/chunks/xml-js-Bbc0NeKa.es.js +2 -0
  14. package/dist/chunks/xml-js-CWV8R-ek.cjs +3 -0
  15. package/dist/core/SuperDoc.d.ts +5 -18
  16. package/dist/core/SuperDoc.d.ts.map +1 -1
  17. package/dist/core/types/index.d.ts +29 -1
  18. package/dist/core/types/index.d.ts.map +1 -1
  19. package/dist/stores/superdoc-store.d.ts.map +1 -1
  20. package/dist/style.css +76 -54
  21. package/dist/super-editor/ai-writer.es.js +2 -2
  22. package/dist/super-editor/chunks/{converter-UuZxU-p8.js → converter-ClnqoStR.js} +1476 -1043
  23. package/dist/super-editor/chunks/{docx-zipper-Bss48sB0.js → docx-zipper-DC28ucAi.js} +1 -1
  24. package/dist/super-editor/chunks/{editor--v3HbUU0.js → editor-B2aHhS9B.js} +310 -42
  25. package/dist/super-editor/chunks/{toolbar-BeXlvdV8.js → toolbar-Cgyf_4bW.js} +4 -4
  26. package/dist/super-editor/converter.es.js +1 -1
  27. package/dist/super-editor/docx-zipper.es.js +2 -2
  28. package/dist/super-editor/editor.es.js +3 -3
  29. package/dist/super-editor/file-zipper.es.js +1 -1
  30. package/dist/super-editor/src/core/Attribute.d.ts +2 -2
  31. package/dist/super-editor/src/core/Schema.d.ts +2 -2
  32. package/dist/super-editor/src/core/super-converter/exporter.d.ts +4 -4
  33. package/dist/super-editor/src/core/super-converter/field-references/fld-preprocessors/hyperlink-preprocessor.d.ts +9 -0
  34. package/dist/super-editor/src/core/super-converter/field-references/fld-preprocessors/index.d.ts +2 -0
  35. package/dist/super-editor/src/core/super-converter/field-references/fld-preprocessors/num-pages-preprocessor.d.ts +9 -0
  36. package/dist/super-editor/src/core/super-converter/field-references/fld-preprocessors/page-preprocessor.d.ts +9 -0
  37. package/dist/super-editor/src/core/super-converter/field-references/fld-preprocessors/page-ref-preprocessor.d.ts +9 -0
  38. package/dist/super-editor/src/core/super-converter/field-references/fld-preprocessors/toc-preprocessor.d.ts +8 -0
  39. package/dist/super-editor/src/core/super-converter/field-references/index.d.ts +1 -0
  40. package/dist/super-editor/src/core/super-converter/field-references/preProcessNodesForFldChar.d.ts +21 -0
  41. package/dist/super-editor/src/core/super-converter/v2/exporter/helpers/translateChildNodes.d.ts +3 -3
  42. package/dist/super-editor/src/core/super-converter/v2/importer/pageReferenceImporter.d.ts +4 -0
  43. package/dist/super-editor/src/core/super-converter/v2/importer/tableOfContentsImporter.d.ts +4 -0
  44. package/dist/super-editor/src/core/super-converter/v2/types/index.d.ts +7 -1
  45. package/dist/super-editor/src/core/super-converter/v3/handlers/sd/pageReference/index.d.ts +1 -0
  46. package/dist/super-editor/src/core/super-converter/v3/handlers/sd/pageReference/pageReference-translator.d.ts +7 -0
  47. package/dist/super-editor/src/core/super-converter/v3/handlers/sd/tableOfContents/index.d.ts +1 -0
  48. package/dist/super-editor/src/core/super-converter/v3/handlers/sd/tableOfContents/tableOfContents-translator.d.ts +10 -0
  49. package/dist/super-editor/src/core/super-converter/v3/handlers/w/caps/caps-translator.d.ts +7 -0
  50. package/dist/super-editor/src/core/super-converter/v3/handlers/w/p/helpers/w-p-helpers.d.ts +0 -2
  51. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/handle-doc-part-obj.d.ts +9 -1
  52. package/dist/super-editor/src/core/super-converter/v3/handlers/w/sdt/helpers/translate-document-part-obj.d.ts +6 -0
  53. package/dist/super-editor/src/core/super-converter/v3/node-translator/node-translator.d.ts +2 -2
  54. package/dist/super-editor/src/extensions/image/imageHelpers/handleBase64.d.ts +4 -0
  55. package/dist/super-editor/src/extensions/image/imageHelpers/imageRegistrationPlugin.d.ts +1 -0
  56. package/dist/super-editor/src/extensions/image/imageHelpers/startImageUpload.d.ts +5 -0
  57. package/dist/super-editor/src/extensions/page-reference/index.d.ts +1 -0
  58. package/dist/super-editor/src/extensions/page-reference/page-reference.d.ts +2 -0
  59. package/dist/super-editor/src/extensions/structured-content/document-part-object.d.ts +2 -0
  60. package/dist/super-editor/src/extensions/structured-content/index.d.ts +1 -0
  61. package/dist/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTagsByAlias.d.ts +8 -0
  62. package/dist/super-editor/src/extensions/structured-content/structuredContentHelpers/index.d.ts +1 -0
  63. package/dist/super-editor/src/extensions/tab/helpers/tabDecorations.d.ts +2 -2
  64. package/dist/super-editor/src/extensions/table-of-contents/index.d.ts +1 -0
  65. package/dist/super-editor/src/extensions/table-of-contents/table-of-contents.d.ts +2 -0
  66. package/dist/super-editor/style.css +49 -27
  67. package/dist/super-editor/super-editor.es.js +10 -8
  68. package/dist/super-editor/toolbar.es.js +2 -2
  69. package/dist/super-editor.cjs +2 -2
  70. package/dist/super-editor.es.js +2 -2
  71. package/dist/superdoc.cjs +4 -4
  72. package/dist/superdoc.es.js +4 -4
  73. package/dist/superdoc.umd.js +1846 -1135
  74. package/dist/superdoc.umd.js.map +1 -1
  75. package/package.json +1 -1
  76. package/dist/chunks/xml-js-CX8FH0He.cjs +0 -3
  77. package/dist/chunks/xml-js-D0tLGmKu.es.js +0 -2
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @typedef {Object} ExportParams
3
3
  * @property {Object} node JSON node to translate (from PM schema)
4
- * @property {Object} bodyNode The stored body node to restore, if available
5
- * @property {Object[]} relationships The relationships to add to the document
4
+ * @property {Object} [bodyNode] The stored body node to restore, if available
5
+ * @property {Object[]} [relationships] The relationships to add to the document
6
6
  */
7
7
  /**
8
8
  * @typedef {Object} SchemaNode
@@ -119,11 +119,11 @@ export type ExportParams = {
119
119
  /**
120
120
  * The stored body node to restore, if available
121
121
  */
122
- bodyNode: any;
122
+ bodyNode?: any;
123
123
  /**
124
124
  * The relationships to add to the document
125
125
  */
126
- relationships: any[];
126
+ relationships?: any[];
127
127
  };
128
128
  export type SchemaNode = {
129
129
  /**
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Processes a HYPERLINK instruction and creates a `w:hyperlink` node.
3
+ * @param {import('../../v2/types/index.js').OpenXmlNode[]} nodesToCombine The nodes to combine.
4
+ * @param {string} instruction The instruction text.
5
+ * @param {import('../../v2/docxHelper').ParsedDocx} [docx] - The docx object.
6
+ * @returns {import('../../v2/types/index.js').OpenXmlNode[]}
7
+ * @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 1216
8
+ */
9
+ export function preProcessHyperlinkInstruction(nodesToCombine: import("../../v2/types/index.js").OpenXmlNode[], instruction: string, docx?: import("../../v2/docxHelper").ParsedDocx): import("../../v2/types/index.js").OpenXmlNode[];
@@ -0,0 +1,2 @@
1
+ export function getInstructionPreProcessor(instruction: string): InstructionPreProcessor | null;
2
+ export type InstructionPreProcessor = (nodesToCombine: import("../../v2/types/index.js").OpenXmlNode[], instruction: string, docx?: import("../../v2/docxHelper").ParsedDocx) => import("../../v2/types/index.js").OpenXmlNode[];
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Processes a NUMPAGES instruction and creates a `sd:totalPageNumber` node.
3
+ * @param {import('../../v2/types/index.js').OpenXmlNode[]} nodesToCombine The nodes to combine.
4
+ * @param {string} _ The instruction text (unused).
5
+ * @param {import('../v2/docxHelper').ParsedDocx} [__] - The docx object.
6
+ * @returns {import('../../v2/types/index.js').OpenXmlNode[]}
7
+ * @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 1233
8
+ */
9
+ export function preProcessNumPagesInstruction(nodesToCombine: import("../../v2/types/index.js").OpenXmlNode[], _: string, __?: any): import("../../v2/types/index.js").OpenXmlNode[];
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Processes a PAGE instruction and creates a `sd:autoPageNumber` node.
3
+ * @param {import('../../v2/types/index.js').OpenXmlNode[]} nodesToCombine The nodes to combine.
4
+ * @param {string} _ The instruction text (unused).
5
+ * @param {import('../v2/docxHelper').ParsedDocx} [__] - The docx object.
6
+ * @returns {import('../../v2/types/index.js').OpenXmlNode[]}
7
+ * @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 1234
8
+ */
9
+ export function preProcessPageInstruction(nodesToCombine: import("../../v2/types/index.js").OpenXmlNode[], _: string, __?: any): import("../../v2/types/index.js").OpenXmlNode[];
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Processes a PAGEREF instruction and creates a `sd:pageReference` node.
3
+ * @param {import('../../v2/types/index.js').OpenXmlNode[]} nodesToCombine The nodes to combine.
4
+ * @param {string} instrText The instruction text.
5
+ * @param {import('../v2/docxHelper').ParsedDocx} [__] - The docx object.
6
+ * @returns {import('../../v2/types/index.js').OpenXmlNode[]}
7
+ * @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 1234
8
+ */
9
+ export function preProcessPageRefInstruction(nodesToCombine: import("../../v2/types/index.js").OpenXmlNode[], instrText: string, _: any): import("../../v2/types/index.js").OpenXmlNode[];
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Processes a TOC instruction and creates a `sd:tableOfContents` node.
3
+ * @param {import('../../v2/types/index.js').OpenXmlNode[]} nodesToCombine The nodes to combine.
4
+ * @param {string} instrText The instruction text.
5
+ * @returns {import('../../v2/types/index.js').OpenXmlNode[]}
6
+ * @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 1251
7
+ */
8
+ export function preProcessTocInstruction(nodesToCombine: import("../../v2/types/index.js").OpenXmlNode[], instrText: string): import("../../v2/types/index.js").OpenXmlNode[];
@@ -0,0 +1 @@
1
+ export * from "./preProcessNodesForFldChar.js";
@@ -0,0 +1,21 @@
1
+ export function preProcessNodesForFldChar(nodes?: OpenXmlNode[], docx?: import("../v2/docxHelper").ParsedDocx): FldCharProcessResult;
2
+ export type OpenXmlNode = import("../v2/types/index.js").OpenXmlNode;
3
+ export type FldCharProcessResult = {
4
+ /**
5
+ * - The list of nodes after processing.
6
+ */
7
+ processedNodes: OpenXmlNode[];
8
+ /**
9
+ * - If a field 'begin' was found without a matching 'end'. Contains the current field data.
10
+ */
11
+ unpairedBegin: Array<{
12
+ nodes: OpenXmlNode[];
13
+ fieldInfo: {
14
+ instrText: string;
15
+ };
16
+ }> | null;
17
+ /**
18
+ * - If a field 'end' was found without a matching 'begin'.
19
+ */
20
+ unpairedEnd: boolean | null;
21
+ };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Process child nodes, ignoring any that are not valid
3
3
  *
4
- * @param {SchemaNode[]} nodes The input nodes
5
- * @returns {XmlReadyNode[]} The processed child nodes
4
+ * @param {import('@converter/exporter').SchemaNode[]} nodes The input nodes
5
+ * @returns {import('@converter/exporter').XmlReadyNode[]} The processed child nodes
6
6
  */
7
- export function translateChildNodes(params: any): XmlReadyNode[];
7
+ export function translateChildNodes(params: any): import("@converter/exporter").XmlReadyNode[];
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @type {import("./docxImporter").NodeHandlerEntry}
3
+ */
4
+ export const pageReferenceEntity: import("./docxImporter").NodeHandlerEntry;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @type {import("./docxImporter").NodeHandlerEntry}
3
+ */
4
+ export const tableOfContentsHandlerEntity: import("./docxImporter").NodeHandlerEntry;
@@ -5,4 +5,10 @@ export type SuperDocNode = any;
5
5
  /**
6
6
  * Represents a node in the Open XML document structure.
7
7
  */
8
- export type OpenXmlNode = any;
8
+ export type OpenXmlNode = {
9
+ name: string;
10
+ type?: string;
11
+ attributes?: object;
12
+ elements?: OpenXmlNode[];
13
+ text?: string;
14
+ };
@@ -0,0 +1 @@
1
+ export * from "./pageReference-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 passthrough element.
5
+ * @type {import('@translator').NodeTranslator}
6
+ */
7
+ export const translator: import("@translator").NodeTranslator;
@@ -0,0 +1 @@
1
+ export * from "./tableOfContents-translator.js";
@@ -0,0 +1,10 @@
1
+ /** @type {import('@translator').NodeTranslatorConfig} */
2
+ export const config: import("@translator").NodeTranslatorConfig;
3
+ /**
4
+ * The NodeTranslator instance for the sd:tableOfContents element.
5
+ * This element represents a table of contents in a document and is added during
6
+ * preprocessing of w:fldChar elements
7
+ * @type {import('@translator').NodeTranslator}
8
+ * @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 1251
9
+ */
10
+ 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:caps element.
5
+ * @type {import('@translator').NodeTranslator}
6
+ */
7
+ export const translator: import("@translator").NodeTranslator;
@@ -2,5 +2,3 @@ export function parseParagraphBorders(pBdr: any): {};
2
2
  export function getParagraphIndent(node: any, docx: any, styleId?: string): any;
3
3
  export function getParagraphSpacing(node: any, docx: any, styleId?: string, marks?: any[], options?: {}): any;
4
4
  export function getDefaultParagraphStyle(docx: any, styleId?: string): any;
5
- export function preProcessNodesForFldChar(nodes?: any[]): any[];
6
- export function processCombinedNodesForFldChar(nodesToCombine?: any[]): any[];
@@ -3,4 +3,12 @@
3
3
  * @returns {Array|null}
4
4
  */
5
5
  export function handleDocPartObj(params: any): any[] | null;
6
- export function tableOfContentsHandler(params: any): any;
6
+ export function tableOfContentsHandler(params: any): {
7
+ type: string;
8
+ content: any;
9
+ attrs: {
10
+ id: any;
11
+ docPartGallery: string;
12
+ docPartUnique: boolean;
13
+ };
14
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Translate a document part object 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 translateDocumentPartObj(params: any): any;
@@ -40,7 +40,7 @@ export const TranslatorTypes: Readonly<{
40
40
  * @callback NodeTranslatorDecodeFn
41
41
  * @param {SCDecoderConfig} params
42
42
  * @param {DecodedAttributes} [decodedAttrs]
43
- * @returns {import('../../v2/types').OpenXmlNode}
43
+ * @returns {import('../../v2/types').OpenXmlNode | import('../../v2/types').OpenXmlNode[]}
44
44
  */
45
45
  /** @callback MatchesEncodeFn @param {any[]} nodes @param {any} [ctx] @returns {boolean} */
46
46
  /** @callback MatchesDecodeFn @param {any} node @param {any} [ctx] @returns {boolean} */
@@ -170,7 +170,7 @@ export type SCDecoderResult = {
170
170
  elements: any[];
171
171
  };
172
172
  export type NodeTranslatorEncodeFn = (params: SCEncoderConfig, encodedAttrs?: EncodedAttributes) => import("../../v2/types").SuperDocNode;
173
- export type NodeTranslatorDecodeFn = (params: SCDecoderConfig, decodedAttrs?: DecodedAttributes) => import("../../v2/types").OpenXmlNode;
173
+ export type NodeTranslatorDecodeFn = (params: SCDecoderConfig, decodedAttrs?: DecodedAttributes) => import("../../v2/types").OpenXmlNode | import("../../v2/types").OpenXmlNode[];
174
174
  export type MatchesEncodeFn = (nodes: any[], ctx?: any) => boolean;
175
175
  export type MatchesDecodeFn = (node: any, ctx?: any) => boolean;
176
176
  export type EncodedAttributes = any;
@@ -1 +1,5 @@
1
+ export function getBase64FileMeta(base64String: any): {
2
+ mimeType: any;
3
+ filename: any;
4
+ };
1
5
  export function base64ToFile(base64String: any): File;
@@ -3,6 +3,7 @@ export function ImageRegistrationPlugin({ editor }: {
3
3
  }): Plugin<{
4
4
  set: DecorationSet;
5
5
  }>;
6
+ export function handleNodePath(foundImages: any[], editor: any, state: import("prosemirror-state").EditorState): import("prosemirror-state").Transaction;
6
7
  export function findPlaceholder(state: any, id: any): any;
7
8
  export function removeImagePlaceholder(state: any, tr: any, id: any): any;
8
9
  export function addImagePlaceholder(state: any, tr: any, id: any, pos: any): any;
@@ -10,6 +10,10 @@ export function uploadAndInsertImage({ editor, view, file, size, id }: {
10
10
  size: any;
11
11
  id: any;
12
12
  }): Promise<void>;
13
+ export function addImageRelationship({ editor, path }: {
14
+ editor: any;
15
+ path: any;
16
+ }): string;
13
17
  export function checkAndProcessImage({ getMaxContentSize, file }: {
14
18
  getMaxContentSize: any;
15
19
  file: any;
@@ -20,3 +24,4 @@ export function checkAndProcessImage({ getMaxContentSize, file }: {
20
24
  height: any;
21
25
  };
22
26
  }>;
27
+ export function generateUniqueDocPrId(editor: any): string;
@@ -0,0 +1 @@
1
+ export * from "./page-reference.js";
@@ -0,0 +1,2 @@
1
+ export const PageReference: Node;
2
+ import { Node } from '@core/index.js';
@@ -0,0 +1,2 @@
1
+ export const DocumentPartObject: Node;
2
+ import { Node } from '@core/index.js';
@@ -2,3 +2,4 @@ export * from "./structured-content.js";
2
2
  export * from "./structured-content-block.js";
3
3
  export * from "./structured-content-commands.js";
4
4
  export * from "./document-section.js";
5
+ export * from "./document-part-object.js";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Gets structured content tags by alias in the state.
3
+ * @param {string | string[]} aliasOrAliases
4
+ * @param {EditorState} state Editor state.
5
+ * @returns {Array}
6
+ */
7
+ export function getStructuredContentTagsByAlias(aliasOrAliases: string | string[], state: EditorState): any[];
8
+ import { EditorState } from 'prosemirror-state';
@@ -2,3 +2,4 @@ export * from "./getStructuredContentTags";
2
2
  export * from "./getStructuredContentInlineTags";
3
3
  export * from "./getStructuredContentBlockTags";
4
4
  export * from "./getStructuredContentTagsById";
5
+ export * from "./getStructuredContentTagsByAlias";
@@ -1,4 +1,4 @@
1
- export function getParagraphContext($pos: any, cache: any): any;
1
+ export function getParagraphContext($pos: any, cache: any, helpers: any): any;
2
2
  export function flattenParagraph(paragraph: any, paragraphStartPos: any): any[];
3
3
  export function findNextTabIndex(flattened: any, fromIndex: any): any;
4
4
  export function findDecimalBreakPos(flattened: any, startIndex: any, breakChar: any): any;
@@ -9,4 +9,4 @@ export function getLeftCoord(view: any, pos: any): any;
9
9
  export function calcTabHeight(pos: any): string;
10
10
  export const defaultTabDistance: 48;
11
11
  export const defaultLineLength: 816;
12
- export function getTabDecorations(doc: any, view: any, from?: number, to?: any): any[];
12
+ export function getTabDecorations(doc: any, view: any, helpers: any, from?: number, to?: any): any[];
@@ -0,0 +1 @@
1
+ export * from "./table-of-contents.js";
@@ -0,0 +1,2 @@
1
+ export const TableOfContents: Node;
2
+ import { Node } from '@core/index.js';
@@ -64,20 +64,20 @@
64
64
  width: 16px;
65
65
  }
66
66
 
67
- .toolbar-item[data-v-303b3245] {
67
+ .toolbar-item[data-v-cea02a58] {
68
68
  position: relative;
69
69
  z-index: 1;
70
70
  min-width: 30px;
71
71
  margin: 0 1px;
72
72
  }
73
- .visually-hidden[data-v-303b3245] {
73
+ .visually-hidden[data-v-cea02a58] {
74
74
  position: absolute;
75
75
  left: -9999px;
76
76
  height: 1px;
77
77
  width: 1px;
78
78
  overflow: hidden;
79
79
  }
80
- .toolbar-button[data-v-303b3245] {
80
+ .toolbar-button[data-v-cea02a58] {
81
81
  padding: 5px;
82
82
  height: 32px;
83
83
  max-height: 32px;
@@ -93,21 +93,21 @@
93
93
  position: relative;
94
94
  box-sizing: border-box;
95
95
  }
96
- .toolbar-button[data-v-303b3245]:hover {
96
+ .toolbar-button[data-v-cea02a58]:hover {
97
97
  background-color: #dbdbdb;
98
98
  }
99
- .toolbar-button:hover .toolbar-icon.high-contrast[data-v-303b3245] {
99
+ .toolbar-button:hover .toolbar-icon.high-contrast[data-v-cea02a58] {
100
100
  color: #fff;
101
101
  }
102
- .toolbar-button:hover.high-contrast[data-v-303b3245] {
102
+ .toolbar-button:hover.high-contrast[data-v-cea02a58] {
103
103
  background-color: #000;
104
104
  color: #fff;
105
105
  }
106
- .toolbar-button[data-v-303b3245]:active,
107
- .active[data-v-303b3245] {
106
+ .toolbar-button[data-v-cea02a58]:active,
107
+ .active[data-v-cea02a58] {
108
108
  background-color: #c8d0d8;
109
109
  }
110
- .button-label[data-v-303b3245] {
110
+ .button-label[data-v-cea02a58] {
111
111
  overflow: hidden;
112
112
  width: 100%;
113
113
  text-align: center;
@@ -117,37 +117,37 @@
117
117
  font-size: 15px;
118
118
  margin: 5px;
119
119
  }
120
- .toolbar-icon + .dropdown-caret[data-v-303b3245] {
120
+ .toolbar-icon + .dropdown-caret[data-v-cea02a58] {
121
121
  margin-left: 4px;
122
122
  }
123
- .left[data-v-303b3245],
124
- .right[data-v-303b3245] {
123
+ .left[data-v-cea02a58],
124
+ .right[data-v-cea02a58] {
125
125
  width: 50%;
126
126
  height: 100%;
127
127
  background-color: #dbdbdb;
128
128
  border-radius: 60%;
129
129
  }
130
- .has-inline-text-input[data-v-303b3245]:hover {
130
+ .has-inline-text-input[data-v-cea02a58]:hover {
131
131
  cursor: text;
132
132
  }
133
- .disabled[data-v-303b3245] {
133
+ .disabled[data-v-cea02a58] {
134
134
  cursor: default;
135
135
  }
136
- .disabled[data-v-303b3245]:hover {
136
+ .disabled[data-v-cea02a58]:hover {
137
137
  cursor: default;
138
138
  background-color: initial;
139
139
  }
140
- .disabled .toolbar-icon[data-v-303b3245],
141
- .disabled .caret[data-v-303b3245],
142
- .disabled .button-label[data-v-303b3245] {
140
+ .disabled .toolbar-icon[data-v-cea02a58],
141
+ .disabled .caret[data-v-cea02a58],
142
+ .disabled .button-label[data-v-cea02a58] {
143
143
  opacity: 0.35;
144
144
  }
145
- .caret[data-v-303b3245] {
145
+ .caret[data-v-cea02a58] {
146
146
  font-size: 1em;
147
147
  padding-left: 2px;
148
148
  padding-right: 2px;
149
149
  }
150
- .button-text-input[data-v-303b3245] {
150
+ .button-text-input[data-v-cea02a58] {
151
151
  color: #47484a;
152
152
  border-radius: 4px;
153
153
  text-align: center;
@@ -161,13 +161,13 @@
161
161
  border: 1px solid #d8dee5;
162
162
  box-sizing: border-box;
163
163
  }
164
- .button-text-input.high-contrast[data-v-303b3245] {
164
+ .button-text-input.high-contrast[data-v-cea02a58] {
165
165
  background-color: #fff;
166
166
  }
167
- .button-text-input[data-v-303b3245]::placeholder {
167
+ .button-text-input[data-v-cea02a58]::placeholder {
168
168
  color: #47484a;
169
169
  }
170
- .dropdown-caret[data-v-303b3245] {
170
+ .dropdown-caret[data-v-cea02a58] {
171
171
  display: inline-flex;
172
172
  align-items: center;
173
173
  justify-content: center;
@@ -177,16 +177,16 @@
177
177
  height: 10px;
178
178
  }
179
179
  @media (max-width: 1280px) {
180
- .toolbar-item--doc-mode .button-label[data-v-303b3245] {
180
+ .toolbar-item--doc-mode .button-label[data-v-cea02a58] {
181
181
  display: none;
182
182
  }
183
- .toolbar-item--doc-mode .toolbar-icon[data-v-303b3245] {
183
+ .toolbar-item--doc-mode .toolbar-icon[data-v-cea02a58] {
184
184
  margin-right: 5px;
185
185
  }
186
- .toolbar-item--linked-styles[data-v-303b3245] {
186
+ .toolbar-item--linked-styles[data-v-cea02a58] {
187
187
  width: auto !important;
188
188
  }
189
- .toolbar-item--linked-styles .button-label[data-v-303b3245] {
189
+ .toolbar-item--linked-styles .button-label[data-v-cea02a58] {
190
190
  display: none;
191
191
  }
192
192
  }
@@ -422,6 +422,9 @@ to {
422
422
  a {
423
423
  text-decoration: auto;
424
424
  }
425
+ .super-editor a {
426
+ color: initial;
427
+ }
425
428
  /**
426
429
  * Basic ProseMirror styles.
427
430
  * https://github.com/ProseMirror/prosemirror-view/blob/master/style/prosemirror.css
@@ -1120,6 +1123,13 @@ on the right if it is inside shape textbox.
1120
1123
  white-space: nowrap;
1121
1124
  text-overflow: ellipsis;
1122
1125
  }
1126
+ .ProseMirror.view-mode .sd-document-section-block {
1127
+ background: none;
1128
+ border: none;
1129
+ }
1130
+ .ProseMirror.view-mode .sd-document-section-block-info {
1131
+ display: none;
1132
+ }
1123
1133
  .sd-structured-content,
1124
1134
  .sd-structured-content-block {
1125
1135
  padding: 1px;
@@ -1128,6 +1138,10 @@ on the right if it is inside shape textbox.
1128
1138
  border: 1px solid #629be7;
1129
1139
  position: relative;
1130
1140
  }
1141
+ .sd-structured-content:has(img),
1142
+ .sd-structured-content:has(img) .sd-structured-content__content {
1143
+ display: inline-block;
1144
+ }
1131
1145
  .sd-structured-content-draggable {
1132
1146
  font-size: 10px;
1133
1147
  align-items: center;
@@ -1159,6 +1173,14 @@ on the right if it is inside shape textbox.
1159
1173
  .sd-structured-content-block:hover .sd-structured-content-draggable {
1160
1174
  display: inline-flex;
1161
1175
  }
1176
+ .ProseMirror.view-mode .sd-structured-content,
1177
+ .ProseMirror.view-mode .sd-structured-content-block {
1178
+ padding: 0;
1179
+ border: none;
1180
+ }
1181
+ .ProseMirror.view-mode .sd-structured-content-draggable {
1182
+ display: none;
1183
+ }
1162
1184
 
1163
1185
  .alignment-buttons[data-v-d84f57b6] {
1164
1186
  display: flex;
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
9
9
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
10
10
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
11
11
  var _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, runCommandWithArgumentOnly_fn;
12
- import { ax as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aA as vClickOutside, H as findParentNode, aB as getActiveFormatting, at as isInTable, aC as readFromClipboard, aD as handleClipboardPaste, aE as getFileObject, aF as runPropertyTranslators, aG as translator, aH as translator$1, aI as translator$2, aJ as translator$3, aK as translator$4, aL as translator$5, aM as translator$6, aN as translator$7, aO as translator$8, aP as translator$9, aQ as translator$a, aR as translator$b, aS as translator$c, aT as translator$d, aU as translator$e, aV as translator$f, aW as translator$g, aX as translator$h, aY as translator$i, aZ as translator$j, a_ as translator$k, a$ as translator$l, b0 as translator$m, b1 as translator$n, b2 as translator$o, b3 as translator$p, b4 as translator$q, b5 as translator$r, b6 as translator$s, b7 as translator$t, b8 as translator$u, b9 as translator$v, ba as translator$w, bb as translator$x, bc as translator$y, bd as translator$z, be as translator$A, bf as translator$B, bg as translator$C, bh as translator$D, bi as translator$E, bj as translator$F, bk as translator$G, bl as translator$H, bm as translator$I, bn as translator$J, bo as translator$K, bp as translator$L, bq as translator$M, br as translator$N, bs as translator$O, bt as translator$P, bu as translator$Q, bv as translator$R, bw as translator$S, bx as translator$T, by as translator$U, bz as translator$V, bA as translator$W, bB as translator$X, bC as translator$Y, bD as translator$Z, bE as translator$_, bF as translator$$, bG as translator$10, a as Plugin } from "./chunks/converter-UuZxU-p8.js";
13
- import { bH, a5, i, a2 } from "./chunks/converter-UuZxU-p8.js";
14
- import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, y as yUndoPluginKey, f as undoDepth, h as redoDepth, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, i as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor--v3HbUU0.js";
15
- import { n, C, o, T, l, p, m } from "./chunks/editor--v3HbUU0.js";
12
+ import { ax as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aA as vClickOutside, H as findParentNode, aB as getActiveFormatting, at as isInTable, aC as readFromClipboard, aD as handleClipboardPaste, aE as getFileObject, aF as runPropertyTranslators, aG as translator, aH as translator$1, aI as translator$2, aJ as translator$3, aK as translator$4, aL as translator$5, aM as translator$6, aN as translator$7, aO as translator$8, aP as translator$9, aQ as translator$a, aR as translator$b, aS as translator$c, aT as translator$d, aU as translator$e, aV as translator$f, aW as translator$g, aX as translator$h, aY as translator$i, aZ as translator$j, a_ as translator$k, a$ as translator$l, b0 as translator$m, b1 as translator$n, b2 as translator$o, b3 as translator$p, b4 as translator$q, b5 as translator$r, b6 as translator$s, b7 as translator$t, b8 as translator$u, b9 as translator$v, ba as translator$w, bb as translator$x, bc as translator$y, bd as translator$z, be as translator$A, bf as translator$B, bg as translator$C, bh as translator$D, bi as translator$E, bj as translator$F, bk as translator$G, bl as translator$H, bm as translator$I, bn as translator$J, bo as translator$K, bp as translator$L, bq as translator$M, br as translator$N, bs as translator$O, bt as translator$P, bu as translator$Q, bv as translator$R, bw as translator$S, bx as translator$T, by as translator$U, bz as translator$V, bA as translator$W, bB as translator$X, bC as translator$Y, bD as translator$Z, bE as translator$_, bF as translator$$, bG as translator$10, bH as translator$11, bI as translator$12, a as Plugin } from "./chunks/converter-ClnqoStR.js";
13
+ import { bJ, a5, i, a2 } from "./chunks/converter-ClnqoStR.js";
14
+ import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, y as yUndoPluginKey, f as undoDepth, h as redoDepth, s as shouldBypassContextMenu, S as SlashMenuPluginKey, E as Editor, i as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-B2aHhS9B.js";
15
+ import { n, C, o, T, l, p, m } from "./chunks/editor-B2aHhS9B.js";
16
16
  import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, reactive, onUnmounted, renderSlot, shallowRef, createBlock, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
17
- import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-BeXlvdV8.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, m as magicWandIcon, p as plusIconSvg, a as trashIconSvg, l as linkIconSvg, b as tableIconSvg, c as scissorsIconSvg, d as copyIconSvg, e as pasteIconSvg, f as borderNoneIconSvg, g as arrowsToDotIconSvg, h as arrowsLeftRightIconSvg, w as wrenchIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-Cgyf_4bW.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-Bss48sB0.js";
19
+ import { D } from "./chunks/docx-zipper-DC28ucAi.js";
20
20
  import { createZip } from "./file-zipper.es.js";
21
21
  var eventemitter3 = { exports: {} };
22
22
  var hasRequiredEventemitter3;
@@ -4915,7 +4915,9 @@ const _sfc_main = {
4915
4915
  };
4916
4916
  const SuperInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4d5cff52"]]);
4917
4917
  const additionalHandlers = Object.freeze({
4918
- "mc:AlternateContent": translator$10,
4918
+ "mc:AlternateContent": translator$12,
4919
+ "sd:pageReference": translator$11,
4920
+ "sd:tableOfContents": translator$10,
4919
4921
  "w:b": translator$$,
4920
4922
  "w:bidiVisual": translator$_,
4921
4923
  "w:bookmarkEnd": translator$Z,
@@ -4996,7 +4998,7 @@ const Extensions = {
4996
4998
  export {
4997
4999
  AIWriter,
4998
5000
  n as AnnotatorHelpers,
4999
- bH as BasicUpload,
5001
+ bJ as BasicUpload,
5000
5002
  C as CommentsPluginKey,
5001
5003
  D as DocxZipper,
5002
5004
  Editor,
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-BeXlvdV8.js";
3
- import "./chunks/editor--v3HbUU0.js";
2
+ import { T } from "./chunks/toolbar-Cgyf_4bW.js";
3
+ import "./chunks/editor-B2aHhS9B.js";
4
4
  export {
5
5
  T as default
6
6
  };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-DOOwW-Iv.cjs");
4
- require("./chunks/vue-DWle4Cai.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-DAS3_Nt9.cjs");
4
+ require("./chunks/vue-DKMj1I9B.cjs");
5
5
  exports.AIWriter = superEditor_es.AIWriter;
6
6
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
7
7
  exports.BasicUpload = superEditor_es._sfc_main;
@@ -1,5 +1,5 @@
1
- import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-BW1T3N2-.es.js";
2
- import "./chunks/vue-CXxsqYcP.es.js";
1
+ import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-l3dTZlZX.es.js";
2
+ import "./chunks/vue-ZWZLQtoU.es.js";
3
3
  export {
4
4
  A as AIWriter,
5
5
  a as AnnotatorHelpers,
package/dist/superdoc.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-DOOwW-Iv.cjs");
4
- const superdoc = require("./chunks/index-B0CI50e4.cjs");
5
- require("./chunks/vue-DWle4Cai.cjs");
6
- require("./chunks/jszip-b7l8QkfH.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-DAS3_Nt9.cjs");
4
+ const superdoc = require("./chunks/index-DOd9uvCv.cjs");
5
+ require("./chunks/vue-DKMj1I9B.cjs");
6
+ require("./chunks/jszip-B4LDL19y.cjs");
7
7
  const blankDocx = require("./chunks/blank-docx-CPqX9RF5.cjs");
8
8
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
9
9
  exports.Editor = superEditor_es.Editor;
@@ -1,7 +1,7 @@
1
- import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-BW1T3N2-.es.js";
2
- import { D, H, P, S as S2, m, l } from "./chunks/index-BSDcfSFc.es.js";
3
- import "./chunks/vue-CXxsqYcP.es.js";
4
- import "./chunks/jszip-B8KIZSNe.es.js";
1
+ import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-l3dTZlZX.es.js";
2
+ import { D, H, P, S as S2, m, l } from "./chunks/index-Cd9h9gMj.es.js";
3
+ import "./chunks/vue-ZWZLQtoU.es.js";
4
+ import "./chunks/jszip-DAXEPCUv.es.js";
5
5
  import { B } from "./chunks/blank-docx-iwdyG9RH.es.js";
6
6
  export {
7
7
  a as AnnotatorHelpers,