@harbour-enterprises/superdoc 0.12.36 → 0.12.37-next.1
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/{eventemitter3-Dq2TEegt.es.js → eventemitter3-BrspJk8q.es.js} +1 -1
- package/dist/chunks/{eventemitter3-DuScojUH.cjs → eventemitter3-DfVviFzP.cjs} +1 -1
- package/dist/chunks/{index-CMBtuT02.cjs → index-B4J7wgs6.cjs} +2 -2
- package/dist/chunks/{index-B1MhwjTC.cjs → index-Cdsq63Xq.cjs} +4 -4
- package/dist/chunks/{index-SKpROzLW.es.js → index-Diu6UKHt.es.js} +4 -4
- package/dist/chunks/{index-BrSjd1Id.es.js → index-Hr3Um-Bg.es.js} +2 -2
- package/dist/chunks/{jszip-Bwu_om3F.cjs → jszip-BTAcmbVg.cjs} +1 -1
- package/dist/chunks/{jszip-BmWWPxfF.es.js → jszip-DckFs3A7.es.js} +1 -1
- package/dist/chunks/{super-editor.es-BtKVLpiq.es.js → super-editor.es-DYzhjqc5.es.js} +1767 -278
- package/dist/chunks/{super-editor.es-akFFn4Ld.cjs → super-editor.es-DmBtUqwe.cjs} +1767 -278
- package/dist/chunks/{url-DuggQ5JR.cjs → url-BIzg4y2i.cjs} +2 -2
- package/dist/chunks/{url-CAZQTNP3.es.js → url-CHayXMZH.es.js} +2 -2
- package/dist/chunks/{vue-IIIZMHTg.es.js → vue-Bi1uWinj.es.js} +17 -11
- package/dist/chunks/{vue-DPZkajuO.cjs → vue-HIY1g7dm.cjs} +17 -11
- package/dist/chunks/{xml-js-B7Vccv2s.cjs → xml-js-BjqmFOSP.cjs} +2 -2
- package/dist/chunks/{xml-js-BV-kCPOA.es.js → xml-js-CfClL-1b.es.js} +2 -2
- package/dist/core/SuperDoc.d.ts +0 -6
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/core/collaboration/collaboration.d.ts +0 -9
- package/dist/core/collaboration/collaboration.d.ts.map +1 -1
- package/dist/core/collaboration/helpers.d.ts.map +1 -1
- package/dist/style.css +36 -7
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BSl_E2ED.js → converter-ffnCghzo.js} +109 -10
- package/dist/super-editor/chunks/{docx-zipper-USmuqzmo.js → docx-zipper-BvIz98Bh.js} +1 -1
- package/dist/super-editor/chunks/{editor-C0hNf44Q.js → editor-BCC23g3q.js} +1687 -297
- package/dist/super-editor/chunks/{toolbar-IN0IJC2L.js → toolbar-BZxPbO0T.js} +2 -2
- package/dist/super-editor/components/pagination-helpers.d.ts.map +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/Attribute.d.ts +2 -2
- package/dist/super-editor/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/core/InputRule.d.ts +7 -0
- package/dist/super-editor/core/InputRule.d.ts.map +1 -1
- package/dist/super-editor/core/Schema.d.ts +2 -2
- package/dist/super-editor/core/helpers/findWordBounds.d.ts +5 -0
- package/dist/super-editor/core/helpers/findWordBounds.d.ts.map +1 -0
- package/dist/super-editor/core/helpers/setWordSelection.d.ts +2 -0
- package/dist/super-editor/core/helpers/setWordSelection.d.ts.map +1 -0
- package/dist/super-editor/core/inputRules/docx-paste/docx-paste.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/autoPageNumberImporter.d.ts.map +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts.map +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/extensions/field-annotation/FieldAnnotationView.d.ts.map +1 -1
- package/dist/super-editor/extensions/field-annotation/field-annotation.d.ts.map +1 -1
- package/dist/super-editor/extensions/page-number/page-number.d.ts +10 -0
- package/dist/super-editor/extensions/page-number/page-number.d.ts.map +1 -1
- package/dist/super-editor/extensions/pagination/pagination-helpers.d.ts +2 -1
- package/dist/super-editor/extensions/pagination/pagination-helpers.d.ts.map +1 -1
- package/dist/super-editor/extensions/pagination/pagination.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +36 -7
- package/dist/super-editor/super-editor.es.js +7 -7
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +1587 -366
- package/dist/superdoc.es.js +1572 -367
- package/dist/superdoc.umd.js +3325 -630
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +3 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, nextTick, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
|
|
2
|
-
import { x as process$1 } from "./converter-
|
|
3
|
-
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-
|
|
2
|
+
import { x as process$1 } from "./converter-ffnCghzo.js";
|
|
3
|
+
import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-BCC23g3q.js";
|
|
4
4
|
const sanitizeNumber = (value, defaultNumber) => {
|
|
5
5
|
let sanitized = value.replace(/[^0-9.]/g, "");
|
|
6
6
|
sanitized = parseFloat(sanitized);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination-helpers.d.ts","sourceRoot":"","sources":["../../src/components/pagination-helpers.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,mDAJW,WAAW,gBAET,IAAI,
|
|
1
|
+
{"version":3,"file":"pagination-helpers.d.ts","sourceRoot":"","sources":["../../src/components/pagination-helpers.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,mDAJW,WAAW,gBAET,IAAI,CAyBhB"}
|
|
@@ -15,14 +15,14 @@ export class Attribute {
|
|
|
15
15
|
* @param defaultAttribute Default attribute.
|
|
16
16
|
* @returns Global extension attributes.
|
|
17
17
|
*/
|
|
18
|
-
static "__#
|
|
18
|
+
static "__#6@#getGlobalAttributes"(extensions: any, defaultAttribute: any): any[];
|
|
19
19
|
/**
|
|
20
20
|
* Get a list of attributes defined in the Node and Mark extensions.
|
|
21
21
|
* @param extensions List of all extensions.
|
|
22
22
|
* @param defaultAttribute Default attribute.
|
|
23
23
|
* @returns Node and Mark extension attributes.
|
|
24
24
|
*/
|
|
25
|
-
static "__#
|
|
25
|
+
static "__#6@#getNodeAndMarksAttributes"(extensions: any, defaultAttribute: any): {
|
|
26
26
|
type: any;
|
|
27
27
|
name: string;
|
|
28
28
|
attribute: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/core/Editor.js"],"names":[],"mappings":"AA4BA;;;;GAIG;AAEH;;;;;GAKG;AACH;;;;;EAKE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AAEH;;;;GAIG;AACH;IAwqBE;;;;;;;;;;;;OAYG;IACH,+BARW,IAAI,GAAC,IAAI,GAAC,MAAM,WAChB,OAAO,GACL,OAAO,OAAO,CAc1B;IAED;;;;;OAKG;IACH,qCAFa,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,gDAHW,MAAM,OAMhB;IA0qBD;;;;;OAKG;IACH,2CAFa,OAAO,CAOnB;IA7xCD;;;;OAIG;IACH,qBAHW,aAAa,EAwBvB;IA/HD;;;OAGG;IACH,sBAAiB;IAEjB;;;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;;;;;;;;;;;;;iBAKN,MAAM;;;;;;;;eAEN,OAAO;;;;;;;;;;;;;;;;uBAIP,OAAO;;;;wBACP,OAAO;;;;gBACP,OAAO;;;;YACP,MAAM;;;;kBACN,OAAO;;;;iBACP,OAAO;;;;;;;;;;;;uBAGP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAsBP,OAAO;;;;mBACP,OAAO;;;;WACP,MAAM;;6BAnGS,mBAAmB"}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cleans and sanitizes HTML content by removing unnecessary tags, entities, and extra whitespace.
|
|
3
|
+
*
|
|
4
|
+
* @param {String} html The HTML string to be processed.
|
|
5
|
+
* @returns {String} The processed HTML string with em units converted to pt units.
|
|
6
|
+
*/
|
|
7
|
+
export function cleanHtmlUnnecessaryTags(html: string): string;
|
|
1
8
|
export class InputRule {
|
|
2
9
|
constructor(config: any);
|
|
3
10
|
match: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputRule.d.ts","sourceRoot":"","sources":["../../src/core/InputRule.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InputRule.d.ts","sourceRoot":"","sources":["../../src/core/InputRule.js"],"names":[],"mappings":"AAwSA;;;;;GAKG;AACH,+DAOC;AA3SD;IAIE,yBAGC;IAND,WAAM;IACN,aAAQ;CAMT;AAgHM;;;gBAyHN;AAkCM,oDASN;uBAtSiC,mBAAmB"}
|
|
@@ -16,7 +16,7 @@ export class Schema {
|
|
|
16
16
|
* @param editor Editor instance.
|
|
17
17
|
* @returns Nodes schema.
|
|
18
18
|
*/
|
|
19
|
-
static "__#
|
|
19
|
+
static "__#7@#createNodesSchema"(nodeExtensions: any, attributes: any, editor: any): {
|
|
20
20
|
[k: string]: any;
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
@@ -26,7 +26,7 @@ export class Schema {
|
|
|
26
26
|
* @param editor Editor instance.
|
|
27
27
|
* @returns Marks schema.
|
|
28
28
|
*/
|
|
29
|
-
static "__#
|
|
29
|
+
static "__#7@#createMarksSchema"(markExtensions: any, attributes: any, editor: any): {
|
|
30
30
|
[k: string]: any;
|
|
31
31
|
};
|
|
32
32
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findWordBounds.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/findWordBounds.js"],"names":[],"mappings":"AAMO;;;EAmBN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setWordSelection.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/setWordSelection.js"],"names":[],"mappings":"AAGO,4DAKN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docx-paste.d.ts","sourceRoot":"","sources":["../../../../src/core/inputRules/docx-paste/docx-paste.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"docx-paste.d.ts","sourceRoot":"","sources":["../../../../src/core/inputRules/docx-paste/docx-paste.js"],"names":[],"mappings":"AAaO,sCANI,MAAM,UACN,MAAM,+BAoDhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAwBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,
|
|
1
|
+
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAwBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAwCxB;AA+DD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AAs5DD;;;;;;;;;EAcC;AA+FD;IACE,4BAEC;IADC,eAA0B;IAG5B,gDAGC;;CAwEF;;;;;;;;;;;;;mBA5vEa,KAAQ;;;;;;UAKR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoPageNumberImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/autoPageNumberImporter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"autoPageNumberImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/autoPageNumberImporter.js"],"names":[],"mappings":"AAsBA;;GAEG;AACH,wCAGE;AAsBF;;GAEG;AACH,2CAGE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/listImporter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"listImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/listImporter.js"],"names":[],"mappings":"AAqUA;;;;;GAKG;AACH,kCAHW,OAAO,cACL,OAAO,CAkBnB;AAkND;;;;;;;GAOG;AACH,6DAJW,GAAG,QACH,UAAU;;;;;;;;;;;;;;;;;;;;EA8CpB;AAzlBD;;GAEG;AACH,iCA0CE;AAEF;;GAEG;AACH,oCAGE"}
|
|
@@ -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-BCC23g3q.js";
|
|
2
|
+
import "./chunks/converter-ffnCghzo.js";
|
|
3
|
+
import "./chunks/docx-zipper-BvIz98Bh.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldAnnotationView.d.ts","sourceRoot":"","sources":["../../../src/extensions/field-annotation/FieldAnnotationView.js"],"names":[],"mappings":"AAGA;IAmBE,0BAiBC;IAnCD,YAAO;IAEP,UAAK;IAEL,iBAAY;IAEZ,YAAO;IAEP,oBAAe;IAEf,SAAI;IAEJ,qBAAgB;IAEhB,4BAAuB;IAEvB,iBAAY;
|
|
1
|
+
{"version":3,"file":"FieldAnnotationView.d.ts","sourceRoot":"","sources":["../../../src/extensions/field-annotation/FieldAnnotationView.js"],"names":[],"mappings":"AAGA;IAmBE,0BAiBC;IAnCD,YAAO;IAEP,UAAK;IAEL,iBAAY;IAEZ,YAAO;IAEP,oBAAe;IAEf,SAAI;IAEJ,qBAAgB;IAEhB,4BAAuB;IAEvB,iBAAY;IAqOZ,wCAYC;IAED,8CAYC;IA/CD;;;aAmBC;IA9MD,kBAgBC;IAED,sBAQC;IAED,uBAwBC;IAED,2BA2BC;IAED,0BAQC;IAED,sBAeC;IAED,sBAqBC;IA4CD,6BAIC;IAED,6BAIC;IAmDD,+BAOC;IAID,kCAEC;IAED,uCAKC;IAED,gBAEC;IAED,wCAQC;;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-annotation.d.ts","sourceRoot":"","sources":["../../../src/extensions/field-annotation/field-annotation.js"],"names":[],"mappings":"AAQA,kCAAmC,iBAAiB,CAAC;AACrD,8BAA+B,YAAY,CAAC;AAC5C,qCAAsC,oBAAoB,CAAC;AAE3D,
|
|
1
|
+
{"version":3,"file":"field-annotation.d.ts","sourceRoot":"","sources":["../../../src/extensions/field-annotation/field-annotation.js"],"names":[],"mappings":"AAQA,kCAAmC,iBAAiB,CAAC;AACrD,8BAA+B,YAAY,CAAC;AAC5C,qCAAsC,oBAAoB,CAAC;AAE3D,kCA68BG"}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
export const PageNumber: any;
|
|
2
2
|
export const TotalPageCount: any;
|
|
3
|
+
export class AutoPageNumberNodeView {
|
|
4
|
+
constructor(node: any, getPos: any, decorations: any, editor: any, htmlAttributes?: {});
|
|
5
|
+
node: any;
|
|
6
|
+
editor: any;
|
|
7
|
+
view: any;
|
|
8
|
+
getPos: any;
|
|
9
|
+
dom: HTMLSpanElement;
|
|
10
|
+
update(node: any): boolean;
|
|
11
|
+
#private;
|
|
12
|
+
}
|
|
3
13
|
//# sourceMappingURL=page-number.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-number.d.ts","sourceRoot":"","sources":["../../../src/extensions/page-number/page-number.js"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"page-number.d.ts","sourceRoot":"","sources":["../../../src/extensions/page-number/page-number.js"],"names":[],"mappings":"AAEA,6BAyEG;AAEH,iCAoEG;AAGH;IACE,wFAQC;IAPC,UAAgB;IAChB,YAAoB;IACpB,UAAuB;IACvB,YAAoB;IAGpB,qBAAgD;IAmDlD,2BAIC;;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const PaginationPluginKey: PluginKey<any>;
|
|
2
2
|
export function initPaginationData(editor: SuperEditor): any;
|
|
3
|
-
export function createHeaderFooterEditor({ editor, data, editorContainer, appendToBody, sectionId, type, availableHeight }: {
|
|
3
|
+
export function createHeaderFooterEditor({ editor, data, editorContainer, appendToBody, sectionId, type, availableHeight, currentPageNumber, }: {
|
|
4
4
|
editor: any;
|
|
5
5
|
data: any;
|
|
6
6
|
editorContainer: any;
|
|
@@ -8,6 +8,7 @@ export function createHeaderFooterEditor({ editor, data, editorContainer, append
|
|
|
8
8
|
sectionId: any;
|
|
9
9
|
type: any;
|
|
10
10
|
availableHeight: any;
|
|
11
|
+
currentPageNumber: any;
|
|
11
12
|
}): any;
|
|
12
13
|
export function broadcastEditorEvents(editor: any, sectionEditor: any): void;
|
|
13
14
|
export function toggleHeaderFooterEditMode(editor: any, focusedSectionEditor: any, isEditMode: any): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination-helpers.d.ts","sourceRoot":"","sources":["../../../src/extensions/pagination/pagination-helpers.js"],"names":[],"mappings":"AAKA,iDAAqE;AAQ9D,2CAHI,WAAW,OAuCrB;AA8BM
|
|
1
|
+
{"version":3,"file":"pagination-helpers.d.ts","sourceRoot":"","sources":["../../../src/extensions/pagination/pagination-helpers.js"],"names":[],"mappings":"AAKA,iDAAqE;AAQ9D,2CAHI,WAAW,OAuCrB;AA8BM;;;;;;;;;QAqEN;AAEM,6EAeN;AAEM,0GAoBN;AAEM;;;8DAmBN;0BAhNyB,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/extensions/pagination/pagination.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/extensions/pagination/pagination.js"],"names":[],"mappings":"AAkBA,6BAsJG"}
|
|
@@ -798,6 +798,22 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
798
798
|
.sd-ai-highlight-pulse {
|
|
799
799
|
animation: ai-pulse 1.5s ease-in-out infinite;
|
|
800
800
|
}
|
|
801
|
+
.sd-editor-auto-page-number,
|
|
802
|
+
.sd-editor-auto-total-pages {
|
|
803
|
+
transition: all 250ms ease;
|
|
804
|
+
border-bottom: 1px solid #9A9A9A;
|
|
805
|
+
cursor: not-allowed;
|
|
806
|
+
}
|
|
807
|
+
.sd-editor-auto-page-numbe:hover,
|
|
808
|
+
.sd-editor-auto-total-pages:hover {
|
|
809
|
+
border-bottom: 1px solid #4f4f4f;
|
|
810
|
+
}
|
|
811
|
+
.sd-editor-auto-page-number-content {
|
|
812
|
+
pointer-events: none;
|
|
813
|
+
}
|
|
814
|
+
:root {
|
|
815
|
+
--sd-editor-separator-height: 18px;
|
|
816
|
+
}
|
|
801
817
|
.pagination-section-header {
|
|
802
818
|
cursor: default;
|
|
803
819
|
}
|
|
@@ -820,14 +836,24 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
|
|
|
820
836
|
.pagination-separator {
|
|
821
837
|
position: relative;
|
|
822
838
|
display: block;
|
|
823
|
-
height:
|
|
824
|
-
min-height:
|
|
839
|
+
height: var(--sd-editor-separator-height);
|
|
840
|
+
min-height: var(--sd-editor-separator-height);
|
|
825
841
|
min-width: 100%;
|
|
826
842
|
width: 100%;
|
|
827
843
|
border-top: 1px solid #DBDBDB;
|
|
828
844
|
border-bottom: 1px solid #DBDBDB;
|
|
829
845
|
cursor: default;
|
|
830
846
|
}
|
|
847
|
+
.pagination-separator--table {
|
|
848
|
+
border: 0;
|
|
849
|
+
}
|
|
850
|
+
.pagination-separator-floating {
|
|
851
|
+
position: absolute;
|
|
852
|
+
height: var(--sd-editor-separator-height);
|
|
853
|
+
border-top: 1px solid #DBDBDB;
|
|
854
|
+
border-bottom: 1px solid #DBDBDB;
|
|
855
|
+
pointer-events: none;
|
|
856
|
+
}
|
|
831
857
|
.pagination-inner {
|
|
832
858
|
position: absolute;
|
|
833
859
|
top: 0;
|
|
@@ -1482,7 +1508,10 @@ on the right if it is inside shape textbox.
|
|
|
1482
1508
|
user-select: none;
|
|
1483
1509
|
}
|
|
1484
1510
|
|
|
1485
|
-
.
|
|
1511
|
+
.editor-element[data-v-4b700df1] {
|
|
1512
|
+
position: relative;
|
|
1513
|
+
}
|
|
1514
|
+
.super-editor-container[data-v-4b700df1] {
|
|
1486
1515
|
width: auto;
|
|
1487
1516
|
height: auto;
|
|
1488
1517
|
min-width: 8in;
|
|
@@ -1491,13 +1520,13 @@ on the right if it is inside shape textbox.
|
|
|
1491
1520
|
display: flex;
|
|
1492
1521
|
flex-direction: column;
|
|
1493
1522
|
}
|
|
1494
|
-
.ruler[data-v-
|
|
1523
|
+
.ruler[data-v-4b700df1] {
|
|
1495
1524
|
margin-bottom: 2px;
|
|
1496
1525
|
}
|
|
1497
|
-
.super-editor[data-v-
|
|
1526
|
+
.super-editor[data-v-4b700df1] {
|
|
1498
1527
|
color: initial;
|
|
1499
1528
|
}
|
|
1500
|
-
.placeholder-editor[data-v-
|
|
1529
|
+
.placeholder-editor[data-v-4b700df1] {
|
|
1501
1530
|
position: absolute;
|
|
1502
1531
|
top: 0;
|
|
1503
1532
|
left: 0;
|
|
@@ -1509,7 +1538,7 @@ on the right if it is inside shape textbox.
|
|
|
1509
1538
|
background-color: white;
|
|
1510
1539
|
box-sizing: border-box;
|
|
1511
1540
|
}
|
|
1512
|
-
.placeholder-title[data-v-
|
|
1541
|
+
.placeholder-title[data-v-4b700df1] {
|
|
1513
1542
|
display: flex;
|
|
1514
1543
|
justify-content: center;
|
|
1515
1544
|
margin-bottom: 40px;
|
|
@@ -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 { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, e as undoDepth, r as redoDepth, E as Editor, h as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-
|
|
13
|
-
import { o, C, T, m, p, l, n } from "./chunks/editor-
|
|
14
|
-
import { a2 as getDefaultExportFromCjs, E as v4, a5 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-
|
|
15
|
-
import { O } from "./chunks/converter-
|
|
12
|
+
import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, I as ImagePlaceholderPluginKey, f as findPlaceholder, c as findParentNode, d as getActiveFormatting, i as isInTable, e as undoDepth, r as redoDepth, E as Editor, h as getStarterExtensions, P as Placeholder, j as getRichTextExtensions, M as Mark, k as Extension, A as Attribute, N as Node } from "./chunks/editor-BCC23g3q.js";
|
|
13
|
+
import { o, C, T, m, p, l, n } from "./chunks/editor-BCC23g3q.js";
|
|
14
|
+
import { a2 as getDefaultExportFromCjs, E as v4, a5 as vClickOutside, T as TextSelection, a as Plugin } from "./chunks/converter-ffnCghzo.js";
|
|
15
|
+
import { O } from "./chunks/converter-ffnCghzo.js";
|
|
16
16
|
import { ref, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, getCurrentInstance, computed, watch, onMounted, createCommentVNode, withDirectives, withKeys, withModifiers, vModelText, createTextVNode, toDisplayString, Fragment, renderList, normalizeStyle, createVNode, h, createApp, reactive, onUnmounted, shallowRef, onBeforeUnmount, createBlock } from "vue";
|
|
17
|
-
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-
|
|
17
|
+
import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, N as NSkeleton } from "./chunks/toolbar-BZxPbO0T.js";
|
|
18
18
|
import AIWriter from "./ai-writer.es.js";
|
|
19
|
-
import { D } from "./chunks/docx-zipper-
|
|
19
|
+
import { D } from "./chunks/docx-zipper-BvIz98Bh.js";
|
|
20
20
|
import { createZip } from "./file-zipper.es.js";
|
|
21
21
|
var eventemitter3 = { exports: {} };
|
|
22
22
|
(function(module) {
|
|
@@ -3394,7 +3394,7 @@ const _sfc_main$2 = {
|
|
|
3394
3394
|
};
|
|
3395
3395
|
}
|
|
3396
3396
|
};
|
|
3397
|
-
const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
3397
|
+
const SuperEditor = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-4b700df1"]]);
|
|
3398
3398
|
const _sfc_main$1 = {
|
|
3399
3399
|
__name: "BasicUpload",
|
|
3400
3400
|
emits: ["file-change"],
|
package/dist/super-editor.cjs
CHANGED
|
@@ -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-
|
|
4
|
-
require("./chunks/vue-
|
|
3
|
+
const superEditor_es = require("./chunks/super-editor.es-DmBtUqwe.cjs");
|
|
4
|
+
require("./chunks/vue-HIY1g7dm.cjs");
|
|
5
5
|
exports.AIWriter = superEditor_es.AIWriter;
|
|
6
6
|
exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
|
|
7
7
|
exports.BasicUpload = superEditor_es._sfc_main$1;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A, a, _, C, D, E, b, S, c, d, e, T, f, g, i, h, j, k, l, m, n, o } from "./chunks/super-editor.es-
|
|
2
|
-
import "./chunks/vue-
|
|
1
|
+
import { A, a, _, C, D, E, b, S, c, d, e, T, f, g, i, h, j, k, l, m, n, o } from "./chunks/super-editor.es-DYzhjqc5.es.js";
|
|
2
|
+
import "./chunks/vue-Bi1uWinj.es.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AIWriter,
|
|
5
5
|
a as AnnotatorHelpers,
|