@bendyline/squisq-editor-react 2.3.1 → 2.3.3

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/NOTICE.md CHANGED
@@ -28,7 +28,7 @@ Third-party components remain under their respective license terms.
28
28
  | @monaco-editor/react _(bundled)_ | 4.7.0 | MIT | https://github.com/suren-atoyan/monaco-react |
29
29
  | @monaco-editor/loader _(bundled)_ | 1.7.0 | MIT | https://github.com/suren-atoyan/monaco-loader |
30
30
  | state-local _(bundled)_ | 1.0.7 | MIT | https://github.com/suren-atoyan/state-local |
31
- | monaco-editor _(peer)_ | >=0.50.0 | MIT | https://github.com/microsoft/monaco-editor |
31
+ | monaco-editor _(peer)_ | ~0.50.0 | MIT | https://github.com/microsoft/monaco-editor |
32
32
  | react _(peer)_ | ^18.0.0 \|\| ^19.0.0 | MIT | https://github.com/facebook/react |
33
33
  | react-dom _(peer)_ | ^18.0.0 \|\| ^19.0.0 | MIT | https://github.com/facebook/react |
34
34
 
@@ -36,5 +36,5 @@ Font Awesome Free contains icon artwork under CC-BY-4.0, font files under
36
36
  OFL-1.1, and CSS/JavaScript under MIT. Attribution is required when its icon
37
37
  artwork is redistributed. The Monaco React adapter, loader, and state-local
38
38
  are bundled so consumers do not inherit the adapter's mandatory Monaco peer.
39
- Complete license texts remain available in the respective distributions and
40
- source repositories.
39
+ Exact third-party license texts for the bundled adapter, loader, state helper,
40
+ and Font Awesome assets are shipped in THIRD_PARTY_LICENSES.txt.
package/README.md CHANGED
@@ -14,7 +14,7 @@ npm install @bendyline/squisq-editor-react @bendyline/squisq @bendyline/squisq-r
14
14
  ```
15
15
 
16
16
  **Peer dependencies:** `react` and `react-dom` (v18 or v19), plus
17
- `monaco-editor` (>=0.50.0). Monaco is loaded lazily at runtime, but it is a
17
+ `monaco-editor` (~0.50.0). Monaco is loaded lazily at runtime, but it is a
18
18
  required peer because the package's public TypeScript declarations expose
19
19
  Monaco editor types. Tiptap is bundled as a regular dependency — you don't
20
20
  need to install it yourself.
@@ -78,6 +78,8 @@ and block-at-a-time / timeline editing primitives (`useBlockNavigator`,
78
78
  SVG preview gutter, `inlinePreviewWidth` default 320).
79
79
  - **Code & image modes** — pass `fileName` / `language` to get a Monaco-only
80
80
  code editor, or `imageSrc` (+ `imageMode: 'edit'`) for the image surface.
81
+ `.jsonc` files, `language="jsonc"`, and fenced `jsonc` snippets use JSON
82
+ highlighting with line and block comment support.
81
83
  - **Host-triggered Find mode** — control `findMode` and
82
84
  `onFindModeChange` (or call `setFindMode` from context) to replace the
83
85
  toolbar's editing actions with live search, previous/next navigation, and
@@ -0,0 +1,308 @@
1
+ THIRD-PARTY LICENSES FOR @bendyline/squisq-editor-react
2
+
3
+ Generated from the actual esbuild input graph. Package-local license, copying,
4
+ and notice files are reproduced verbatim. When an npm tarball omits its
5
+ repository license, the pinned upstream copy is vendored and identified below.
6
+
7
+ COMPONENTS
8
+ - @fortawesome/fontawesome-free@7.2.0 ((CC-BY-4.0 AND OFL-1.1 AND MIT)); files: LICENSE.txt
9
+ - @monaco-editor/loader@1.7.0 (MIT); files: LICENSE
10
+ - @monaco-editor/react@4.7.0 (MIT); files: LICENSE
11
+ - @tiptap/core@2.27.2 (MIT); files: VENDORED-tiptap-2.27.2.txt
12
+ - @tiptap/extension-heading@2.27.2 (MIT); files: VENDORED-tiptap-2.27.2.txt
13
+ - state-local@1.0.7 (MIT); files: LICENSE
14
+
15
+ ==============================================================================
16
+ @fortawesome/fontawesome-free@7.2.0 - LICENSE.txt
17
+ ==============================================================================
18
+ Fonticons, Inc. (https://fontawesome.com)
19
+
20
+ --------------------------------------------------------------------------------
21
+
22
+ Font Awesome Free License
23
+
24
+ Font Awesome Free is free, open source, and GPL friendly. You can use it for
25
+ commercial projects, open source projects, or really almost whatever you want.
26
+ Full Font Awesome Free license: https://fontawesome.com/license/free.
27
+
28
+ --------------------------------------------------------------------------------
29
+
30
+ # Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/)
31
+
32
+ The Font Awesome Free download is licensed under a Creative Commons
33
+ Attribution 4.0 International License and applies to all icons packaged
34
+ as SVG and JS file types.
35
+
36
+ --------------------------------------------------------------------------------
37
+
38
+ # Fonts: SIL OFL 1.1 License
39
+
40
+ In the Font Awesome Free download, the SIL OFL license applies to all icons
41
+ packaged as web and desktop font files.
42
+
43
+ Copyright (c) 2026 Fonticons, Inc. (https://fontawesome.com)
44
+ with Reserved Font Name: "Font Awesome".
45
+
46
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
47
+ This license is copied below, and is also available with a FAQ at:
48
+ http://scripts.sil.org/OFL
49
+
50
+ SIL OPEN FONT LICENSE
51
+ Version 1.1 - 26 February 2007
52
+
53
+ PREAMBLE
54
+ The goals of the Open Font License (OFL) are to stimulate worldwide
55
+ development of collaborative font projects, to support the font creation
56
+ efforts of academic and linguistic communities, and to provide a free and
57
+ open framework in which fonts may be shared and improved in partnership
58
+ with others.
59
+
60
+ The OFL allows the licensed fonts to be used, studied, modified and
61
+ redistributed freely as long as they are not sold by themselves. The
62
+ fonts, including any derivative works, can be bundled, embedded,
63
+ redistributed and/or sold with any software provided that any reserved
64
+ names are not used by derivative works. The fonts and derivatives,
65
+ however, cannot be released under any other type of license. The
66
+ requirement for fonts to remain under this license does not apply
67
+ to any document created using the fonts or their derivatives.
68
+
69
+ DEFINITIONS
70
+ "Font Software" refers to the set of files released by the Copyright
71
+ Holder(s) under this license and clearly marked as such. This may
72
+ include source files, build scripts and documentation.
73
+
74
+ "Reserved Font Name" refers to any names specified as such after the
75
+ copyright statement(s).
76
+
77
+ "Original Version" refers to the collection of Font Software components as
78
+ distributed by the Copyright Holder(s).
79
+
80
+ "Modified Version" refers to any derivative made by adding to, deleting,
81
+ or substituting — in part or in whole — any of the components of the
82
+ Original Version, by changing formats or by porting the Font Software to a
83
+ new environment.
84
+
85
+ "Author" refers to any designer, engineer, programmer, technical
86
+ writer or other person who contributed to the Font Software.
87
+
88
+ PERMISSION & CONDITIONS
89
+ Permission is hereby granted, free of charge, to any person obtaining
90
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
91
+ redistribute, and sell modified and unmodified copies of the Font
92
+ Software, subject to the following conditions:
93
+
94
+ 1) Neither the Font Software nor any of its individual components,
95
+ in Original or Modified Versions, may be sold by itself.
96
+
97
+ 2) Original or Modified Versions of the Font Software may be bundled,
98
+ redistributed and/or sold with any software, provided that each copy
99
+ contains the above copyright notice and this license. These can be
100
+ included either as stand-alone text files, human-readable headers or
101
+ in the appropriate machine-readable metadata fields within text or
102
+ binary files as long as those fields can be easily viewed by the user.
103
+
104
+ 3) No Modified Version of the Font Software may use the Reserved Font
105
+ Name(s) unless explicit written permission is granted by the corresponding
106
+ Copyright Holder. This restriction only applies to the primary font name as
107
+ presented to the users.
108
+
109
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
110
+ Software shall not be used to promote, endorse or advertise any
111
+ Modified Version, except to acknowledge the contribution(s) of the
112
+ Copyright Holder(s) and the Author(s) or with their explicit written
113
+ permission.
114
+
115
+ 5) The Font Software, modified or unmodified, in part or in whole,
116
+ must be distributed entirely under this license, and must not be
117
+ distributed under any other license. The requirement for fonts to
118
+ remain under this license does not apply to any document created
119
+ using the Font Software.
120
+
121
+ TERMINATION
122
+ This license becomes null and void if any of the above conditions are
123
+ not met.
124
+
125
+ DISCLAIMER
126
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
127
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
128
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
129
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
130
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
131
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
132
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
133
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
134
+ OTHER DEALINGS IN THE FONT SOFTWARE.
135
+
136
+ --------------------------------------------------------------------------------
137
+
138
+ # Code: MIT License (https://opensource.org/licenses/MIT)
139
+
140
+ In the Font Awesome Free download, the MIT license applies to all non-font and
141
+ non-icon files.
142
+
143
+ Copyright 2026 Fonticons, Inc.
144
+
145
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
146
+ this software and associated documentation files (the "Software"), to deal in the
147
+ Software without restriction, including without limitation the rights to use, copy,
148
+ modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
149
+ and to permit persons to whom the Software is furnished to do so, subject to the
150
+ following conditions:
151
+
152
+ The above copyright notice and this permission notice shall be included in all
153
+ copies or substantial portions of the Software.
154
+
155
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
156
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
157
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
158
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
159
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
160
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
161
+
162
+ --------------------------------------------------------------------------------
163
+
164
+ # Attribution
165
+
166
+ Attribution is required by MIT, SIL OFL, and CC BY licenses. Downloaded Font
167
+ Awesome Free files already contain embedded comments with sufficient
168
+ attribution, so you shouldn't need to do anything additional when using these
169
+ files normally.
170
+
171
+ We've kept attribution comments terse, so we ask that you do not actively work
172
+ to remove them from files, especially code. They're a great way for folks to
173
+ learn about Font Awesome.
174
+
175
+ --------------------------------------------------------------------------------
176
+
177
+ # Brand Icons
178
+
179
+ All brand icons are trademarks of their respective owners. The use of these
180
+ trademarks does not indicate endorsement of the trademark holder by Font
181
+ Awesome, nor vice versa. **Please do not use brand logos for any purpose except
182
+ to represent the company, product, or service to which they refer.**
183
+
184
+ ==============================================================================
185
+ @monaco-editor/loader@1.7.0 - LICENSE
186
+ ==============================================================================
187
+ MIT License
188
+
189
+ Copyright (c) 2021 Suren Atoyan
190
+
191
+ Permission is hereby granted, free of charge, to any person obtaining a copy
192
+ of this software and associated documentation files (the "Software"), to deal
193
+ in the Software without restriction, including without limitation the rights
194
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
195
+ copies of the Software, and to permit persons to whom the Software is
196
+ furnished to do so, subject to the following conditions:
197
+
198
+ The above copyright notice and this permission notice shall be included in all
199
+ copies or substantial portions of the Software.
200
+
201
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
202
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
203
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
204
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
205
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
206
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
207
+ SOFTWARE.
208
+
209
+ ==============================================================================
210
+ @monaco-editor/react@4.7.0 - LICENSE
211
+ ==============================================================================
212
+ MIT License
213
+
214
+ Copyright (c) 2018 Suren Atoyan
215
+
216
+ Permission is hereby granted, free of charge, to any person obtaining a copy
217
+ of this software and associated documentation files (the "Software"), to deal
218
+ in the Software without restriction, including without limitation the rights
219
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
220
+ copies of the Software, and to permit persons to whom the Software is
221
+ furnished to do so, subject to the following conditions:
222
+
223
+ The above copyright notice and this permission notice shall be included in all
224
+ copies or substantial portions of the Software.
225
+
226
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
227
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
228
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
229
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
230
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
231
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
232
+ SOFTWARE.
233
+
234
+ ==============================================================================
235
+ @tiptap/core@2.27.2 - VENDORED-tiptap-2.27.2.txt
236
+ ==============================================================================
237
+ MIT License
238
+
239
+ Copyright (c) 2025, Tiptap GmbH
240
+
241
+ Permission is hereby granted, free of charge, to any person obtaining a copy
242
+ of this software and associated documentation files (the "Software"), to deal
243
+ in the Software without restriction, including without limitation the rights
244
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
245
+ copies of the Software, and to permit persons to whom the Software is
246
+ furnished to do so, subject to the following conditions:
247
+
248
+ The above copyright notice and this permission notice shall be included in all
249
+ copies or substantial portions of the Software.
250
+
251
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
252
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
253
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
254
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
255
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
256
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
257
+ SOFTWARE.
258
+
259
+ ==============================================================================
260
+ @tiptap/extension-heading@2.27.2 - VENDORED-tiptap-2.27.2.txt
261
+ ==============================================================================
262
+ MIT License
263
+
264
+ Copyright (c) 2025, Tiptap GmbH
265
+
266
+ Permission is hereby granted, free of charge, to any person obtaining a copy
267
+ of this software and associated documentation files (the "Software"), to deal
268
+ in the Software without restriction, including without limitation the rights
269
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
270
+ copies of the Software, and to permit persons to whom the Software is
271
+ furnished to do so, subject to the following conditions:
272
+
273
+ The above copyright notice and this permission notice shall be included in all
274
+ copies or substantial portions of the Software.
275
+
276
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
277
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
278
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
279
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
280
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
281
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
282
+ SOFTWARE.
283
+
284
+ ==============================================================================
285
+ state-local@1.0.7 - LICENSE
286
+ ==============================================================================
287
+ MIT License
288
+
289
+ Copyright (c) 2020 Suren Atoyan
290
+
291
+ Permission is hereby granted, free of charge, to any person obtaining a copy
292
+ of this software and associated documentation files (the "Software"), to deal
293
+ in the Software without restriction, including without limitation the rights
294
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
295
+ copies of the Software, and to permit persons to whom the Software is
296
+ furnished to do so, subject to the following conditions:
297
+
298
+ The above copyright notice and this permission notice shall be included in all
299
+ copies or substantial portions of the Software.
300
+
301
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
302
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
303
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
304
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
305
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
306
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
307
+ SOFTWARE.
308
+
@@ -0,0 +1,32 @@
1
+ // src/monacoWorkers.ts
2
+ function configureMonacoWorkers(workers) {
3
+ const host = globalThis;
4
+ host.MonacoEnvironment = {
5
+ getWorker(_workerId, label) {
6
+ switch (label) {
7
+ case "json":
8
+ if (workers.json) return new workers.json();
9
+ break;
10
+ case "css":
11
+ case "scss":
12
+ case "less":
13
+ if (workers.css) return new workers.css();
14
+ break;
15
+ case "html":
16
+ case "handlebars":
17
+ case "razor":
18
+ if (workers.html) return new workers.html();
19
+ break;
20
+ case "typescript":
21
+ case "javascript":
22
+ if (workers.ts) return new workers.ts();
23
+ break;
24
+ }
25
+ return new workers.editor();
26
+ }
27
+ };
28
+ }
29
+
30
+ export {
31
+ configureMonacoWorkers
32
+ };