@ebl-vue/editorjs 2.31.55 → 2.31.57
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/dist/{editorjs.mjs → index.mjs} +453 -449
- package/dist/vendor.LICENSE.txt +8 -8
- package/package.json +10 -3
- package/types/index.d.ts +41 -0
- package/dist/editorjs.umd.js +0 -44
package/dist/vendor.LICENSE.txt
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Name: @babel/register
|
|
2
|
-
Version: 7.28.
|
|
2
|
+
Version: 7.28.6
|
|
3
3
|
License: MIT
|
|
4
4
|
Private: false
|
|
5
5
|
Description: babel require hook
|
|
6
6
|
Repository: https://github.com/babel/babel.git
|
|
7
7
|
Homepage: https://babel.dev/docs/en/next/babel-register
|
|
8
8
|
Author: The Babel Team (https://babel.dev/team)
|
|
9
|
-
License
|
|
9
|
+
License Text:
|
|
10
10
|
===
|
|
11
11
|
|
|
12
12
|
MIT License
|
|
@@ -41,7 +41,7 @@ Private: false
|
|
|
41
41
|
Description: A tiny (116 bytes), secure URL-friendly unique string ID generator
|
|
42
42
|
Repository: undefined
|
|
43
43
|
Author: Andrey Sitnik <andrey@sitnik.ru>
|
|
44
|
-
License
|
|
44
|
+
License Text:
|
|
45
45
|
===
|
|
46
46
|
|
|
47
47
|
The MIT License (MIT)
|
|
@@ -75,7 +75,7 @@ Description: Simple notifications for your website
|
|
|
75
75
|
Repository: git+https://github.com/codex-team/js-notifier.git
|
|
76
76
|
Homepage: https://github.com/codex-team/js-notifier#readme
|
|
77
77
|
Author: CodeX Team <team@ifmo.su>
|
|
78
|
-
License
|
|
78
|
+
License Text:
|
|
79
79
|
===
|
|
80
80
|
|
|
81
81
|
MIT License
|
|
@@ -107,7 +107,7 @@ Version: 2.0.4
|
|
|
107
107
|
License: null
|
|
108
108
|
Private: false
|
|
109
109
|
Repository: https://github.com/guardian/html-janitor.git
|
|
110
|
-
License
|
|
110
|
+
License Text:
|
|
111
111
|
===
|
|
112
112
|
|
|
113
113
|
Apache License
|
|
@@ -322,7 +322,7 @@ Description: Simple tooltips module
|
|
|
322
322
|
Repository: git+https://github.com/codex-team/codex.tooltips
|
|
323
323
|
Homepage: https://github.com/codex-team/codex.tooltips
|
|
324
324
|
Author: CodeX <team@codex.so>
|
|
325
|
-
License
|
|
325
|
+
License Text:
|
|
326
326
|
===
|
|
327
327
|
|
|
328
328
|
Copyright 2019 CodeX https://codex.so
|
|
@@ -340,7 +340,7 @@ Version: 0.3.2
|
|
|
340
340
|
License: MIT
|
|
341
341
|
Private: false
|
|
342
342
|
Repository: git+https://github.com/codex-team/icon-pack.git
|
|
343
|
-
License
|
|
343
|
+
License Text:
|
|
344
344
|
===
|
|
345
345
|
|
|
346
346
|
MIT License
|
|
@@ -375,7 +375,7 @@ Description: Library for handling keyboard shortcuts
|
|
|
375
375
|
Repository: git+https://github.com/codex-team/codex.shortcuts.git
|
|
376
376
|
Homepage: https://github.com/codex-team/codex.shortcuts#readme
|
|
377
377
|
Author: CodeX (https://codex.so)
|
|
378
|
-
License
|
|
378
|
+
License Text:
|
|
379
379
|
===
|
|
380
380
|
|
|
381
381
|
MIT License
|
package/package.json
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ebl-vue/editorjs",
|
|
3
|
-
"version": "2.31.
|
|
3
|
+
"version": "2.31.57",
|
|
4
4
|
"description": "Editor.js — open source block-style WYSIWYG editor with JSON output",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.mjs",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"types": "./types/index.d.ts"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
7
14
|
"types": "./types/index.d.ts",
|
|
8
15
|
"publishConfig": {
|
|
9
16
|
"access": "public"
|
package/types/index.d.ts
CHANGED
|
@@ -187,6 +187,47 @@ declare class EditorJS {
|
|
|
187
187
|
*/
|
|
188
188
|
public destroy(): void;
|
|
189
189
|
}
|
|
190
|
+
declare class SelectionUtils {
|
|
191
|
+
/**
|
|
192
|
+
* Looks ahead from selection and find passed tag with class name
|
|
193
|
+
* @param {string} tagName - tag to find
|
|
194
|
+
* @param {string} className - tag's class name
|
|
195
|
+
* @return {HTMLElement|null}
|
|
196
|
+
*/
|
|
197
|
+
findParentTag(tagName: string, className?: string): HTMLElement|null;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Expand selection to passed tag
|
|
201
|
+
* @param {HTMLElement} node - tag that should contain selection
|
|
202
|
+
*/
|
|
203
|
+
expandToTag(node: HTMLElement): void;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Sets fake background.
|
|
207
|
+
* Allows to immitate selection while focus moved away
|
|
208
|
+
*/
|
|
209
|
+
setFakeBackground(): void;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Removes fake background
|
|
213
|
+
*/
|
|
214
|
+
removeFakeBackground(): void;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Save selection range.
|
|
218
|
+
* Allows to save selection to be able to temporally move focus away.
|
|
219
|
+
* Might be usefull for inline tools
|
|
220
|
+
*/
|
|
221
|
+
save(): void;
|
|
190
222
|
|
|
223
|
+
/**
|
|
224
|
+
* Restore saved selection range
|
|
225
|
+
*/
|
|
226
|
+
restore(): void;
|
|
227
|
+
isFakeBackgroundEnabled: boolean;
|
|
228
|
+
clearSaved(): void;
|
|
229
|
+
collapseToEnd(): void;
|
|
230
|
+
}
|
|
191
231
|
export as namespace EditorJS;
|
|
192
232
|
export default EditorJS;
|
|
233
|
+
export {SelectionUtils}
|