@kodaeditor/core 1.0.1 → 1.0.3
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/THIRD-PARTY-LICENSES.txt +83 -83
- package/dist/docx-import.d.ts +11 -11
- package/dist/editor.d.ts +109 -159
- package/dist/fallback.d.ts +7 -8
- package/dist/i18n.d.ts +15 -26
- package/dist/import-formats.d.ts +19 -17
- package/dist/index.d.ts +4 -4
- package/dist/kodaeditor-core.umd.cjs +1 -1
- package/dist/kodaeditor.js +1 -1
- package/dist/kodaeditor.umd.cjs +1 -1
- package/dist/license.d.ts +46 -50
- package/dist/schema.d.ts +7 -7
- package/dist/serialize.d.ts +11 -11
- package/dist/web-component.d.ts +71 -213
- package/package.json +2 -5
- package/dist/commands.d.ts +0 -15
- package/dist/docx-alignment.d.ts +0 -14
- package/dist/docx-breaks.d.ts +0 -31
- package/dist/docx-forms.d.ts +0 -28
- package/dist/docx-headers.d.ts +0 -22
- package/dist/docx-images.d.ts +0 -41
- package/dist/docx-math.d.ts +0 -18
- package/dist/docx-styles.d.ts +0 -53
- package/dist/docx-symbols.d.ts +0 -19
- package/dist/docx-text-styles.d.ts +0 -27
- package/dist/floatingToolbar.d.ts +0 -7
- package/dist/group-icons.d.ts +0 -17
- package/dist/icons.d.ts +0 -1
- package/dist/image-view.d.ts +0 -27
- package/dist/markdown.d.ts +0 -4
- package/dist/menubar.d.ts +0 -60
- package/dist/offline-license.d.ts +0 -36
- package/dist/pagination.d.ts +0 -11
- package/dist/paste.d.ts +0 -54
- package/dist/pdf-import-cdn.d.ts +0 -2
- package/dist/pdf-import.d.ts +0 -8
- package/dist/print.d.ts +0 -18
- package/dist/rtf-images.d.ts +0 -24
- package/dist/search.d.ts +0 -17
- package/dist/slashMenu.d.ts +0 -8
- package/dist/styles.d.ts +0 -8
- package/dist/table-split.d.ts +0 -26
- package/dist/table-view.d.ts +0 -34
- package/dist/tableColumnTrade.d.ts +0 -15
- package/dist/tableToolbar.d.ts +0 -14
- package/dist/toc-view.d.ts +0 -23
- package/dist/toolbar-editor.d.ts +0 -89
- package/dist/validate-signature.d.ts +0 -64
- package/dist/xlsx-import-cdn.d.ts +0 -1
- package/dist/xlsx-import.d.ts +0 -2
package/THIRD-PARTY-LICENSES.txt
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
KodaEditor -
|
|
1
|
+
KodaEditor - third-party licenses
|
|
2
2
|
==============================================================================
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
Generated from the dependencies actually present on disk by
|
|
5
5
|
node scripts/gen-third-party-licenses.mjs
|
|
6
|
-
|
|
6
|
+
Generated on: 2026-09-12
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
This lists EVERY package whose code is bundled into the shipped build,
|
|
9
|
+
including transitive dependencies: their code reaches you exactly the way
|
|
10
|
+
top-level libraries do, and the MIT and BSD licenses require attribution for
|
|
11
|
+
it just the same.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
Build tooling (compiler, test runner, obfuscator) is not shipped and is not
|
|
14
|
+
listed here.
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
- jszip:
|
|
21
|
-
- dompurify:
|
|
16
|
+
None of the libraries listed below is distributed under a copyleft license
|
|
17
|
+
(GPL, AGPL, LGPL), so bundling them into a closed-source product is permitted
|
|
18
|
+
by those licenses. Where a library is dual-licensed, KodaEditor takes the
|
|
19
|
+
permissive option:
|
|
20
|
+
- jszip: MIT taken (GPL-3.0-or-later also offered)
|
|
21
|
+
- dompurify: Apache-2.0 taken (MPL-2.0 also offered)
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
CONTENTS:
|
|
24
24
|
- @mixmark-io/domino@2.2.0 - BSD-2-Clause
|
|
25
25
|
- @xmldom/xmldom@0.8.15 - MIT
|
|
26
26
|
- argparse@1.0.10 - MIT
|
|
@@ -28,12 +28,12 @@ KodaEditor - лицензии стороннего кода
|
|
|
28
28
|
- bluebird@3.4.7 - MIT
|
|
29
29
|
- core-util-is@1.0.3 - MIT
|
|
30
30
|
- dingbat-to-unicode@1.0.1 - BSD-2-Clause
|
|
31
|
-
- dompurify@3.4.15 - Apache-2.0 (
|
|
31
|
+
- dompurify@3.4.15 - Apache-2.0 (chosen from (MPL-2.0 OR Apache-2.0))
|
|
32
32
|
- duck@0.1.12 - BSD
|
|
33
33
|
- immediate@3.0.6 - MIT
|
|
34
34
|
- inherits@2.0.4 - ISC
|
|
35
35
|
- isarray@1.0.0 - MIT
|
|
36
|
-
- jszip@3.10.2 - MIT (
|
|
36
|
+
- jszip@3.10.2 - MIT (chosen from (MIT OR GPL-3.0-or-later))
|
|
37
37
|
- lie@3.3.0 - MIT
|
|
38
38
|
- lop@0.4.2 - BSD-2-Clause
|
|
39
39
|
- mammoth@1.12.2 - BSD-2-Clause
|
|
@@ -70,7 +70,7 @@ KodaEditor - лицензии стороннего кода
|
|
|
70
70
|
|
|
71
71
|
==============================================================================
|
|
72
72
|
@mixmark-io/domino 2.2.0
|
|
73
|
-
|
|
73
|
+
License: BSD-2-Clause
|
|
74
74
|
==============================================================================
|
|
75
75
|
|
|
76
76
|
Copyright (c) 2011 The Mozilla Foundation.
|
|
@@ -101,8 +101,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
101
101
|
|
|
102
102
|
==============================================================================
|
|
103
103
|
@xmldom/xmldom 0.8.15
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
License: MIT
|
|
105
|
+
Source: https://github.com/xmldom/xmldom
|
|
106
106
|
==============================================================================
|
|
107
107
|
|
|
108
108
|
Copyright 2019 - present Christopher J. Brody and other contributors, as listed in: https://github.com/xmldom/xmldom/graphs/contributors
|
|
@@ -116,7 +116,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
116
116
|
|
|
117
117
|
==============================================================================
|
|
118
118
|
argparse 1.0.10
|
|
119
|
-
|
|
119
|
+
License: MIT
|
|
120
120
|
==============================================================================
|
|
121
121
|
|
|
122
122
|
(The MIT License)
|
|
@@ -143,8 +143,8 @@ THE SOFTWARE.
|
|
|
143
143
|
|
|
144
144
|
==============================================================================
|
|
145
145
|
base64-js 1.5.1
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
License: MIT
|
|
147
|
+
Source: https://github.com/beatgammit/base64-js
|
|
148
148
|
==============================================================================
|
|
149
149
|
|
|
150
150
|
The MIT License (MIT)
|
|
@@ -171,8 +171,8 @@ THE SOFTWARE.
|
|
|
171
171
|
|
|
172
172
|
==============================================================================
|
|
173
173
|
bluebird 3.4.7
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
License: MIT
|
|
175
|
+
Source: https://github.com/petkaantonov/bluebird
|
|
176
176
|
==============================================================================
|
|
177
177
|
|
|
178
178
|
The MIT License (MIT)
|
|
@@ -199,7 +199,7 @@ THE SOFTWARE.
|
|
|
199
199
|
|
|
200
200
|
==============================================================================
|
|
201
201
|
core-util-is 1.0.3
|
|
202
|
-
|
|
202
|
+
License: MIT
|
|
203
203
|
==============================================================================
|
|
204
204
|
|
|
205
205
|
Copyright Node.js contributors. All rights reserved.
|
|
@@ -224,16 +224,16 @@ IN THE SOFTWARE.
|
|
|
224
224
|
|
|
225
225
|
==============================================================================
|
|
226
226
|
dingbat-to-unicode 1.0.1
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
License: BSD-2-Clause
|
|
228
|
+
Source: https://github.com/mwilliamson/dingbat-to-unicode#readme
|
|
229
229
|
==============================================================================
|
|
230
230
|
|
|
231
|
-
(
|
|
231
|
+
(no license text shipped in the package; see the license field above)
|
|
232
232
|
|
|
233
233
|
==============================================================================
|
|
234
234
|
dompurify 3.4.15
|
|
235
|
-
|
|
236
|
-
|
|
235
|
+
License: Apache-2.0 (chosen from (MPL-2.0 OR Apache-2.0))
|
|
236
|
+
Source: https://github.com/cure53/DOMPurify
|
|
237
237
|
==============================================================================
|
|
238
238
|
|
|
239
239
|
Apache License
|
|
@@ -440,7 +440,7 @@ Apache License
|
|
|
440
440
|
|
|
441
441
|
==============================================================================
|
|
442
442
|
duck 0.1.12
|
|
443
|
-
|
|
443
|
+
License: BSD
|
|
444
444
|
==============================================================================
|
|
445
445
|
|
|
446
446
|
Copyright (c) 2013, Michael Williamson
|
|
@@ -468,7 +468,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
468
468
|
|
|
469
469
|
==============================================================================
|
|
470
470
|
immediate 3.0.6
|
|
471
|
-
|
|
471
|
+
License: MIT
|
|
472
472
|
==============================================================================
|
|
473
473
|
|
|
474
474
|
Copyright (c) 2012 Barnesandnoble.com, llc, Donavon West, Domenic Denicola, Brian Cavalier
|
|
@@ -494,7 +494,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
494
494
|
|
|
495
495
|
==============================================================================
|
|
496
496
|
inherits 2.0.4
|
|
497
|
-
|
|
497
|
+
License: ISC
|
|
498
498
|
==============================================================================
|
|
499
499
|
|
|
500
500
|
The ISC License
|
|
@@ -515,15 +515,15 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
515
515
|
|
|
516
516
|
==============================================================================
|
|
517
517
|
isarray 1.0.0
|
|
518
|
-
|
|
519
|
-
|
|
518
|
+
License: MIT
|
|
519
|
+
Source: https://github.com/juliangruber/isarray
|
|
520
520
|
==============================================================================
|
|
521
521
|
|
|
522
|
-
(
|
|
522
|
+
(no license text shipped in the package; see the license field above)
|
|
523
523
|
|
|
524
524
|
==============================================================================
|
|
525
525
|
jszip 3.10.2
|
|
526
|
-
|
|
526
|
+
License: MIT (chosen from (MIT OR GPL-3.0-or-later))
|
|
527
527
|
==============================================================================
|
|
528
528
|
|
|
529
529
|
JSZip is dual licensed. At your choice you may use it under the MIT license *or* the GPLv3
|
|
@@ -556,11 +556,11 @@ THE SOFTWARE.
|
|
|
556
556
|
GPL version 3
|
|
557
557
|
=============
|
|
558
558
|
|
|
559
|
-
[
|
|
559
|
+
[The GPL-3.0-or-later text is omitted deliberately: the package offers a choice, and KodaEditor takes MIT, reproduced above.]
|
|
560
560
|
|
|
561
561
|
==============================================================================
|
|
562
562
|
lie 3.3.0
|
|
563
|
-
|
|
563
|
+
License: MIT
|
|
564
564
|
==============================================================================
|
|
565
565
|
|
|
566
566
|
#Copyright (c) 2014-2018 Calvin Metcalf, Jordan Harband
|
|
@@ -573,7 +573,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
573
573
|
|
|
574
574
|
==============================================================================
|
|
575
575
|
lop 0.4.2
|
|
576
|
-
|
|
576
|
+
License: BSD-2-Clause
|
|
577
577
|
==============================================================================
|
|
578
578
|
|
|
579
579
|
Copyright (c) 2013, Michael Williamson
|
|
@@ -601,7 +601,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
601
601
|
|
|
602
602
|
==============================================================================
|
|
603
603
|
mammoth 1.12.2
|
|
604
|
-
|
|
604
|
+
License: BSD-2-Clause
|
|
605
605
|
==============================================================================
|
|
606
606
|
|
|
607
607
|
Copyright (c) 2013, Michael Williamson
|
|
@@ -629,8 +629,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
629
629
|
|
|
630
630
|
==============================================================================
|
|
631
631
|
marked 18.0.12
|
|
632
|
-
|
|
633
|
-
|
|
632
|
+
License: MIT
|
|
633
|
+
Source: https://marked.js.org
|
|
634
634
|
==============================================================================
|
|
635
635
|
|
|
636
636
|
# License information
|
|
@@ -680,7 +680,7 @@ This software is provided by the copyright holders and contributors “as is”
|
|
|
680
680
|
|
|
681
681
|
==============================================================================
|
|
682
682
|
option 0.2.4
|
|
683
|
-
|
|
683
|
+
License: BSD-2-Clause
|
|
684
684
|
==============================================================================
|
|
685
685
|
|
|
686
686
|
Copyright (c) 2013, Michael Williamson
|
|
@@ -708,8 +708,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
708
708
|
|
|
709
709
|
==============================================================================
|
|
710
710
|
orderedmap 2.1.1
|
|
711
|
-
|
|
712
|
-
|
|
711
|
+
License: MIT
|
|
712
|
+
Source: https://github.com/marijnh/orderedmap#readme
|
|
713
713
|
==============================================================================
|
|
714
714
|
|
|
715
715
|
Copyright (C) 2016 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
|
@@ -734,8 +734,8 @@ THE SOFTWARE.
|
|
|
734
734
|
|
|
735
735
|
==============================================================================
|
|
736
736
|
pako 1.0.11
|
|
737
|
-
|
|
738
|
-
|
|
737
|
+
License: (MIT AND Zlib)
|
|
738
|
+
Source: https://github.com/nodeca/pako
|
|
739
739
|
==============================================================================
|
|
740
740
|
|
|
741
741
|
(The MIT License)
|
|
@@ -762,7 +762,7 @@ THE SOFTWARE.
|
|
|
762
762
|
|
|
763
763
|
==============================================================================
|
|
764
764
|
path-is-absolute 1.0.1
|
|
765
|
-
|
|
765
|
+
License: MIT
|
|
766
766
|
==============================================================================
|
|
767
767
|
|
|
768
768
|
The MIT License (MIT)
|
|
@@ -789,8 +789,8 @@ THE SOFTWARE.
|
|
|
789
789
|
|
|
790
790
|
==============================================================================
|
|
791
791
|
pdfjs-dist 6.3.289
|
|
792
|
-
|
|
793
|
-
|
|
792
|
+
License: Apache-2.0
|
|
793
|
+
Source: https://mozilla.github.io/pdf.js/
|
|
794
794
|
==============================================================================
|
|
795
795
|
|
|
796
796
|
Apache License
|
|
@@ -972,8 +972,8 @@ Apache License
|
|
|
972
972
|
|
|
973
973
|
==============================================================================
|
|
974
974
|
process-nextick-args 2.0.1
|
|
975
|
-
|
|
976
|
-
|
|
975
|
+
License: MIT
|
|
976
|
+
Source: https://github.com/calvinmetcalf/process-nextick-args
|
|
977
977
|
==============================================================================
|
|
978
978
|
|
|
979
979
|
# Copyright (c) 2015 Calvin Metcalf
|
|
@@ -998,7 +998,7 @@ SOFTWARE.**
|
|
|
998
998
|
|
|
999
999
|
==============================================================================
|
|
1000
1000
|
prosemirror-commands 1.7.2
|
|
1001
|
-
|
|
1001
|
+
License: MIT
|
|
1002
1002
|
==============================================================================
|
|
1003
1003
|
|
|
1004
1004
|
Copyright (C) 2015-2017 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
|
@@ -1023,7 +1023,7 @@ THE SOFTWARE.
|
|
|
1023
1023
|
|
|
1024
1024
|
==============================================================================
|
|
1025
1025
|
prosemirror-history 1.5.0
|
|
1026
|
-
|
|
1026
|
+
License: MIT
|
|
1027
1027
|
==============================================================================
|
|
1028
1028
|
|
|
1029
1029
|
Copyright (C) 2015-2017 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
|
@@ -1048,7 +1048,7 @@ THE SOFTWARE.
|
|
|
1048
1048
|
|
|
1049
1049
|
==============================================================================
|
|
1050
1050
|
prosemirror-keymap 1.2.3
|
|
1051
|
-
|
|
1051
|
+
License: MIT
|
|
1052
1052
|
==============================================================================
|
|
1053
1053
|
|
|
1054
1054
|
Copyright (C) 2015-2017 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
|
@@ -1073,7 +1073,7 @@ THE SOFTWARE.
|
|
|
1073
1073
|
|
|
1074
1074
|
==============================================================================
|
|
1075
1075
|
prosemirror-model 1.25.11
|
|
1076
|
-
|
|
1076
|
+
License: MIT
|
|
1077
1077
|
==============================================================================
|
|
1078
1078
|
|
|
1079
1079
|
Copyright (C) 2015-2017 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
|
@@ -1098,7 +1098,7 @@ THE SOFTWARE.
|
|
|
1098
1098
|
|
|
1099
1099
|
==============================================================================
|
|
1100
1100
|
prosemirror-schema-basic 1.2.4
|
|
1101
|
-
|
|
1101
|
+
License: MIT
|
|
1102
1102
|
==============================================================================
|
|
1103
1103
|
|
|
1104
1104
|
Copyright (C) 2015-2017 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
|
@@ -1123,7 +1123,7 @@ THE SOFTWARE.
|
|
|
1123
1123
|
|
|
1124
1124
|
==============================================================================
|
|
1125
1125
|
prosemirror-schema-list 1.5.1
|
|
1126
|
-
|
|
1126
|
+
License: MIT
|
|
1127
1127
|
==============================================================================
|
|
1128
1128
|
|
|
1129
1129
|
Copyright (C) 2015-2017 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
|
@@ -1148,7 +1148,7 @@ THE SOFTWARE.
|
|
|
1148
1148
|
|
|
1149
1149
|
==============================================================================
|
|
1150
1150
|
prosemirror-state 1.4.4
|
|
1151
|
-
|
|
1151
|
+
License: MIT
|
|
1152
1152
|
==============================================================================
|
|
1153
1153
|
|
|
1154
1154
|
Copyright (C) 2015-2017 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
|
@@ -1173,7 +1173,7 @@ THE SOFTWARE.
|
|
|
1173
1173
|
|
|
1174
1174
|
==============================================================================
|
|
1175
1175
|
prosemirror-tables 1.8.5
|
|
1176
|
-
|
|
1176
|
+
License: MIT
|
|
1177
1177
|
==============================================================================
|
|
1178
1178
|
|
|
1179
1179
|
Copyright (C) 2015-2016 by Marijn Haverbeke <marijnh@gmail.com> and others
|
|
@@ -1198,7 +1198,7 @@ THE SOFTWARE.
|
|
|
1198
1198
|
|
|
1199
1199
|
==============================================================================
|
|
1200
1200
|
prosemirror-transform 1.12.0
|
|
1201
|
-
|
|
1201
|
+
License: MIT
|
|
1202
1202
|
==============================================================================
|
|
1203
1203
|
|
|
1204
1204
|
Copyright (C) 2015-2017 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
|
@@ -1223,7 +1223,7 @@ THE SOFTWARE.
|
|
|
1223
1223
|
|
|
1224
1224
|
==============================================================================
|
|
1225
1225
|
prosemirror-view 1.42.3
|
|
1226
|
-
|
|
1226
|
+
License: MIT
|
|
1227
1227
|
==============================================================================
|
|
1228
1228
|
|
|
1229
1229
|
Copyright (C) 2015-2017 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
|
@@ -1248,7 +1248,7 @@ THE SOFTWARE.
|
|
|
1248
1248
|
|
|
1249
1249
|
==============================================================================
|
|
1250
1250
|
readable-stream 2.3.8
|
|
1251
|
-
|
|
1251
|
+
License: MIT
|
|
1252
1252
|
==============================================================================
|
|
1253
1253
|
|
|
1254
1254
|
Node.js is licensed for use as follows:
|
|
@@ -1301,7 +1301,7 @@ IN THE SOFTWARE.
|
|
|
1301
1301
|
|
|
1302
1302
|
==============================================================================
|
|
1303
1303
|
rope-sequence 1.3.4
|
|
1304
|
-
|
|
1304
|
+
License: MIT
|
|
1305
1305
|
==============================================================================
|
|
1306
1306
|
|
|
1307
1307
|
Copyright (C) 2016 by Marijn Haverbeke <marijn@haverbeke.berlin>
|
|
@@ -1326,7 +1326,7 @@ THE SOFTWARE.
|
|
|
1326
1326
|
|
|
1327
1327
|
==============================================================================
|
|
1328
1328
|
setimmediate 1.0.5
|
|
1329
|
-
|
|
1329
|
+
License: MIT
|
|
1330
1330
|
==============================================================================
|
|
1331
1331
|
|
|
1332
1332
|
Copyright (c) 2012 Barnesandnoble.com, llc, Donavon West, and Domenic Denicola
|
|
@@ -1352,7 +1352,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
1352
1352
|
|
|
1353
1353
|
==============================================================================
|
|
1354
1354
|
sprintf-js 1.0.3
|
|
1355
|
-
|
|
1355
|
+
License: BSD-3-Clause
|
|
1356
1356
|
==============================================================================
|
|
1357
1357
|
|
|
1358
1358
|
Copyright (c) 2007-2014, Alexandru Marasteanu <hello [at) alexei (dot] ro>
|
|
@@ -1382,8 +1382,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
1382
1382
|
|
|
1383
1383
|
==============================================================================
|
|
1384
1384
|
string_decoder 1.1.1
|
|
1385
|
-
|
|
1386
|
-
|
|
1385
|
+
License: MIT
|
|
1386
|
+
Source: https://github.com/nodejs/string_decoder
|
|
1387
1387
|
==============================================================================
|
|
1388
1388
|
|
|
1389
1389
|
Node.js is licensed for use as follows:
|
|
@@ -1436,7 +1436,7 @@ IN THE SOFTWARE.
|
|
|
1436
1436
|
|
|
1437
1437
|
==============================================================================
|
|
1438
1438
|
turndown 7.2.4
|
|
1439
|
-
|
|
1439
|
+
License: MIT
|
|
1440
1440
|
==============================================================================
|
|
1441
1441
|
|
|
1442
1442
|
MIT License
|
|
@@ -1463,7 +1463,7 @@ SOFTWARE.
|
|
|
1463
1463
|
|
|
1464
1464
|
==============================================================================
|
|
1465
1465
|
turndown-plugin-gfm 1.0.2
|
|
1466
|
-
|
|
1466
|
+
License: MIT
|
|
1467
1467
|
==============================================================================
|
|
1468
1468
|
|
|
1469
1469
|
MIT License
|
|
@@ -1490,8 +1490,8 @@ SOFTWARE.
|
|
|
1490
1490
|
|
|
1491
1491
|
==============================================================================
|
|
1492
1492
|
underscore 1.13.8
|
|
1493
|
-
|
|
1494
|
-
|
|
1493
|
+
License: MIT
|
|
1494
|
+
Source: https://underscorejs.org
|
|
1495
1495
|
==============================================================================
|
|
1496
1496
|
|
|
1497
1497
|
Copyright (c) 2009-2022 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors
|
|
@@ -1519,8 +1519,8 @@ OTHER DEALINGS IN THE SOFTWARE.
|
|
|
1519
1519
|
|
|
1520
1520
|
==============================================================================
|
|
1521
1521
|
util-deprecate 1.0.2
|
|
1522
|
-
|
|
1523
|
-
|
|
1522
|
+
License: MIT
|
|
1523
|
+
Source: https://github.com/TooTallNate/util-deprecate
|
|
1524
1524
|
==============================================================================
|
|
1525
1525
|
|
|
1526
1526
|
(The MIT License)
|
|
@@ -1550,8 +1550,8 @@ OTHER DEALINGS IN THE SOFTWARE.
|
|
|
1550
1550
|
|
|
1551
1551
|
==============================================================================
|
|
1552
1552
|
w3c-keyname 2.2.8
|
|
1553
|
-
|
|
1554
|
-
|
|
1553
|
+
License: MIT
|
|
1554
|
+
Source: https://github.com/marijnh/w3c-keyname#readme
|
|
1555
1555
|
==============================================================================
|
|
1556
1556
|
|
|
1557
1557
|
Copyright (C) 2016 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
|
@@ -1576,8 +1576,8 @@ THE SOFTWARE.
|
|
|
1576
1576
|
|
|
1577
1577
|
==============================================================================
|
|
1578
1578
|
xlsx 0.20.3
|
|
1579
|
-
|
|
1580
|
-
|
|
1579
|
+
License: Apache-2.0
|
|
1580
|
+
Source: https://sheetjs.com/
|
|
1581
1581
|
==============================================================================
|
|
1582
1582
|
|
|
1583
1583
|
Apache License
|
|
@@ -1784,8 +1784,8 @@ Apache License
|
|
|
1784
1784
|
|
|
1785
1785
|
==============================================================================
|
|
1786
1786
|
xmlbuilder 10.1.1
|
|
1787
|
-
|
|
1788
|
-
|
|
1787
|
+
License: MIT
|
|
1788
|
+
Source: http://github.com/oozcitak/xmlbuilder-js
|
|
1789
1789
|
==============================================================================
|
|
1790
1790
|
|
|
1791
1791
|
The MIT License (MIT)
|
package/dist/docx-import.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ export interface DocxImportResult {
|
|
|
4
4
|
}
|
|
5
5
|
export type DocxImportErrorCode = 'corrupt' | 'invalid' | 'parse';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* `userMessage`)
|
|
9
|
-
*
|
|
7
|
+
* An import failure carrying a message fit to show the user
|
|
8
|
+
* (`userMessage`) alongside a machine-readable reason code. Show
|
|
9
|
+
* `userMessage` rather than the raw exception text from the converter.
|
|
10
10
|
*/
|
|
11
11
|
export declare class DocxImportError extends Error {
|
|
12
12
|
readonly code: DocxImportErrorCode;
|
|
@@ -14,23 +14,23 @@ export declare class DocxImportError extends Error {
|
|
|
14
14
|
constructor(code: DocxImportErrorCode, userMessage: string, cause?: unknown);
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
17
|
+
* Classifies a raw exception from the converter or the zip reader into a
|
|
18
|
+
* reason code and a readable message. A pure function.
|
|
19
19
|
*/
|
|
20
20
|
export declare function classifyDocxError(message: string): {
|
|
21
21
|
code: DocxImportErrorCode;
|
|
22
22
|
userMessage: string;
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
25
|
+
* Turns plain text into minimal, escaped HTML - non-empty lines become
|
|
26
|
+
* paragraphs. Used as a last resort when the rich conversion fails, so that
|
|
27
|
+
* the user gets their text rather than an error. A pure function.
|
|
28
28
|
*/
|
|
29
29
|
export declare function rawTextToHtml(text: string): string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
31
|
+
* Converts a .docx (File or ArrayBuffer) into clean HTML for the editor.
|
|
32
|
+
* Images arrive as data URIs and are kept in the document.
|
|
33
33
|
*
|
|
34
|
-
*
|
|
34
|
+
* Throws {@link DocxImportError} if the file cannot be opened even as text.
|
|
35
35
|
*/
|
|
36
36
|
export declare function importDocxToHtml(source: File | ArrayBuffer): Promise<DocxImportResult>;
|