@kodaeditor/core 1.0.2 → 1.0.4

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/LICENSE.md CHANGED
@@ -1,10 +1,4 @@
1
- # KodaEditor — Commercial License (DRAFT)
2
-
3
- > **Status: draft, prepared ahead of public npm publish — has not had a
4
- > legal review yet.** Placeholder good enough to make `npm pack`/`npm
5
- > publish` metadata accurate during Phase 1 preparation (see
6
- > `docs/LAUNCH-ROADMAP_2026-09-01.md`). Get this reviewed by a lawyer
7
- > before the packages are actually published to the public npm registry.
1
+ # KodaEditor - Commercial License
8
2
 
9
3
  Copyright © the KodaEditor authors. All rights reserved except as
10
4
  explicitly granted below.
@@ -39,7 +33,7 @@ You may not:
39
33
  - Remove copyright or attribution notices from the Software's source.
40
34
 
41
35
  You may freely use the Software's *output* (the HTML/content your users
42
- create with it) with no restriction — this license covers the editor
36
+ create with it) with no restriction - this license covers the editor
43
37
  itself, not the documents people write in it.
44
38
 
45
39
  ## 5. Ownership
@@ -80,4 +74,4 @@ issued for it.
80
74
  ---
81
75
 
82
76
  Third-party components bundled inside `@kodaeditor/core` are used under
83
- their own licenses — see `packages/core/THIRD-PARTY-LICENSES.txt`.
77
+ their own licenses - see `packages/core/THIRD-PARTY-LICENSES.txt`.
package/README.md CHANGED
@@ -11,17 +11,17 @@ Paste a table from Microsoft Word and it stays a table. Paste a range from Excel
11
11
  and it arrives as a real table, not a picture. Paste a page from Google Docs and
12
12
  the formatting survives.
13
13
 
14
- That sounds like the baseline every editor claims. It is not: most editors accept
15
- Word content and quietly flatten it into unstyled paragraphs, and the merged
16
- cells, column widths, numbered lists and inline colours are gone by the time your
17
- user notices. Each item below is here because it used to break and was fixed:
14
+ That sounds like a baseline, and it is not: pasted Word content loses its merged
15
+ cells, column widths, numbered lists and inline colours quietly, and the user
16
+ notices only later, in the document they already sent. Each item below is here
17
+ because it used to break in this editor and was fixed:
18
18
 
19
19
  - numbered and bulleted lists, including nesting levels and lists inside table cells
20
20
  - tables with merged cells, column widths and row heights
21
21
  - text colour, highlight, bold, italic, underline, strikethrough
22
22
  - paragraph alignment, including numbers aligned inside table cells
23
- - runs of spaces used for layout, which most editors collapse into one
24
- - images, which most editors drop entirely on a Word paste
23
+ - runs of spaces used for layout, kept instead of collapsed into one
24
+ - images, including the ones Word hides inside drawing shapes
25
25
 
26
26
  Import is supported directly too: `.docx` (including text inside shapes),
27
27
  `.xlsx`, `.csv`, PDF, HTML, Markdown and plain text.
@@ -53,18 +53,47 @@ verified on your own machine.
53
53
  No content ever leaves your infrastructure. No account, no tenant, no dashboard
54
54
  of ours in the middle.
55
55
 
56
+ ## Your network is a parameter, not a problem
57
+
58
+ Locked-down intranet, corporate proxy, a Content Security Policy you cannot
59
+ change, a laptop with no internet at all - these are the deployments the editor
60
+ was built for, not the ones it tolerates.
61
+
62
+ Rather than bury that in a manual, we made it a questionnaire. Answer five
63
+ questions and get the exact recipe for your case: how to activate the license,
64
+ which files to ship, what to put in your CSP, and which build to take.
65
+
66
+ **[kodaeditor.com/setup](https://kodaeditor.com/setup)**
67
+
68
+ Everything it recommends is a shipped capability, not a roadmap item. If your
69
+ combination genuinely does not work, the page says so instead of selling you a
70
+ workaround.
71
+
56
72
  ## Trying it without a licence
57
73
 
58
74
  Install it and everything works from the first minute. Nothing is switched off,
59
75
  nothing is time-limited, there is no signup, and no feature is held back. The
60
76
  Word paste is the part worth testing, so we would rather you tested it properly.
61
77
 
62
- Two things mark an unlicensed installation, and neither takes anything away:
78
+ Two things mark an unlicensed installation on a public domain, and neither takes
79
+ anything away:
63
80
 
64
81
  1. a watermark across the document and a banner above the editor;
65
82
  2. one line appended to everything you export - PDF, Word, HTML, Markdown, plain
66
83
  text, CSV - saying the file was created in trial mode.
67
84
 
85
+ **While you develop, the watermark does not appear.** On localhost, 127.0.0.1
86
+ and the reserved .test and .localhost suffixes the editor runs without it:
87
+ building and evaluating the product is not production use, and we would rather
88
+ you were not looking at a watermark while you decide.
89
+
90
+ The exported line stays even there - a file you send out is a file you send
91
+ out, wherever it was made.
92
+
93
+ Note that .local is treated as production, because in company networks it
94
+ usually is - an internal server such as intranet.company.local serves real
95
+ users and needs a license like any other deployment.
96
+
68
97
  Files still open and read normally. There is no limit on size, on how many
69
98
  documents you produce, or on which features you use.
70
99
 
@@ -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
- Дата сборки файла: 2026-09-11
6
+ Generated on: 2026-09-12
7
7
 
8
- Перечислены ВСЕ пакеты, код которых встраивается в поставляемый бандл,
9
- включая зависимости зависимостей: их код попадает к вам ровно так же, как
10
- код библиотек верхнего уровня, и лицензии MIT и BSD требуют атрибуции для
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
- копилефта (GPL, AGPL, LGPL), то есть встраивание их в закрытый продукт
18
- разрешено соответствующими лицензиями. Там, где у библиотеки двойное
19
- лицензирование, для KodaEditor выбран разрешительный вариант:
20
- - jszip: выбрана MIT (доступна также GPL-3.0-or-later)
21
- - dompurify: выбрана Apache-2.0 (доступна также MPL-2.0)
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 (выбрано из (MPL-2.0 OR 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 (выбрано из (MIT OR GPL-3.0-or-later))
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
- Лицензия: BSD-2-Clause
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
- Лицензия: MIT
105
- Источник: https://github.com/xmldom/xmldom
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
- Лицензия: MIT
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
- Лицензия: MIT
147
- Источник: https://github.com/beatgammit/base64-js
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
- Лицензия: MIT
175
- Источник: https://github.com/petkaantonov/bluebird
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
- Лицензия: MIT
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
- Лицензия: BSD-2-Clause
228
- Источник: https://github.com/mwilliamson/dingbat-to-unicode#readme
227
+ License: BSD-2-Clause
228
+ Source: https://github.com/mwilliamson/dingbat-to-unicode#readme
229
229
  ==============================================================================
230
230
 
231
- (текст лицензии в пакете отсутствует, см. поле license выше)
231
+ (no license text shipped in the package; see the license field above)
232
232
 
233
233
  ==============================================================================
234
234
  dompurify 3.4.15
235
- Лицензия: Apache-2.0 (выбрано из (MPL-2.0 OR Apache-2.0))
236
- Источник: https://github.com/cure53/DOMPurify
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
- Лицензия: BSD
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
- Лицензия: MIT
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
- Лицензия: ISC
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
- Лицензия: MIT
519
- Источник: https://github.com/juliangruber/isarray
518
+ License: MIT
519
+ Source: https://github.com/juliangruber/isarray
520
520
  ==============================================================================
521
521
 
522
- (текст лицензии в пакете отсутствует, см. поле license выше)
522
+ (no license text shipped in the package; see the license field above)
523
523
 
524
524
  ==============================================================================
525
525
  jszip 3.10.2
526
- Лицензия: MIT (выбрано из (MIT OR GPL-3.0-or-later))
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
- [Текст лицензии GPL-3.0-or-later опущен намеренно: пакет допускает выбор, для KodaEditor выбран вариант MIT, приведённый выше.]
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
- Лицензия: MIT
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
- Лицензия: BSD-2-Clause
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
- Лицензия: BSD-2-Clause
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
- Лицензия: MIT
633
- Источник: https://marked.js.org
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
- Лицензия: BSD-2-Clause
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
- Лицензия: MIT
712
- Источник: https://github.com/marijnh/orderedmap#readme
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
- Лицензия: (MIT AND Zlib)
738
- Источник: https://github.com/nodeca/pako
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
- Лицензия: MIT
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
- Лицензия: Apache-2.0
793
- Источник: https://mozilla.github.io/pdf.js/
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
- Лицензия: MIT
976
- Источник: https://github.com/calvinmetcalf/process-nextick-args
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
- Лицензия: MIT
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
- Лицензия: MIT
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
- Лицензия: MIT
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
- Лицензия: MIT
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
- Лицензия: MIT
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
- Лицензия: MIT
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
- Лицензия: MIT
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
- Лицензия: MIT
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
- Лицензия: MIT
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
- Лицензия: MIT
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
- Лицензия: MIT
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
- Лицензия: MIT
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
- Лицензия: MIT
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
- Лицензия: BSD-3-Clause
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
- Лицензия: MIT
1386
- Источник: https://github.com/nodejs/string_decoder
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
- Лицензия: MIT
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
- Лицензия: MIT
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
- Лицензия: MIT
1494
- Источник: https://underscorejs.org
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
- Лицензия: MIT
1523
- Источник: https://github.com/TooTallNate/util-deprecate
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
- Лицензия: MIT
1554
- Источник: https://github.com/marijnh/w3c-keyname#readme
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
- Лицензия: Apache-2.0
1580
- Источник: https://sheetjs.com/
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
- Лицензия: MIT
1788
- Источник: http://github.com/oozcitak/xmlbuilder-js
1787
+ License: MIT
1788
+ Source: http://github.com/oozcitak/xmlbuilder-js
1789
1789
  ==============================================================================
1790
1790
 
1791
1791
  The MIT License (MIT)
@@ -1,8 +1,12 @@
1
+ import { type PlaceholderField } from './docx-placeholders';
1
2
  export interface DocxImportResult {
2
3
  html: string;
3
4
  warnings: string[];
5
+ contentWarnings: string[];
6
+ placeholderFields: PlaceholderField[];
4
7
  }
5
- export type DocxImportErrorCode = 'corrupt' | 'invalid' | 'parse';
8
+ export type DocxImportErrorCode = 'corrupt' | 'invalid' | 'parse' | 'legacy-doc' | 'archive-io';
9
+ export declare function detectContainerKind(buffer: ArrayBuffer): 'zip' | 'ole2' | 'empty' | 'unknown';
6
10
  /**
7
11
  * An import failure carrying a message fit to show the user
8
12
  * (`userMessage`) alongside a machine-readable reason code. Show
@@ -0,0 +1,33 @@
1
+ /** A Word template placeholder turned into a field of the document. */
2
+ export interface PlaceholderField {
3
+ /**
4
+ * Stable name for the field. Taken from Word's own `w:tag` when the template
5
+ * author set one, otherwise derived from the control's internal id.
6
+ */
7
+ key: string;
8
+ /** The text the reader sees - exactly what stood in the Word document. */
9
+ label: string;
10
+ /** Word's own caption for the field (`w:alias`), empty when the file has none. */
11
+ hint: string;
12
+ /**
13
+ * Caption WE derived from the text in front of the placeholder («Fax:» before
14
+ * «[Enter number]»), empty when there was nothing to derive it from. Kept
15
+ * apart from `hint` on purpose: «Word said so» and «we worked it out» must
16
+ * stay tellable apart.
17
+ */
18
+ context: string;
19
+ /**
20
+ * Whether the key survives an edit of the template. `false` means the key
21
+ * depends on the ORDER of placeholders: inserting a field above shifts it,
22
+ * and a host that stored «this key is the tax ID» will then put the tax ID
23
+ * somewhere else, silently.
24
+ *
25
+ * What `true` states is narrower than it sounds: the identifier is unique
26
+ * WITHIN THIS FILE. Whether Word keeps it across a re-save of the template is
27
+ * not something we have measured.
28
+ */
29
+ stable: boolean;
30
+ }
31
+ export declare function markPlaceholdersInDoc(doc: Document): boolean;
32
+ export declare function buildPlaceholderFields(root: HTMLElement): PlaceholderField[];
33
+ export declare function hasPlaceholderMarkup(xml: string): boolean;