@catchlight/editor-web 0.0.0 → 0.6.0

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 (111) hide show
  1. package/LICENSE-APACHE +201 -0
  2. package/LICENSE-MIT +21 -0
  3. package/README.md +26 -2
  4. package/THIRD-PARTY-NOTICES.md +331 -0
  5. package/dist/editor/CatchlightEditor.d.ts +21 -0
  6. package/dist/editor/CatchlightEditor.js +720 -0
  7. package/dist/editor/dialogs.d.ts +18 -0
  8. package/dist/editor/dialogs.js +71 -0
  9. package/dist/editor/import-panel.d.ts +6 -0
  10. package/dist/editor/import-panel.js +98 -0
  11. package/dist/editor/logo.svg +11 -0
  12. package/dist/editor/notification.d.ts +4 -0
  13. package/dist/editor/notification.js +24 -0
  14. package/dist/editor/stage.d.ts +13 -0
  15. package/dist/editor/stage.js +23 -0
  16. package/dist/editor/test/setup.d.ts +5 -0
  17. package/dist/editor/test/setup.js +5 -0
  18. package/dist/index.d.ts +11 -0
  19. package/dist/index.js +10 -0
  20. package/dist/lib/animations-panel.d.ts +10 -0
  21. package/dist/lib/animations-panel.js +48 -0
  22. package/dist/lib/authoring.d.ts +17 -0
  23. package/dist/lib/authoring.js +116 -0
  24. package/dist/lib/binding-grid.d.ts +19 -0
  25. package/dist/lib/binding-grid.js +92 -0
  26. package/dist/lib/bindings.d.ts +21 -0
  27. package/dist/lib/bindings.js +100 -0
  28. package/dist/lib/camera.d.ts +21 -0
  29. package/dist/lib/camera.js +61 -0
  30. package/dist/lib/controls-panel.d.ts +36 -0
  31. package/dist/lib/controls-panel.js +201 -0
  32. package/dist/lib/controls.d.ts +103 -0
  33. package/dist/lib/controls.js +163 -0
  34. package/dist/lib/editing.d.ts +126 -0
  35. package/dist/lib/editing.js +415 -0
  36. package/dist/lib/editor-context.d.ts +15 -0
  37. package/dist/lib/editor-context.js +23 -0
  38. package/dist/lib/expressions-panel.d.ts +10 -0
  39. package/dist/lib/expressions-panel.js +120 -0
  40. package/dist/lib/file-open.d.ts +11 -0
  41. package/dist/lib/file-open.js +25 -0
  42. package/dist/lib/file-save.d.ts +29 -0
  43. package/dist/lib/file-save.js +68 -0
  44. package/dist/lib/gizmo.d.ts +13 -0
  45. package/dist/lib/gizmo.js +247 -0
  46. package/dist/lib/image-markup.d.ts +12 -0
  47. package/dist/lib/image-markup.js +153 -0
  48. package/dist/lib/index.d.ts +71 -0
  49. package/dist/lib/index.js +44 -0
  50. package/dist/lib/inspector.d.ts +19 -0
  51. package/dist/lib/inspector.js +161 -0
  52. package/dist/lib/latest.d.ts +3 -0
  53. package/dist/lib/latest.js +9 -0
  54. package/dist/lib/layer-import.d.ts +38 -0
  55. package/dist/lib/layer-import.js +187 -0
  56. package/dist/lib/mesh-editor.d.ts +13 -0
  57. package/dist/lib/mesh-editor.js +337 -0
  58. package/dist/lib/model-panels.d.ts +23 -0
  59. package/dist/lib/model-panels.js +180 -0
  60. package/dist/lib/node-actions.d.ts +42 -0
  61. package/dist/lib/node-actions.js +115 -0
  62. package/dist/lib/node-drag.d.ts +18 -0
  63. package/dist/lib/node-drag.js +65 -0
  64. package/dist/lib/node-patch.d.ts +8 -0
  65. package/dist/lib/node-patch.js +10 -0
  66. package/dist/lib/node-tree.d.ts +36 -0
  67. package/dist/lib/node-tree.js +221 -0
  68. package/dist/lib/official.d.ts +82 -0
  69. package/dist/lib/official.js +197 -0
  70. package/dist/lib/param-actions.d.ts +48 -0
  71. package/dist/lib/param-actions.js +106 -0
  72. package/dist/lib/param-list.d.ts +36 -0
  73. package/dist/lib/param-list.js +73 -0
  74. package/dist/lib/param-slider.d.ts +44 -0
  75. package/dist/lib/param-slider.js +149 -0
  76. package/dist/lib/pose.d.ts +13 -0
  77. package/dist/lib/pose.js +32 -0
  78. package/dist/lib/posing-panel.d.ts +40 -0
  79. package/dist/lib/posing-panel.js +154 -0
  80. package/dist/lib/presence.d.ts +27 -0
  81. package/dist/lib/presence.js +98 -0
  82. package/dist/lib/properties-panel.d.ts +13 -0
  83. package/dist/lib/properties-panel.js +63 -0
  84. package/dist/lib/recording-panel.d.ts +4 -0
  85. package/dist/lib/recording-panel.js +161 -0
  86. package/dist/lib/replica.d.ts +18 -0
  87. package/dist/lib/replica.js +34 -0
  88. package/dist/lib/review.d.ts +113 -0
  89. package/dist/lib/review.js +529 -0
  90. package/dist/lib/rigging.d.ts +10 -0
  91. package/dist/lib/rigging.js +116 -0
  92. package/dist/lib/selection.d.ts +3 -0
  93. package/dist/lib/selection.js +2 -0
  94. package/dist/lib/session-list.d.ts +16 -0
  95. package/dist/lib/session-list.js +7 -0
  96. package/dist/lib/sessions.d.ts +8 -0
  97. package/dist/lib/sessions.js +29 -0
  98. package/dist/lib/test/harness.d.ts +32 -0
  99. package/dist/lib/test/harness.js +139 -0
  100. package/dist/lib/test/setup.d.ts +4 -0
  101. package/dist/lib/test/setup.js +5 -0
  102. package/dist/lib/versions.d.ts +69 -0
  103. package/dist/lib/versions.js +250 -0
  104. package/dist/lib/viewport.d.ts +57 -0
  105. package/dist/lib/viewport.js +315 -0
  106. package/dist/lib/workspace-layout.d.ts +24 -0
  107. package/dist/lib/workspace-layout.js +145 -0
  108. package/dist/lib/workspace.d.ts +29 -0
  109. package/dist/lib/workspace.js +263 -0
  110. package/dist/theme.css +4577 -0
  111. package/package.json +32 -6
package/LICENSE-APACHE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ https://www.apache.org/licenses/LICENSE-2.0
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 The catchlight authors
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ https://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/LICENSE-MIT ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 The catchlight authors
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.
package/README.md CHANGED
@@ -1,4 +1,28 @@
1
1
  # @catchlight/editor-web
2
2
 
3
- This version is a placeholder with no code. The first release is 0.5.0:
4
- https://github.com/hyperlogue/catchlight
3
+ A React 19 editor for Catchlight characters. `CatchlightEditor` is the finished
4
+ editor with a default theme; the hooks and unstyled parts it is made of are
5
+ exported beside it.
6
+
7
+ ```sh
8
+ npm install @catchlight/editor-web @catchlight/editor-core @catchlight/player react react-dom
9
+ ```
10
+
11
+ ```tsx
12
+ import { CatchlightEditor } from '@catchlight/editor-web';
13
+ import '@catchlight/editor-web/theme.css';
14
+
15
+ <CatchlightEditor editor={editor} />;
16
+ ```
17
+
18
+ The host makes `editor`, choosing its backend and initializing the WASM runtime
19
+ in `@catchlight/editor-core/wasm`; see that package's example. To build your
20
+ own editor, pass it to `EditorProvider` and compose the parts. They have no
21
+ styles, so they need no theme.
22
+
23
+ This package has no native server or application launcher; those are in
24
+ `@catchlight/editor`.
25
+
26
+ [Project and demo](https://github.com/hyperlogue/catchlight#readme).
27
+ Licensed under MIT OR Apache-2.0; license texts and third-party notices are
28
+ included in the published package.
@@ -0,0 +1,331 @@
1
+ # Third-party notices
2
+
3
+ Parts of Catchlight's model semantics and rendering behaviour were derived
4
+ from the projects listed here. Except for the explicitly listed LivLiv
5
+ schemas and pose evaluator, Catchlight is not a port: it was written against
6
+ their observable behaviour, informed by reading these permissively licensed
7
+ implementations. Catchlight has since diverged from them and no longer
8
+ tracks their behaviour; only `catchlight-importer` reads their formats. This
9
+ file retains their notices — as their licences ask where they reach, and as
10
+ credit everywhere else.
11
+
12
+ Face tracking is a separate case: `catchlight-tracking` runs Google's
13
+ MediaPipe face landmarker, models and method both, as listed under
14
+ [MediaPipe](#mediapipe--apache-license-20).
15
+
16
+ ## Where the derivation shows
17
+
18
+ - `catchlight-core`'s `weld.rs` — welding derives from nijilive's.
19
+ - `catchlight-core`'s `interpolate.rs` — cubic interpolation matches
20
+ inmath's `cubic`, as inochi2d uses it.
21
+ - `catchlight-core`'s `meshgroup.rs` and `fill.rs` — mesh-group descent and
22
+ cell fill derive from inochi2d's `isComposite`, `postProcessFilter` and
23
+ `axisPoint()`.
24
+ - `catchlight-core`'s `puppet/mod.rs` and `catchlight-extension-animations`'
25
+ `player.rs` and `sample.rs` — tick order and keyframe timing derive from
26
+ inochi2d's.
27
+ - `catchlight-auto-rig`'s `ops` — image and numeric operations written to give
28
+ the results of OpenCV, SciPy, NumPy and Pillow, and informed by their
29
+ implementations.
30
+ - `catchlight-importer`'s `to_clm.rs` — the reader is pinned to
31
+ inochi2d v0.8.6 and v0.8.7 behaviour and cites its source files.
32
+
33
+ Catchlight itself is licensed `MIT OR Apache-2.0`; see [LICENSE-APACHE] and
34
+ [LICENSE-MIT]. Nothing below changes that.
35
+
36
+ [LICENSE-APACHE]: LICENSE-APACHE
37
+ [LICENSE-MIT]: LICENSE-MIT
38
+
39
+ ## inochi2d — BSD 2-Clause License
40
+
41
+ <https://github.com/Inochi2D/inochi2d>.
42
+
43
+ ```
44
+ BSD 2-Clause License
45
+
46
+ Copyright (c) 2020-2026, Inochi2D Project
47
+ Copyright (c) 2020-2026, Kitsunebi Games
48
+ All rights reserved.
49
+
50
+ Redistribution and use in source and binary forms, with or without
51
+ modification, are permitted provided that the following conditions are met:
52
+
53
+ 1. Redistributions of source code must retain the above copyright notice, this
54
+ list of conditions and the following disclaimer.
55
+
56
+ 2. Redistributions in binary form must reproduce the above copyright notice,
57
+ this list of conditions and the following disclaimer in the documentation
58
+ and/or other materials provided with the distribution.
59
+
60
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
61
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
62
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
63
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
64
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
65
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
66
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
67
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
68
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
69
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
70
+ ```
71
+
72
+ ## nijilive — BSD 2-Clause License
73
+
74
+ <https://github.com/nijigenerate/nijilive>, a fork of inochi2d.
75
+
76
+ ```
77
+ BSD 2-Clause License
78
+
79
+ Copyright (c) 2020, Inochi2D Project
80
+ Copyright (c) 2024, nijigenerate Project
81
+ All rights reserved.
82
+
83
+ Redistribution and use in source and binary forms, with or without
84
+ modification, are permitted provided that the following conditions are met:
85
+
86
+ 1. Redistributions of source code must retain the above copyright notice, this
87
+ list of conditions and the following disclaimer.
88
+
89
+ 2. Redistributions in binary form must reproduce the above copyright notice,
90
+ this list of conditions and the following disclaimer in the documentation
91
+ and/or other materials provided with the distribution.
92
+
93
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
94
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
95
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
96
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
97
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
98
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
99
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
100
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
101
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
102
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
103
+ ```
104
+
105
+ ## inox2d — BSD 2-Clause License
106
+
107
+ <https://github.com/Inochi2D/inox2d>, which ships its own wording of the
108
+ same licence.
109
+
110
+ ```
111
+ Copyright (c) 2022 Speykious <speykious@gmail.com> and Inochi2D Project
112
+
113
+ Redistribution and use in source and binary forms, with or without
114
+ modification, are permitted provided that the following conditions
115
+ are met:
116
+ 1. Redistributions of source code must retain the above copyright
117
+ notice, this list of conditions and the following disclaimer.
118
+ 2. Redistributions in binary form must reproduce the above copyright
119
+ notice, this list of conditions and the following disclaimer in the
120
+ documentation and/or other materials provided with the distribution.
121
+
122
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND
123
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
124
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
125
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
126
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
127
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
128
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
129
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
130
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
131
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
132
+ SUCH DAMAGE.
133
+ ```
134
+
135
+ ## inmath — MIT License
136
+
137
+ <https://github.com/Inochi2D/inmath>, a fork of
138
+ [gl3n](https://github.com/Dav1dde/gl3n).
139
+
140
+ ```
141
+ Copyright:
142
+ David Herberth, 2011-2021,
143
+ Inochi2D Project, 2021-2024
144
+
145
+ License: MIT
146
+
147
+ Copyright (c) 2011, David Herberth.
148
+ 2021, Inochi2D Project.
149
+
150
+ Permission is hereby granted, free of charge, to any person obtaining a copy
151
+ of this software and associated documentation files (the "Software"), to deal
152
+ in the Software without restriction, including without limitation the rights
153
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
154
+ copies of the Software, and to permit persons to whom the Software is
155
+ furnished to do so, subject to the following conditions:
156
+
157
+ The above copyright notice and this permission notice shall be included in
158
+ all copies or substantial portions of the Software.
159
+
160
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
161
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
162
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
163
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
164
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
165
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
166
+ THE SOFTWARE.
167
+ ```
168
+
169
+
170
+
171
+ ## LivLiv Player — Apache License 2.0
172
+
173
+ `crates/catchlight-importer/src/livliv/model-v4.json` and
174
+ `keyforms-v1.json` are unmodified schemas from
175
+ [LivLiv Player](https://github.com/livliv-dev/player), revision
176
+ `d999dea88981124168f9e9ab948eda8d2f23c453`. These files remain licensed under
177
+ Apache-2.0; see [LICENSE-APACHE]. The importer is informed by that revision's
178
+ `FORMAT.md` and `src/runtime/puppet.ts`. The import-time evaluator in
179
+ `crates/catchlight-importer/src/livliv/runtime.rs` ports that file's settled
180
+ pose calculations and keyform interpolation; those derived portions remain
181
+ Apache-2.0. It runs only during conversion and is not embedded in model files.
182
+
183
+ Upstream NOTICE:
184
+
185
+ > LivLiv Player
186
+ > Copyright 2026 LivLiv
187
+ >
188
+ > This product includes software developed by LivLiv (https://livliv.ai).
189
+ >
190
+ > The featured characters in characters/ are not licensed under the Apache
191
+ > License 2.0. Their own terms are in characters/LICENSE.md and
192
+ > characters/CREDITS.md. Three of them (Kujira, Kujira Q, Pen) come from
193
+ > other people's work.
194
+
195
+ No LivLiv character assets are distributed with Catchlight. Official samples
196
+ used locally for testing retain their own attribution, non-commercial-use,
197
+ watermark and redistribution conditions. Conversion does not grant additional
198
+ rights to a model or its textures.
199
+
200
+ ## MediaPipe — Apache License 2.0
201
+
202
+ `crates/catchlight-tracking/models/` holds the three models of
203
+ [MediaPipe](https://github.com/google-ai-edge/mediapipe)'s face landmarker
204
+ (`face_landmarker.task`, float16, version 1), converted from TensorFlow Lite
205
+ to ONNX with `tf2onnx` and otherwise unmodified. They remain licensed under
206
+ Apache-2.0; see [LICENSE-APACHE].
207
+
208
+ The rest of that crate follows MediaPipe's face landmarker and face geometry
209
+ graphs: how frames are cropped for the models and their outputs read back,
210
+ the landmark smoothing, and the head-pose fit in `pose.rs`, whose canonical
211
+ face in `canonical.rs` is taken from MediaPipe's
212
+ `geometry_pipeline_metadata_landmarks`. Those derived portions remain
213
+ Apache-2.0.
214
+
215
+ > Copyright 2023 The MediaPipe Authors.
216
+
217
+ ## OpenCV — Apache License 2.0
218
+
219
+ <https://github.com/opencv/opencv>. The derived operations remain
220
+ Apache-2.0; see [LICENSE-APACHE].
221
+
222
+ ## SciPy — BSD 3-Clause License
223
+
224
+ <https://github.com/scipy/scipy>.
225
+
226
+ ```
227
+ Copyright (c) 2001-2002 Enthought, Inc. 2003, SciPy Developers.
228
+ All rights reserved.
229
+
230
+ Redistribution and use in source and binary forms, with or without
231
+ modification, are permitted provided that the following conditions
232
+ are met:
233
+
234
+ 1. Redistributions of source code must retain the above copyright
235
+ notice, this list of conditions and the following disclaimer.
236
+
237
+ 2. Redistributions in binary form must reproduce the above
238
+ copyright notice, this list of conditions and the following
239
+ disclaimer in the documentation and/or other materials provided
240
+ with the distribution.
241
+
242
+ 3. Neither the name of the copyright holder nor the names of its
243
+ contributors may be used to endorse or promote products derived
244
+ from this software without specific prior written permission.
245
+
246
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
247
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
248
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
249
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
250
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
251
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
252
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
253
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
254
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
255
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
256
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
257
+ ```
258
+
259
+ ## NumPy — BSD 3-Clause License
260
+
261
+ <https://github.com/numpy/numpy>.
262
+
263
+ ```
264
+ Copyright (c) 2005-2025, NumPy Developers.
265
+ All rights reserved.
266
+
267
+ Redistribution and use in source and binary forms, with or without
268
+ modification, are permitted provided that the following conditions are
269
+ met:
270
+
271
+ * Redistributions of source code must retain the above copyright
272
+ notice, this list of conditions and the following disclaimer.
273
+
274
+ * Redistributions in binary form must reproduce the above
275
+ copyright notice, this list of conditions and the following
276
+ disclaimer in the documentation and/or other materials provided
277
+ with the distribution.
278
+
279
+ * Neither the name of the NumPy Developers nor the names of any
280
+ contributors may be used to endorse or promote products derived
281
+ from this software without specific prior written permission.
282
+
283
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
284
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
285
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
286
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
287
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
288
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
289
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
290
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
291
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
292
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
293
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
294
+ ```
295
+
296
+ ## Pillow — MIT-CMU License
297
+
298
+ <https://github.com/python-pillow/Pillow>.
299
+
300
+ ```
301
+ The Python Imaging Library (PIL) is
302
+
303
+ Copyright © 1997-2011 by Secret Labs AB
304
+ Copyright © 1995-2011 by Fredrik Lundh and contributors
305
+
306
+ Pillow is the friendly PIL fork. It is
307
+
308
+ Copyright © 2010 by Jeffrey 'Alex' Clark and contributors
309
+
310
+ Like PIL, Pillow is licensed under the open source MIT-CMU License:
311
+
312
+ By obtaining, using, and/or copying this software and/or its associated
313
+ documentation, you agree that you have read, understood, and will comply
314
+ with the following terms and conditions:
315
+
316
+ Permission to use, copy, modify and distribute this software and its
317
+ documentation for any purpose and without fee is hereby granted,
318
+ provided that the above copyright notice appears in all copies, and that
319
+ both that copyright notice and this permission notice appear in supporting
320
+ documentation, and that the name of Secret Labs AB or the author not be
321
+ used in advertising or publicity pertaining to distribution of the software
322
+ without specific, written prior permission.
323
+
324
+ SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
325
+ SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
326
+ IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL,
327
+ INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
328
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
329
+ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
330
+ PERFORMANCE OF THIS SOFTWARE.
331
+ ```
@@ -0,0 +1,21 @@
1
+ import type { Editor, Session } from "@catchlight/editor-core";
2
+ import type { Reviewer } from "../lib/index.js";
3
+ import type { ReactNode } from "react";
4
+ export interface CatchlightEditorProps {
5
+ editor: Editor;
6
+ className?: string;
7
+ onOpenStarter?: () => Promise<Session>;
8
+ /**
9
+ * How an agent joins `session`, shown in the Review tab while none is
10
+ * attending: the host knows where its editor runs and which agents it
11
+ * offers. Without it the tab only says that no agent is connected.
12
+ */
13
+ agentConnect?: (session: Session) => ReactNode;
14
+ /**
15
+ * The person using this tab, as the host knows them: stamped on the
16
+ * comments they write, so a review shared by several people tells them
17
+ * apart. Without it every person's comment reads as "You".
18
+ */
19
+ reviewer?: Reviewer;
20
+ }
21
+ export declare function CatchlightEditor({ editor, className, onOpenStarter, agentConnect, reviewer, }: CatchlightEditorProps): import("react").JSX.Element;