@sigma-studio/editor 0.467.2 → 0.469.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.
- package/README.md +23 -0
- package/THIRD_PARTY_NOTICES.md +445 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +483 -478
- package/dist/styles.css +1 -1
- package/dist/tex-import.d.ts +14 -0
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@ SigmaDoc教材のWeb編集をReactサイトへ組み込むEditorパッケージ
|
|
|
14
14
|
- `SigmaDocViewer`: 問題・解答・コメントの出し分け、問題番号上書き、高さ制限を持つRead専用表示
|
|
15
15
|
- `SigmaDocEditor`: デスクトップ版と同じ編集UIを組み込み、`onChange` / `onSave`へ完全なSigmaDocumentを返すcontrolled editor
|
|
16
16
|
- `parseSigmaDocument`: 外部JSONを正規スキーマで検証
|
|
17
|
+
- `importTexDocument` / `importTexProblem`: TeX文書、または問題文・解説の別フィールドをSigmaDocへ変換
|
|
17
18
|
|
|
18
19
|
教材一覧、認証、データ取得、永続化、AI/MCP、Electron API、デスクトップ専用の教材import機能は含みません。これらは組み込み先のアプリが担当します。
|
|
19
20
|
|
|
@@ -74,6 +75,28 @@ export function AnswerPage({ document }: { document: SigmaDocument }) {
|
|
|
74
75
|
|
|
75
76
|
`visibleParts`は`problem`、`solution`、`comments`を自由に組み合わせられます。未指定なら完全版です。`maxHeightPx`を超えた場合だけFadeと「すべて表示」を出します。
|
|
76
77
|
|
|
78
|
+
## TeXの問題を取り込む
|
|
79
|
+
|
|
80
|
+
```ts
|
|
81
|
+
import { importTexDocument, importTexProblem } from "@sigma-studio/editor";
|
|
82
|
+
|
|
83
|
+
// .texファイル全体、または本文だけのTeX
|
|
84
|
+
const document = importTexDocument(texSource, "入試問題.tex");
|
|
85
|
+
|
|
86
|
+
// 問題投稿フォームなどの、別々に管理された問題文と解説
|
|
87
|
+
const problem = importTexProblem({
|
|
88
|
+
title: "二次関数の最小値",
|
|
89
|
+
preamble: String.raw`\providecommand{\sq}[1]{#1^2}`,
|
|
90
|
+
prompt: String.raw`$f(x)=\sq{x}+1$ の最小値を求めよ。`,
|
|
91
|
+
solution: String.raw`$\sq{x}\geq0$ より、最小値は $1$。`,
|
|
92
|
+
tags: ["数と式"],
|
|
93
|
+
});
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
返り値を `SigmaDocEditor.document` または `SigmaDocViewer.document` に渡せます。変換ごとに新しい文書IDを発行します。`prompt` と `solution`、任意の `hints` はSigmaDocの問題エリアに分かれ、マクロは同じ問題内で共有されます。変換時のエラーは例外として返すため、呼び出し元で表示してください。
|
|
97
|
+
|
|
98
|
+
受験数学研究所のTeXに使われる必須引数マクロ、`enumerate` の数字付き小問、`label=(\arabic*)`、`start=`、`\item[(1)]`、別行数式、`aligned` / `cases` / 行列に対応します。任意のLaTeXパッケージは実行しません。TikZや未対応の表・環境は、描画の代わりに編集可能なTeXソースとして残します。
|
|
99
|
+
|
|
77
100
|
## Editorを使う
|
|
78
101
|
|
|
79
102
|
```tsx
|
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
Bundled font and display assets retain the following notices. Other dependency notices are included in the generated JavaScript and dependency packages.
|
|
4
|
+
|
|
5
|
+
## @fontsource/m-plus-1p
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
Copyright 2016 The M+ Project Authors. MPLUS1p-Light.ttf: Copyright 2016 The M+ Project Authors. MPLUS1p-Regular.ttf: Copyright 2016 The M+ Project Authors. MPLUS1p-Medium.ttf: Copyright 2016 The M+ Project Authors. MPLUS1p-Bold.ttf: Copyright 2016 The M+ Project Authors. MPLUS1p-ExtraBold.ttf: Copyright 2016 The M+ Project Authors. MPLUS1p-Black.ttf: Copyright 2016 The M+ Project Authors.
|
|
9
|
+
|
|
10
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
11
|
+
This license is copied below, and is also available with a FAQ at:
|
|
12
|
+
http://scripts.sil.org/OFL
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
-----------------------------------------------------------
|
|
16
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
17
|
+
-----------------------------------------------------------
|
|
18
|
+
|
|
19
|
+
PREAMBLE
|
|
20
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
21
|
+
development of collaborative font projects, to support the font creation
|
|
22
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
23
|
+
open framework in which fonts may be shared and improved in partnership
|
|
24
|
+
with others.
|
|
25
|
+
|
|
26
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
27
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
28
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
29
|
+
redistributed and/or sold with any software provided that any reserved
|
|
30
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
31
|
+
however, cannot be released under any other type of license. The
|
|
32
|
+
requirement for fonts to remain under this license does not apply
|
|
33
|
+
to any document created using the fonts or their derivatives.
|
|
34
|
+
|
|
35
|
+
DEFINITIONS
|
|
36
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
37
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
38
|
+
include source files, build scripts and documentation.
|
|
39
|
+
|
|
40
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
41
|
+
copyright statement(s).
|
|
42
|
+
|
|
43
|
+
"Original Version" refers to the collection of Font Software components as
|
|
44
|
+
distributed by the Copyright Holder(s).
|
|
45
|
+
|
|
46
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
47
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
48
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
49
|
+
new environment.
|
|
50
|
+
|
|
51
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
52
|
+
writer or other person who contributed to the Font Software.
|
|
53
|
+
|
|
54
|
+
PERMISSION & CONDITIONS
|
|
55
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
56
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
57
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
58
|
+
Software, subject to the following conditions:
|
|
59
|
+
|
|
60
|
+
1) Neither the Font Software nor any of its individual components,
|
|
61
|
+
in Original or Modified Versions, may be sold by itself.
|
|
62
|
+
|
|
63
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
64
|
+
redistributed and/or sold with any software, provided that each copy
|
|
65
|
+
contains the above copyright notice and this license. These can be
|
|
66
|
+
included either as stand-alone text files, human-readable headers or
|
|
67
|
+
in the appropriate machine-readable metadata fields within text or
|
|
68
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
69
|
+
|
|
70
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
71
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
72
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
73
|
+
presented to the users.
|
|
74
|
+
|
|
75
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
76
|
+
Software shall not be used to promote, endorse or advertise any
|
|
77
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
78
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
79
|
+
permission.
|
|
80
|
+
|
|
81
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
82
|
+
must be distributed entirely under this license, and must not be
|
|
83
|
+
distributed under any other license. The requirement for fonts to
|
|
84
|
+
remain under this license does not apply to any document created
|
|
85
|
+
using the Font Software.
|
|
86
|
+
|
|
87
|
+
TERMINATION
|
|
88
|
+
This license becomes null and void if any of the above conditions are
|
|
89
|
+
not met.
|
|
90
|
+
|
|
91
|
+
DISCLAIMER
|
|
92
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
93
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
94
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
95
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
96
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
97
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
98
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
99
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
100
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## @fontsource/noto-sans-symbols
|
|
104
|
+
|
|
105
|
+
```text
|
|
106
|
+
Copyright 2022 The Noto Project Authors (https://github.com/notofonts/symbols)
|
|
107
|
+
|
|
108
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
109
|
+
This license is copied below, and is also available with a FAQ at:
|
|
110
|
+
http://scripts.sil.org/OFL
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
-----------------------------------------------------------
|
|
114
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
115
|
+
-----------------------------------------------------------
|
|
116
|
+
|
|
117
|
+
PREAMBLE
|
|
118
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
119
|
+
development of collaborative font projects, to support the font creation
|
|
120
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
121
|
+
open framework in which fonts may be shared and improved in partnership
|
|
122
|
+
with others.
|
|
123
|
+
|
|
124
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
125
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
126
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
127
|
+
redistributed and/or sold with any software provided that any reserved
|
|
128
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
129
|
+
however, cannot be released under any other type of license. The
|
|
130
|
+
requirement for fonts to remain under this license does not apply
|
|
131
|
+
to any document created using the fonts or their derivatives.
|
|
132
|
+
|
|
133
|
+
DEFINITIONS
|
|
134
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
135
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
136
|
+
include source files, build scripts and documentation.
|
|
137
|
+
|
|
138
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
139
|
+
copyright statement(s).
|
|
140
|
+
|
|
141
|
+
"Original Version" refers to the collection of Font Software components as
|
|
142
|
+
distributed by the Copyright Holder(s).
|
|
143
|
+
|
|
144
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
145
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
146
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
147
|
+
new environment.
|
|
148
|
+
|
|
149
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
150
|
+
writer or other person who contributed to the Font Software.
|
|
151
|
+
|
|
152
|
+
PERMISSION & CONDITIONS
|
|
153
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
154
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
155
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
156
|
+
Software, subject to the following conditions:
|
|
157
|
+
|
|
158
|
+
1) Neither the Font Software nor any of its individual components,
|
|
159
|
+
in Original or Modified Versions, may be sold by itself.
|
|
160
|
+
|
|
161
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
162
|
+
redistributed and/or sold with any software, provided that each copy
|
|
163
|
+
contains the above copyright notice and this license. These can be
|
|
164
|
+
included either as stand-alone text files, human-readable headers or
|
|
165
|
+
in the appropriate machine-readable metadata fields within text or
|
|
166
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
167
|
+
|
|
168
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
169
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
170
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
171
|
+
presented to the users.
|
|
172
|
+
|
|
173
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
174
|
+
Software shall not be used to promote, endorse or advertise any
|
|
175
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
176
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
177
|
+
permission.
|
|
178
|
+
|
|
179
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
180
|
+
must be distributed entirely under this license, and must not be
|
|
181
|
+
distributed under any other license. The requirement for fonts to
|
|
182
|
+
remain under this license does not apply to any document created
|
|
183
|
+
using the Font Software.
|
|
184
|
+
|
|
185
|
+
TERMINATION
|
|
186
|
+
This license becomes null and void if any of the above conditions are
|
|
187
|
+
not met.
|
|
188
|
+
|
|
189
|
+
DISCLAIMER
|
|
190
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
191
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
192
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
193
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
194
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
195
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
196
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
197
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
198
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
## @fontsource/noto-serif-jp
|
|
202
|
+
|
|
203
|
+
```text
|
|
204
|
+
Google Inc.
|
|
205
|
+
|
|
206
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
207
|
+
This license is copied below, and is also available with a FAQ at:
|
|
208
|
+
http://scripts.sil.org/OFL
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
-----------------------------------------------------------
|
|
212
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
213
|
+
-----------------------------------------------------------
|
|
214
|
+
|
|
215
|
+
PREAMBLE
|
|
216
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
217
|
+
development of collaborative font projects, to support the font creation
|
|
218
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
219
|
+
open framework in which fonts may be shared and improved in partnership
|
|
220
|
+
with others.
|
|
221
|
+
|
|
222
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
223
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
224
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
225
|
+
redistributed and/or sold with any software provided that any reserved
|
|
226
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
227
|
+
however, cannot be released under any other type of license. The
|
|
228
|
+
requirement for fonts to remain under this license does not apply
|
|
229
|
+
to any document created using the fonts or their derivatives.
|
|
230
|
+
|
|
231
|
+
DEFINITIONS
|
|
232
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
233
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
234
|
+
include source files, build scripts and documentation.
|
|
235
|
+
|
|
236
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
237
|
+
copyright statement(s).
|
|
238
|
+
|
|
239
|
+
"Original Version" refers to the collection of Font Software components as
|
|
240
|
+
distributed by the Copyright Holder(s).
|
|
241
|
+
|
|
242
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
243
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
244
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
245
|
+
new environment.
|
|
246
|
+
|
|
247
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
248
|
+
writer or other person who contributed to the Font Software.
|
|
249
|
+
|
|
250
|
+
PERMISSION & CONDITIONS
|
|
251
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
252
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
253
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
254
|
+
Software, subject to the following conditions:
|
|
255
|
+
|
|
256
|
+
1) Neither the Font Software nor any of its individual components,
|
|
257
|
+
in Original or Modified Versions, may be sold by itself.
|
|
258
|
+
|
|
259
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
260
|
+
redistributed and/or sold with any software, provided that each copy
|
|
261
|
+
contains the above copyright notice and this license. These can be
|
|
262
|
+
included either as stand-alone text files, human-readable headers or
|
|
263
|
+
in the appropriate machine-readable metadata fields within text or
|
|
264
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
265
|
+
|
|
266
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
267
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
268
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
269
|
+
presented to the users.
|
|
270
|
+
|
|
271
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
272
|
+
Software shall not be used to promote, endorse or advertise any
|
|
273
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
274
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
275
|
+
permission.
|
|
276
|
+
|
|
277
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
278
|
+
must be distributed entirely under this license, and must not be
|
|
279
|
+
distributed under any other license. The requirement for fonts to
|
|
280
|
+
remain under this license does not apply to any document created
|
|
281
|
+
using the Font Software.
|
|
282
|
+
|
|
283
|
+
TERMINATION
|
|
284
|
+
This license becomes null and void if any of the above conditions are
|
|
285
|
+
not met.
|
|
286
|
+
|
|
287
|
+
DISCLAIMER
|
|
288
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
289
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
290
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
291
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
292
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
293
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
294
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
295
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
296
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
## @fontsource/stix-two-math
|
|
300
|
+
|
|
301
|
+
```text
|
|
302
|
+
Copyright 2001-2021 The STIX Fonts Project Authors (https://github.com/stipub/stixfonts)
|
|
303
|
+
|
|
304
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
305
|
+
This license is copied below, and is also available with a FAQ at:
|
|
306
|
+
http://scripts.sil.org/OFL
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
-----------------------------------------------------------
|
|
310
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
311
|
+
-----------------------------------------------------------
|
|
312
|
+
|
|
313
|
+
PREAMBLE
|
|
314
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
315
|
+
development of collaborative font projects, to support the font creation
|
|
316
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
317
|
+
open framework in which fonts may be shared and improved in partnership
|
|
318
|
+
with others.
|
|
319
|
+
|
|
320
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
321
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
322
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
323
|
+
redistributed and/or sold with any software provided that any reserved
|
|
324
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
325
|
+
however, cannot be released under any other type of license. The
|
|
326
|
+
requirement for fonts to remain under this license does not apply
|
|
327
|
+
to any document created using the fonts or their derivatives.
|
|
328
|
+
|
|
329
|
+
DEFINITIONS
|
|
330
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
331
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
332
|
+
include source files, build scripts and documentation.
|
|
333
|
+
|
|
334
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
335
|
+
copyright statement(s).
|
|
336
|
+
|
|
337
|
+
"Original Version" refers to the collection of Font Software components as
|
|
338
|
+
distributed by the Copyright Holder(s).
|
|
339
|
+
|
|
340
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
341
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
342
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
343
|
+
new environment.
|
|
344
|
+
|
|
345
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
346
|
+
writer or other person who contributed to the Font Software.
|
|
347
|
+
|
|
348
|
+
PERMISSION & CONDITIONS
|
|
349
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
350
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
351
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
352
|
+
Software, subject to the following conditions:
|
|
353
|
+
|
|
354
|
+
1) Neither the Font Software nor any of its individual components,
|
|
355
|
+
in Original or Modified Versions, may be sold by itself.
|
|
356
|
+
|
|
357
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
358
|
+
redistributed and/or sold with any software, provided that each copy
|
|
359
|
+
contains the above copyright notice and this license. These can be
|
|
360
|
+
included either as stand-alone text files, human-readable headers or
|
|
361
|
+
in the appropriate machine-readable metadata fields within text or
|
|
362
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
363
|
+
|
|
364
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
365
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
366
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
367
|
+
presented to the users.
|
|
368
|
+
|
|
369
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
370
|
+
Software shall not be used to promote, endorse or advertise any
|
|
371
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
372
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
373
|
+
permission.
|
|
374
|
+
|
|
375
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
376
|
+
must be distributed entirely under this license, and must not be
|
|
377
|
+
distributed under any other license. The requirement for fonts to
|
|
378
|
+
remain under this license does not apply to any document created
|
|
379
|
+
using the Font Software.
|
|
380
|
+
|
|
381
|
+
TERMINATION
|
|
382
|
+
This license becomes null and void if any of the above conditions are
|
|
383
|
+
not met.
|
|
384
|
+
|
|
385
|
+
DISCLAIMER
|
|
386
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
387
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
388
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
389
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
390
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
391
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
392
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
393
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
394
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
## katex
|
|
398
|
+
|
|
399
|
+
```text
|
|
400
|
+
The MIT License (MIT)
|
|
401
|
+
|
|
402
|
+
Copyright (c) 2013-2020 Khan Academy and other contributors
|
|
403
|
+
|
|
404
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
405
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
406
|
+
in the Software without restriction, including without limitation the rights
|
|
407
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
408
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
409
|
+
furnished to do so, subject to the following conditions:
|
|
410
|
+
|
|
411
|
+
The above copyright notice and this permission notice shall be included in all
|
|
412
|
+
copies or substantial portions of the Software.
|
|
413
|
+
|
|
414
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
415
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
416
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
417
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
418
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
419
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
420
|
+
SOFTWARE.
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
## mathlive
|
|
424
|
+
|
|
425
|
+
```text
|
|
426
|
+
Copyright (c) 2017 - present Arno Gourdol. All rights reserved.
|
|
427
|
+
|
|
428
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
429
|
+
copy of this software and associated documentation files (the "Software"),
|
|
430
|
+
to deal in the Software without restriction, including without limitation
|
|
431
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
432
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
|
433
|
+
Software is furnished to do so, subject to the following conditions:
|
|
434
|
+
|
|
435
|
+
The above copyright notice and this permission notice shall be included in
|
|
436
|
+
all copies or substantial portions of the Software.
|
|
437
|
+
|
|
438
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
439
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
440
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
441
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
442
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
443
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
444
|
+
DEALINGS IN THE SOFTWARE.
|
|
445
|
+
```
|
package/dist/index.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ import "./styles.css";
|
|
|
2
2
|
export { SigmaDocEditor, type SigmaDocEditorChange, type SigmaDocEditorHandle, type SigmaDocEditorProps, type SigmaDocEditorSaveState, } from "./SigmaDocEditor.js";
|
|
3
3
|
export { SigmaDocParseError, SigmaDocViewer, parseSigmaDocument, type SigmaDocViewerError, type SigmaDocViewerPart, type SigmaDocViewerProps, } from "@sigma-studio/viewer";
|
|
4
4
|
export type * from "@sigma-studio/viewer";
|
|
5
|
+
export { importTexDocument, importTexProblem, type TexProblemInput } from "./tex-import.js";
|