page-harness 0.1.2 → 0.1.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 CHANGED
@@ -1,21 +1,421 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Page Harness 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.
1
+ Tencent is pleased to support the open source community by making page-harness available.
2
+
3
+ Copyright (C) 2026 Tencent. All rights reserved.
4
+
5
+ The open-source software included in this distribution may have been modified by Tencent (“Tencent Modifications”). All Tencent Modifications are Copyright (C) Tencent.
6
+
7
+ page-harness is licensed under the MIT except for the third-party components listed below.
8
+
9
+
10
+ Terms of the MIT:
11
+ --------------------------------------------------------------------
12
+ Permission is hereby granted, free of charge, to any person obtaining
13
+ a copy of this software and associated documentation files (the
14
+ "Software"), to deal in the Software without restriction, including
15
+ without limitation the rights to use, copy, modify, merge, publish,
16
+ distribute, sublicense, and/or sell copies of the Software, and to
17
+ permit persons to whom the Software is furnished to do so, subject to
18
+ the following conditions:
19
+
20
+ The above copyright notice and this permission notice shall be
21
+ included in all copies or substantial portions of the Software.
22
+
23
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
26
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
27
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
28
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
29
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30
+
31
+
32
+ Dependencies and Licenses:
33
+
34
+ This open-source project, page-harness, builds upon the following open-source software components, each of which remains licensed under its original license. Certain software may include modifications made by Tencent (“Tencent Modifications”), which are Copyright (C) Tencent.
35
+
36
+ In case you believe there have been errors in the attribution below, you may submit the concerns to us for review and correction.
37
+
38
+
39
+ Open Source Software Licensed under the Apache-2.0
40
+ --------------------------------------------------------------------
41
+ 1. dompurify
42
+ Copyright (c) 2026 dompurify original author and authors
43
+
44
+
45
+
46
+ Terms of the Apache-2.0
47
+ --------------------------------------------------------------------
48
+ Apache License
49
+ Version 2.0, January 2004
50
+ http://www.apache.org/licenses/
51
+
52
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
53
+
54
+ 1. Definitions.
55
+
56
+ "License" shall mean the terms and conditions for use, reproduction,
57
+ and distribution as defined by Sections 1 through 9 of this document.
58
+
59
+ "Licensor" shall mean the copyright owner or entity authorized by
60
+ the copyright owner that is granting the License.
61
+
62
+ "Legal Entity" shall mean the union of the acting entity and all
63
+ other entities that control, are controlled by, or are under common
64
+ control with that entity. For the purposes of this definition,
65
+ "control" means (i) the power, direct or indirect, to cause the
66
+ direction or management of such entity, whether by contract or
67
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
68
+ outstanding shares, or (iii) beneficial ownership of such entity.
69
+
70
+ "You" (or "Your") shall mean an individual or Legal Entity
71
+ exercising permissions granted by this License.
72
+
73
+ "Source" form shall mean the preferred form for making modifications,
74
+ including but not limited to software source code, documentation
75
+ source, and configuration files.
76
+
77
+ "Object" form shall mean any form resulting from mechanical
78
+ transformation or translation of a Source form, including but
79
+ not limited to compiled object code, generated documentation,
80
+ and conversions to other media types.
81
+
82
+ "Work" shall mean the work of authorship, whether in Source or
83
+ Object form, made available under the License, as indicated by a
84
+ copyright notice that is included in or attached to the work
85
+ (an example is provided in the Appendix below).
86
+
87
+ "Derivative Works" shall mean any work, whether in Source or Object
88
+ form, that is based on (or derived from) the Work and for which the
89
+ editorial revisions, annotations, elaborations, or other modifications
90
+ represent, as a whole, an original work of authorship. For the purposes
91
+ of this License, Derivative Works shall not include works that remain
92
+ separable from, or merely link (or bind by name) to the interfaces of,
93
+ the Work and Derivative Works thereof.
94
+
95
+ "Contribution" shall mean any work of authorship, including
96
+ the original version of the Work and any modifications or additions
97
+ to that Work or Derivative Works thereof, that is intentionally
98
+ submitted to Licensor for inclusion in the Work by the copyright owner
99
+ or by an individual or Legal Entity authorized to submit on behalf of
100
+ the copyright owner. For the purposes of this definition, "submitted"
101
+ means any form of electronic, verbal, or written communication sent
102
+ to the Licensor or its representatives, including but not limited to
103
+ communication on electronic mailing lists, source code control systems,
104
+ and issue tracking systems that are managed by, or on behalf of, the
105
+ Licensor for the purpose of discussing and improving the Work, but
106
+ excluding communication that is conspicuously marked or otherwise
107
+ designated in writing by the copyright owner as "Not a Contribution."
108
+
109
+ "Contributor" shall mean Licensor and any individual or Legal Entity
110
+ on behalf of whom a Contribution has been received by Licensor and
111
+ subsequently incorporated within the Work.
112
+
113
+ 2. Grant of Copyright License. Subject to the terms and conditions of
114
+ this License, each Contributor hereby grants to You a perpetual,
115
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
116
+ copyright license to reproduce, prepare Derivative Works of,
117
+ publicly display, publicly perform, sublicense, and distribute the
118
+ Work and such Derivative Works in Source or Object form.
119
+
120
+ 3. Grant of Patent License. Subject to the terms and conditions of
121
+ this License, each Contributor hereby grants to You a perpetual,
122
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
123
+ (except as stated in this section) patent license to make, have made,
124
+ use, offer to sell, sell, import, and otherwise transfer the Work,
125
+ where such license applies only to those patent claims licensable
126
+ by such Contributor that are necessarily infringed by their
127
+ Contribution(s) alone or by combination of their Contribution(s)
128
+ with the Work to which such Contribution(s) was submitted. If You
129
+ institute patent litigation against any entity (including a
130
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
131
+ or a Contribution incorporated within the Work constitutes direct
132
+ or contributory patent infringement, then any patent licenses
133
+ granted to You under this License for that Work shall terminate
134
+ as of the date such litigation is filed.
135
+
136
+ 4. Redistribution. You may reproduce and distribute copies of the
137
+ Work or Derivative Works thereof in any medium, with or without
138
+ modifications, and in Source or Object form, provided that You
139
+ meet the following conditions:
140
+
141
+ (a) You must give any other recipients of the Work or
142
+ Derivative Works a copy of this License; and
143
+
144
+ (b) You must cause any modified files to carry prominent notices
145
+ stating that You changed the files; and
146
+
147
+ (c) You must retain, in the Source form of any Derivative Works
148
+ that You distribute, all copyright, patent, trademark, and
149
+ attribution notices from the Source form of the Work,
150
+ excluding those notices that do not pertain to any part of
151
+ the Derivative Works; and
152
+
153
+ (d) If the Work includes a "NOTICE" text file as part of its
154
+ distribution, then any Derivative Works that You distribute must
155
+ include a readable copy of the attribution notices contained
156
+ within such NOTICE file, excluding those notices that do not
157
+ pertain to any part of the Derivative Works, in at least one
158
+ of the following places: within a NOTICE text file distributed
159
+ as part of the Derivative Works; within the Source form or
160
+ documentation, if provided along with the Derivative Works; or,
161
+ within a display generated by the Derivative Works, if and
162
+ wherever such third-party notices normally appear. The contents
163
+ of the NOTICE file are for informational purposes only and
164
+ do not modify the License. You may add Your own attribution
165
+ notices within Derivative Works that You distribute, alongside
166
+ or as an addendum to the NOTICE text from the Work, provided
167
+ that such additional attribution notices cannot be construed
168
+ as modifying the License.
169
+
170
+ You may add Your own copyright statement to Your modifications and
171
+ may provide additional or different license terms and conditions
172
+ for use, reproduction, or distribution of Your modifications, or
173
+ for any such Derivative Works as a whole, provided Your use,
174
+ reproduction, and distribution of the Work otherwise complies with
175
+ the conditions stated in this License.
176
+
177
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
178
+ any Contribution intentionally submitted for inclusion in the Work
179
+ by You to the Licensor shall be under the terms and conditions of
180
+ this License, without any additional terms or conditions.
181
+ Notwithstanding the above, nothing herein shall supersede or modify
182
+ the terms of any separate license agreement you may have executed
183
+ with Licensor regarding such Contributions.
184
+
185
+ 6. Trademarks. This License does not grant permission to use the trade
186
+ names, trademarks, service marks, or product names of the Licensor,
187
+ except as required for reasonable and customary use in describing the
188
+ origin of the Work and reproducing the content of the NOTICE file.
189
+
190
+ 7. Disclaimer of Warranty. Unless required by applicable law or
191
+ agreed to in writing, Licensor provides the Work (and each
192
+ Contributor provides its Contributions) on an "AS IS" BASIS,
193
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
194
+ implied, including, without limitation, any warranties or conditions
195
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
196
+ PARTICULAR PURPOSE. You are solely responsible for determining the
197
+ appropriateness of using or redistributing the Work and assume any
198
+ risks associated with Your exercise of permissions under this License.
199
+
200
+ 8. Limitation of Liability. In no event and under no legal theory,
201
+ whether in tort (including negligence), contract, or otherwise,
202
+ unless required by applicable law (such as deliberate and grossly
203
+ negligent acts) or agreed to in writing, shall any Contributor be
204
+ liable to You for damages, including any direct, indirect, special,
205
+ incidental, or consequential damages of any character arising as a
206
+ result of this License or out of the use or inability to use the
207
+ Work (including but not limited to damages for loss of goodwill,
208
+ work stoppage, computer failure or malfunction, or any and all
209
+ other commercial damages or losses), even if such Contributor
210
+ has been advised of the possibility of such damages.
211
+
212
+ 9. Accepting Warranty or Additional Liability. While redistributing
213
+ the Work or Derivative Works thereof, You may choose to offer,
214
+ and charge a fee for, acceptance of support, warranty, indemnity,
215
+ or other liability obligations and/or rights consistent with this
216
+ License. However, in accepting such obligations, You may act only
217
+ on Your own behalf and on Your sole responsibility, not on behalf
218
+ of any other Contributor, and only if You agree to indemnify,
219
+ defend, and hold each Contributor harmless for any liability
220
+ incurred by, or claims asserted against, such Contributor by reason
221
+ of your accepting any such warranty or additional liability.
222
+
223
+ END OF TERMS AND CONDITIONS
224
+
225
+ APPENDIX: How to apply the Apache License to your work.
226
+
227
+ To apply the Apache License to your work, attach the following
228
+ boilerplate notice, with the fields enclosed by brackets "[]"
229
+ replaced with your own identifying information. (Don't include
230
+ the brackets!) The text should be enclosed in the appropriate
231
+ comment syntax for the file format. We also recommend that a
232
+ file or class name and description of purpose be included on the
233
+ same "printed page" as the copyright notice for easier
234
+ identification within third-party archives.
235
+
236
+ Copyright [yyyy] [name of copyright owner]
237
+
238
+ Licensed under the Apache License, Version 2.0 (the "License");
239
+ you may not use this file except in compliance with the License.
240
+ You may obtain a copy of the License at
241
+
242
+ http://www.apache.org/licenses/LICENSE-2.0
243
+
244
+ Unless required by applicable law or agreed to in writing, software
245
+ distributed under the License is distributed on an "AS IS" BASIS,
246
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
247
+ See the License for the specific language governing permissions and
248
+ limitations under the License.
249
+ Open Source Software Licensed under the BSD-3-Clause
250
+ --------------------------------------------------------------------
251
+ 1. marked
252
+ Copyright (c) 2018+, MarkedJS (https://github.com/markedjs/), Copyright (c) 2011-2018, Christopher Jeffrey (https://github.com/chjj/), Copyright © 2004, John Gruber
253
+
254
+
255
+
256
+ Terms of the BSD-3-Clause
257
+ --------------------------------------------------------------------
258
+ Redistribution and use in source and binary forms, with or without modification,
259
+ are permitted provided that the following conditions are met:
260
+
261
+ Redistributions of source code must retain the above copyright notice, this list
262
+ of conditions and the following disclaimer.
263
+
264
+ Redistributions in binary form must reproduce the above copyright notice, this
265
+ list of conditions and the following disclaimer in the documentation and/or
266
+ other materials provided with the distribution.
267
+
268
+ Neither the name of the ORGANIZATION nor the names of its contributors may be
269
+ used to endorse or promote products derived from this software without specific
270
+ prior written permission.
271
+
272
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
273
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
274
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
275
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
276
+ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
277
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
278
+ GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
279
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
280
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
281
+ THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282
+ Open Source Software Licensed under the MIT
283
+ --------------------------------------------------------------------
284
+ 1. jspdf
285
+ (c) 2010-2025 James Hall, https://github.com/MrRio/jsPDF, (c) 2015-2025 yWorks GmbH, https://www.yworks.com/
286
+
287
+ 2. html2canvas
288
+ Copyright (c) 2012 Niklas von Hertzen
289
+
290
+ 3. vue
291
+ Copyright (c) 2018-present, Yuxi (Evan) You
292
+
293
+ 4. marked
294
+ Copyright (c) 2018+, MarkedJS (https://github.com/markedjs/), Copyright (c) 2011-2018, Christopher Jeffrey (https://github.com/chjj/), Copyright © 2004, John Gruber
295
+
296
+ 5. shiki
297
+ Copyright (c) 2021 Pine Wu, Copyright (c) 2023 Anthony Fu <https://github.com/antfu>
298
+
299
+ 6. @page-agent/page-controller
300
+ Copyright (c) 2026 SimonLuvRamen, Copyright (c) 2026 Alibaba Group Holding Limited
301
+
302
+
303
+
304
+ Terms of the MIT
305
+ --------------------------------------------------------------------
306
+ Permission is hereby granted, free of charge, to any person obtaining
307
+ a copy of this software and associated documentation files (the
308
+ "Software"), to deal in the Software without restriction, including
309
+ without limitation the rights to use, copy, modify, merge, publish,
310
+ distribute, sublicense, and/or sell copies of the Software, and to
311
+ permit persons to whom the Software is furnished to do so, subject to
312
+ the following conditions:
313
+
314
+ The above copyright notice and this permission notice shall be
315
+ included in all copies or substantial portions of the Software.
316
+
317
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
318
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
319
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
320
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
321
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
322
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
323
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
324
+ Open Source Software Licensed under the OFL-1.1
325
+ --------------------------------------------------------------------
326
+ 1. @fontsource-variable/inter
327
+ Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter), Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)
328
+
329
+ 2. @fontsource-variable/jetbrains-mono
330
+ Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono), Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
331
+
332
+
333
+
334
+ Terms of the OFL-1.1
335
+ --------------------------------------------------------------------
336
+ -----------------------------------------------------------
337
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
338
+ -----------------------------------------------------------
339
+
340
+ PREAMBLE
341
+ The goals of the Open Font License (OFL) are to stimulate worldwide
342
+ development of collaborative font projects, to support the font creation
343
+ efforts of academic and linguistic communities, and to provide a free and
344
+ open framework in which fonts may be shared and improved in partnership
345
+ with others.
346
+
347
+ The OFL allows the licensed fonts to be used, studied, modified and
348
+ redistributed freely as long as they are not sold by themselves. The
349
+ fonts, including any derivative works, can be bundled, embedded,
350
+ redistributed and/or sold with any software provided that any reserved
351
+ names are not used by derivative works. The fonts and derivatives,
352
+ however, cannot be released under any other type of license. The
353
+ requirement for fonts to remain under this license does not apply
354
+ to any document created using the fonts or their derivatives.
355
+
356
+ DEFINITIONS
357
+ "Font Software" refers to the set of files released by the Copyright
358
+ Holder(s) under this license and clearly marked as such. This may
359
+ include source files, build scripts and documentation.
360
+
361
+ "Reserved Font Name" refers to any names specified as such after the
362
+ copyright statement(s).
363
+
364
+ "Original Version" refers to the collection of Font Software components as
365
+ distributed by the Copyright Holder(s).
366
+
367
+ "Modified Version" refers to any derivative made by adding to, deleting,
368
+ or substituting -- in part or in whole -- any of the components of the
369
+ Original Version, by changing formats or by porting the Font Software to a
370
+ new environment.
371
+
372
+ "Author" refers to any designer, engineer, programmer, technical
373
+ writer or other person who contributed to the Font Software.
374
+
375
+ PERMISSION & CONDITIONS
376
+ Permission is hereby granted, free of charge, to any person obtaining
377
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
378
+ redistribute, and sell modified and unmodified copies of the Font
379
+ Software, subject to the following conditions:
380
+
381
+ 1) Neither the Font Software nor any of its individual components,
382
+ in Original or Modified Versions, may be sold by itself.
383
+
384
+ 2) Original or Modified Versions of the Font Software may be bundled,
385
+ redistributed and/or sold with any software, provided that each copy
386
+ contains the above copyright notice and this license. These can be
387
+ included either as stand-alone text files, human-readable headers or
388
+ in the appropriate machine-readable metadata fields within text or
389
+ binary files as long as those fields can be easily viewed by the user.
390
+
391
+ 3) No Modified Version of the Font Software may use the Reserved Font
392
+ Name(s) unless explicit written permission is granted by the corresponding
393
+ Copyright Holder. This restriction only applies to the primary font name as
394
+ presented to the users.
395
+
396
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
397
+ Software shall not be used to promote, endorse or advertise any
398
+ Modified Version, except to acknowledge the contribution(s) of the
399
+ Copyright Holder(s) and the Author(s) or with their explicit written
400
+ permission.
401
+
402
+ 5) The Font Software, modified or unmodified, in part or in whole,
403
+ must be distributed entirely under this license, and must not be
404
+ distributed under any other license. The requirement for fonts to
405
+ remain under this license does not apply to any document created
406
+ using the Font Software.
407
+
408
+ TERMINATION
409
+ This license becomes null and void if any of the above conditions are
410
+ not met.
411
+
412
+ DISCLAIMER
413
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
414
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
415
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
416
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
417
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
418
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
419
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
420
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
421
+ OTHER DEALINGS IN THE FONT SOFTWARE.