@harbour-enterprises/superdoc 0.21.0-next.7 → 0.21.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-B8R1j6LP.es.js → PdfViewer-D3zo7tPo.es.js} +1 -1
- package/dist/chunks/{PdfViewer-DWWRw_re.cjs → PdfViewer-OZDJ7gwT.cjs} +1 -1
- package/dist/chunks/{index-Bpp8Ruyf.cjs → index-CfYf4T_z.cjs} +3 -4
- package/dist/chunks/{index-CLGEbkfW.es.js → index-MzW5BVNd.es.js} +3 -4
- package/dist/chunks/{super-editor.es-DWm41myg.es.js → super-editor.es-Bntob7Wd.es.js} +761 -1155
- package/dist/chunks/{super-editor.es-aBw27Tag.cjs → super-editor.es-U-GVCd_F.cjs} +761 -1155
- package/dist/core/types/index.d.ts +0 -8
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/style.css +27 -32
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-DYAHhSrg.js → converter-3xnF_NHq.js} +643 -773
- package/dist/super-editor/chunks/{docx-zipper-BDbCmfbE.js → docx-zipper-CZdELYi-.js} +1 -1
- package/dist/super-editor/chunks/{editor-VW8eKYoK.js → editor-BqYH4kDD.js} +2 -4
- package/dist/super-editor/chunks/{toolbar-B1up5fYV.js → toolbar-TkaE2kKM.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/slash-menu/menuItems.d.ts +1 -5
- package/dist/super-editor/src/components/slash-menu/utils.d.ts +2 -9
- package/dist/super-editor/src/extensions/run-item/index.d.ts +1 -0
- package/dist/super-editor/src/extensions/run-item/run-item.d.ts +26 -0
- package/dist/super-editor/src/tests/helpers/helpers.d.ts +0 -1
- package/dist/super-editor/style.css +0 -5
- package/dist/super-editor/super-editor.es.js +151 -452
- 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 +762 -1157
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/super-editor/src/components/slash-menu/tests/testHelpers.d.ts +0 -466
- package/dist/super-editor/src/core/commands/__tests__/schemaWithLists.d.ts +0 -2
- package/dist/super-editor/src/core/commands/__tests__/testHelpers.d.ts +0 -4
- package/dist/super-editor/src/core/commands/__tests__/testSchema.d.ts +0 -2
- package/dist/super-editor/src/core/commands/tests/commandTestUtils.d.ts +0 -7
- package/dist/super-editor/src/core/commands/tests/test-schema.d.ts +0 -2
- package/dist/super-editor/src/core/super-converter/v3/handlers/mc/altermateContent/alternate-content-translator.d.ts +0 -6
- package/dist/super-editor/src/core/super-converter/v3/handlers/mc/altermateContent/index.d.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as process$1, au as commonjsGlobal, B as Buffer, av as getDefaultExportFromCjs, aw as getContentTypesFromXml, ax as xmljs } from "./converter-
|
|
1
|
+
import { p as process$1, au as commonjsGlobal, B as Buffer, av as getDefaultExportFromCjs, aw as getContentTypesFromXml, ax as xmljs } from "./converter-3xnF_NHq.js";
|
|
2
2
|
function commonjsRequire(path) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -12,9 +12,9 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
12
12
|
var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _editor, _stateValidators, _xmlValidators, _requiredNodeTypes, _requiredMarkTypes, _SuperValidator_instances, initializeValidators_fn, collectValidatorRequirements_fn, analyzeDocument_fn, _commandService, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, registerCopyHandler_fn, insertNewFileData_fn, registerPluginByNameIfNotExists_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, createSchema_fn, generatePmData_fn, createView_fn, onCollaborationReady_fn, initComments_fn, initPagination_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, validateDocumentInit_fn, validateDocumentExport_fn, initDevTools_fn, _ListItemNodeView_instances, init_fn2, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn, _DocumentSectionView_instances, init_fn3, addToolTip_fn;
|
|
13
13
|
import * as Y from "yjs";
|
|
14
14
|
import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
|
|
15
|
-
import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as InputRule, ah as kebabCase, ai as findParentNodeClosestToPos, aj as getListItemStyleDefinitions, ak as docxNumberigHelpers, al as parseIndentElement, am as combineIndents, an as SelectionRange, ao as Transform, ap as isInTable$1, aq as generateDocxRandomId, ar as insertNewRelationship, as as updateDOMAttributes, at as htmlHandler } from "./converter-
|
|
15
|
+
import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as InputRule, ah as kebabCase, ai as findParentNodeClosestToPos, aj as getListItemStyleDefinitions, ak as docxNumberigHelpers, al as parseIndentElement, am as combineIndents, an as SelectionRange, ao as Transform, ap as isInTable$1, aq as generateDocxRandomId, ar as insertNewRelationship, as as updateDOMAttributes, at as htmlHandler } from "./converter-3xnF_NHq.js";
|
|
16
16
|
import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
|
|
17
|
-
import { D as DocxZipper } from "./docx-zipper-
|
|
17
|
+
import { D as DocxZipper } from "./docx-zipper-CZdELYi-.js";
|
|
18
18
|
var GOOD_LEAF_SIZE = 200;
|
|
19
19
|
var RopeSequence = function RopeSequence2() {
|
|
20
20
|
};
|
|
@@ -14562,8 +14562,6 @@ const _Editor = class _Editor extends EventEmitter {
|
|
|
14562
14562
|
element.style.isolation = "isolate";
|
|
14563
14563
|
proseMirror.style.outline = "none";
|
|
14564
14564
|
proseMirror.style.border = "none";
|
|
14565
|
-
element.style.backgroundColor = "#fff";
|
|
14566
|
-
proseMirror.style.backgroundColor = "#fff";
|
|
14567
14565
|
const { typeface, fontSizePt, fontFamilyCss } = this.converter.getDocumentDefaultStyles() ?? {};
|
|
14568
14566
|
const resolvedFontFamily = fontFamilyCss || typeface;
|
|
14569
14567
|
if (resolvedFontFamily) {
|
|
@@ -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-3xnF_NHq.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-BqYH4kDD.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-BqYH4kDD.js";
|
|
2
|
+
import "./chunks/converter-3xnF_NHq.js";
|
|
3
|
+
import "./chunks/docx-zipper-CZdELYi-.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -14,9 +14,7 @@
|
|
|
14
14
|
* requiresClipboard?: boolean
|
|
15
15
|
* requiresTableParent?: boolean
|
|
16
16
|
* requiredSectionParent?: boolean,
|
|
17
|
-
* requiresModule?: string
|
|
18
|
-
* render?: (context: Object) => HTMLElement,
|
|
19
|
-
* showWhen?: (context: Object) => boolean
|
|
17
|
+
* requiresModule?: string
|
|
20
18
|
* }>
|
|
21
19
|
* }>} Array of menu sections
|
|
22
20
|
*/
|
|
@@ -34,7 +32,5 @@ export function getItems(context: any): Array<{
|
|
|
34
32
|
requiresTableParent?: boolean;
|
|
35
33
|
requiredSectionParent?: boolean;
|
|
36
34
|
requiresModule?: string;
|
|
37
|
-
render?: (context: any) => HTMLElement;
|
|
38
|
-
showWhen?: (context: any) => boolean;
|
|
39
35
|
}>;
|
|
40
36
|
}>;
|
|
@@ -3,14 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @param {Object} editor - The editor instance
|
|
5
5
|
* @param {MouseEvent} [event] - Optional mouse event (for context menu)
|
|
6
|
-
* @returns {
|
|
6
|
+
* @returns {Object} context - { editor, selectedText, pos, node, event }
|
|
7
7
|
*/
|
|
8
|
-
export function getEditorContext(editor: any, event?: MouseEvent):
|
|
8
|
+
export function getEditorContext(editor: any, event?: MouseEvent): any;
|
|
9
9
|
export function getPropsByItemId(itemId: string, props: any): any;
|
|
10
|
-
declare function getStructureFromResolvedPos(state: any, pos: any): {
|
|
11
|
-
isInTable: boolean;
|
|
12
|
-
isInList: boolean;
|
|
13
|
-
isInSectionNode: boolean;
|
|
14
|
-
};
|
|
15
|
-
declare function isCollaborationEnabled(editor: any): boolean;
|
|
16
|
-
export { getStructureFromResolvedPos as __getStructureFromResolvedPosForTest, isCollaborationEnabled as __isCollaborationEnabledForTest };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./run-item.js";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for RunItem
|
|
3
|
+
* @typedef {Object} RunItemOptions
|
|
4
|
+
* @category Options
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Attributes for run nodes
|
|
8
|
+
* @typedef {Object} RunItemAttributes
|
|
9
|
+
* @category Attributes
|
|
10
|
+
* @property {Object} [attributes] @internal - Internal attributes storage
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* @module RunItem
|
|
14
|
+
* @sidebarTitle Run Item
|
|
15
|
+
* @snippetPath /snippets/extensions/run-item.mdx
|
|
16
|
+
*/
|
|
17
|
+
export const RunItem: Node;
|
|
18
|
+
/**
|
|
19
|
+
* Configuration options for RunItem
|
|
20
|
+
*/
|
|
21
|
+
export type RunItemOptions = any;
|
|
22
|
+
/**
|
|
23
|
+
* Attributes for run nodes
|
|
24
|
+
*/
|
|
25
|
+
export type RunItemAttributes = any;
|
|
26
|
+
import { Node } from '@core/index.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export function getTestDataByFileName(name: string): Promise<any>;
|
|
2
|
-
export function getExtractedDocxData(folderName: any): Promise<{}>;
|
|
3
2
|
export function getTestDataAsFileBuffer(name: any): Promise<Buffer<ArrayBufferLike>>;
|
|
4
3
|
export function loadTestDataForEditorTests(filename: string): Promise<[any, any, any, any]>;
|
|
5
4
|
export function initTestEditor(options?: any): Editor;
|
|
@@ -1748,11 +1748,6 @@ on the right if it is inside shape textbox.
|
|
|
1748
1748
|
height: 12px;
|
|
1749
1749
|
width: 12px;
|
|
1750
1750
|
}
|
|
1751
|
-
.slash-menu-custom-item {
|
|
1752
|
-
display: flex;
|
|
1753
|
-
align-items: center;
|
|
1754
|
-
width: 100%;
|
|
1755
|
-
}
|
|
1756
1751
|
.popover {
|
|
1757
1752
|
background: white;
|
|
1758
1753
|
border-radius: 6px;
|