@weft-js/text 0.0.0-stage → 0.1.1

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.
Files changed (48) hide show
  1. package/LICENSE +38 -0
  2. package/README.md +103 -2
  3. package/dist/LICENSE +38 -0
  4. package/dist/LICENSE-pretext +229 -0
  5. package/dist/blink/chunk-2UTDV3NY.js +1 -0
  6. package/dist/blink/chunk-AVLP4LK4.js +1 -0
  7. package/dist/blink/chunk-LBFXENHK.js +1 -0
  8. package/dist/blink/chunk-LCLBVK2G.js +1 -0
  9. package/dist/blink/chunk-M5EVTPT6.js +1 -0
  10. package/dist/blink/engine.js +1 -0
  11. package/dist/blink/exact-SQQRYG6J.js +1 -0
  12. package/dist/blink/meta.json +1 -0
  13. package/dist/blink/pack-complex-TZ3EEWXH.js +1 -0
  14. package/dist/blink/pack-families-E2YTVA25.js +0 -0
  15. package/dist/blink/pack-rare-3377IVPF.js +0 -0
  16. package/dist/blink/pack-scripts-6AZOGP44.js +1 -0
  17. package/dist/blink/pack-spacing-ZXHYQEXD.js +1 -0
  18. package/dist/gecko/chunk-SWBCNRDA.js +1 -0
  19. package/dist/gecko/chunk-VN7PBWFN.js +1 -0
  20. package/dist/gecko/chunk-XRF67SWC.js +1 -0
  21. package/dist/gecko/engine.js +1 -0
  22. package/dist/gecko/meta.json +1 -0
  23. package/dist/gecko/pack-complex-ZRH5NAPR.js +1 -0
  24. package/dist/gecko/pack-families-34KO3CLI.js +0 -0
  25. package/dist/gecko/pack-rare-FDYU357Z.js +0 -0
  26. package/dist/gecko/pack-scripts-JJOHXLOT.js +1 -0
  27. package/dist/gecko/pack-spacing-CAG6CLVB.js +1 -0
  28. package/dist/index.js +1 -0
  29. package/dist/webkit/chunk-A4DB6TWP.js +1 -0
  30. package/dist/webkit/chunk-B3WIVP7S.js +1 -0
  31. package/dist/webkit/chunk-FEELTLSH.js +1 -0
  32. package/dist/webkit/chunk-JQWGQSV3.js +1 -0
  33. package/dist/webkit/chunk-M5EVTPT6.js +1 -0
  34. package/dist/webkit/chunk-SCKMN2PN.js +1 -0
  35. package/dist/webkit/engine.js +1 -0
  36. package/dist/webkit/exact-NKXB5V2W.js +1 -0
  37. package/dist/webkit/meta.json +1 -0
  38. package/dist/webkit/pack-complex-ZCMCV5WM.js +1 -0
  39. package/dist/webkit/pack-families-KIE64YFZ.js +1 -0
  40. package/dist/webkit/pack-rare-SSJ2B7KP.js +0 -0
  41. package/dist/webkit/pack-scripts-WIXSLWBC.js +1 -0
  42. package/dist/webkit/pack-spacing-UGCQZTVO.js +1 -0
  43. package/package.json +51 -4
  44. package/plugin/build.mjs +225 -0
  45. package/plugin/index.d.ts +40 -0
  46. package/plugin/index.mjs +79 -0
  47. package/plugin/measure.mjs +20 -0
  48. package/vendor/pretext/LICENSE +229 -0
@@ -0,0 +1,229 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Pretext contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ------------------------------------------------------------------------------
24
+
25
+ Notices of the sources that parts of this package follow or are generated
26
+ from.
27
+
28
+ Chromium: the Han kerning character types and tests, the line break pair table
29
+ and the script classes.
30
+
31
+ Copyright 2015 The Chromium Authors
32
+ Copyright 2016 The Chromium Authors
33
+ Copyright 2023 The Chromium Authors
34
+
35
+ Redistribution and use in source and binary forms, with or without
36
+ modification, are permitted provided that the following conditions are
37
+ met:
38
+
39
+ * Redistributions of source code must retain the above copyright
40
+ notice, this list of conditions and the following disclaimer.
41
+ * Redistributions in binary form must reproduce the above
42
+ copyright notice, this list of conditions and the following disclaimer
43
+ in the documentation and/or other materials provided with the
44
+ distribution.
45
+ * Neither the name of Google LLC nor the names of its
46
+ contributors may be used to endorse or promote products derived from
47
+ this software without specific prior written permission.
48
+
49
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
50
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
51
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
52
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
53
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
54
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
55
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
57
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
58
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
59
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
60
+
61
+ Chromium and WebKit files whose headers carry the license below: two character
62
+ ranges of Han kerning and the list of cursive scripts (Chromium), the language
63
+ and script lists of the generic font families (WebKit).
64
+
65
+ Copyright (C) 2014 Google Inc. All rights reserved.
66
+ Copyright (c) 2012 Google Inc. All rights reserved.
67
+ Copyright (C) 2013 BlackBerry Limited. All rights reserved.
68
+ Copyright (C) 2011 Google Inc. All rights reserved.
69
+ Copyright (C) 2021 Apple Inc. All rights reserved.
70
+
71
+ Redistribution and use in source and binary forms, with or without
72
+ modification, are permitted provided that the following conditions are
73
+ met:
74
+
75
+ * Redistributions of source code must retain the above copyright
76
+ notice, this list of conditions and the following disclaimer.
77
+ * Redistributions in binary form must reproduce the above
78
+ copyright notice, this list of conditions and the following disclaimer
79
+ in the documentation and/or other materials provided with the
80
+ distribution.
81
+ * Neither the name of Google Inc. nor the names of its
82
+ contributors may be used to endorse or promote products derived from
83
+ this software without specific prior written permission.
84
+
85
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
86
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
87
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
88
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
89
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
90
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
91
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
92
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
93
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
94
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
95
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
96
+
97
+ WebKit: the line break pair table and the scan for break opportunities between
98
+ inline text items.
99
+
100
+ Copyright (C) 2005-2024 Apple Inc. All rights reserved.
101
+ Copyright (C) 2011-2024 Google Inc. All rights reserved.
102
+ Copyright (C) 2021-2023 Apple Inc. All rights reserved.
103
+ Copyright (C) 2018-2026 Apple Inc. All rights reserved.
104
+ Copyright (C) 2018-2023 Apple Inc. All rights reserved.
105
+ Copyright (C) 2018-2024 Apple Inc. All rights reserved.
106
+ Copyright (C) 2014 Google Inc. All rights reserved.
107
+
108
+ Redistribution and use in source and binary forms, with or without
109
+ modification, are permitted provided that the following conditions
110
+ are met:
111
+ 1. Redistributions of source code must retain the above copyright
112
+ notice, this list of conditions and the following disclaimer.
113
+ 2. Redistributions in binary form must reproduce the above copyright
114
+ notice, this list of conditions and the following disclaimer in the
115
+ documentation and/or other materials provided with the distribution.
116
+
117
+ THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
118
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
119
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
120
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
121
+ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
122
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
123
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
124
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
125
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
126
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
127
+ THE POSSIBILITY OF SUCH DAMAGE.
128
+
129
+ ICU, in Chromium's and Apple's copies: the rule-based break iterator, the line
130
+ and grapheme break rules and the script and bracket properties.
131
+
132
+ © 2016 and later: Unicode, Inc. and others.
133
+ License & terms of use: http://www.unicode.org/copyright.html
134
+ Copyright (C) 1999-2016 International Business Machines Corporation
135
+ and others. All rights reserved.
136
+ Copyright (C) 2016 and later: Unicode, Inc. and others.
137
+ Copyright (C) 1999-2016, International Business Machines
138
+ Corporation and others. All Rights Reserved.
139
+ Copyright (C) 1999-2014 International Business Machines
140
+ Corporation and others. All Rights Reserved.
141
+ Copyright (C) 2005-2016, International Business Machines
142
+ Corporation and others. All Rights Reserved.
143
+
144
+ ICU4X: the line break iterator, the line break data and the East Asian width
145
+ data.
146
+
147
+ Copyright © 2020-2024 Unicode, Inc.
148
+ Portions of ICU4X may have been adapted from ICU4C and/or ICU4J.
149
+ ICU 1.8.1 to ICU 57.1 © 1995-2016 International Business Machines Corporation and others.
150
+
151
+ From ICU's LICENSE file: the Unicode License V3, which ICU4X's LICENSE file
152
+ also gives, under its own copyright line above; then the ICU License.
153
+
154
+ UNICODE LICENSE V3
155
+
156
+ COPYRIGHT AND PERMISSION NOTICE
157
+
158
+ Copyright © 2016-2025 Unicode, Inc.
159
+
160
+ NOTICE TO USER: Carefully read the following legal agreement. BY
161
+ DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
162
+ SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
163
+ TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
164
+ DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
165
+
166
+ Permission is hereby granted, free of charge, to any person obtaining a
167
+ copy of data files and any associated documentation (the "Data Files") or
168
+ software and any associated documentation (the "Software") to deal in the
169
+ Data Files or Software without restriction, including without limitation
170
+ the rights to use, copy, modify, merge, publish, distribute, and/or sell
171
+ copies of the Data Files or Software, and to permit persons to whom the
172
+ Data Files or Software are furnished to do so, provided that either (a)
173
+ this copyright and permission notice appear with all copies of the Data
174
+ Files or Software, or (b) this copyright and permission notice appear in
175
+ associated Documentation.
176
+
177
+ THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
178
+ KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
179
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
180
+ THIRD PARTY RIGHTS.
181
+
182
+ IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
183
+ BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
184
+ OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
185
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
186
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
187
+ FILES OR SOFTWARE.
188
+
189
+ Except as contained in this notice, the name of a copyright holder shall
190
+ not be used in advertising or otherwise to promote the sale, use or other
191
+ dealings in these Data Files or Software without prior written
192
+ authorization of the copyright holder.
193
+
194
+ SPDX-License-Identifier: Unicode-3.0
195
+
196
+ ICU License - ICU 1.8.1 to ICU 57.1
197
+
198
+ COPYRIGHT AND PERMISSION NOTICE
199
+
200
+ Copyright (c) 1995-2016 International Business Machines Corporation and others
201
+ All rights reserved.
202
+
203
+ Permission is hereby granted, free of charge, to any person obtaining
204
+ a copy of this software and associated documentation files (the
205
+ "Software"), to deal in the Software without restriction, including
206
+ without limitation the rights to use, copy, modify, merge, publish,
207
+ distribute, and/or sell copies of the Software, and to permit persons
208
+ to whom the Software is furnished to do so, provided that the above
209
+ copyright notice(s) and this permission notice appear in all copies of
210
+ the Software and that both the above copyright notice(s) and this
211
+ permission notice appear in supporting documentation.
212
+
213
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
214
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
215
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
216
+ OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
217
+ HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY
218
+ SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER
219
+ RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
220
+ CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
221
+ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
222
+
223
+ Except as contained in this notice, the name of a copyright holder
224
+ shall not be used in advertising or otherwise to promote the sale, use
225
+ or other dealings in this Software without prior written authorization
226
+ of the copyright holder.
227
+
228
+ All trademarks and registered trademarks mentioned herein are the
229
+ property of their respective owners.