@jackuait/blok 0.1.1

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 (71) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +23 -0
  3. package/dist/blok.mjs +5 -0
  4. package/dist/blok.umd.js +53 -0
  5. package/dist/bundle-6e604287.mjs +340 -0
  6. package/dist/codex-7de6c88e.mjs +15668 -0
  7. package/dist/vendor.LICENSE.txt +545 -0
  8. package/package.json +108 -0
  9. package/types/api/block.d.ts +87 -0
  10. package/types/api/blocks.d.ts +136 -0
  11. package/types/api/caret.d.ts +67 -0
  12. package/types/api/events.d.ts +28 -0
  13. package/types/api/i18n.d.ts +11 -0
  14. package/types/api/index.d.ts +17 -0
  15. package/types/api/inline-toolbar.d.ts +15 -0
  16. package/types/api/listeners.d.ts +32 -0
  17. package/types/api/notifier.d.ts +14 -0
  18. package/types/api/readonly.d.ts +17 -0
  19. package/types/api/sanitizer.d.ts +14 -0
  20. package/types/api/saver.d.ts +13 -0
  21. package/types/api/selection.d.ts +41 -0
  22. package/types/api/styles.d.ts +44 -0
  23. package/types/api/toolbar.d.ts +26 -0
  24. package/types/api/tools.d.ts +11 -0
  25. package/types/api/tooltip.d.ts +30 -0
  26. package/types/api/ui.d.ts +24 -0
  27. package/types/block-tunes/block-tune-data.d.ts +1 -0
  28. package/types/block-tunes/block-tune.d.ts +60 -0
  29. package/types/block-tunes/index.d.ts +1 -0
  30. package/types/configs/conversion-config.ts +26 -0
  31. package/types/configs/editor-config.d.ts +107 -0
  32. package/types/configs/i18n-config.d.ts +16 -0
  33. package/types/configs/i18n-dictionary.d.ts +93 -0
  34. package/types/configs/index.d.ts +7 -0
  35. package/types/configs/log-levels.d.ts +9 -0
  36. package/types/configs/paste-config.d.ts +38 -0
  37. package/types/configs/sanitizer-config.d.ts +43 -0
  38. package/types/data-formats/block-data.d.ts +23 -0
  39. package/types/data-formats/block-id.ts +4 -0
  40. package/types/data-formats/index.d.ts +2 -0
  41. package/types/data-formats/output-data.d.ts +46 -0
  42. package/types/events/block/Base.ts +11 -0
  43. package/types/events/block/BlockAdded.ts +21 -0
  44. package/types/events/block/BlockChanged.ts +21 -0
  45. package/types/events/block/BlockMoved.ts +26 -0
  46. package/types/events/block/BlockRemoved.ts +21 -0
  47. package/types/events/block/index.ts +44 -0
  48. package/types/index.d.ts +191 -0
  49. package/types/tools/adapters/base-tool-adapter.d.ts +76 -0
  50. package/types/tools/adapters/block-tool-adapter.d.ts +78 -0
  51. package/types/tools/adapters/block-tune-adapter.d.ts +14 -0
  52. package/types/tools/adapters/inline-tool-adapter.d.ts +10 -0
  53. package/types/tools/adapters/tool-factory.d.ts +5 -0
  54. package/types/tools/adapters/tool-type.ts +18 -0
  55. package/types/tools/adapters/tools-collection.d.ts +34 -0
  56. package/types/tools/block-tool-data.d.ts +5 -0
  57. package/types/tools/block-tool.d.ts +121 -0
  58. package/types/tools/hook-events.d.ts +23 -0
  59. package/types/tools/index.d.ts +16 -0
  60. package/types/tools/inline-tool.d.ts +37 -0
  61. package/types/tools/menu-config.d.ts +46 -0
  62. package/types/tools/paste-events.d.ts +52 -0
  63. package/types/tools/tool-config.d.ts +4 -0
  64. package/types/tools/tool-settings.d.ts +79 -0
  65. package/types/tools/tool.d.ts +65 -0
  66. package/types/utils/popover/hint.d.ts +29 -0
  67. package/types/utils/popover/index.d.ts +5 -0
  68. package/types/utils/popover/popover-event.ts +15 -0
  69. package/types/utils/popover/popover-item-type.ts +13 -0
  70. package/types/utils/popover/popover-item.d.ts +253 -0
  71. package/types/utils/popover/popover.d.ts +112 -0
@@ -0,0 +1,545 @@
1
+ Name: @babel/register
2
+ Version: 7.21.0
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
+
38
+ Name: nanoid
39
+ Version: 4.0.2
40
+ License: MIT
41
+ Private: false
42
+ Description: A tiny (116 bytes), secure URL-friendly unique string ID generator
43
+ Repository: undefined
44
+ Author: Andrey Sitnik <andrey@sitnik.ru>
45
+ License Copyright:
46
+ ===
47
+
48
+ The MIT License (MIT)
49
+
50
+ Copyright 2017 Andrey Sitnik <andrey@sitnik.ru>
51
+
52
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
53
+ this software and associated documentation files (the "Software"), to deal in
54
+ the Software without restriction, including without limitation the rights to
55
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
56
+ the Software, and to permit persons to whom the Software is furnished to do so,
57
+ subject to the following conditions:
58
+
59
+ The above copyright notice and this permission notice shall be included in all
60
+ copies or substantial portions of the Software.
61
+
62
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
63
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
64
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
65
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
66
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
67
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
68
+
69
+
70
+ ---
71
+
72
+ Name: lodash
73
+ Version: 4.17.21
74
+ License: MIT
75
+ Private: false
76
+ Description: Lodash modular utilities.
77
+ Repository: undefined
78
+ Homepage: https://lodash.com/
79
+ Author: John-David Dalton <john.david.dalton@gmail.com>
80
+ Contributors:
81
+ John-David Dalton <john.david.dalton@gmail.com>
82
+ Mathias Bynens <mathias@qiwi.be>
83
+ License Copyright:
84
+ ===
85
+
86
+ Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
87
+
88
+ Based on Underscore.js, copyright Jeremy Ashkenas,
89
+ DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
90
+
91
+ This software consists of voluntary contributions made by many
92
+ individuals. For exact contribution history, see the revision history
93
+ available at https://github.com/lodash/lodash
94
+
95
+ The following license applies to all parts of this software except as
96
+ documented below:
97
+
98
+ ====
99
+
100
+ Permission is hereby granted, free of charge, to any person obtaining
101
+ a copy of this software and associated documentation files (the
102
+ "Software"), to deal in the Software without restriction, including
103
+ without limitation the rights to use, copy, modify, merge, publish,
104
+ distribute, sublicense, and/or sell copies of the Software, and to
105
+ permit persons to whom the Software is furnished to do so, subject to
106
+ the following conditions:
107
+
108
+ The above copyright notice and this permission notice shall be
109
+ included in all copies or substantial portions of the Software.
110
+
111
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
112
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
113
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
114
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
115
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
116
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
117
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
118
+
119
+ ====
120
+
121
+ Copyright and related rights for sample code are waived via CC0. Sample
122
+ code is defined as all source code displayed within the prose of the
123
+ documentation.
124
+
125
+ CC0: http://creativecommons.org/publicdomain/zero/1.0/
126
+
127
+ ====
128
+
129
+ Files located in the node_modules and vendor directories are externally
130
+ maintained libraries used by this software which have their own
131
+ licenses; we recommend you read them, as their terms may differ from the
132
+ terms above.
133
+
134
+
135
+ ---
136
+
137
+ Name: html-janitor
138
+ Version: 2.0.4
139
+ License: null
140
+ Private: false
141
+ Repository: https://github.com/guardian/html-janitor.git
142
+ License Copyright:
143
+ ===
144
+
145
+ Apache License
146
+ Version 2.0, January 2004
147
+ http://www.apache.org/licenses/
148
+
149
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
150
+
151
+ 1. Definitions.
152
+
153
+ "License" shall mean the terms and conditions for use, reproduction,
154
+ and distribution as defined by Sections 1 through 9 of this document.
155
+
156
+ "Licensor" shall mean the copyright owner or entity authorized by
157
+ the copyright owner that is granting the License.
158
+
159
+ "Legal Entity" shall mean the union of the acting entity and all
160
+ other entities that control, are controlled by, or are under common
161
+ control with that entity. For the purposes of this definition,
162
+ "control" means (i) the power, direct or indirect, to cause the
163
+ direction or management of such entity, whether by contract or
164
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
165
+ outstanding shares, or (iii) beneficial ownership of such entity.
166
+
167
+ "You" (or "Your") shall mean an individual or Legal Entity
168
+ exercising permissions granted by this License.
169
+
170
+ "Source" form shall mean the preferred form for making modifications,
171
+ including but not limited to software source code, documentation
172
+ source, and configuration files.
173
+
174
+ "Object" form shall mean any form resulting from mechanical
175
+ transformation or translation of a Source form, including but
176
+ not limited to compiled object code, generated documentation,
177
+ and conversions to other media types.
178
+
179
+ "Work" shall mean the work of authorship, whether in Source or
180
+ Object form, made available under the License, as indicated by a
181
+ copyright notice that is included in or attached to the work
182
+ (an example is provided in the Appendix below).
183
+
184
+ "Derivative Works" shall mean any work, whether in Source or Object
185
+ form, that is based on (or derived from) the Work and for which the
186
+ editorial revisions, annotations, elaborations, or other modifications
187
+ represent, as a whole, an original work of authorship. For the purposes
188
+ of this License, Derivative Works shall not include works that remain
189
+ separable from, or merely link (or bind by name) to the interfaces of,
190
+ the Work and Derivative Works thereof.
191
+
192
+ "Contribution" shall mean any work of authorship, including
193
+ the original version of the Work and any modifications or additions
194
+ to that Work or Derivative Works thereof, that is intentionally
195
+ submitted to Licensor for inclusion in the Work by the copyright owner
196
+ or by an individual or Legal Entity authorized to submit on behalf of
197
+ the copyright owner. For the purposes of this definition, "submitted"
198
+ means any form of electronic, verbal, or written communication sent
199
+ to the Licensor or its representatives, including but not limited to
200
+ communication on electronic mailing lists, source code control systems,
201
+ and issue tracking systems that are managed by, or on behalf of, the
202
+ Licensor for the purpose of discussing and improving the Work, but
203
+ excluding communication that is conspicuously marked or otherwise
204
+ designated in writing by the copyright owner as "Not a Contribution."
205
+
206
+ "Contributor" shall mean Licensor and any individual or Legal Entity
207
+ on behalf of whom a Contribution has been received by Licensor and
208
+ subsequently incorporated within the Work.
209
+
210
+ 2. Grant of Copyright License. Subject to the terms and conditions of
211
+ this License, each Contributor hereby grants to You a perpetual,
212
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
213
+ copyright license to reproduce, prepare Derivative Works of,
214
+ publicly display, publicly perform, sublicense, and distribute the
215
+ Work and such Derivative Works in Source or Object form.
216
+
217
+ 3. Grant of Patent License. Subject to the terms and conditions of
218
+ this License, each Contributor hereby grants to You a perpetual,
219
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
220
+ (except as stated in this section) patent license to make, have made,
221
+ use, offer to sell, sell, import, and otherwise transfer the Work,
222
+ where such license applies only to those patent claims licensable
223
+ by such Contributor that are necessarily infringed by their
224
+ Contribution(s) alone or by combination of their Contribution(s)
225
+ with the Work to which such Contribution(s) was submitted. If You
226
+ institute patent litigation against any entity (including a
227
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
228
+ or a Contribution incorporated within the Work constitutes direct
229
+ or contributory patent infringement, then any patent licenses
230
+ granted to You under this License for that Work shall terminate
231
+ as of the date such litigation is filed.
232
+
233
+ 4. Redistribution. You may reproduce and distribute copies of the
234
+ Work or Derivative Works thereof in any medium, with or without
235
+ modifications, and in Source or Object form, provided that You
236
+ meet the following conditions:
237
+
238
+ (a) You must give any other recipients of the Work or
239
+ Derivative Works a copy of this License; and
240
+
241
+ (b) You must cause any modified files to carry prominent notices
242
+ stating that You changed the files; and
243
+
244
+ (c) You must retain, in the Source form of any Derivative Works
245
+ that You distribute, all copyright, patent, trademark, and
246
+ attribution notices from the Source form of the Work,
247
+ excluding those notices that do not pertain to any part of
248
+ the Derivative Works; and
249
+
250
+ (d) If the Work includes a "NOTICE" text file as part of its
251
+ distribution, then any Derivative Works that You distribute must
252
+ include a readable copy of the attribution notices contained
253
+ within such NOTICE file, excluding those notices that do not
254
+ pertain to any part of the Derivative Works, in at least one
255
+ of the following places: within a NOTICE text file distributed
256
+ as part of the Derivative Works; within the Source form or
257
+ documentation, if provided along with the Derivative Works; or,
258
+ within a display generated by the Derivative Works, if and
259
+ wherever such third-party notices normally appear. The contents
260
+ of the NOTICE file are for informational purposes only and
261
+ do not modify the License. You may add Your own attribution
262
+ notices within Derivative Works that You distribute, alongside
263
+ or as an addendum to the NOTICE text from the Work, provided
264
+ that such additional attribution notices cannot be construed
265
+ as modifying the License.
266
+
267
+ You may add Your own copyright statement to Your modifications and
268
+ may provide additional or different license terms and conditions
269
+ for use, reproduction, or distribution of Your modifications, or
270
+ for any such Derivative Works as a whole, provided Your use,
271
+ reproduction, and distribution of the Work otherwise complies with
272
+ the conditions stated in this License.
273
+
274
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
275
+ any Contribution intentionally submitted for inclusion in the Work
276
+ by You to the Licensor shall be under the terms and conditions of
277
+ this License, without any additional terms or conditions.
278
+ Notwithstanding the above, nothing herein shall supersede or modify
279
+ the terms of any separate license agreement you may have executed
280
+ with Licensor regarding such Contributions.
281
+
282
+ 6. Trademarks. This License does not grant permission to use the trade
283
+ names, trademarks, service marks, or product names of the Licensor,
284
+ except as required for reasonable and customary use in describing the
285
+ origin of the Work and reproducing the content of the NOTICE file.
286
+
287
+ 7. Disclaimer of Warranty. Unless required by applicable law or
288
+ agreed to in writing, Licensor provides the Work (and each
289
+ Contributor provides its Contributions) on an "AS IS" BASIS,
290
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
291
+ implied, including, without limitation, any warranties or conditions
292
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
293
+ PARTICULAR PURPOSE. You are solely responsible for determining the
294
+ appropriateness of using or redistributing the Work and assume any
295
+ risks associated with Your exercise of permissions under this License.
296
+
297
+ 8. Limitation of Liability. In no event and under no legal theory,
298
+ whether in tort (including negligence), contract, or otherwise,
299
+ unless required by applicable law (such as deliberate and grossly
300
+ negligent acts) or agreed to in writing, shall any Contributor be
301
+ liable to You for damages, including any direct, indirect, special,
302
+ incidental, or consequential damages of any character arising as a
303
+ result of this License or out of the use or inability to use the
304
+ Work (including but not limited to damages for loss of goodwill,
305
+ work stoppage, computer failure or malfunction, or any and all
306
+ other commercial damages or losses), even if such Contributor
307
+ has been advised of the possibility of such damages.
308
+
309
+ 9. Accepting Warranty or Additional Liability. While redistributing
310
+ the Work or Derivative Works thereof, You may choose to offer,
311
+ and charge a fee for, acceptance of support, warranty, indemnity,
312
+ or other liability obligations and/or rights consistent with this
313
+ License. However, in accepting such obligations, You may act only
314
+ on Your own behalf and on Your sole responsibility, not on behalf
315
+ of any other Contributor, and only if You agree to indemnify,
316
+ defend, and hold each Contributor harmless for any liability
317
+ incurred by, or claims asserted against, such Contributor by reason
318
+ of your accepting any such warranty or additional liability.
319
+
320
+ END OF TERMS AND CONDITIONS
321
+
322
+ APPENDIX: How to apply the Apache License to your work.
323
+
324
+ To apply the Apache License to your work, attach the following
325
+ boilerplate notice, with the fields enclosed by brackets "{}"
326
+ replaced with your own identifying information. (Don't include
327
+ the brackets!) The text should be enclosed in the appropriate
328
+ comment syntax for the file format. We also recommend that a
329
+ file or class name and description of purpose be included on the
330
+ same "printed page" as the copyright notice for easier
331
+ identification within third-party archives.
332
+
333
+ Copyright {yyyy} {name of copyright owner}
334
+
335
+ Licensed under the Apache License, Version 2.0 (the "License");
336
+ you may not use this file except in compliance with the License.
337
+ You may obtain a copy of the License at
338
+
339
+ http://www.apache.org/licenses/LICENSE-2.0
340
+
341
+ Unless required by applicable law or agreed to in writing, software
342
+ distributed under the License is distributed on an "AS IS" BASIS,
343
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
344
+ See the License for the specific language governing permissions and
345
+ limitations under the License.
346
+
347
+
348
+ ---
349
+
350
+ Name: @codexteam/icons
351
+ Version: 0.3.2
352
+ License: MIT
353
+ Private: false
354
+ Repository: git+https://github.com/codex-team/icon-pack.git
355
+ License Copyright:
356
+ ===
357
+
358
+ MIT License
359
+
360
+ Copyright (c) 2022 CodeX
361
+
362
+ Permission is hereby granted, free of charge, to any person obtaining a copy
363
+ of this software and associated documentation files (the "Software"), to deal
364
+ in the Software without restriction, including without limitation the rights
365
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
366
+ copies of the Software, and to permit persons to whom the Software is
367
+ furnished to do so, subject to the following conditions:
368
+
369
+ The above copyright notice and this permission notice shall be included in all
370
+ copies or substantial portions of the Software.
371
+
372
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
373
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
374
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
375
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
376
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
377
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
378
+ SOFTWARE.
379
+
380
+
381
+ ---
382
+
383
+ Name: @codexteam/shortcuts
384
+ Version: 1.1.1
385
+ License: MIT
386
+ Private: false
387
+ Description: Library for handling keyboard shortcuts
388
+ Repository: git+https://github.com/codex-team/codex.shortcuts.git
389
+ Homepage: https://github.com/codex-team/codex.shortcuts#readme
390
+ Author: CodeX (https://codex.so)
391
+ License Copyright:
392
+ ===
393
+
394
+ MIT License
395
+
396
+ Copyright (c) 2018 CodeX
397
+
398
+ Permission is hereby granted, free of charge, to any person obtaining a copy
399
+ of this software and associated documentation files (the "Software"), to deal
400
+ in the Software without restriction, including without limitation the rights
401
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
402
+ copies of the Software, and to permit persons to whom the Software is
403
+ furnished to do so, subject to the following conditions:
404
+
405
+ The above copyright notice and this permission notice shall be included in all
406
+ copies or substantial portions of the Software.
407
+
408
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
409
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
410
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
411
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
412
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
413
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
414
+ SOFTWARE.
415
+
416
+ ---
417
+
418
+ Name: @editorjs/caret
419
+ Version: 1.0.1
420
+ License: MIT
421
+ Private: false
422
+ Description: Utils useful for work with caret for Editor.js tools development
423
+ Repository: undefined
424
+
425
+ ---
426
+
427
+ Name: @editorjs/dom
428
+ Version: 1.0.1
429
+ License: MIT
430
+ Private: false
431
+ Description: Utils useful for work with dom for Editor.js tools development
432
+ Repository: undefined
433
+
434
+ ---
435
+
436
+ Name: @editorjs/helpers
437
+ Version: 1.0.1
438
+ License: MIT
439
+ Private: false
440
+ Description: Utils useful for Editor.js tools development
441
+ Repository: undefined
442
+
443
+ ---
444
+
445
+ Name: sortablejs
446
+ Version: 1.15.6
447
+ License: MIT
448
+ Private: false
449
+ Description: JavaScript library for reorderable drag-and-drop lists on modern browsers and touch devices. No jQuery required. Supports Meteor, AngularJS, React, Polymer, Vue, Knockout and any CSS library, e.g. Bootstrap.
450
+ Repository: git://github.com/SortableJS/Sortable.git
451
+ License Copyright:
452
+ ===
453
+
454
+ MIT License
455
+
456
+ Copyright (c) 2019 All contributors to Sortable
457
+
458
+ Permission is hereby granted, free of charge, to any person obtaining a copy
459
+ of this software and associated documentation files (the "Software"), to deal
460
+ in the Software without restriction, including without limitation the rights
461
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
462
+ copies of the Software, and to permit persons to whom the Software is
463
+ furnished to do so, subject to the following conditions:
464
+
465
+ The above copyright notice and this permission notice shall be included in all
466
+ copies or substantial portions of the Software.
467
+
468
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
469
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
470
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
471
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
472
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
473
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
474
+ SOFTWARE.
475
+
476
+
477
+ ---
478
+
479
+ Name: @editorjs/paragraph
480
+ Version: 2.11.6
481
+ License: MIT
482
+ Private: false
483
+ Description: Paragraph Tool for Editor.js
484
+ Repository: undefined
485
+ Author: CodeX <team@codex.so>
486
+ License Copyright:
487
+ ===
488
+
489
+ MIT License
490
+
491
+ Copyright (c) 2018 CodeX
492
+
493
+ Permission is hereby granted, free of charge, to any person obtaining a copy
494
+ of this software and associated documentation files (the "Software"), to deal
495
+ in the Software without restriction, including without limitation the rights
496
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
497
+ copies of the Software, and to permit persons to whom the Software is
498
+ furnished to do so, subject to the following conditions:
499
+
500
+ The above copyright notice and this permission notice shall be included in all
501
+ copies or substantial portions of the Software.
502
+
503
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
504
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
505
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
506
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
507
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
508
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
509
+ SOFTWARE.
510
+
511
+
512
+ ---
513
+
514
+ Name: codex-notifier
515
+ Version: 1.1.2
516
+ License: MIT
517
+ Private: false
518
+ Description: Simple notifications for your website
519
+ Repository: git+https://github.com/codex-team/js-notifier.git
520
+ Homepage: https://github.com/codex-team/js-notifier#readme
521
+ Author: CodeX Team <team@ifmo.su>
522
+ License Copyright:
523
+ ===
524
+
525
+ MIT License
526
+
527
+ Copyright (c) 2017 CodeX
528
+
529
+ Permission is hereby granted, free of charge, to any person obtaining a copy
530
+ of this software and associated documentation files (the "Software"), to deal
531
+ in the Software without restriction, including without limitation the rights
532
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
533
+ copies of the Software, and to permit persons to whom the Software is
534
+ furnished to do so, subject to the following conditions:
535
+
536
+ The above copyright notice and this permission notice shall be included in all
537
+ copies or substantial portions of the Software.
538
+
539
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
540
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
541
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
542
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
543
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
544
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
545
+ SOFTWARE.
package/package.json ADDED
@@ -0,0 +1,108 @@
1
+ {
2
+ "name": "@jackuait/blok",
3
+ "version": "0.1.1",
4
+ "description": "Blok — headless, highly extensible rich text editor built for developers who need to implement a block-based editing experience (similar to Notion) without building it from scratch",
5
+ "main": "dist/blok.umd.js",
6
+ "module": "dist/blok.mjs",
7
+ "types": "./types/index.d.ts",
8
+ "files": [
9
+ "dist",
10
+ "types"
11
+ ],
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "keywords": [
16
+ "blok",
17
+ "text editor",
18
+ "rich text editor",
19
+ "block-based editor",
20
+ "notion-like editor",
21
+ "headless editor",
22
+ "extensible editor"
23
+ ],
24
+ "scripts": {
25
+ "serve": "vite --no-open",
26
+ "build": "vite build --mode production",
27
+ "build:test": "vite build --mode test",
28
+ "lint": "sh -c 'ESLINT_USE_FLAT_CONFIG=true eslint .; ESLINT_EXIT=$?; tsc --noEmit; TSC_EXIT=$?; if [ $ESLINT_EXIT -ne 0 ] || [ $TSC_EXIT -ne 0 ]; then exit 1; fi'",
29
+ "lint:fix": "ESLINT_USE_FLAT_CONFIG=true eslint . --fix",
30
+ "lint:tests": "ESLINT_USE_FLAT_CONFIG=true eslint test/",
31
+ "lint:types": "tsc --noEmit",
32
+ "e2e": "playwright test",
33
+ "e2e:ui": "playwright test --ui",
34
+ "test": "vitest run",
35
+ "test:watch": "vitest",
36
+ "test:coverage": "vitest run --coverage",
37
+ "jscpd": "jscpd src/ test/",
38
+ "jscpd:report": "jscpd . --reporters html,json --output .jscpd-report",
39
+ "prepublishOnly": "yarn build"
40
+ },
41
+ "author": "CodeX",
42
+ "contributors": [
43
+ "JackUait"
44
+ ],
45
+ "license": "Apache-2.0",
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "git+https://github.com/JackUait/editor.js.git"
49
+ },
50
+ "devDependencies": {
51
+ "@axe-core/playwright": "4.11.0",
52
+ "@babel/register": "7.21.0",
53
+ "@codexteam/icons": "0.3.2",
54
+ "@codexteam/shortcuts": "1.1.1",
55
+ "@editorjs/code": "2.7.0",
56
+ "@editorjs/delimiter": "1.2.0",
57
+ "@editorjs/header": "2.8.8",
58
+ "@editorjs/paragraph": "2.11.6",
59
+ "@editorjs/simple-image": "1.4.1",
60
+ "@eslint/eslintrc": "3.1.0",
61
+ "@playwright/test": "1.56.1",
62
+ "@types/node": "18.15.11",
63
+ "@types/sortablejs": "^1.15.9",
64
+ "@vitest/coverage-v8": "1.6.1",
65
+ "@vitest/ui": "1.6.1",
66
+ "core-js": "3.30.0",
67
+ "eslint": "^8.57.0",
68
+ "eslint-config-codex": "1.7.1",
69
+ "eslint-plugin-chai-friendly": "0.7.2",
70
+ "eslint-plugin-deprecation": "1.5.0",
71
+ "eslint-plugin-import": "2.32.0",
72
+ "eslint-plugin-jest": "29.1.0",
73
+ "eslint-plugin-playwright": "2.3.0",
74
+ "eslint-plugin-sonarjs": "3.0.5",
75
+ "html-janitor": "2.0.4",
76
+ "jscpd": "4.0.5",
77
+ "jsdom": "23.0.0",
78
+ "nanoid": "4.0.2",
79
+ "postcss-apply": "0.12.0",
80
+ "postcss-nested": "4.1.2",
81
+ "postcss-preset-env": "8.3.0",
82
+ "rollup-plugin-license": "3.0.1",
83
+ "stylelint": "15.4.0",
84
+ "tslint": "6.1.1",
85
+ "typescript": "5.0.3",
86
+ "vite": "4.2.1",
87
+ "vite-plugin-css-injected-by-js": "3.1.0",
88
+ "vitest": "1.6.1"
89
+ },
90
+ "dependencies": {
91
+ "@editorjs/caret": "1.0.1",
92
+ "@types/lodash": "4.17.20",
93
+ "codex-notifier": "1.1.2",
94
+ "lodash": "4.17.21",
95
+ "sortablejs": "^1.15.6"
96
+ },
97
+ "resolutions": {
98
+ "@typescript-eslint/eslint-plugin": "6.0.0",
99
+ "@typescript-eslint/parser": "6.0.0",
100
+ "@typescript-eslint/typescript-estree": "6.0.0",
101
+ "@typescript-eslint/scope-manager": "6.0.0",
102
+ "@typescript-eslint/types": "6.0.0",
103
+ "@typescript-eslint/utils": "6.0.0",
104
+ "@typescript-eslint/visitor-keys": "6.0.0",
105
+ "@typescript-eslint/type-utils": "6.0.0",
106
+ "eslint-plugin-jsdoc": "48.0.0"
107
+ }
108
+ }