@twip/web 0.0.0-canary-4e9c983 → 0.0.0-canary-092e560

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.
@@ -3384,7 +3384,7 @@ the following restrictions:
3384
3384
  3. This notice may not be removed or altered from any source distribution.
3385
3385
  ```
3386
3386
 
3387
- ## C and C++ libraries, and fonts
3387
+ ## C and C++ libraries, fonts and data
3388
3388
 
3389
3389
  ### Skia (BSD-3-Clause)
3390
3390
 
@@ -5455,3 +5455,525 @@ given a different name.
5455
5455
 
5456
5456
  $Id$
5457
5457
  ```
5458
+
5459
+ ### ECMA-376 preset shape definitions (LicenseRef-Ecma)
5460
+
5461
+ In: the native library and the WebAssembly module
5462
+
5463
+ ```
5464
+ The preset shape geometries built into the engine are generated from presetShapeDefinitions.xml, an electronic insert
5465
+ of ECMA-376 Part 1, Office Open XML File Formats - Fundamentals and Markup Language Reference, 5th edition (December
5466
+ 2016), https://ecma-international.org/publications-and-standards/standards/ecma-376/
5467
+
5468
+ COPYRIGHT NOTICE
5469
+ (c) Ecma International
5470
+ By obtaining and/or copying this work, you (the licensee) agree that you have read, understood, and will comply
5471
+ with the following terms and conditions.
5472
+ This document may be copied, published and distributed to others, and certain derivative works of it may be
5473
+ prepared, copied, published, and distributed, in whole or in part, provided that the above copyright notice and
5474
+ this Copyright License and Disclaimer are included on all such copies and derivative works. The only derivative
5475
+ works that are permissible under this Copyright License and Disclaimer are:
5476
+ (i) works which incorporate all or portion of this document for the purpose of providing commentary or
5477
+ explanation (such as an annotated version of the document),
5478
+ (ii) works which incorporate all or portion of this document for the purpose of incorporating features that
5479
+ provide accessibility,
5480
+ (iii) translations of this document into languages other than English and into different formats and
5481
+ (iv) works by making use of this specification in standard conformant products by implementing (e.g. by
5482
+ copy and paste wholly or partly) the functionality therein.
5483
+ However, the content of this document itself may not be modified in any way, including by removing the
5484
+ copyright notice or references to Ecma International, except as required to translate it into languages other
5485
+ than English or into a different format.
5486
+ The official version of an Ecma International document is the English language version on the Ecma
5487
+ International website. In the event of discrepancies between a translated version and the official version, the
5488
+ official version shall govern.
5489
+ The limited permissions granted above are perpetual and will not be revoked by Ecma International or its
5490
+ successors or assigns.
5491
+ This document and the information contained herein is provided on an "AS IS" basis and ECMA
5492
+ INTERNATIONAL DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT
5493
+ THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED WARRANTIES OF
5494
+ MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
5495
+ ```
5496
+
5497
+ ### JetBrains Mono (subset) (OFL-1.1)
5498
+
5499
+ In: the native library and the WebAssembly module
5500
+
5501
+ ```
5502
+ Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
5503
+
5504
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
5505
+ This license is copied below, and is also available with a FAQ at:
5506
+ https://scripts.sil.org/OFL
5507
+
5508
+
5509
+ -----------------------------------------------------------
5510
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
5511
+ -----------------------------------------------------------
5512
+
5513
+ PREAMBLE
5514
+ The goals of the Open Font License (OFL) are to stimulate worldwide
5515
+ development of collaborative font projects, to support the font creation
5516
+ efforts of academic and linguistic communities, and to provide a free and
5517
+ open framework in which fonts may be shared and improved in partnership
5518
+ with others.
5519
+
5520
+ The OFL allows the licensed fonts to be used, studied, modified and
5521
+ redistributed freely as long as they are not sold by themselves. The
5522
+ fonts, including any derivative works, can be bundled, embedded,
5523
+ redistributed and/or sold with any software provided that any reserved
5524
+ names are not used by derivative works. The fonts and derivatives,
5525
+ however, cannot be released under any other type of license. The
5526
+ requirement for fonts to remain under this license does not apply
5527
+ to any document created using the fonts or their derivatives.
5528
+
5529
+ DEFINITIONS
5530
+ "Font Software" refers to the set of files released by the Copyright
5531
+ Holder(s) under this license and clearly marked as such. This may
5532
+ include source files, build scripts and documentation.
5533
+
5534
+ "Reserved Font Name" refers to any names specified as such after the
5535
+ copyright statement(s).
5536
+
5537
+ "Original Version" refers to the collection of Font Software components as
5538
+ distributed by the Copyright Holder(s).
5539
+
5540
+ "Modified Version" refers to any derivative made by adding to, deleting,
5541
+ or substituting -- in part or in whole -- any of the components of the
5542
+ Original Version, by changing formats or by porting the Font Software to a
5543
+ new environment.
5544
+
5545
+ "Author" refers to any designer, engineer, programmer, technical
5546
+ writer or other person who contributed to the Font Software.
5547
+
5548
+ PERMISSION & CONDITIONS
5549
+ Permission is hereby granted, free of charge, to any person obtaining
5550
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
5551
+ redistribute, and sell modified and unmodified copies of the Font
5552
+ Software, subject to the following conditions:
5553
+
5554
+ 1) Neither the Font Software nor any of its individual components,
5555
+ in Original or Modified Versions, may be sold by itself.
5556
+
5557
+ 2) Original or Modified Versions of the Font Software may be bundled,
5558
+ redistributed and/or sold with any software, provided that each copy
5559
+ contains the above copyright notice and this license. These can be
5560
+ included either as stand-alone text files, human-readable headers or
5561
+ in the appropriate machine-readable metadata fields within text or
5562
+ binary files as long as those fields can be easily viewed by the user.
5563
+
5564
+ 3) No Modified Version of the Font Software may use the Reserved Font
5565
+ Name(s) unless explicit written permission is granted by the corresponding
5566
+ Copyright Holder. This restriction only applies to the primary font name as
5567
+ presented to the users.
5568
+
5569
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
5570
+ Software shall not be used to promote, endorse or advertise any
5571
+ Modified Version, except to acknowledge the contribution(s) of the
5572
+ Copyright Holder(s) and the Author(s) or with their explicit written
5573
+ permission.
5574
+
5575
+ 5) The Font Software, modified or unmodified, in part or in whole,
5576
+ must be distributed entirely under this license, and must not be
5577
+ distributed under any other license. The requirement for fonts to
5578
+ remain under this license does not apply to any document created
5579
+ using the Font Software.
5580
+
5581
+ TERMINATION
5582
+ This license becomes null and void if any of the above conditions are
5583
+ not met.
5584
+
5585
+ DISCLAIMER
5586
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
5587
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
5588
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
5589
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
5590
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
5591
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
5592
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
5593
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
5594
+ OTHER DEALINGS IN THE FONT SOFTWARE.
5595
+ ```
5596
+
5597
+ ### LibreOffice AutoCorrect list (en-US) (MPL-2.0)
5598
+
5599
+ In: the native library and the WebAssembly module
5600
+
5601
+ ```
5602
+ The AutoCorrect replacement list (crates/twip/src/editing/autocorrect/en-US.tsv) is derived from LibreOffice's
5603
+ extras/source/autocorr/lang/en-US/DocumentList.xml (https://github.com/LibreOffice/core), and is licensed under the
5604
+ Mozilla Public License 2.0:
5605
+
5606
+ Mozilla Public License Version 2.0
5607
+ ==================================
5608
+
5609
+ 1. Definitions
5610
+ --------------
5611
+
5612
+ 1.1. "Contributor"
5613
+ means each individual or legal entity that creates, contributes to
5614
+ the creation of, or owns Covered Software.
5615
+
5616
+ 1.2. "Contributor Version"
5617
+ means the combination of the Contributions of others (if any) used
5618
+ by a Contributor and that particular Contributor's Contribution.
5619
+
5620
+ 1.3. "Contribution"
5621
+ means Covered Software of a particular Contributor.
5622
+
5623
+ 1.4. "Covered Software"
5624
+ means Source Code Form to which the initial Contributor has attached
5625
+ the notice in Exhibit A, the Executable Form of such Source Code
5626
+ Form, and Modifications of such Source Code Form, in each case
5627
+ including portions thereof.
5628
+
5629
+ 1.5. "Incompatible With Secondary Licenses"
5630
+ means
5631
+
5632
+ (a) that the initial Contributor has attached the notice described
5633
+ in Exhibit B to the Covered Software; or
5634
+
5635
+ (b) that the Covered Software was made available under the terms of
5636
+ version 1.1 or earlier of the License, but not also under the
5637
+ terms of a Secondary License.
5638
+
5639
+ 1.6. "Executable Form"
5640
+ means any form of the work other than Source Code Form.
5641
+
5642
+ 1.7. "Larger Work"
5643
+ means a work that combines Covered Software with other material, in
5644
+ a separate file or files, that is not Covered Software.
5645
+
5646
+ 1.8. "License"
5647
+ means this document.
5648
+
5649
+ 1.9. "Licensable"
5650
+ means having the right to grant, to the maximum extent possible,
5651
+ whether at the time of the initial grant or subsequently, any and
5652
+ all of the rights conveyed by this License.
5653
+
5654
+ 1.10. "Modifications"
5655
+ means any of the following:
5656
+
5657
+ (a) any file in Source Code Form that results from an addition to,
5658
+ deletion from, or modification of the contents of Covered
5659
+ Software; or
5660
+
5661
+ (b) any new file in Source Code Form that contains any Covered
5662
+ Software.
5663
+
5664
+ 1.11. "Patent Claims" of a Contributor
5665
+ means any patent claim(s), including without limitation, method,
5666
+ process, and apparatus claims, in any patent Licensable by such
5667
+ Contributor that would be infringed, but for the grant of the
5668
+ License, by the making, using, selling, offering for sale, having
5669
+ made, import, or transfer of either its Contributions or its
5670
+ Contributor Version.
5671
+
5672
+ 1.12. "Secondary License"
5673
+ means either the GNU General Public License, Version 2.0, the GNU
5674
+ Lesser General Public License, Version 2.1, the GNU Affero General
5675
+ Public License, Version 3.0, or any later versions of those
5676
+ licenses.
5677
+
5678
+ 1.13. "Source Code Form"
5679
+ means the form of the work preferred for making modifications.
5680
+
5681
+ 1.14. "You" (or "Your")
5682
+ means an individual or a legal entity exercising rights under this
5683
+ License. For legal entities, "You" includes any entity that
5684
+ controls, is controlled by, or is under common control with You. For
5685
+ purposes of this definition, "control" means (a) the power, direct
5686
+ or indirect, to cause the direction or management of such entity,
5687
+ whether by contract or otherwise, or (b) ownership of more than
5688
+ fifty percent (50%) of the outstanding shares or beneficial
5689
+ ownership of such entity.
5690
+
5691
+ 2. License Grants and Conditions
5692
+ --------------------------------
5693
+
5694
+ 2.1. Grants
5695
+
5696
+ Each Contributor hereby grants You a world-wide, royalty-free,
5697
+ non-exclusive license:
5698
+
5699
+ (a) under intellectual property rights (other than patent or trademark)
5700
+ Licensable by such Contributor to use, reproduce, make available,
5701
+ modify, display, perform, distribute, and otherwise exploit its
5702
+ Contributions, either on an unmodified basis, with Modifications, or
5703
+ as part of a Larger Work; and
5704
+
5705
+ (b) under Patent Claims of such Contributor to make, use, sell, offer
5706
+ for sale, have made, import, and otherwise transfer either its
5707
+ Contributions or its Contributor Version.
5708
+
5709
+ 2.2. Effective Date
5710
+
5711
+ The licenses granted in Section 2.1 with respect to any Contribution
5712
+ become effective for each Contribution on the date the Contributor first
5713
+ distributes such Contribution.
5714
+
5715
+ 2.3. Limitations on Grant Scope
5716
+
5717
+ The licenses granted in this Section 2 are the only rights granted under
5718
+ this License. No additional rights or licenses will be implied from the
5719
+ distribution or licensing of Covered Software under this License.
5720
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
5721
+ Contributor:
5722
+
5723
+ (a) for any code that a Contributor has removed from Covered Software;
5724
+ or
5725
+
5726
+ (b) for infringements caused by: (i) Your and any other third party's
5727
+ modifications of Covered Software, or (ii) the combination of its
5728
+ Contributions with other software (except as part of its Contributor
5729
+ Version); or
5730
+
5731
+ (c) under Patent Claims infringed by Covered Software in the absence of
5732
+ its Contributions.
5733
+
5734
+ This License does not grant any rights in the trademarks, service marks,
5735
+ or logos of any Contributor (except as may be necessary to comply with
5736
+ the notice requirements in Section 3.4).
5737
+
5738
+ 2.4. Subsequent Licenses
5739
+
5740
+ No Contributor makes additional grants as a result of Your choice to
5741
+ distribute the Covered Software under a subsequent version of this
5742
+ License (see Section 10.2) or under the terms of a Secondary License (if
5743
+ permitted under the terms of Section 3.3).
5744
+
5745
+ 2.5. Representation
5746
+
5747
+ Each Contributor represents that the Contributor believes its
5748
+ Contributions are its original creation(s) or it has sufficient rights
5749
+ to grant the rights to its Contributions conveyed by this License.
5750
+
5751
+ 2.6. Fair Use
5752
+
5753
+ This License is not intended to limit any rights You have under
5754
+ applicable copyright doctrines of fair use, fair dealing, or other
5755
+ equivalents.
5756
+
5757
+ 2.7. Conditions
5758
+
5759
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
5760
+ in Section 2.1.
5761
+
5762
+ 3. Responsibilities
5763
+ -------------------
5764
+
5765
+ 3.1. Distribution of Source Form
5766
+
5767
+ All distribution of Covered Software in Source Code Form, including any
5768
+ Modifications that You create or to which You contribute, must be under
5769
+ the terms of this License. You must inform recipients that the Source
5770
+ Code Form of the Covered Software is governed by the terms of this
5771
+ License, and how they can obtain a copy of this License. You may not
5772
+ attempt to alter or restrict the recipients' rights in the Source Code
5773
+ Form.
5774
+
5775
+ 3.2. Distribution of Executable Form
5776
+
5777
+ If You distribute Covered Software in Executable Form then:
5778
+
5779
+ (a) such Covered Software must also be made available in Source Code
5780
+ Form, as described in Section 3.1, and You must inform recipients of
5781
+ the Executable Form how they can obtain a copy of such Source Code
5782
+ Form by reasonable means in a timely manner, at a charge no more
5783
+ than the cost of distribution to the recipient; and
5784
+
5785
+ (b) You may distribute such Executable Form under the terms of this
5786
+ License, or sublicense it under different terms, provided that the
5787
+ license for the Executable Form does not attempt to limit or alter
5788
+ the recipients' rights in the Source Code Form under this License.
5789
+
5790
+ 3.3. Distribution of a Larger Work
5791
+
5792
+ You may create and distribute a Larger Work under terms of Your choice,
5793
+ provided that You also comply with the requirements of this License for
5794
+ the Covered Software. If the Larger Work is a combination of Covered
5795
+ Software with a work governed by one or more Secondary Licenses, and the
5796
+ Covered Software is not Incompatible With Secondary Licenses, this
5797
+ License permits You to additionally distribute such Covered Software
5798
+ under the terms of such Secondary License(s), so that the recipient of
5799
+ the Larger Work may, at their option, further distribute the Covered
5800
+ Software under the terms of either this License or such Secondary
5801
+ License(s).
5802
+
5803
+ 3.4. Notices
5804
+
5805
+ You may not remove or alter the substance of any license notices
5806
+ (including copyright notices, patent notices, disclaimers of warranty,
5807
+ or limitations of liability) contained within the Source Code Form of
5808
+ the Covered Software, except that You may alter any license notices to
5809
+ the extent required to remedy known factual inaccuracies.
5810
+
5811
+ 3.5. Application of Additional Terms
5812
+
5813
+ You may choose to offer, and to charge a fee for, warranty, support,
5814
+ indemnity or liability obligations to one or more recipients of Covered
5815
+ Software. However, You may do so only on Your own behalf, and not on
5816
+ behalf of any Contributor. You must make it absolutely clear that any
5817
+ such warranty, support, indemnity, or liability obligation is offered by
5818
+ You alone, and You hereby agree to indemnify every Contributor for any
5819
+ liability incurred by such Contributor as a result of warranty, support,
5820
+ indemnity or liability terms You offer. You may include additional
5821
+ disclaimers of warranty and limitations of liability specific to any
5822
+ jurisdiction.
5823
+
5824
+ 4. Inability to Comply Due to Statute or Regulation
5825
+ ---------------------------------------------------
5826
+
5827
+ If it is impossible for You to comply with any of the terms of this
5828
+ License with respect to some or all of the Covered Software due to
5829
+ statute, judicial order, or regulation then You must: (a) comply with
5830
+ the terms of this License to the maximum extent possible; and (b)
5831
+ describe the limitations and the code they affect. Such description must
5832
+ be placed in a text file included with all distributions of the Covered
5833
+ Software under this License. Except to the extent prohibited by statute
5834
+ or regulation, such description must be sufficiently detailed for a
5835
+ recipient of ordinary skill to be able to understand it.
5836
+
5837
+ 5. Termination
5838
+ --------------
5839
+
5840
+ 5.1. The rights granted under this License will terminate automatically
5841
+ if You fail to comply with any of its terms. However, if You become
5842
+ compliant, then the rights granted under this License from a particular
5843
+ Contributor are reinstated (a) provisionally, unless and until such
5844
+ Contributor explicitly and finally terminates Your grants, and (b) on an
5845
+ ongoing basis, if such Contributor fails to notify You of the
5846
+ non-compliance by some reasonable means prior to 60 days after You have
5847
+ come back into compliance. Moreover, Your grants from a particular
5848
+ Contributor are reinstated on an ongoing basis if such Contributor
5849
+ notifies You of the non-compliance by some reasonable means, this is the
5850
+ first time You have received notice of non-compliance with this License
5851
+ from such Contributor, and You become compliant prior to 30 days after
5852
+ Your receipt of the notice.
5853
+
5854
+ 5.2. If You initiate litigation against any entity by asserting a patent
5855
+ infringement claim (excluding declaratory judgment actions,
5856
+ counter-claims, and cross-claims) alleging that a Contributor Version
5857
+ directly or indirectly infringes any patent, then the rights granted to
5858
+ You by any and all Contributors for the Covered Software under Section
5859
+ 2.1 of this License shall terminate.
5860
+
5861
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
5862
+ end user license agreements (excluding distributors and resellers) which
5863
+ have been validly granted by You or Your distributors under this License
5864
+ prior to termination shall survive termination.
5865
+
5866
+ ************************************************************************
5867
+ * *
5868
+ * 6. Disclaimer of Warranty *
5869
+ * ------------------------- *
5870
+ * *
5871
+ * Covered Software is provided under this License on an "as is" *
5872
+ * basis, without warranty of any kind, either expressed, implied, or *
5873
+ * statutory, including, without limitation, warranties that the *
5874
+ * Covered Software is free of defects, merchantable, fit for a *
5875
+ * particular purpose or non-infringing. The entire risk as to the *
5876
+ * quality and performance of the Covered Software is with You. *
5877
+ * Should any Covered Software prove defective in any respect, You *
5878
+ * (not any Contributor) assume the cost of any necessary servicing, *
5879
+ * repair, or correction. This disclaimer of warranty constitutes an *
5880
+ * essential part of this License. No use of any Covered Software is *
5881
+ * authorized under this License except under this disclaimer. *
5882
+ * *
5883
+ ************************************************************************
5884
+
5885
+ ************************************************************************
5886
+ * *
5887
+ * 7. Limitation of Liability *
5888
+ * -------------------------- *
5889
+ * *
5890
+ * Under no circumstances and under no legal theory, whether tort *
5891
+ * (including negligence), contract, or otherwise, shall any *
5892
+ * Contributor, or anyone who distributes Covered Software as *
5893
+ * permitted above, be liable to You for any direct, indirect, *
5894
+ * special, incidental, or consequential damages of any character *
5895
+ * including, without limitation, damages for lost profits, loss of *
5896
+ * goodwill, work stoppage, computer failure or malfunction, or any *
5897
+ * and all other commercial damages or losses, even if such party *
5898
+ * shall have been informed of the possibility of such damages. This *
5899
+ * limitation of liability shall not apply to liability for death or *
5900
+ * personal injury resulting from such party's negligence to the *
5901
+ * extent applicable law prohibits such limitation. Some *
5902
+ * jurisdictions do not allow the exclusion or limitation of *
5903
+ * incidental or consequential damages, so this exclusion and *
5904
+ * limitation may not apply to You. *
5905
+ * *
5906
+ ************************************************************************
5907
+
5908
+ 8. Litigation
5909
+ -------------
5910
+
5911
+ Any litigation relating to this License may be brought only in the
5912
+ courts of a jurisdiction where the defendant maintains its principal
5913
+ place of business and such litigation shall be governed by laws of that
5914
+ jurisdiction, without reference to its conflict-of-law provisions.
5915
+ Nothing in this Section shall prevent a party's ability to bring
5916
+ cross-claims or counter-claims.
5917
+
5918
+ 9. Miscellaneous
5919
+ ----------------
5920
+
5921
+ This License represents the complete agreement concerning the subject
5922
+ matter hereof. If any provision of this License is held to be
5923
+ unenforceable, such provision shall be reformed only to the extent
5924
+ necessary to make it enforceable. Any law or regulation which provides
5925
+ that the language of a contract shall be construed against the drafter
5926
+ shall not be used to construe this License against a Contributor.
5927
+
5928
+ 10. Versions of the License
5929
+ ---------------------------
5930
+
5931
+ 10.1. New Versions
5932
+
5933
+ Mozilla Foundation is the license steward. Except as provided in Section
5934
+ 10.3, no one other than the license steward has the right to modify or
5935
+ publish new versions of this License. Each version will be given a
5936
+ distinguishing version number.
5937
+
5938
+ 10.2. Effect of New Versions
5939
+
5940
+ You may distribute the Covered Software under the terms of the version
5941
+ of the License under which You originally received the Covered Software,
5942
+ or under the terms of any subsequent version published by the license
5943
+ steward.
5944
+
5945
+ 10.3. Modified Versions
5946
+
5947
+ If you create software not governed by this License, and you want to
5948
+ create a new license for such software, you may create and use a
5949
+ modified version of this License if you rename the license and remove
5950
+ any references to the name of the license steward (except to note that
5951
+ such modified license differs from this License).
5952
+
5953
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
5954
+ Licenses
5955
+
5956
+ If You choose to distribute Source Code Form that is Incompatible With
5957
+ Secondary Licenses under the terms of this version of the License, the
5958
+ notice described in Exhibit B of this License must be attached.
5959
+
5960
+ Exhibit A - Source Code Form License Notice
5961
+ -------------------------------------------
5962
+
5963
+ This Source Code Form is subject to the terms of the Mozilla Public
5964
+ License, v. 2.0. If a copy of the MPL was not distributed with this
5965
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
5966
+
5967
+ If it is not possible or desirable to put the notice in a particular
5968
+ file, then You may include the notice in a location (such as a LICENSE
5969
+ file in a relevant directory) where a recipient would be likely to look
5970
+ for such a notice.
5971
+
5972
+ You may add additional accurate notices of copyright ownership.
5973
+
5974
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
5975
+ ---------------------------------------------------------
5976
+
5977
+ This Source Code Form is "Incompatible With Secondary Licenses", as
5978
+ defined by the Mozilla Public License, v. 2.0.
5979
+ ```
@@ -1,8 +1,9 @@
1
1
  import type { RichText } from './review.js';
2
2
  import type { ControlKind, ControlOptions, DataBinding } from './services/elements.js';
3
- import type { TabAlignment, TabLeader } from './services/ruler.js';
4
- import type { HighlightColor, HorizontalPosition, LineSpacing, MarkupView, ObjectWrap, RowHeight, TableWidth, UnderlineStyle, VerticalPosition, WrapSide } from './state.js';
5
- import type { Color, CommentId, ElementId, Points, RevisionId, StyleId } from './types.js';
3
+ import type { TabAlignment, TabLeader, TabSelector } from './services/ruler.js';
4
+ import type { ViewOptions } from './services/view.js';
5
+ import type { AutoCorrectChange, HighlightColor, HorizontalPosition, LineSpacing, MarkupView, ObjectWrap, RowHeight, TablePosition, TableWidth, UnderlineStyle, VerticalPosition, WrapSide } from './state.js';
6
+ import type { Arrange, Color, CommentId, Degrees, EffectsChange, ElementId, FillValue, FlipAxis, LineChange, PictureAdjustChange, Points, RevisionId, ShapeAdjust, ShapeInsert, ShapePreset, ShapeTextChange, StyleId } from './types.js';
6
7
  /** Which elements a field command acts on: the given ids, or the selection's by default. */
7
8
  export interface FieldTargets {
8
9
  /** The fields; default: the selection's. */
@@ -254,6 +255,11 @@ export interface Commands {
254
255
  }): Promise<void>;
255
256
  /** Inserts a text box. */
256
257
  insertTextBox(): Promise<void>;
258
+ /**
259
+ * Inserts a floating shape at the caret's paragraph, in front of the text, with the theme's default style, and
260
+ * selects it.
261
+ */
262
+ insertShape(options: ShapeInsert): Promise<void>;
257
263
  /** Inserts a footnote. */
258
264
  insertFootnote(): Promise<void>;
259
265
  /** Inserts an endnote. */
@@ -368,6 +374,13 @@ export interface Commands {
368
374
  bandedRows?: boolean;
369
375
  bandedColumns?: boolean;
370
376
  }): Promise<void>;
377
+ /**
378
+ * Positions the caret's table, so text wraps around it, as dragging its move handle does: a table without a
379
+ * position gets one across from the margin and down from the paragraph, and each axis given is aligned, offset, or
380
+ * (with neither) kept where it is and measured from its new reference. Unset fields keep their value; `null` puts
381
+ * the table back in the text.
382
+ */
383
+ setTablePosition(position: TablePosition | null): Promise<void>;
371
384
  /** Sets the object's size, 1 to 1584. */
372
385
  setObjectSize(options: {
373
386
  width?: Points;
@@ -406,6 +419,32 @@ export interface Commands {
406
419
  }): Promise<void>;
407
420
  /** Deletes the object. */
408
421
  deleteObject(): Promise<void>;
422
+ /** Changes the shape's preset geometry; its text, fill, outline and effects stay and its adjust values reset. */
423
+ setShapePreset(preset: ShapePreset): Promise<void>;
424
+ /** Sets one of the shape's adjust values. */
425
+ setShapeAdjust(options: ShapeAdjust): Promise<void>;
426
+ /** Sets the selected objects' fill; `fromStyle` gives them the style reference's again. */
427
+ setShapeFill(fill: FillValue): Promise<void>;
428
+ /** Sets the selected objects' outline; unset fields keep their value. */
429
+ setShapeLine(change: LineChange): Promise<void>;
430
+ /** Sets the selected objects' shadows, glow, soft edge and blur; unset fields keep their value, `null` removes. */
431
+ setShapeEffects(change: EffectsChange): Promise<void>;
432
+ /** Sets the shape's text insets, anchor, autofit, wrapping and direction; unset fields keep their value. */
433
+ setShapeText(change: ShapeTextChange): Promise<void>;
434
+ /** Sets the picture's transparency, greyscale, brightness and contrast; unset fields keep their value. */
435
+ setPictureAdjust(change: PictureAdjustChange): Promise<void>;
436
+ /** Sets the selected objects' rotation, 0 to 360 degrees clockwise. */
437
+ setObjectRotation(degrees: Degrees): Promise<void>;
438
+ /** Flips the selected objects. */
439
+ flipObject(axis: FlipAxis): Promise<void>;
440
+ /** Moves the floating object in the paint order, or behind or in front of the text. */
441
+ arrangeObject(where: Arrange): Promise<void>;
442
+ /** Groups the selected floating objects: two or more, in one story. The group is selected. */
443
+ groupObjects(): Promise<void>;
444
+ /** Ungroups the selected group. Its children are selected. */
445
+ ungroupObjects(): Promise<void>;
446
+ /** Selects the next or previous child of the selected group. View. */
447
+ selectGroupChild(direction: 'next' | 'previous'): Promise<void>;
409
448
  /** Changes a field's code or display. */
410
449
  setField(options: {
411
450
  id: ElementId;
@@ -584,26 +623,40 @@ export interface Commands {
584
623
  }): Promise<void>;
585
624
  /** Sets the zoom: 10 to 500 percent, or a fit. */
586
625
  setZoom(zoom: number | 'pageWidth' | 'wholePage'): Promise<void>;
587
- /** Shows or hides formatting marks (Ctrl+Shift+8), gridlines and text boundaries. */
588
- setViewOptions(options: {
589
- formattingMarks?: boolean;
590
- gridlines?: boolean;
591
- textBoundaries?: boolean;
592
- liveLayout?: boolean;
593
- }): Promise<void>;
626
+ /**
627
+ * Sets view options: formatting marks (Ctrl+Shift+8), gridlines, text boundaries, live layout, the chrome's theme
628
+ * and accent, the page's appearance, the measuring detail and the object grid.
629
+ */
630
+ setViewOptions(options: ViewOptions): Promise<void>;
594
631
  /** Switches between editing and design mode. */
595
632
  setMode(mode: 'editing' | 'design'): Promise<void>;
633
+ /** Sets what a click on the ruler adds; answers the tab type popover. View. */
634
+ setRulerTabType(type: TabSelector): Promise<void>;
635
+ /** Asks for the tab type popover (`popoverRequested`). View. */
636
+ showTabTypes(): Promise<void>;
637
+ /** Asks for the options of the tab stop nearest the caret (`popoverRequested`). View. */
638
+ showTabStop(): Promise<void>;
639
+ /** Sets what typing corrects: the rules given switch, the lists given replace the shipped ones. A session setting: no undo. */
640
+ setAutoCorrect(change: AutoCorrectChange): Promise<void>;
641
+ /** Puts back what was typed in place of the correction just made: undoes it when it is the last step, else one undo step. */
642
+ revertAutoCorrect(): Promise<void>;
643
+ /** Reverts the correction just made, as `revertAutoCorrect` does, and never makes it again (adds it to `autoCorrect.never`). */
644
+ neverAutoCorrect(): Promise<void>;
645
+ /** Asks for the options of the correction just made (`popoverRequested`), Alt+Shift+F10. View. */
646
+ showAutoCorrectOptions(): Promise<void>;
647
+ /** Dismisses the popover asked for (`popoverClosed`), for an application that closes its own on Esc or a press elsewhere; with none open, nothing. View. */
648
+ closePopover(): Promise<void>;
596
649
  }
597
650
  /** A command id: the method name, the batch op's `type`, the catalog id and the key in `state.commands`. */
598
651
  export type CommandId = keyof Commands;
599
652
  /**
600
- * An op's fields besides `type`. A single argument (a primitive, {@link RichText}, bytes, an array, or a union with a
601
- * primitive) goes in `value`; an options object, and a tagged value such as {@link LineSpacing} or
602
- * {@link TableWidth}, is spread into the op.
653
+ * An op's fields besides `type`. A single argument (a primitive, {@link RichText}, bytes, an array, a
654
+ * {@link FillValue}, whose `type` would clash with the op's, or a union with a primitive) goes in `value`; an options
655
+ * object, and a tagged value such as {@link LineSpacing} or {@link TableWidth}, is spread into the op.
603
656
  */
604
657
  export type OpArgs<K extends CommandId> = Parameters<Commands[K]> extends [] ? {} : [Exclude<Parameters<Commands[K]>[0], undefined>] extends [string | number | boolean | null] ? {
605
658
  value: Exclude<Parameters<Commands[K]>[0], undefined>;
606
- } : [Exclude<Parameters<Commands[K]>[0], undefined>] extends [RichText | Uint8Array | readonly unknown[]] ? {
659
+ } : [Exclude<Parameters<Commands[K]>[0], undefined>] extends [RichText | Uint8Array | FillValue | readonly unknown[]] ? {
607
660
  value: Exclude<Parameters<Commands[K]>[0], undefined>;
608
661
  } : [Exclude<Parameters<Commands[K]>[0], undefined>] extends [object] ? Exclude<Parameters<Commands[K]>[0], undefined> : {
609
662
  value: Exclude<Parameters<Commands[K]>[0], undefined>;