@ebl-vue/editor-full 2.31.25 → 2.31.28

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 (114) hide show
  1. package/dist/index.d.ts +1 -28
  2. package/dist/index.mjs +549 -727
  3. package/dist/index.mjs.map +1 -1
  4. package/package.json +3 -3
  5. package/types/index.d.ts +5 -1
  6. package/.postcssrc.yml +0 -33
  7. package/postcss.config.js +0 -15
  8. package/src/components/Editor/Editor.vue +0 -293
  9. package/src/components/Editor/EditorRender.vue +0 -274
  10. package/src/components/index.ts +0 -29
  11. package/src/constants/index.ts +0 -1
  12. package/src/i18n/zh-cn.ts +0 -158
  13. package/src/icons/index.ts +0 -93
  14. package/src/index.ts +0 -22
  15. package/src/installer.ts +0 -21
  16. package/src/plugins/alert/index.css +0 -150
  17. package/src/plugins/alert/index.ts +0 -456
  18. package/src/plugins/block-alignment/index.css +0 -9
  19. package/src/plugins/block-alignment/index.ts +0 -117
  20. package/src/plugins/block-alignment/readme.md +0 -1
  21. package/src/plugins/code/LICENSE +0 -21
  22. package/src/plugins/code/index.css +0 -214
  23. package/src/plugins/code/index.ts +0 -621
  24. package/src/plugins/code/utils/string.ts +0 -34
  25. package/src/plugins/color-picker/index.ts +0 -130
  26. package/src/plugins/color-picker/styles.css +0 -27
  27. package/src/plugins/delimiter/index.css +0 -14
  28. package/src/plugins/delimiter/index.ts +0 -121
  29. package/src/plugins/drag-drop/index.css +0 -19
  30. package/src/plugins/drag-drop/index.ts +0 -151
  31. package/src/plugins/drag-drop/readme.md +0 -1
  32. package/src/plugins/header/H1.ts +0 -404
  33. package/src/plugins/header/H2.ts +0 -403
  34. package/src/plugins/header/H3.ts +0 -404
  35. package/src/plugins/header/H4.ts +0 -404
  36. package/src/plugins/header/H5.ts +0 -403
  37. package/src/plugins/header/H6.ts +0 -404
  38. package/src/plugins/header/index.css +0 -20
  39. package/src/plugins/header/index.ts +0 -15
  40. package/src/plugins/header/types.d.ts +0 -46
  41. package/src/plugins/imageResizeCrop/ImageTune.ts +0 -916
  42. package/src/plugins/imageResizeCrop/index.css +0 -230
  43. package/src/plugins/imageResizeCrop/index.ts +0 -5
  44. package/src/plugins/imageResizeCrop/types.d.ts +0 -23
  45. package/src/plugins/imageTool/index.css +0 -156
  46. package/src/plugins/imageTool/index.ts +0 -538
  47. package/src/plugins/imageTool/types/codexteam__ajax.d.ts +0 -89
  48. package/src/plugins/imageTool/types/types.ts +0 -236
  49. package/src/plugins/imageTool/ui.ts +0 -313
  50. package/src/plugins/imageTool/uploader.ts +0 -272
  51. package/src/plugins/imageTool/utils/dom.ts +0 -24
  52. package/src/plugins/imageTool/utils/index.ts +0 -73
  53. package/src/plugins/imageTool/utils/isPromise.ts +0 -10
  54. package/src/plugins/indent/index.css +0 -86
  55. package/src/plugins/indent/index.ts +0 -695
  56. package/src/plugins/inline-code/index.css +0 -11
  57. package/src/plugins/inline-code/index.ts +0 -202
  58. package/src/plugins/list/ListRenderer/ChecklistRenderer.ts +0 -208
  59. package/src/plugins/list/ListRenderer/ListRenderer.ts +0 -73
  60. package/src/plugins/list/ListRenderer/OrderedListRenderer.ts +0 -123
  61. package/src/plugins/list/ListRenderer/UnorderedListRenderer.ts +0 -123
  62. package/src/plugins/list/ListRenderer/index.ts +0 -6
  63. package/src/plugins/list/ListTabulator/index.ts +0 -1179
  64. package/src/plugins/list/index.ts +0 -480
  65. package/src/plugins/list/styles/CssPrefix.ts +0 -4
  66. package/src/plugins/list/styles/input.css +0 -36
  67. package/src/plugins/list/styles/list.css +0 -165
  68. package/src/plugins/list/types/Elements.ts +0 -14
  69. package/src/plugins/list/types/ItemMeta.ts +0 -40
  70. package/src/plugins/list/types/ListParams.ts +0 -102
  71. package/src/plugins/list/types/ListRenderer.ts +0 -6
  72. package/src/plugins/list/types/OlCounterType.ts +0 -63
  73. package/src/plugins/list/types/index.ts +0 -14
  74. package/src/plugins/list/utils/focusItem.ts +0 -18
  75. package/src/plugins/list/utils/getChildItems.ts +0 -40
  76. package/src/plugins/list/utils/getItemChildWrapper.ts +0 -10
  77. package/src/plugins/list/utils/getItemContentElement.ts +0 -10
  78. package/src/plugins/list/utils/getSiblings.ts +0 -52
  79. package/src/plugins/list/utils/isLastItem.ts +0 -9
  80. package/src/plugins/list/utils/itemHasSublist.ts +0 -10
  81. package/src/plugins/list/utils/normalizeData.ts +0 -83
  82. package/src/plugins/list/utils/removeChildWrapperIfEmpty.ts +0 -31
  83. package/src/plugins/list/utils/renderToolboxInput.ts +0 -105
  84. package/src/plugins/list/utils/stripNumbers.ts +0 -7
  85. package/src/plugins/list/utils/type-guards.ts +0 -8
  86. package/src/plugins/marker/index.css +0 -4
  87. package/src/plugins/marker/index.ts +0 -199
  88. package/src/plugins/outline/index.css +0 -52
  89. package/src/plugins/outline/index.ts +0 -63
  90. package/src/plugins/paragraph/index.css +0 -23
  91. package/src/plugins/paragraph/index.ts +0 -381
  92. package/src/plugins/paragraph/types/icons.d.ts +0 -4
  93. package/src/plugins/paragraph/utils/makeFragment.ts +0 -17
  94. package/src/plugins/quote/index.css +0 -26
  95. package/src/plugins/quote/index.ts +0 -203
  96. package/src/plugins/table/index.ts +0 -4
  97. package/src/plugins/table/plugin.ts +0 -254
  98. package/src/plugins/table/style.css +0 -388
  99. package/src/plugins/table/table.ts +0 -1195
  100. package/src/plugins/table/toolbox.ts +0 -166
  101. package/src/plugins/table/utils/dom.ts +0 -130
  102. package/src/plugins/table/utils/popover.ts +0 -185
  103. package/src/plugins/table/utils/throttled.ts +0 -22
  104. package/src/plugins/underline/index.css +0 -3
  105. package/src/plugins/underline/index.ts +0 -214
  106. package/src/plugins/undo/index.ts +0 -524
  107. package/src/plugins/undo/observer.ts +0 -101
  108. package/src/style.css +0 -114
  109. package/src/types.ts +0 -3
  110. package/src/utils/AxiosService.ts +0 -87
  111. package/src/utils/index.ts +0 -15
  112. package/src/utils/install.ts +0 -19
  113. package/tsconfig.json +0 -37
  114. package/vite.config.ts +0 -81
@@ -1,123 +0,0 @@
1
- import type { UnorderedListItemMeta } from '../types/ItemMeta';
2
- import type { ListConfig } from '../types/ListParams';
3
- import { make, isEmpty } from '@editorjs/dom';
4
- import { DefaultListCssClasses } from './ListRenderer';
5
- import type { ListCssClasses, ListRendererInterface } from './ListRenderer';
6
- import { CssPrefix } from '../styles/CssPrefix';
7
-
8
- /**
9
- * Interface that represents all list used only in unordered list rendering
10
- */
11
- interface UnoderedListCssClasses extends ListCssClasses {
12
- /**
13
- * CSS class of the unordered list
14
- */
15
- unorderedList: string;
16
- }
17
-
18
- /**
19
- * Class that is responsible for unordered list rendering
20
- */
21
- export class UnorderedListRenderer implements ListRendererInterface<UnorderedListItemMeta> {
22
- /**
23
- * Tool's configuration
24
- */
25
- protected config?: ListConfig;
26
-
27
- /**
28
- * Is Editorjs List Tool read-only option
29
- */
30
- private readOnly: boolean;
31
-
32
- /**
33
- * Getter for all CSS classes used in unordered list rendering
34
- */
35
- private static get CSS(): UnoderedListCssClasses {
36
- return {
37
- ...DefaultListCssClasses,
38
- unorderedList: `${CssPrefix}-unordered`,
39
- };
40
- }
41
-
42
- /**
43
- * Assign passed readonly mode and config to relevant class properties
44
- * @param readonly - read-only mode flag
45
- * @param config - user config for Tool
46
- */
47
- constructor(readonly: boolean, config?: ListConfig) {
48
- this.config = config;
49
- this.readOnly = readonly;
50
- }
51
-
52
- /**
53
- * Renders ol wrapper for list
54
- * @param isRoot - boolean variable that represents level of the wrappre (root or childList)
55
- * @returns - created html ul element
56
- */
57
- public renderWrapper(isRoot: boolean): HTMLUListElement {
58
- let wrapperElement: HTMLUListElement;
59
-
60
- /**
61
- * Check if it's root level
62
- */
63
- if (isRoot === true) {
64
- wrapperElement = make('ul', [UnorderedListRenderer.CSS.wrapper, UnorderedListRenderer.CSS.unorderedList]) as HTMLUListElement;
65
- } else {
66
- wrapperElement = make('ul', [UnorderedListRenderer.CSS.unorderedList, UnorderedListRenderer.CSS.itemChildren]) as HTMLUListElement;
67
- }
68
-
69
- return wrapperElement;
70
- }
71
-
72
- /**
73
- * Redners list item element
74
- * @param content - content used in list item rendering
75
- * @param _meta - meta of the list item unused in rendering of the unordered list
76
- * @returns - created html list item element
77
- */
78
- public renderItem(content: string, _meta: UnorderedListItemMeta): HTMLLIElement {
79
- const itemWrapper = make('li', UnorderedListRenderer.CSS.item);
80
- const itemContent = make('div', UnorderedListRenderer.CSS.itemContent, {
81
- innerHTML: content,
82
- contentEditable: (!this.readOnly).toString(),
83
- });
84
-
85
- itemWrapper.appendChild(itemContent);
86
-
87
- return itemWrapper as HTMLLIElement;
88
- }
89
-
90
- /**
91
- * Return the item content
92
- * @param item - item wrapper (<li>)
93
- * @returns - item content string
94
- */
95
- public getItemContent(item: Element): string {
96
- const contentNode = item.querySelector(`.${UnorderedListRenderer.CSS.itemContent}`);
97
-
98
- if (!contentNode) {
99
- return '';
100
- }
101
-
102
- if (isEmpty(contentNode)) {
103
- return '';
104
- }
105
-
106
- return contentNode.innerHTML;
107
- }
108
-
109
- /**
110
- * Returns item meta, for unordered list
111
- * @returns Item meta object
112
- */
113
- public getItemMeta(): UnorderedListItemMeta {
114
- return {};
115
- }
116
-
117
- /**
118
- * Returns default item meta used on creation of the new item
119
- */
120
- public composeDefaultMeta(): UnorderedListItemMeta {
121
- return {};
122
- }
123
- }
@@ -1,6 +0,0 @@
1
- import { CheckListRenderer } from './ChecklistRenderer';
2
- import { OrderedListRenderer } from './OrderedListRenderer';
3
- import { UnorderedListRenderer } from './UnorderedListRenderer';
4
- import { DefaultListCssClasses } from './ListRenderer';
5
-
6
- export { CheckListRenderer, OrderedListRenderer, UnorderedListRenderer, DefaultListCssClasses };