@ebl-vue/editorjs 2.31.8

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 (69) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +244 -0
  3. package/dist/editorjs.mjs +11242 -0
  4. package/dist/editorjs.umd.js +51 -0
  5. package/dist/vendor.LICENSE.txt +462 -0
  6. package/package.json +80 -0
  7. package/types/api/block.d.ts +87 -0
  8. package/types/api/blocks.d.ts +160 -0
  9. package/types/api/caret.d.ts +67 -0
  10. package/types/api/events.d.ts +28 -0
  11. package/types/api/i18n.d.ts +11 -0
  12. package/types/api/index.d.ts +17 -0
  13. package/types/api/inline-toolbar.d.ts +15 -0
  14. package/types/api/listeners.d.ts +32 -0
  15. package/types/api/notifier.d.ts +14 -0
  16. package/types/api/readonly.d.ts +17 -0
  17. package/types/api/sanitizer.d.ts +14 -0
  18. package/types/api/saver.d.ts +13 -0
  19. package/types/api/selection.d.ts +41 -0
  20. package/types/api/styles.d.ts +44 -0
  21. package/types/api/toolbar.d.ts +26 -0
  22. package/types/api/tools.d.ts +11 -0
  23. package/types/api/tooltip.d.ts +30 -0
  24. package/types/api/ui.d.ts +24 -0
  25. package/types/block-tunes/block-tune-data.d.ts +1 -0
  26. package/types/block-tunes/block-tune.d.ts +70 -0
  27. package/types/block-tunes/index.d.ts +1 -0
  28. package/types/configs/conversion-config.ts +26 -0
  29. package/types/configs/editor-config.d.ts +118 -0
  30. package/types/configs/i18n-config.d.ts +16 -0
  31. package/types/configs/i18n-dictionary.d.ts +93 -0
  32. package/types/configs/index.d.ts +7 -0
  33. package/types/configs/log-levels.d.ts +9 -0
  34. package/types/configs/paste-config.d.ts +38 -0
  35. package/types/configs/sanitizer-config.d.ts +43 -0
  36. package/types/data-formats/block-data.d.ts +23 -0
  37. package/types/data-formats/block-id.ts +4 -0
  38. package/types/data-formats/index.d.ts +2 -0
  39. package/types/data-formats/output-data.d.ts +46 -0
  40. package/types/events/block/Base.ts +11 -0
  41. package/types/events/block/BlockAdded.ts +21 -0
  42. package/types/events/block/BlockChanged.ts +21 -0
  43. package/types/events/block/BlockMoved.ts +26 -0
  44. package/types/events/block/BlockRemoved.ts +21 -0
  45. package/types/events/block/index.ts +44 -0
  46. package/types/index.d.ts +190 -0
  47. package/types/tools/adapters/base-tool-adapter.d.ts +76 -0
  48. package/types/tools/adapters/block-tool-adapter.d.ts +78 -0
  49. package/types/tools/adapters/block-tune-adapter.d.ts +14 -0
  50. package/types/tools/adapters/inline-tool-adapter.d.ts +15 -0
  51. package/types/tools/adapters/tool-factory.d.ts +5 -0
  52. package/types/tools/adapters/tool-type.ts +18 -0
  53. package/types/tools/adapters/tools-collection.d.ts +34 -0
  54. package/types/tools/block-tool-data.d.ts +5 -0
  55. package/types/tools/block-tool.d.ts +121 -0
  56. package/types/tools/hook-events.d.ts +23 -0
  57. package/types/tools/index.d.ts +16 -0
  58. package/types/tools/inline-tool.d.ts +66 -0
  59. package/types/tools/menu-config.d.ts +54 -0
  60. package/types/tools/paste-events.d.ts +52 -0
  61. package/types/tools/tool-config.d.ts +4 -0
  62. package/types/tools/tool-settings.d.ts +91 -0
  63. package/types/tools/tool.d.ts +60 -0
  64. package/types/utils/popover/hint.d.ts +29 -0
  65. package/types/utils/popover/index.d.ts +5 -0
  66. package/types/utils/popover/popover-event.ts +15 -0
  67. package/types/utils/popover/popover-item-type.ts +13 -0
  68. package/types/utils/popover/popover-item.d.ts +248 -0
  69. package/types/utils/popover/popover.d.ts +101 -0
@@ -0,0 +1,462 @@
1
+ Name: @babel/register
2
+ Version: 7.28.3
3
+ License: MIT
4
+ Private: false
5
+ Description: babel require hook
6
+ Repository: https://github.com/babel/babel.git
7
+ Homepage: https://babel.dev/docs/en/next/babel-register
8
+ Author: The Babel Team (https://babel.dev/team)
9
+ License Copyright:
10
+ ===
11
+
12
+ MIT License
13
+
14
+ Copyright (c) 2014-present Sebastian McKenzie and other contributors
15
+
16
+ Permission is hereby granted, free of charge, to any person obtaining
17
+ a copy of this software and associated documentation files (the
18
+ "Software"), to deal in the Software without restriction, including
19
+ without limitation the rights to use, copy, modify, merge, publish,
20
+ distribute, sublicense, and/or sell copies of the Software, and to
21
+ permit persons to whom the Software is furnished to do so, subject to
22
+ the following conditions:
23
+
24
+ The above copyright notice and this permission notice shall be
25
+ included in all copies or substantial portions of the Software.
26
+
27
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
28
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
29
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
30
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
31
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
32
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
33
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34
+
35
+ ---
36
+
37
+ Name: nanoid
38
+ Version: 4.0.2
39
+ License: MIT
40
+ Private: false
41
+ Description: A tiny (116 bytes), secure URL-friendly unique string ID generator
42
+ Repository: undefined
43
+ Author: Andrey Sitnik <andrey@sitnik.ru>
44
+ License Copyright:
45
+ ===
46
+
47
+ The MIT License (MIT)
48
+
49
+ Copyright 2017 Andrey Sitnik <andrey@sitnik.ru>
50
+
51
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
52
+ this software and associated documentation files (the "Software"), to deal in
53
+ the Software without restriction, including without limitation the rights to
54
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
55
+ the Software, and to permit persons to whom the Software is furnished to do so,
56
+ subject to the following conditions:
57
+
58
+ The above copyright notice and this permission notice shall be included in all
59
+ copies or substantial portions of the Software.
60
+
61
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
62
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
63
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
64
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
65
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
66
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
67
+
68
+ ---
69
+
70
+ Name: codex-notifier
71
+ Version: 1.1.2
72
+ License: MIT
73
+ Private: false
74
+ Description: Simple notifications for your website
75
+ Repository: git+https://github.com/codex-team/js-notifier.git
76
+ Homepage: https://github.com/codex-team/js-notifier#readme
77
+ Author: CodeX Team <team@ifmo.su>
78
+ License Copyright:
79
+ ===
80
+
81
+ MIT License
82
+
83
+ Copyright (c) 2017 CodeX
84
+
85
+ Permission is hereby granted, free of charge, to any person obtaining a copy
86
+ of this software and associated documentation files (the "Software"), to deal
87
+ in the Software without restriction, including without limitation the rights
88
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
89
+ copies of the Software, and to permit persons to whom the Software is
90
+ furnished to do so, subject to the following conditions:
91
+
92
+ The above copyright notice and this permission notice shall be included in all
93
+ copies or substantial portions of the Software.
94
+
95
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
96
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
97
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
98
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
99
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
100
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
101
+ SOFTWARE.
102
+
103
+ ---
104
+
105
+ Name: html-janitor
106
+ Version: 2.0.4
107
+ License: null
108
+ Private: false
109
+ Repository: https://github.com/guardian/html-janitor.git
110
+ License Copyright:
111
+ ===
112
+
113
+ Apache License
114
+ Version 2.0, January 2004
115
+ http://www.apache.org/licenses/
116
+
117
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
118
+
119
+ 1. Definitions.
120
+
121
+ "License" shall mean the terms and conditions for use, reproduction,
122
+ and distribution as defined by Sections 1 through 9 of this document.
123
+
124
+ "Licensor" shall mean the copyright owner or entity authorized by
125
+ the copyright owner that is granting the License.
126
+
127
+ "Legal Entity" shall mean the union of the acting entity and all
128
+ other entities that control, are controlled by, or are under common
129
+ control with that entity. For the purposes of this definition,
130
+ "control" means (i) the power, direct or indirect, to cause the
131
+ direction or management of such entity, whether by contract or
132
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
133
+ outstanding shares, or (iii) beneficial ownership of such entity.
134
+
135
+ "You" (or "Your") shall mean an individual or Legal Entity
136
+ exercising permissions granted by this License.
137
+
138
+ "Source" form shall mean the preferred form for making modifications,
139
+ including but not limited to software source code, documentation
140
+ source, and configuration files.
141
+
142
+ "Object" form shall mean any form resulting from mechanical
143
+ transformation or translation of a Source form, including but
144
+ not limited to compiled object code, generated documentation,
145
+ and conversions to other media types.
146
+
147
+ "Work" shall mean the work of authorship, whether in Source or
148
+ Object form, made available under the License, as indicated by a
149
+ copyright notice that is included in or attached to the work
150
+ (an example is provided in the Appendix below).
151
+
152
+ "Derivative Works" shall mean any work, whether in Source or Object
153
+ form, that is based on (or derived from) the Work and for which the
154
+ editorial revisions, annotations, elaborations, or other modifications
155
+ represent, as a whole, an original work of authorship. For the purposes
156
+ of this License, Derivative Works shall not include works that remain
157
+ separable from, or merely link (or bind by name) to the interfaces of,
158
+ the Work and Derivative Works thereof.
159
+
160
+ "Contribution" shall mean any work of authorship, including
161
+ the original version of the Work and any modifications or additions
162
+ to that Work or Derivative Works thereof, that is intentionally
163
+ submitted to Licensor for inclusion in the Work by the copyright owner
164
+ or by an individual or Legal Entity authorized to submit on behalf of
165
+ the copyright owner. For the purposes of this definition, "submitted"
166
+ means any form of electronic, verbal, or written communication sent
167
+ to the Licensor or its representatives, including but not limited to
168
+ communication on electronic mailing lists, source code control systems,
169
+ and issue tracking systems that are managed by, or on behalf of, the
170
+ Licensor for the purpose of discussing and improving the Work, but
171
+ excluding communication that is conspicuously marked or otherwise
172
+ designated in writing by the copyright owner as "Not a Contribution."
173
+
174
+ "Contributor" shall mean Licensor and any individual or Legal Entity
175
+ on behalf of whom a Contribution has been received by Licensor and
176
+ subsequently incorporated within the Work.
177
+
178
+ 2. Grant of Copyright License. Subject to the terms and conditions of
179
+ this License, each Contributor hereby grants to You a perpetual,
180
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
181
+ copyright license to reproduce, prepare Derivative Works of,
182
+ publicly display, publicly perform, sublicense, and distribute the
183
+ Work and such Derivative Works in Source or Object form.
184
+
185
+ 3. Grant of Patent License. Subject to the terms and conditions of
186
+ this License, each Contributor hereby grants to You a perpetual,
187
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
188
+ (except as stated in this section) patent license to make, have made,
189
+ use, offer to sell, sell, import, and otherwise transfer the Work,
190
+ where such license applies only to those patent claims licensable
191
+ by such Contributor that are necessarily infringed by their
192
+ Contribution(s) alone or by combination of their Contribution(s)
193
+ with the Work to which such Contribution(s) was submitted. If You
194
+ institute patent litigation against any entity (including a
195
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
196
+ or a Contribution incorporated within the Work constitutes direct
197
+ or contributory patent infringement, then any patent licenses
198
+ granted to You under this License for that Work shall terminate
199
+ as of the date such litigation is filed.
200
+
201
+ 4. Redistribution. You may reproduce and distribute copies of the
202
+ Work or Derivative Works thereof in any medium, with or without
203
+ modifications, and in Source or Object form, provided that You
204
+ meet the following conditions:
205
+
206
+ (a) You must give any other recipients of the Work or
207
+ Derivative Works a copy of this License; and
208
+
209
+ (b) You must cause any modified files to carry prominent notices
210
+ stating that You changed the files; and
211
+
212
+ (c) You must retain, in the Source form of any Derivative Works
213
+ that You distribute, all copyright, patent, trademark, and
214
+ attribution notices from the Source form of the Work,
215
+ excluding those notices that do not pertain to any part of
216
+ the Derivative Works; and
217
+
218
+ (d) If the Work includes a "NOTICE" text file as part of its
219
+ distribution, then any Derivative Works that You distribute must
220
+ include a readable copy of the attribution notices contained
221
+ within such NOTICE file, excluding those notices that do not
222
+ pertain to any part of the Derivative Works, in at least one
223
+ of the following places: within a NOTICE text file distributed
224
+ as part of the Derivative Works; within the Source form or
225
+ documentation, if provided along with the Derivative Works; or,
226
+ within a display generated by the Derivative Works, if and
227
+ wherever such third-party notices normally appear. The contents
228
+ of the NOTICE file are for informational purposes only and
229
+ do not modify the License. You may add Your own attribution
230
+ notices within Derivative Works that You distribute, alongside
231
+ or as an addendum to the NOTICE text from the Work, provided
232
+ that such additional attribution notices cannot be construed
233
+ as modifying the License.
234
+
235
+ You may add Your own copyright statement to Your modifications and
236
+ may provide additional or different license terms and conditions
237
+ for use, reproduction, or distribution of Your modifications, or
238
+ for any such Derivative Works as a whole, provided Your use,
239
+ reproduction, and distribution of the Work otherwise complies with
240
+ the conditions stated in this License.
241
+
242
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
243
+ any Contribution intentionally submitted for inclusion in the Work
244
+ by You to the Licensor shall be under the terms and conditions of
245
+ this License, without any additional terms or conditions.
246
+ Notwithstanding the above, nothing herein shall supersede or modify
247
+ the terms of any separate license agreement you may have executed
248
+ with Licensor regarding such Contributions.
249
+
250
+ 6. Trademarks. This License does not grant permission to use the trade
251
+ names, trademarks, service marks, or product names of the Licensor,
252
+ except as required for reasonable and customary use in describing the
253
+ origin of the Work and reproducing the content of the NOTICE file.
254
+
255
+ 7. Disclaimer of Warranty. Unless required by applicable law or
256
+ agreed to in writing, Licensor provides the Work (and each
257
+ Contributor provides its Contributions) on an "AS IS" BASIS,
258
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
259
+ implied, including, without limitation, any warranties or conditions
260
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
261
+ PARTICULAR PURPOSE. You are solely responsible for determining the
262
+ appropriateness of using or redistributing the Work and assume any
263
+ risks associated with Your exercise of permissions under this License.
264
+
265
+ 8. Limitation of Liability. In no event and under no legal theory,
266
+ whether in tort (including negligence), contract, or otherwise,
267
+ unless required by applicable law (such as deliberate and grossly
268
+ negligent acts) or agreed to in writing, shall any Contributor be
269
+ liable to You for damages, including any direct, indirect, special,
270
+ incidental, or consequential damages of any character arising as a
271
+ result of this License or out of the use or inability to use the
272
+ Work (including but not limited to damages for loss of goodwill,
273
+ work stoppage, computer failure or malfunction, or any and all
274
+ other commercial damages or losses), even if such Contributor
275
+ has been advised of the possibility of such damages.
276
+
277
+ 9. Accepting Warranty or Additional Liability. While redistributing
278
+ the Work or Derivative Works thereof, You may choose to offer,
279
+ and charge a fee for, acceptance of support, warranty, indemnity,
280
+ or other liability obligations and/or rights consistent with this
281
+ License. However, in accepting such obligations, You may act only
282
+ on Your own behalf and on Your sole responsibility, not on behalf
283
+ of any other Contributor, and only if You agree to indemnify,
284
+ defend, and hold each Contributor harmless for any liability
285
+ incurred by, or claims asserted against, such Contributor by reason
286
+ of your accepting any such warranty or additional liability.
287
+
288
+ END OF TERMS AND CONDITIONS
289
+
290
+ APPENDIX: How to apply the Apache License to your work.
291
+
292
+ To apply the Apache License to your work, attach the following
293
+ boilerplate notice, with the fields enclosed by brackets "{}"
294
+ replaced with your own identifying information. (Don't include
295
+ the brackets!) The text should be enclosed in the appropriate
296
+ comment syntax for the file format. We also recommend that a
297
+ file or class name and description of purpose be included on the
298
+ same "printed page" as the copyright notice for easier
299
+ identification within third-party archives.
300
+
301
+ Copyright {yyyy} {name of copyright owner}
302
+
303
+ Licensed under the Apache License, Version 2.0 (the "License");
304
+ you may not use this file except in compliance with the License.
305
+ You may obtain a copy of the License at
306
+
307
+ http://www.apache.org/licenses/LICENSE-2.0
308
+
309
+ Unless required by applicable law or agreed to in writing, software
310
+ distributed under the License is distributed on an "AS IS" BASIS,
311
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
312
+ See the License for the specific language governing permissions and
313
+ limitations under the License.
314
+
315
+ ---
316
+
317
+ Name: codex-tooltip
318
+ Version: 1.0.5
319
+ License: MIT
320
+ Private: false
321
+ Description: Simple tooltips module
322
+ Repository: git+https://github.com/codex-team/codex.tooltips
323
+ Homepage: https://github.com/codex-team/codex.tooltips
324
+ Author: CodeX <team@codex.so>
325
+ License Copyright:
326
+ ===
327
+
328
+ Copyright 2019 CodeX https://codex.so
329
+
330
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
331
+
332
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
333
+
334
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
335
+
336
+ ---
337
+
338
+ Name: @codexteam/icons
339
+ Version: 0.3.2
340
+ License: MIT
341
+ Private: false
342
+ Repository: git+https://github.com/codex-team/icon-pack.git
343
+ License Copyright:
344
+ ===
345
+
346
+ MIT License
347
+
348
+ Copyright (c) 2022 CodeX
349
+
350
+ Permission is hereby granted, free of charge, to any person obtaining a copy
351
+ of this software and associated documentation files (the "Software"), to deal
352
+ in the Software without restriction, including without limitation the rights
353
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
354
+ copies of the Software, and to permit persons to whom the Software is
355
+ furnished to do so, subject to the following conditions:
356
+
357
+ The above copyright notice and this permission notice shall be included in all
358
+ copies or substantial portions of the Software.
359
+
360
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
361
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
362
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
363
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
364
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
365
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
366
+ SOFTWARE.
367
+
368
+ ---
369
+
370
+ Name: @codexteam/shortcuts
371
+ Version: 1.2.0
372
+ License: MIT
373
+ Private: false
374
+ Description: Library for handling keyboard shortcuts
375
+ Repository: git+https://github.com/codex-team/codex.shortcuts.git
376
+ Homepage: https://github.com/codex-team/codex.shortcuts#readme
377
+ Author: CodeX (https://codex.so)
378
+ License Copyright:
379
+ ===
380
+
381
+ MIT License
382
+
383
+ Copyright (c) 2018 CodeX
384
+
385
+ Permission is hereby granted, free of charge, to any person obtaining a copy
386
+ of this software and associated documentation files (the "Software"), to deal
387
+ in the Software without restriction, including without limitation the rights
388
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
389
+ copies of the Software, and to permit persons to whom the Software is
390
+ furnished to do so, subject to the following conditions:
391
+
392
+ The above copyright notice and this permission notice shall be included in all
393
+ copies or substantial portions of the Software.
394
+
395
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
396
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
397
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
398
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
399
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
400
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
401
+ SOFTWARE.
402
+
403
+ ---
404
+
405
+ Name: @editorjs/caret
406
+ Version: 1.0.3
407
+ License: MIT
408
+ Private: false
409
+ Description: Utils useful for work with caret for Editor.js tools development
410
+ Repository: undefined
411
+
412
+ ---
413
+
414
+ Name: @editorjs/dom
415
+ Version: 1.0.1
416
+ License: MIT
417
+ Private: false
418
+ Description: Utils useful for work with dom for Editor.js tools development
419
+ Repository: undefined
420
+
421
+ ---
422
+
423
+ Name: @editorjs/helpers
424
+ Version: 1.0.1
425
+ License: MIT
426
+ Private: false
427
+ Description: Utils useful for Editor.js tools development
428
+ Repository: undefined
429
+
430
+ ---
431
+
432
+ Name: @editorjs/paragraph
433
+ Version: 2.11.7
434
+ License: MIT
435
+ Private: false
436
+ Description: Paragraph Tool for Editor.js
437
+ Repository: undefined
438
+ Author: CodeX <team@codex.so>
439
+ License Copyright:
440
+ ===
441
+
442
+ MIT License
443
+
444
+ Copyright (c) 2018 CodeX
445
+
446
+ Permission is hereby granted, free of charge, to any person obtaining a copy
447
+ of this software and associated documentation files (the "Software"), to deal
448
+ in the Software without restriction, including without limitation the rights
449
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
450
+ copies of the Software, and to permit persons to whom the Software is
451
+ furnished to do so, subject to the following conditions:
452
+
453
+ The above copyright notice and this permission notice shall be included in all
454
+ copies or substantial portions of the Software.
455
+
456
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
457
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
458
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
459
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
460
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
461
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
462
+ SOFTWARE.
package/package.json ADDED
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "@ebl-vue/editorjs",
3
+ "version": "2.31.8",
4
+ "description": "Editor.js — open source block-style WYSIWYG editor with JSON output",
5
+ "main": "dist/editorjs.umd.js",
6
+ "module": "dist/editorjs.mjs",
7
+ "types": "./types/index.d.ts",
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
11
+ "keywords": [
12
+ "codex editor",
13
+ "text editor",
14
+ "editor",
15
+ "editor.js",
16
+ "editorjs",
17
+ "wysiwyg"
18
+ ],
19
+ "scripts": {
20
+ "dev": "rimraf dist && vite build --mode production --watch",
21
+ "build": "vite build --mode production",
22
+ "build:test": "vite build --mode test",
23
+ "lint": "eslint src/ --ext .ts && yarn lint:tests",
24
+ "lint:errors": "eslint src/ --ext .ts --quiet",
25
+ "lint:fix": "eslint src/ --ext .ts --fix",
26
+ "lint:tests": "eslint test/ --ext .ts",
27
+ "test:e2e": "yarn build:test && cypress run",
28
+ "test:e2e:open": "yarn build:test && cypress open"
29
+ },
30
+ "author": "CodeX",
31
+ "license": "Apache-2.0",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "git+https://github.com/codex-team/editor.js.git"
35
+ },
36
+ "devDependencies": {
37
+ "@babel/register": "^7.21.0",
38
+ "@codexteam/icons": "0.3.2",
39
+ "@codexteam/shortcuts": "^1.1.1",
40
+ "@cypress/code-coverage": "^3.10.3",
41
+ "@editorjs/code": "^2.7.0",
42
+ "@editorjs/delimiter": "^1.2.0",
43
+ "@editorjs/header": "^2.8.8",
44
+ "@editorjs/paragraph": "^2.11.6",
45
+ "@editorjs/simple-image": "^1.4.1",
46
+ "@types/node": "^18.15.11",
47
+ "chai-subset": "^1.6.0",
48
+ "core-js": "3.30.0",
49
+ "cypress": "^13.13.3",
50
+ "cypress-intellij-reporter": "^0.0.7",
51
+ "cypress-plugin-tab": "^1.0.5",
52
+ "cypress-terminal-report": "^5.3.2",
53
+ "cypress-vite": "^1.5.0",
54
+ "eslint": "^8.37.0",
55
+ "eslint-config-codex": "^1.7.1",
56
+ "eslint-plugin-chai-friendly": "^0.7.2",
57
+ "eslint-plugin-cypress": "2.12.1",
58
+ "html-janitor": "^2.0.4",
59
+ "nanoid": "^4.0.2",
60
+ "postcss-apply": "^0.12.0",
61
+ "postcss-nested": "4.1.2",
62
+ "postcss-preset-env": "^8.4.0",
63
+ "rollup-plugin-license": "^3.0.1",
64
+ "stylelint": "^15.4.0",
65
+ "tslint": "^6.1.1",
66
+ "typescript": "5.0.3",
67
+ "vite": "^4.2.1",
68
+ "vite-plugin-css-injected-by-js": "^3.1.0"
69
+ },
70
+ "collective": {
71
+ "type": "opencollective",
72
+ "url": "https://opencollective.com/editorjs"
73
+ },
74
+ "dependencies": {
75
+ "@editorjs/caret": "^1.0.1",
76
+ "codex-notifier": "^1.1.2",
77
+ "codex-tooltip": "^1.0.5"
78
+ },
79
+ "gitHead": "03cd523a4f8615d74600cce57e41191340c482d9"
80
+ }
@@ -0,0 +1,87 @@
1
+ import {BlockToolData, ToolConfig, ToolboxConfigEntry} from '../tools';
2
+ import {SavedData} from '../data-formats';
3
+
4
+ /**
5
+ * @interface BlockAPI Describes Block API methods and properties
6
+ */
7
+ export interface BlockAPI {
8
+ /**
9
+ * Block unique identifier
10
+ */
11
+ readonly id: string;
12
+
13
+ /**
14
+ * Tool name
15
+ */
16
+ readonly name: string;
17
+
18
+ /**
19
+ * Tool config passed on Editor's initialization
20
+ */
21
+ readonly config: ToolConfig;
22
+
23
+ /**
24
+ * Wrapper of Tool's HTML element
25
+ */
26
+ readonly holder: HTMLElement;
27
+
28
+ /**
29
+ * True if Block content is empty
30
+ */
31
+ readonly isEmpty: boolean;
32
+
33
+ /**
34
+ * True if Block is selected with Cross-Block selection
35
+ */
36
+ readonly selected: boolean;
37
+
38
+ /**
39
+ * True if Block has inputs to be focused
40
+ */
41
+ readonly focusable: boolean;
42
+
43
+ /**
44
+ * Setter sets Block's stretch state
45
+ *
46
+ * Getter returns true if Block is stretched
47
+ */
48
+ stretched: boolean;
49
+
50
+ /**
51
+ * Call Tool method with errors handler under-the-hood
52
+ *
53
+ * @param {string} methodName - method to call
54
+ * @param {object} param - object with parameters
55
+ *
56
+ * @return {void}
57
+ */
58
+ call(methodName: string, param?: object): void;
59
+
60
+ /**
61
+ * Save Block content
62
+ *
63
+ * @return {Promise<void|SavedData>}
64
+ */
65
+ save(): Promise<void|SavedData>;
66
+
67
+ /**
68
+ * Validate Block data
69
+ *
70
+ * @param {BlockToolData} data
71
+ *
72
+ * @return {Promise<boolean>}
73
+ */
74
+ validate(data: BlockToolData): Promise<boolean>;
75
+
76
+ /**
77
+ * Allows to say Editor that Block was changed. Used to manually trigger Editor's 'onChange' callback
78
+ * Can be useful for block changes invisible for editor core.
79
+ */
80
+ dispatchChange(): void;
81
+
82
+ /**
83
+ * Tool could specify several entries to be displayed at the Toolbox (for example, "Heading 1", "Heading 2", "Heading 3")
84
+ * This method returns the entry that is related to the Block (depended on the Block data)
85
+ */
86
+ getActiveToolboxEntry(): Promise<ToolboxConfigEntry | undefined>
87
+ }