@twip/web 0.0.0-canary-6f0bf0b → 0.0.0-canary-05bfdb9

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.
@@ -1282,7 +1282,215 @@ Used by: anstyle 1.0.14, crc32fast 1.5.3, terminal_size 0.4.4
1282
1282
 
1283
1283
  ### Apache License 2.0 (Apache-2.0)
1284
1284
 
1285
- Used by: bitflags 2.13.2, bumpalo 3.20.3, cc 1.10.0, cexpr 0.6.0, cfg-if 1.0.5, either 1.19.0, equivalent 1.0.3, errno 0.3.14, filetime 0.2.29, find-msvc-tools 0.1.15, flate2 1.1.10, glob 0.3.4, hashbrown 0.17.1, heck 0.5.0, indexmap 2.14.2, itertools 0.13.0, js-sys 0.3.106, linux-raw-sys 0.12.1, log 0.4.34, once_cell 1.21.4, pkg-config 0.3.34, regex-automata 0.4.18, regex-lite 0.1.9, regex-syntax 0.8.11, regex 1.13.1, roxmltree 0.21.2, rustix 1.1.5, smallvec 1.16.4, stable_deref_trait 1.2.1, tar 0.4.46, unicode-segmentation 1.13.3, wasm-bindgen-macro-support 0.2.129, wasm-bindgen-macro 0.2.129, wasm-bindgen-shared 0.2.129, wasm-bindgen 0.2.129, xattr 1.6.1
1285
+ Used by: typenum 1.20.1
1286
+
1287
+ ```
1288
+ Apache License
1289
+ Version 2.0, January 2004
1290
+ http://www.apache.org/licenses/
1291
+
1292
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1293
+
1294
+ 1. Definitions.
1295
+
1296
+ "License" shall mean the terms and conditions for use, reproduction,
1297
+ and distribution as defined by Sections 1 through 9 of this document.
1298
+
1299
+ "Licensor" shall mean the copyright owner or entity authorized by
1300
+ the copyright owner that is granting the License.
1301
+
1302
+ "Legal Entity" shall mean the union of the acting entity and all
1303
+ other entities that control, are controlled by, or are under common
1304
+ control with that entity. For the purposes of this definition,
1305
+ "control" means (i) the power, direct or indirect, to cause the
1306
+ direction or management of such entity, whether by contract or
1307
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
1308
+ outstanding shares, or (iii) beneficial ownership of such entity.
1309
+
1310
+ "You" (or "Your") shall mean an individual or Legal Entity
1311
+ exercising permissions granted by this License.
1312
+
1313
+ "Source" form shall mean the preferred form for making modifications,
1314
+ including but not limited to software source code, documentation
1315
+ source, and configuration files.
1316
+
1317
+ "Object" form shall mean any form resulting from mechanical
1318
+ transformation or translation of a Source form, including but
1319
+ not limited to compiled object code, generated documentation,
1320
+ and conversions to other media types.
1321
+
1322
+ "Work" shall mean the work of authorship, whether in Source or
1323
+ Object form, made available under the License, as indicated by a
1324
+ copyright notice that is included in or attached to the work
1325
+ (an example is provided in the Appendix below).
1326
+
1327
+ "Derivative Works" shall mean any work, whether in Source or Object
1328
+ form, that is based on (or derived from) the Work and for which the
1329
+ editorial revisions, annotations, elaborations, or other modifications
1330
+ represent, as a whole, an original work of authorship. For the purposes
1331
+ of this License, Derivative Works shall not include works that remain
1332
+ separable from, or merely link (or bind by name) to the interfaces of,
1333
+ the Work and Derivative Works thereof.
1334
+
1335
+ "Contribution" shall mean any work of authorship, including
1336
+ the original version of the Work and any modifications or additions
1337
+ to that Work or Derivative Works thereof, that is intentionally
1338
+ submitted to Licensor for inclusion in the Work by the copyright owner
1339
+ or by an individual or Legal Entity authorized to submit on behalf of
1340
+ the copyright owner. For the purposes of this definition, "submitted"
1341
+ means any form of electronic, verbal, or written communication sent
1342
+ to the Licensor or its representatives, including but not limited to
1343
+ communication on electronic mailing lists, source code control systems,
1344
+ and issue tracking systems that are managed by, or on behalf of, the
1345
+ Licensor for the purpose of discussing and improving the Work, but
1346
+ excluding communication that is conspicuously marked or otherwise
1347
+ designated in writing by the copyright owner as "Not a Contribution."
1348
+
1349
+ "Contributor" shall mean Licensor and any individual or Legal Entity
1350
+ on behalf of whom a Contribution has been received by Licensor and
1351
+ subsequently incorporated within the Work.
1352
+
1353
+ 2. Grant of Copyright License. Subject to the terms and conditions of
1354
+ this License, each Contributor hereby grants to You a perpetual,
1355
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1356
+ copyright license to reproduce, prepare Derivative Works of,
1357
+ publicly display, publicly perform, sublicense, and distribute the
1358
+ Work and such Derivative Works in Source or Object form.
1359
+
1360
+ 3. Grant of Patent License. Subject to the terms and conditions of
1361
+ this License, each Contributor hereby grants to You a perpetual,
1362
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1363
+ (except as stated in this section) patent license to make, have made,
1364
+ use, offer to sell, sell, import, and otherwise transfer the Work,
1365
+ where such license applies only to those patent claims licensable
1366
+ by such Contributor that are necessarily infringed by their
1367
+ Contribution(s) alone or by combination of their Contribution(s)
1368
+ with the Work to which such Contribution(s) was submitted. If You
1369
+ institute patent litigation against any entity (including a
1370
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
1371
+ or a Contribution incorporated within the Work constitutes direct
1372
+ or contributory patent infringement, then any patent licenses
1373
+ granted to You under this License for that Work shall terminate
1374
+ as of the date such litigation is filed.
1375
+
1376
+ 4. Redistribution. You may reproduce and distribute copies of the
1377
+ Work or Derivative Works thereof in any medium, with or without
1378
+ modifications, and in Source or Object form, provided that You
1379
+ meet the following conditions:
1380
+
1381
+ (a) You must give any other recipients of the Work or
1382
+ Derivative Works a copy of this License; and
1383
+
1384
+ (b) You must cause any modified files to carry prominent notices
1385
+ stating that You changed the files; and
1386
+
1387
+ (c) You must retain, in the Source form of any Derivative Works
1388
+ that You distribute, all copyright, patent, trademark, and
1389
+ attribution notices from the Source form of the Work,
1390
+ excluding those notices that do not pertain to any part of
1391
+ the Derivative Works; and
1392
+
1393
+ (d) If the Work includes a "NOTICE" text file as part of its
1394
+ distribution, then any Derivative Works that You distribute must
1395
+ include a readable copy of the attribution notices contained
1396
+ within such NOTICE file, excluding those notices that do not
1397
+ pertain to any part of the Derivative Works, in at least one
1398
+ of the following places: within a NOTICE text file distributed
1399
+ as part of the Derivative Works; within the Source form or
1400
+ documentation, if provided along with the Derivative Works; or,
1401
+ within a display generated by the Derivative Works, if and
1402
+ wherever such third-party notices normally appear. The contents
1403
+ of the NOTICE file are for informational purposes only and
1404
+ do not modify the License. You may add Your own attribution
1405
+ notices within Derivative Works that You distribute, alongside
1406
+ or as an addendum to the NOTICE text from the Work, provided
1407
+ that such additional attribution notices cannot be construed
1408
+ as modifying the License.
1409
+
1410
+ You may add Your own copyright statement to Your modifications and
1411
+ may provide additional or different license terms and conditions
1412
+ for use, reproduction, or distribution of Your modifications, or
1413
+ for any such Derivative Works as a whole, provided Your use,
1414
+ reproduction, and distribution of the Work otherwise complies with
1415
+ the conditions stated in this License.
1416
+
1417
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
1418
+ any Contribution intentionally submitted for inclusion in the Work
1419
+ by You to the Licensor shall be under the terms and conditions of
1420
+ this License, without any additional terms or conditions.
1421
+ Notwithstanding the above, nothing herein shall supersede or modify
1422
+ the terms of any separate license agreement you may have executed
1423
+ with Licensor regarding such Contributions.
1424
+
1425
+ 6. Trademarks. This License does not grant permission to use the trade
1426
+ names, trademarks, service marks, or product names of the Licensor,
1427
+ except as required for reasonable and customary use in describing the
1428
+ origin of the Work and reproducing the content of the NOTICE file.
1429
+
1430
+ 7. Disclaimer of Warranty. Unless required by applicable law or
1431
+ agreed to in writing, Licensor provides the Work (and each
1432
+ Contributor provides its Contributions) on an "AS IS" BASIS,
1433
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
1434
+ implied, including, without limitation, any warranties or conditions
1435
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
1436
+ PARTICULAR PURPOSE. You are solely responsible for determining the
1437
+ appropriateness of using or redistributing the Work and assume any
1438
+ risks associated with Your exercise of permissions under this License.
1439
+
1440
+ 8. Limitation of Liability. In no event and under no legal theory,
1441
+ whether in tort (including negligence), contract, or otherwise,
1442
+ unless required by applicable law (such as deliberate and grossly
1443
+ negligent acts) or agreed to in writing, shall any Contributor be
1444
+ liable to You for damages, including any direct, indirect, special,
1445
+ incidental, or consequential damages of any character arising as a
1446
+ result of this License or out of the use or inability to use the
1447
+ Work (including but not limited to damages for loss of goodwill,
1448
+ work stoppage, computer failure or malfunction, or any and all
1449
+ other commercial damages or losses), even if such Contributor
1450
+ has been advised of the possibility of such damages.
1451
+
1452
+ 9. Accepting Warranty or Additional Liability. While redistributing
1453
+ the Work or Derivative Works thereof, You may choose to offer,
1454
+ and charge a fee for, acceptance of support, warranty, indemnity,
1455
+ or other liability obligations and/or rights consistent with this
1456
+ License. However, in accepting such obligations, You may act only
1457
+ on Your own behalf and on Your sole responsibility, not on behalf
1458
+ of any other Contributor, and only if You agree to indemnify,
1459
+ defend, and hold each Contributor harmless for any liability
1460
+ incurred by, or claims asserted against, such Contributor by reason
1461
+ of your accepting any such warranty or additional liability.
1462
+
1463
+ END OF TERMS AND CONDITIONS
1464
+
1465
+ APPENDIX: How to apply the Apache License to your work.
1466
+
1467
+ To apply the Apache License to your work, attach the following
1468
+ boilerplate notice, with the fields enclosed by brackets "[]"
1469
+ replaced with your own identifying information. (Don't include
1470
+ the brackets!) The text should be enclosed in the appropriate
1471
+ comment syntax for the file format. We also recommend that a
1472
+ file or class name and description of purpose be included on the
1473
+ same "printed page" as the copyright notice for easier
1474
+ identification within third-party archives.
1475
+
1476
+ Copyright 2014 Paho Lurie-Gregg
1477
+
1478
+ Licensed under the Apache License, Version 2.0 (the "License");
1479
+ you may not use this file except in compliance with the License.
1480
+ You may obtain a copy of the License at
1481
+
1482
+ http://www.apache.org/licenses/LICENSE-2.0
1483
+
1484
+ Unless required by applicable law or agreed to in writing, software
1485
+ distributed under the License is distributed on an "AS IS" BASIS,
1486
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1487
+ See the License for the specific language governing permissions and
1488
+ limitations under the License.
1489
+ ```
1490
+
1491
+ ### Apache License 2.0 (Apache-2.0)
1492
+
1493
+ Used by: bitflags 2.13.2, bumpalo 3.20.3, cc 1.10.0, cexpr 0.6.0, cfg-if 1.0.5, either 1.19.0, equivalent 1.0.3, errno 0.3.14, filetime 0.2.29, find-msvc-tools 0.1.15, flate2 1.1.10, glob 0.3.4, hashbrown 0.17.1, heck 0.5.0, indexmap 2.14.2, itertools 0.13.0, js-sys 0.3.106, linux-raw-sys 0.12.1, log 0.4.34, once_cell 1.21.4, pkg-config 0.3.34, regex-automata 0.4.18, regex-lite 0.1.9, regex-syntax 0.8.11, regex 1.13.1, roxmltree 0.21.2, rustix 1.1.5, smallvec 1.16.4, stable_deref_trait 1.2.1, tar 0.4.46, unicode-segmentation 1.13.3, version_check 0.9.5, wasm-bindgen-macro-support 0.2.129, wasm-bindgen-macro 0.2.129, wasm-bindgen-shared 0.2.129, wasm-bindgen 0.2.129, xattr 1.6.1
1286
1494
 
1287
1495
  ```
1288
1496
  Apache License
@@ -1700,6 +1908,215 @@ limitations under the License.
1700
1908
 
1701
1909
  ### Apache License 2.0 (Apache-2.0)
1702
1910
 
1911
+ Used by: aes 0.8.4, block-buffer 0.10.4, cipher 0.4.4, cpufeatures 0.2.17, crypto-common 0.1.7, digest 0.10.7, inout 0.1.4, sha2 0.10.9
1912
+
1913
+ ```
1914
+ Apache License
1915
+ Version 2.0, January 2004
1916
+ http://www.apache.org/licenses/
1917
+
1918
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1919
+
1920
+ 1. Definitions.
1921
+
1922
+ "License" shall mean the terms and conditions for use, reproduction,
1923
+ and distribution as defined by Sections 1 through 9 of this document.
1924
+
1925
+ "Licensor" shall mean the copyright owner or entity authorized by
1926
+ the copyright owner that is granting the License.
1927
+
1928
+ "Legal Entity" shall mean the union of the acting entity and all
1929
+ other entities that control, are controlled by, or are under common
1930
+ control with that entity. For the purposes of this definition,
1931
+ "control" means (i) the power, direct or indirect, to cause the
1932
+ direction or management of such entity, whether by contract or
1933
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
1934
+ outstanding shares, or (iii) beneficial ownership of such entity.
1935
+
1936
+ "You" (or "Your") shall mean an individual or Legal Entity
1937
+ exercising permissions granted by this License.
1938
+
1939
+ "Source" form shall mean the preferred form for making modifications,
1940
+ including but not limited to software source code, documentation
1941
+ source, and configuration files.
1942
+
1943
+ "Object" form shall mean any form resulting from mechanical
1944
+ transformation or translation of a Source form, including but
1945
+ not limited to compiled object code, generated documentation,
1946
+ and conversions to other media types.
1947
+
1948
+ "Work" shall mean the work of authorship, whether in Source or
1949
+ Object form, made available under the License, as indicated by a
1950
+ copyright notice that is included in or attached to the work
1951
+ (an example is provided in the Appendix below).
1952
+
1953
+ "Derivative Works" shall mean any work, whether in Source or Object
1954
+ form, that is based on (or derived from) the Work and for which the
1955
+ editorial revisions, annotations, elaborations, or other modifications
1956
+ represent, as a whole, an original work of authorship. For the purposes
1957
+ of this License, Derivative Works shall not include works that remain
1958
+ separable from, or merely link (or bind by name) to the interfaces of,
1959
+ the Work and Derivative Works thereof.
1960
+
1961
+ "Contribution" shall mean any work of authorship, including
1962
+ the original version of the Work and any modifications or additions
1963
+ to that Work or Derivative Works thereof, that is intentionally
1964
+ submitted to Licensor for inclusion in the Work by the copyright owner
1965
+ or by an individual or Legal Entity authorized to submit on behalf of
1966
+ the copyright owner. For the purposes of this definition, "submitted"
1967
+ means any form of electronic, verbal, or written communication sent
1968
+ to the Licensor or its representatives, including but not limited to
1969
+ communication on electronic mailing lists, source code control systems,
1970
+ and issue tracking systems that are managed by, or on behalf of, the
1971
+ Licensor for the purpose of discussing and improving the Work, but
1972
+ excluding communication that is conspicuously marked or otherwise
1973
+ designated in writing by the copyright owner as "Not a Contribution."
1974
+
1975
+ "Contributor" shall mean Licensor and any individual or Legal Entity
1976
+ on behalf of whom a Contribution has been received by Licensor and
1977
+ subsequently incorporated within the Work.
1978
+
1979
+ 2. Grant of Copyright License. Subject to the terms and conditions of
1980
+ this License, each Contributor hereby grants to You a perpetual,
1981
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1982
+ copyright license to reproduce, prepare Derivative Works of,
1983
+ publicly display, publicly perform, sublicense, and distribute the
1984
+ Work and such Derivative Works in Source or Object form.
1985
+
1986
+ 3. Grant of Patent License. Subject to the terms and conditions of
1987
+ this License, each Contributor hereby grants to You a perpetual,
1988
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1989
+ (except as stated in this section) patent license to make, have made,
1990
+ use, offer to sell, sell, import, and otherwise transfer the Work,
1991
+ where such license applies only to those patent claims licensable
1992
+ by such Contributor that are necessarily infringed by their
1993
+ Contribution(s) alone or by combination of their Contribution(s)
1994
+ with the Work to which such Contribution(s) was submitted. If You
1995
+ institute patent litigation against any entity (including a
1996
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
1997
+ or a Contribution incorporated within the Work constitutes direct
1998
+ or contributory patent infringement, then any patent licenses
1999
+ granted to You under this License for that Work shall terminate
2000
+ as of the date such litigation is filed.
2001
+
2002
+ 4. Redistribution. You may reproduce and distribute copies of the
2003
+ Work or Derivative Works thereof in any medium, with or without
2004
+ modifications, and in Source or Object form, provided that You
2005
+ meet the following conditions:
2006
+
2007
+ (a) You must give any other recipients of the Work or
2008
+ Derivative Works a copy of this License; and
2009
+
2010
+ (b) You must cause any modified files to carry prominent notices
2011
+ stating that You changed the files; and
2012
+
2013
+ (c) You must retain, in the Source form of any Derivative Works
2014
+ that You distribute, all copyright, patent, trademark, and
2015
+ attribution notices from the Source form of the Work,
2016
+ excluding those notices that do not pertain to any part of
2017
+ the Derivative Works; and
2018
+
2019
+ (d) If the Work includes a "NOTICE" text file as part of its
2020
+ distribution, then any Derivative Works that You distribute must
2021
+ include a readable copy of the attribution notices contained
2022
+ within such NOTICE file, excluding those notices that do not
2023
+ pertain to any part of the Derivative Works, in at least one
2024
+ of the following places: within a NOTICE text file distributed
2025
+ as part of the Derivative Works; within the Source form or
2026
+ documentation, if provided along with the Derivative Works; or,
2027
+ within a display generated by the Derivative Works, if and
2028
+ wherever such third-party notices normally appear. The contents
2029
+ of the NOTICE file are for informational purposes only and
2030
+ do not modify the License. You may add Your own attribution
2031
+ notices within Derivative Works that You distribute, alongside
2032
+ or as an addendum to the NOTICE text from the Work, provided
2033
+ that such additional attribution notices cannot be construed
2034
+ as modifying the License.
2035
+
2036
+ You may add Your own copyright statement to Your modifications and
2037
+ may provide additional or different license terms and conditions
2038
+ for use, reproduction, or distribution of Your modifications, or
2039
+ for any such Derivative Works as a whole, provided Your use,
2040
+ reproduction, and distribution of the Work otherwise complies with
2041
+ the conditions stated in this License.
2042
+
2043
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
2044
+ any Contribution intentionally submitted for inclusion in the Work
2045
+ by You to the Licensor shall be under the terms and conditions of
2046
+ this License, without any additional terms or conditions.
2047
+ Notwithstanding the above, nothing herein shall supersede or modify
2048
+ the terms of any separate license agreement you may have executed
2049
+ with Licensor regarding such Contributions.
2050
+
2051
+ 6. Trademarks. This License does not grant permission to use the trade
2052
+ names, trademarks, service marks, or product names of the Licensor,
2053
+ except as required for reasonable and customary use in describing the
2054
+ origin of the Work and reproducing the content of the NOTICE file.
2055
+
2056
+ 7. Disclaimer of Warranty. Unless required by applicable law or
2057
+ agreed to in writing, Licensor provides the Work (and each
2058
+ Contributor provides its Contributions) on an "AS IS" BASIS,
2059
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
2060
+ implied, including, without limitation, any warranties or conditions
2061
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
2062
+ PARTICULAR PURPOSE. You are solely responsible for determining the
2063
+ appropriateness of using or redistributing the Work and assume any
2064
+ risks associated with Your exercise of permissions under this License.
2065
+
2066
+ 8. Limitation of Liability. In no event and under no legal theory,
2067
+ whether in tort (including negligence), contract, or otherwise,
2068
+ unless required by applicable law (such as deliberate and grossly
2069
+ negligent acts) or agreed to in writing, shall any Contributor be
2070
+ liable to You for damages, including any direct, indirect, special,
2071
+ incidental, or consequential damages of any character arising as a
2072
+ result of this License or out of the use or inability to use the
2073
+ Work (including but not limited to damages for loss of goodwill,
2074
+ work stoppage, computer failure or malfunction, or any and all
2075
+ other commercial damages or losses), even if such Contributor
2076
+ has been advised of the possibility of such damages.
2077
+
2078
+ 9. Accepting Warranty or Additional Liability. While redistributing
2079
+ the Work or Derivative Works thereof, You may choose to offer,
2080
+ and charge a fee for, acceptance of support, warranty, indemnity,
2081
+ or other liability obligations and/or rights consistent with this
2082
+ License. However, in accepting such obligations, You may act only
2083
+ on Your own behalf and on Your sole responsibility, not on behalf
2084
+ of any other Contributor, and only if You agree to indemnify,
2085
+ defend, and hold each Contributor harmless for any liability
2086
+ incurred by, or claims asserted against, such Contributor by reason
2087
+ of your accepting any such warranty or additional liability.
2088
+
2089
+ END OF TERMS AND CONDITIONS
2090
+
2091
+ APPENDIX: How to apply the Apache License to your work.
2092
+
2093
+ To apply the Apache License to your work, attach the following
2094
+ boilerplate notice, with the fields enclosed by brackets "[]"
2095
+ replaced with your own identifying information. (Don't include
2096
+ the brackets!) The text should be enclosed in the appropriate
2097
+ comment syntax for the file format. We also recommend that a
2098
+ file or class name and description of purpose be included on the
2099
+ same "printed page" as the copyright notice for easier
2100
+ identification within third-party archives.
2101
+
2102
+ Copyright [yyyy] [name of copyright owner]
2103
+
2104
+ Licensed under the Apache License, Version 2.0 (the "License");
2105
+ you may not use this file except in compliance with the License.
2106
+ You may obtain a copy of the License at
2107
+
2108
+ http://www.apache.org/licenses/LICENSE-2.0
2109
+
2110
+ Unless required by applicable law or agreed to in writing, software
2111
+ distributed under the License is distributed on an "AS IS" BASIS,
2112
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2113
+ See the License for the specific language governing permissions and
2114
+ limitations under the License.
2115
+
2116
+ ```
2117
+
2118
+ ### Apache License 2.0 (Apache-2.0)
2119
+
1703
2120
  Used by: getrandom 0.4.3
1704
2121
 
1705
2122
  ```
@@ -2849,6 +3266,34 @@ SOFTWARE.
2849
3266
 
2850
3267
  ```
2851
3268
 
3269
+ ### MIT License (MIT)
3270
+
3271
+ Used by: generic-array 0.14.7
3272
+
3273
+ ```
3274
+ The MIT License (MIT)
3275
+
3276
+ Copyright (c) 2015 Bartłomiej Kamiński
3277
+
3278
+ Permission is hereby granted, free of charge, to any person obtaining a copy
3279
+ of this software and associated documentation files (the "Software"), to deal
3280
+ in the Software without restriction, including without limitation the rights
3281
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3282
+ copies of the Software, and to permit persons to whom the Software is
3283
+ furnished to do so, subject to the following conditions:
3284
+
3285
+ The above copyright notice and this permission notice shall be included in all
3286
+ copies or substantial portions of the Software.
3287
+
3288
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3289
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3290
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3291
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3292
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3293
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3294
+ SOFTWARE.
3295
+ ```
3296
+
2852
3297
  ### Mozilla Public License 2.0 (MPL-2.0)
2853
3298
 
2854
3299
  Used by: spellbook 0.4.2, spellbook 0.4.2
@@ -623,7 +623,7 @@ export interface Commands {
623
623
  selectNextPlaceholder(): Promise<void>;
624
624
  /** Selects the previous placeholder in document order, wrapping; Shift+Tab while one is selected. View. */
625
625
  selectPreviousPlaceholder(): Promise<void>;
626
- /** Fills the selected placeholder, or every unfilled one with `key`. */
626
+ /** Fills the selected placeholder, or every unfilled one with `key`: each becomes a plain picture, its content control removed. */
627
627
  fillPlaceholder(options: {
628
628
  key?: string;
629
629
  image: Uint8Array;
package/dist/editor.d.ts CHANGED
@@ -79,6 +79,24 @@ export interface MountOptions extends SessionOptions {
79
79
  /** Aborts the mount; everything it created is released. */
80
80
  signal?: AbortSignal;
81
81
  }
82
+ /** What a PDF writes beyond the pages. */
83
+ export interface PdfOptions {
84
+ /**
85
+ * Encrypts the PDF with AES-256: readers ask for this password before showing anything. Must not be empty. A protected
86
+ * PDF doesn't claim PDF/A conformance, and the export warns that the claim was dropped.
87
+ */
88
+ openPassword?: string;
89
+ /** Written to the PDF's keywords metadata, in order. Blank entries are dropped. */
90
+ keywords?: readonly string[];
91
+ }
92
+ /** What {@link HeadlessEditor.export} writes: DOCX, or PDF with its options. */
93
+ export type ExportOptions = {
94
+ format: 'docx';
95
+ signal?: AbortSignal;
96
+ } | ({
97
+ format: 'pdf';
98
+ signal?: AbortSignal;
99
+ } & PdfOptions);
82
100
  /** An exported document. */
83
101
  export interface ExportResult {
84
102
  /** The file. */
@@ -173,11 +191,11 @@ export declare class HeadlessEditor {
173
191
  }>;
174
192
  /** Replaces the document with a blank one. */
175
193
  newDocument(): Promise<void>;
176
- /** Exports the document as DOCX or PDF, with the revision it captures. */
177
- export(options: {
178
- format: 'docx' | 'pdf';
179
- signal?: AbortSignal;
180
- }): Promise<ExportResult>;
194
+ /**
195
+ * Exports the document as DOCX or PDF, with the revision it captures. A PDF can take an open password and keywords;
196
+ * an empty password rejects with `invalid-argument`.
197
+ */
198
+ export(options: ExportOptions): Promise<ExportResult>;
181
199
  /** Runs several commands atomically: one transaction and one undo step, or nothing when one fails. */
182
200
  batch(ops: readonly Op[], options?: {
183
201
  label?: string;
package/dist/editor.js CHANGED
@@ -328,12 +328,18 @@ export class HeadlessEditor {
328
328
  newDocument() {
329
329
  return sessionOf(this).call(Method.NewDocument);
330
330
  }
331
- /** Exports the document as DOCX or PDF, with the revision it captures. */
331
+ /**
332
+ * Exports the document as DOCX or PDF, with the revision it captures. A PDF can take an open password and keywords;
333
+ * an empty password rejects with `invalid-argument`.
334
+ */
332
335
  export(options) {
333
336
  const s = sessionOf(this);
334
- const { format, signal } = options;
337
+ const { signal, ...wire } = options;
338
+ if (wire.format === 'pdf' && wire.openPassword === '') {
339
+ return Promise.reject(new EditorError('invalid-argument', 'the open password is empty'));
340
+ }
335
341
  return s.guard(async () => {
336
- const result = await s.transport.export(s.id, { format }, signal);
342
+ const result = await s.transport.export(s.id, wire, signal);
337
343
  if (signal?.aborted)
338
344
  throw aborted();
339
345
  return result;
package/dist/events.d.ts CHANGED
@@ -22,8 +22,7 @@ export interface TwipEvents {
22
22
  via: 'ctrlClick' | 'click';
23
23
  };
24
24
  /**
25
- * An unfilled picture placeholder was clicked, or one of its buttons (`action`: the button's id, or `replace` from a
26
- * filled block's tab).
25
+ * An unfilled picture placeholder was clicked, or one of its buttons (`action`: the button's id).
27
26
  */
28
27
  placeholderActivated: {
29
28
  key: string;
@@ -159,7 +158,7 @@ export type HostCommand = 'save' | 'saveAs' | 'print' | 'open' | 'new' | 'find'
159
158
  /** A hover tooltip to show. */
160
159
  export interface Tooltip {
161
160
  /** What is hovered. */
162
- kind: 'link' | 'mark' | 'revision' | 'comment';
161
+ kind: 'link' | 'mark' | 'revision' | 'comment' | 'placeholder';
163
162
  /** The text to show. */
164
163
  text: string;
165
164
  /** The pointer. */
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * @packageDocumentation
6
6
  */
7
7
  export { Editor, HeadlessEditor } from './editor.js';
8
- export type { ExportResult, MountOptions, SessionOptions } from './editor.js';
8
+ export type { ExportOptions, ExportResult, MountOptions, PdfOptions, SessionOptions } from './editor.js';
9
9
  export type { CommandEntry, CommandId, CommandInfo, Commands, FieldTargets, NoArgumentCommandId, Op, OpArgs, PlaceholderAction, PlaceholderLook, } from './commands.js';
10
10
  export type { AutoCorrectChange, AutoCorrectEntry, AutoCorrectOptions, CharacterFormatting, CommandState, CommandValues, EditingTarget, EditorState, ElementContext, HighlightColor, HorizontalPosition, HorizontalReference, LineSpacing, MarkupView, Mixed, ObjectHorizontalAlignment, ObjectPlacement, ObjectSelection, ObjectVerticalAlignment, ObjectWrap, PageFormatting, ParagraphFormatting, ReviewState, RowHeight, SelectionSummary, TablePosition, TableSelection, TableStyleOptions, TableWidth, TextDistance, Tri, UnderlineStyle, VerticalPosition, VerticalReference, ViewState, WrapSide, } from './state.js';
11
11
  export type { HostCommand, PlaceholderKind, PlaceholderTarget, Tooltip, TransactionRecord, TwipEvents } from './events.js';
@@ -37,7 +37,7 @@ export interface PlaceholderInfo {
37
37
  key: string;
38
38
  /** The control it is in. */
39
39
  element: ElementId | null;
40
- /** The input block's button pressed (its id), or `replace` from a filled block's tab; absent: the block itself. */
40
+ /** The input block's button pressed (its id); absent: the block itself. */
41
41
  action?: string;
42
42
  }
43
43
  /** {@link Elements} on a mounted editor: adds drop targets and hit testing. */
@@ -1,6 +1,6 @@
1
1
  import type { FaceInfo } from '../fonts/library.js';
2
2
  import type { Warning } from '../types.js';
3
- import { type Backend, type FrameInfo, type Input, type Message, Method, type Transport } from './protocol.js';
3
+ import { type Backend, type FrameInfo, type Input, type Message, Method, type Transport, type WireExportOptions } from './protocol.js';
4
4
  /** The page's one direct transport, loading the engine module on first use. */
5
5
  export declare function directTransport(): Promise<DirectTransport>;
6
6
  /** The {@link Transport} that calls the engine module on this thread. */
@@ -16,9 +16,7 @@ export declare class DirectTransport implements Transport {
16
16
  openPrepare(session: number, bytes: Uint8Array): Promise<number>;
17
17
  openCommit(session: number, token: number): Promise<Warning[]>;
18
18
  openDiscard(session: number, token: number): Promise<void>;
19
- export(session: number, options: {
20
- format: 'docx' | 'pdf';
21
- }, signal?: AbortSignal): Promise<{
19
+ export(session: number, options: WireExportOptions, signal?: AbortSignal): Promise<{
22
20
  bytes: Uint8Array<ArrayBufferLike>;
23
21
  revision: number;
24
22
  warnings: Warning[];
@@ -4,6 +4,12 @@ import type { FaceInfo } from '../fonts/library.js';
4
4
  import type { AccessibleId, AccessibleNode } from '../services/accessibility.js';
5
5
  import type { Warning } from '../types.js';
6
6
  /** Structured call numbers: `TwipMethod` in `twip.h`, the C ABI's `Method`. The two lists must match exactly. */
7
+ /** An export's options on the wire: the format, and a PDF's options beside it. */
8
+ export interface WireExportOptions {
9
+ format: 'docx' | 'pdf';
10
+ openPassword?: string;
11
+ keywords?: readonly string[];
12
+ }
7
13
  export declare const Method: {
8
14
  readonly Run: 1;
9
15
  readonly Batch: 2;
@@ -273,9 +279,7 @@ export interface Transport {
273
279
  /** Drops a prepared document: the open one stays. */
274
280
  openDiscard(session: number, token: number): Promise<void>;
275
281
  /** Exports the document. */
276
- export(session: number, options: {
277
- format: 'docx' | 'pdf';
278
- }, signal?: AbortSignal): Promise<{
282
+ export(session: number, options: WireExportOptions, signal?: AbortSignal): Promise<{
279
283
  bytes: Uint8Array;
280
284
  revision: number;
281
285
  warnings: Warning[];
@@ -2,7 +2,6 @@
2
2
  // (DirectTransport) or in the page's engine worker; both deliver the same message stream and run operations in one
3
3
  // ordered queue, so the public classes don't know which one they talk to.
4
4
  import { EditorError } from '../errors.js';
5
- /** Structured call numbers: `TwipMethod` in `twip.h`, the C ABI's `Method`. The two lists must match exactly. */
6
5
  export const Method = {
7
6
  Run: 1,
8
7
  Batch: 2,
@@ -1,7 +1,7 @@
1
1
  import { EditorError } from '../errors.js';
2
2
  import type { FaceInfo } from '../fonts/library.js';
3
3
  import type { Warning } from '../types.js';
4
- import { type Backend, type FrameInfo, type Input, type Message, Method, type Transport } from './protocol.js';
4
+ import { type Backend, type FrameInfo, type Input, type Message, Method, type Transport, type WireExportOptions } from './protocol.js';
5
5
  /** A call to the worker: a {@link Transport} method and its arguments (without the signal), or an abort. */
6
6
  export interface Request {
7
7
  id: number;
@@ -38,9 +38,7 @@ export declare class WorkerTransport implements Transport {
38
38
  openPrepare(session: number, bytes: Uint8Array): Promise<number>;
39
39
  openCommit(session: number, token: number): Promise<Warning[]>;
40
40
  openDiscard(session: number, token: number): Promise<void>;
41
- export(session: number, options: {
42
- format: 'docx' | 'pdf';
43
- }, signal?: AbortSignal): Promise<{
41
+ export(session: number, options: WireExportOptions, signal?: AbortSignal): Promise<{
44
42
  bytes: Uint8Array;
45
43
  revision: number;
46
44
  warnings: Warning[];
Binary file
package/dist/types.d.ts CHANGED
@@ -103,7 +103,7 @@ export interface Author {
103
103
  /** A recoverable fidelity issue found while reading or writing a document. Aggregated per code and part. */
104
104
  export interface Warning {
105
105
  /** What kind of issue it is. */
106
- code: 'unsupported-element' | 'image-undecodable' | 'font-unresolved' | 'font-substituted' | 'rewritten-content' | 'pdf-font-fallback' | 'revision-id-missing' | 'range-unpaired' | 'author-missing' | 'comment-unanchored' | 'comment-reference-orphan' | 'unknown-preset' | 'glossary-unreadable' | 'duplicate-building-block' | 'sub-template-cycle' | 'sub-template-too-deep' | 'sub-template-near-match';
106
+ code: 'unsupported-element' | 'image-undecodable' | 'font-unresolved' | 'font-substituted' | 'rewritten-content' | 'pdf-font-fallback' | 'pdf-archival-claim-dropped' | 'revision-id-missing' | 'range-unpaired' | 'author-missing' | 'comment-unanchored' | 'comment-reference-orphan' | 'unknown-preset' | 'glossary-unreadable' | 'duplicate-building-block' | 'sub-template-cycle' | 'sub-template-too-deep' | 'sub-template-near-match';
107
107
  /** A readable description. */
108
108
  message: string;
109
109
  /** How many times it occurred. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twip/web",
3
- "version": "0.0.0-canary-6f0bf0b",
3
+ "version": "0.0.0-canary-05bfdb9",
4
4
  "description": "The Twip DOCX editor for the browser and Node: a managed, framework-independent editor over the WebAssembly engine.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",