@harbour-enterprises/superdoc 0.6.6 → 0.6.8
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/{super-editor.es-BL0SUzqA.js → super-editor.es-C2Mpe7zw.js} +371 -223
- package/dist/chunks/{super-editor.es-BL0SUzqA.js.map → super-editor.es-C2Mpe7zw.js.map} +1 -1
- package/dist/style.css +63 -52
- package/dist/super-editor/chunks/{converter-Db6kOZVK.js → converter-D38BagOs.js} +54 -7
- package/dist/super-editor/chunks/{converter-Db6kOZVK.js.map → converter-D38BagOs.js.map} +1 -1
- package/dist/super-editor/chunks/{docx-zipper-CU9-L2k_.js → docx-zipper-OU0T3wnQ.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-CU9-L2k_.js.map → docx-zipper-OU0T3wnQ.js.map} +1 -1
- package/dist/super-editor/chunks/{editor-DDFPZgN6.js → editor-DFibABN8.js} +5 -5
- package/dist/super-editor/chunks/{editor-DDFPZgN6.js.map → editor-DFibABN8.js.map} +1 -1
- package/dist/super-editor/chunks/{toolbar-B1D1-QVR.js → toolbar-D5mDT387.js} +12 -6
- package/dist/super-editor/chunks/toolbar-D5mDT387.js.map +1 -0
- package/dist/super-editor/components/toolbar/color-dropdown-helpers.d.ts +15 -0
- package/dist/super-editor/components/toolbar/color-dropdown-helpers.d.ts.map +1 -0
- package/dist/super-editor/components/toolbar/defaultItems.d.ts.map +1 -1
- package/dist/super-editor/components/toolbar/super-toolbar.d.ts +1 -0
- package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
- package/dist/super-editor/components/toolbar/toolbarIcons.d.ts +1 -0
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/SuperConverter.d.ts +1 -0
- package/dist/super-editor/core/super-converter/SuperConverter.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/helpers.d.ts +2 -0
- package/dist/super-editor/core/super-converter/helpers.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/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +63 -52
- package/dist/super-editor/super-editor.es.js +303 -208
- package/dist/super-editor/super-editor.es.js.map +1 -1
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.es.js +3 -3
- package/package.json +1 -1
- package/dist/super-editor/chunks/toolbar-B1D1-QVR.js.map +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function makeColorOption(color: any, label?: any): {
|
|
2
|
+
label: any;
|
|
3
|
+
icon: any;
|
|
4
|
+
value: any;
|
|
5
|
+
style: {
|
|
6
|
+
color: any;
|
|
7
|
+
boxShadow: string;
|
|
8
|
+
borderRadius: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export function renderColorOptions(superToolbar: any, button: any, customIcons?: any[]): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}>;
|
|
14
|
+
export function getAvailableColorOptions(): any[];
|
|
15
|
+
//# sourceMappingURL=color-dropdown-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-dropdown-helpers.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/color-dropdown-helpers.js"],"names":[],"mappings":"AASO;;;;;;;;;EAWN;AAEM;;GAeN;AAoFM,kDAEN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultItems.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/defaultItems.js"],"names":[],"mappings":"AAgBO;;;
|
|
1
|
+
{"version":3,"file":"defaultItems.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/defaultItems.js"],"names":[],"mappings":"AAgBO;;;EAowBN;AAEM;;;WAWJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"super-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar/super-toolbar.js"],"names":[],"mappings":"AAcA;IAgKE,yBAiCC;IAhMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOE;IA4JA,oBAAsB;IACtB,qBAAuB;IACvB,qBAA6B;IAC7B,WAAkC;IAClC,cAA+B;IAC/B,UAAmC;IAkBnC,gCAA6B;IAGrB,uQAAiC;IACzC,kBAAyC;IAI3C,0BAEC;IAED,gCAKC;IAED;;;OAGG;IACH,wBAFW,GAAC,QAKX;IAED,6CAEC;IA+CD;;;OAGG;IACH,2BAmCC;IAED,4BAEE;IAaA,eAAmD;IACnD,eAAmD;IAGrD;;OAEG;IACH;;;aAGC;IAED;;;;;OAKG;IACH,0CAoBC;;CAYF;yBAhYwB,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAUA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"SuperConverter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/SuperConverter.js"],"names":[],"mappings":"AAUA;IACE;;;;;;;;;;;;;;;;;;OAuBG;IAEH;;;;;;;;;;SAiBE;IAEF;;;;;;OAMG;IAEH,6BAAsF;IA6EtF,gDAoBC;IAED,6DAqBC;IAtHD,0BAuDC;IArDC,WAAmC;IAGnC,iBAAuB;IACvB,wBAA8B;IAG9B,iBAAsB;IACtB,UAA8B;IAC9B,WAAgC;IAEhC,eAAoB;IACpB,gBAAkB;IAGlB,4BAAoC;IAGpC,SAAsB;IAItB,eAAqB;IACrB,gBAAsB;IAGtB,iBAAuB;IAGvB,YAAiB;IACjB;;;;;MAAsE;IACtE,YAAiB;IACjB;;;;;MAAsE;IAGtE,oBAAsB;IAGtB,UAAwB;IAExB,0BAAiC;IACjC,0BAA4B;IAG5B,eAA0C;IAC1C,wBAA8B;IAG9B,gBAA4C;IAC5C,gBAA4C;IAM9C,qBAYC;IAED,8BAEC;IA+CD;;;;;;;;;;MAqCC;IAED,8BAwBC;IAED;;;;;;MAWC;IAED;;;MAgBC;IAED,2EAcC;IAED,+BAGC;IAED,oJA+CC;;CAqDF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/exporter.js"],"names":[],"mappings":"AAmBA;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AACH,2CAHW,YAAY,GACV,YAAY,CAmCxB;AA8BD;;;;;GAKG;AACH,qDAFa,YAAY,CAyBxB;AAy3CD;;;;;;EAMC;AAED;IACE,4BAEC;IADC,eAA0B;IAqB5B,+BAKC;;CAkDF;;;;;;;;;;;;;mBAllDa,KAAQ;;;;;;UAKR,MAAM;;;;aACN,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;UAMjB,MAAM;;;;cACN,KAAK,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;UAgBnB,MAAM"}
|
|
@@ -13,4 +13,6 @@ export function eigthPointsToPixels(eigthPoints: any): number;
|
|
|
13
13
|
export function pixelsToEightPoints(pixels: any): number;
|
|
14
14
|
export function getArrayBufferFromUrl(url: any): Promise<ArrayBuffer>;
|
|
15
15
|
export function getContentTypesFromXml(contentTypesXml: any): string[];
|
|
16
|
+
export function getHexColorFromDocxSystem(docxColor: any): string;
|
|
17
|
+
export function isValidHexColor(color: any): boolean;
|
|
16
18
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/helpers.js"],"names":[],"mappings":"AAAA,mDAIC;AAED,kDAIC;AAED,kDAIC;AAED,mDAIC;AAED,iDAGC;AAED,iDAGC;AAED,2DAGC;AAOD,8CAKC;AAED,6CAIC;AAED,wDAGC;AArBD,2DAGC;AAoBD,8DAKC;AAED,yDAGC;AAED,sEAIC;AAED,uEAKC"}
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/core/super-converter/helpers.js"],"names":[],"mappings":"AAAA,mDAIC;AAED,kDAIC;AAED,kDAIC;AAED,mDAIC;AAED,iDAGC;AAED,iDAGC;AAED,2DAGC;AAOD,8CAKC;AAED,6CAIC;AAED,wDAGC;AArBD,2DAGC;AAoBD,8DAKC;AAED,yDAGC;AAED,sEAIC;AAED,uEAKC;AAED,kEAoBC;AAED,qDASC"}
|
|
@@ -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-DFibABN8.js";
|
|
2
|
+
import "./chunks/converter-D38BagOs.js";
|
|
3
|
+
import "./chunks/docx-zipper-OU0T3wnQ.js";
|
|
4
4
|
export {
|
|
5
5
|
E as Editor
|
|
6
6
|
};
|
|
@@ -19,36 +19,41 @@
|
|
|
19
19
|
box-sizing: border-box;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.toolbar-icon[data-v-
|
|
22
|
+
.toolbar-icon[data-v-fff4aa3f] {
|
|
23
23
|
display: flex;
|
|
24
24
|
align-items: center;
|
|
25
25
|
justify-content: center;
|
|
26
26
|
flex-shrink: 0;
|
|
27
27
|
}
|
|
28
|
-
.toolbar-icon__icon[data-v-
|
|
28
|
+
.toolbar-icon__icon[data-v-fff4aa3f] {
|
|
29
29
|
display: inline-flex;
|
|
30
30
|
align-items: center;
|
|
31
31
|
justify-content: center;
|
|
32
32
|
flex-shrink: 0;
|
|
33
33
|
height: 16px;
|
|
34
34
|
}
|
|
35
|
-
.toolbar-icon__icon[data-v-
|
|
35
|
+
.toolbar-icon__icon--highlight[data-v-fff4aa3f] {
|
|
36
|
+
width: 16px;
|
|
37
|
+
margin-left: 3px;
|
|
38
|
+
margin-bottom: 1px;
|
|
39
|
+
}
|
|
40
|
+
.toolbar-icon__icon[data-v-fff4aa3f] svg {
|
|
36
41
|
width: auto; /* needed for safari */
|
|
37
42
|
max-height: 16px;
|
|
38
43
|
}
|
|
39
|
-
.toolbar-icon__icon--color[data-v-
|
|
44
|
+
.toolbar-icon__icon--color[data-v-fff4aa3f] svg {
|
|
40
45
|
max-height: 14px;
|
|
41
46
|
margin-top: -3px;
|
|
42
47
|
}
|
|
43
|
-
.toolbar-button[data-v-
|
|
48
|
+
.toolbar-button[data-v-fff4aa3f]:hover {
|
|
44
49
|
color: black;
|
|
45
50
|
background-color: #d8dee5;
|
|
46
51
|
}
|
|
47
|
-
.toolbar-button[data-v-
|
|
48
|
-
.active[data-v-
|
|
52
|
+
.toolbar-button[data-v-fff4aa3f]:active,
|
|
53
|
+
.active[data-v-fff4aa3f] {
|
|
49
54
|
background-color: #c8d0d8;
|
|
50
55
|
}
|
|
51
|
-
.color-bar[data-v-
|
|
56
|
+
.color-bar[data-v-fff4aa3f] {
|
|
52
57
|
border-radius: 4px;
|
|
53
58
|
position: absolute;
|
|
54
59
|
z-index: 5;
|
|
@@ -533,50 +538,6 @@ img.ProseMirror-separator {
|
|
|
533
538
|
background-color: #1354FF55;
|
|
534
539
|
}
|
|
535
540
|
|
|
536
|
-
.option-grid-ctn[data-v-c5c5fefc] {
|
|
537
|
-
display: flex;
|
|
538
|
-
flex-direction: column;
|
|
539
|
-
padding: 5px;
|
|
540
|
-
border-radius: 5px;
|
|
541
|
-
background-color: #fff;
|
|
542
|
-
z-index: 3;
|
|
543
|
-
box-sizing: border-box;
|
|
544
|
-
}
|
|
545
|
-
.option-grid-ctn[data-v-c5c5fefc] svg {
|
|
546
|
-
width: 100%;
|
|
547
|
-
height: 100%;
|
|
548
|
-
display: block;
|
|
549
|
-
fill: currentColor;
|
|
550
|
-
}
|
|
551
|
-
.option-row[data-v-c5c5fefc] {
|
|
552
|
-
display: flex;
|
|
553
|
-
flex-direction: row;
|
|
554
|
-
}
|
|
555
|
-
.option[data-v-c5c5fefc] {
|
|
556
|
-
border-radius: 50%;
|
|
557
|
-
cursor: pointer;
|
|
558
|
-
padding: 3px;
|
|
559
|
-
display: flex;
|
|
560
|
-
align-items: center;
|
|
561
|
-
justify-content: center;
|
|
562
|
-
position: relative;
|
|
563
|
-
box-sizing: border-box;
|
|
564
|
-
}
|
|
565
|
-
.option[data-v-c5c5fefc]:hover {
|
|
566
|
-
background-color: #dbdbdb;
|
|
567
|
-
}
|
|
568
|
-
.option__icon[data-v-c5c5fefc] {
|
|
569
|
-
width: 20px;
|
|
570
|
-
height: 20px;
|
|
571
|
-
flex-shrink: 0;
|
|
572
|
-
}
|
|
573
|
-
.option__check[data-v-c5c5fefc] {
|
|
574
|
-
width: 14px;
|
|
575
|
-
height: 14px;
|
|
576
|
-
flex-shrink: 0;
|
|
577
|
-
position: absolute;
|
|
578
|
-
}
|
|
579
|
-
|
|
580
541
|
.alignment-buttons[data-v-d6fae878] {
|
|
581
542
|
display: flex;
|
|
582
543
|
justify-content: space-between;
|
|
@@ -864,6 +825,56 @@ img.ProseMirror-separator {
|
|
|
864
825
|
display: block;
|
|
865
826
|
fill: currentColor;
|
|
866
827
|
}
|
|
828
|
+
|
|
829
|
+
.option-row[data-v-6a2a9a40] {
|
|
830
|
+
display: flex;
|
|
831
|
+
flex-direction: row;
|
|
832
|
+
}
|
|
833
|
+
.option[data-v-6a2a9a40] {
|
|
834
|
+
border-radius: 50%;
|
|
835
|
+
cursor: pointer;
|
|
836
|
+
padding: 3px;
|
|
837
|
+
display: flex;
|
|
838
|
+
align-items: center;
|
|
839
|
+
justify-content: center;
|
|
840
|
+
position: relative;
|
|
841
|
+
box-sizing: border-box;
|
|
842
|
+
}
|
|
843
|
+
.option[data-v-6a2a9a40]:hover {
|
|
844
|
+
background-color: #dbdbdb;
|
|
845
|
+
}
|
|
846
|
+
.option__icon[data-v-6a2a9a40] {
|
|
847
|
+
width: 20px;
|
|
848
|
+
height: 20px;
|
|
849
|
+
flex-shrink: 0;
|
|
850
|
+
}
|
|
851
|
+
.option__check[data-v-6a2a9a40] {
|
|
852
|
+
width: 14px;
|
|
853
|
+
height: 14px;
|
|
854
|
+
flex-shrink: 0;
|
|
855
|
+
position: absolute;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
.option-grid-ctn[data-v-fa2949d8] {
|
|
859
|
+
display: flex;
|
|
860
|
+
flex-direction: column;
|
|
861
|
+
padding: 5px;
|
|
862
|
+
border-radius: 5px;
|
|
863
|
+
background-color: #fff;
|
|
864
|
+
z-index: 3;
|
|
865
|
+
box-sizing: border-box;
|
|
866
|
+
}
|
|
867
|
+
.option-grid-ctn__subtitle[data-v-fa2949d8] {
|
|
868
|
+
padding: 3px;
|
|
869
|
+
font-size: 12px;
|
|
870
|
+
font-weight: 600;
|
|
871
|
+
}
|
|
872
|
+
.option-grid-ctn[data-v-fa2949d8] svg {
|
|
873
|
+
width: 100%;
|
|
874
|
+
height: 100%;
|
|
875
|
+
display: block;
|
|
876
|
+
fill: currentColor;
|
|
877
|
+
}
|
|
867
878
|
.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}
|
|
868
879
|
.vertical-indicator[data-v-82812cc5] {
|
|
869
880
|
position: absolute;
|