@ebl-vue/editor-full 2.31.36 → 2.31.38

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 (96) hide show
  1. package/dist/index.mjs +3 -4
  2. package/package.json +1 -1
  3. package/.postcssrc.yml +0 -33
  4. package/dist/index.mjs.map +0 -1
  5. package/postcss.config.js +0 -15
  6. package/src/components/Editor/Editor.vue +0 -293
  7. package/src/components/index.ts +0 -27
  8. package/src/constants/index.ts +0 -1
  9. package/src/i18n/zh-cn.ts +0 -160
  10. package/src/icons/index.ts +0 -93
  11. package/src/index.ts +0 -21
  12. package/src/installer.ts +0 -21
  13. package/src/plugins/alert/index.ts +0 -455
  14. package/src/plugins/block-alignment/index.ts +0 -117
  15. package/src/plugins/block-alignment/readme.md +0 -1
  16. package/src/plugins/code/LICENSE +0 -21
  17. package/src/plugins/code/index.ts +0 -619
  18. package/src/plugins/code/utils/string.ts +0 -34
  19. package/src/plugins/color-picker/index.ts +0 -132
  20. package/src/plugins/delimiter/index.ts +0 -121
  21. package/src/plugins/drag-drop/index.css +0 -19
  22. package/src/plugins/drag-drop/index.ts +0 -151
  23. package/src/plugins/drag-drop/readme.md +0 -1
  24. package/src/plugins/header/H1.ts +0 -404
  25. package/src/plugins/header/H2.ts +0 -403
  26. package/src/plugins/header/H3.ts +0 -404
  27. package/src/plugins/header/H4.ts +0 -404
  28. package/src/plugins/header/H5.ts +0 -403
  29. package/src/plugins/header/H6.ts +0 -404
  30. package/src/plugins/header/index.ts +0 -15
  31. package/src/plugins/header/types.d.ts +0 -46
  32. package/src/plugins/imageResizeCrop/ImageTune.ts +0 -635
  33. package/src/plugins/imageResizeCrop/index.css +0 -230
  34. package/src/plugins/imageResizeCrop/index.ts +0 -5
  35. package/src/plugins/imageResizeCrop/types.d.ts +0 -23
  36. package/src/plugins/imageTool/index.ts +0 -510
  37. package/src/plugins/imageTool/types/codexteam__ajax.d.ts +0 -89
  38. package/src/plugins/imageTool/types/types.ts +0 -236
  39. package/src/plugins/imageTool/ui.ts +0 -313
  40. package/src/plugins/imageTool/uploader.ts +0 -287
  41. package/src/plugins/imageTool/utils/dom.ts +0 -24
  42. package/src/plugins/imageTool/utils/index.ts +0 -73
  43. package/src/plugins/imageTool/utils/isPromise.ts +0 -10
  44. package/src/plugins/indent/index.ts +0 -695
  45. package/src/plugins/inline-code/index.ts +0 -203
  46. package/src/plugins/list/ListRenderer/ChecklistRenderer.ts +0 -208
  47. package/src/plugins/list/ListRenderer/ListRenderer.ts +0 -73
  48. package/src/plugins/list/ListRenderer/OrderedListRenderer.ts +0 -123
  49. package/src/plugins/list/ListRenderer/UnorderedListRenderer.ts +0 -123
  50. package/src/plugins/list/ListRenderer/index.ts +0 -6
  51. package/src/plugins/list/ListTabulator/index.ts +0 -1179
  52. package/src/plugins/list/index.ts +0 -488
  53. package/src/plugins/list/styles/CssPrefix.ts +0 -4
  54. package/src/plugins/list/types/Elements.ts +0 -14
  55. package/src/plugins/list/types/ItemMeta.ts +0 -40
  56. package/src/plugins/list/types/ListParams.ts +0 -102
  57. package/src/plugins/list/types/ListRenderer.ts +0 -6
  58. package/src/plugins/list/types/OlCounterType.ts +0 -63
  59. package/src/plugins/list/types/index.ts +0 -14
  60. package/src/plugins/list/utils/focusItem.ts +0 -18
  61. package/src/plugins/list/utils/getChildItems.ts +0 -40
  62. package/src/plugins/list/utils/getItemChildWrapper.ts +0 -10
  63. package/src/plugins/list/utils/getItemContentElement.ts +0 -10
  64. package/src/plugins/list/utils/getSiblings.ts +0 -52
  65. package/src/plugins/list/utils/isLastItem.ts +0 -9
  66. package/src/plugins/list/utils/itemHasSublist.ts +0 -10
  67. package/src/plugins/list/utils/normalizeData.ts +0 -83
  68. package/src/plugins/list/utils/removeChildWrapperIfEmpty.ts +0 -31
  69. package/src/plugins/list/utils/renderToolboxInput.ts +0 -113
  70. package/src/plugins/list/utils/stripNumbers.ts +0 -7
  71. package/src/plugins/list/utils/type-guards.ts +0 -8
  72. package/src/plugins/marker/index.ts +0 -199
  73. package/src/plugins/outline/index.ts +0 -62
  74. package/src/plugins/outline/outline.css +0 -52
  75. package/src/plugins/paragraph/index.ts +0 -384
  76. package/src/plugins/paragraph/types/icons.d.ts +0 -4
  77. package/src/plugins/paragraph/utils/makeFragment.ts +0 -17
  78. package/src/plugins/quote/index.ts +0 -203
  79. package/src/plugins/table/index.ts +0 -4
  80. package/src/plugins/table/plugin.ts +0 -255
  81. package/src/plugins/table/table.ts +0 -1202
  82. package/src/plugins/table/toolbox.ts +0 -166
  83. package/src/plugins/table/utils/dom.ts +0 -130
  84. package/src/plugins/table/utils/popover.ts +0 -185
  85. package/src/plugins/table/utils/throttled.ts +0 -22
  86. package/src/plugins/underline/index.ts +0 -214
  87. package/src/plugins/undo/index.ts +0 -526
  88. package/src/plugins/undo/observer.ts +0 -101
  89. package/src/plugins/undo/vanilla-caret-js.ts +0 -102
  90. package/src/style.css +0 -139
  91. package/src/types.ts +0 -3
  92. package/src/utils/AxiosService.ts +0 -87
  93. package/src/utils/index.ts +0 -15
  94. package/src/utils/install.ts +0 -19
  95. package/tsconfig.json +0 -37
  96. package/vite.config.ts +0 -81
package/dist/index.mjs CHANGED
@@ -2681,7 +2681,7 @@ class we {
2681
2681
  if (c.status !== 200) return void this.onError(c.statusText);
2682
2682
  const h = c.data;
2683
2683
  if (!h.success) return void this.onError(h.message);
2684
- i = h.data.cdn, s = h.data.objectKey, K.create({ timeout: 18e5, headers: { "Content-Type": r.type } }).put(h.data.presignedUrl, r).then((m) => {
2684
+ i = h.data.cdn, i && !i.endsWith && (i += "/"), s = h.data.objectKey, K.create({ timeout: 18e5, headers: { "Content-Type": r.type } }).put(h.data.presignedUrl, r).then((m) => {
2685
2685
  let f = {};
2686
2686
  f = m.status === 200 ? { success: 1, file: { url: i + s } } : { success: 0, message: m.statusText }, this.onUpload(f);
2687
2687
  }).catch((m) => {
@@ -2718,7 +2718,7 @@ class we {
2718
2718
  const d = a.data;
2719
2719
  if (!d.success) return void this.onError(d.message);
2720
2720
  let l = d.data.cdn, p = d.data.objectKey;
2721
- r["Content-Type"] = t.type, o.put(d.data.presignedUrl, t).then((c) => {
2721
+ l && !l.endsWith && (l += "/"), r["Content-Type"] = t.type, o.put(d.data.presignedUrl, t).then((c) => {
2722
2722
  let h = {};
2723
2723
  h = c.status === 200 ? { success: 1, file: { url: l + p } } : { success: 0, message: c.statusText }, this.onUpload(h);
2724
2724
  }).catch((c) => {
@@ -3058,7 +3058,7 @@ for (let u in Nt) {
3058
3058
  const t = se(Nt[u]);
3059
3059
  $t.push(t);
3060
3060
  }
3061
- const Ie = { messages: { ui: { blockTunes: { toggler: { "Click to tune": "可拖拽和点击" } }, toolbar: { toolbox: { Add: "添加", Filter: "过滤", "Nothing found": "无内容" }, popover: { Filter: "过滤", "Nothing found": "无内容" } }, popover: { Filter: "筛选", "Nothing found": "未找到任何内容", "Convert to": "转化为", "Add below": "在下方插入" } }, toolNames: { Text: "段落", H1: "一级标题", H2: "二级标题", H3: "三级标题", H4: "四级标题", H5: "五级标题", H6: "六级标题", "Ordered List": "有序列表", "Unordered List": "无序列表", Checklist: "任务列表", Quote: "引用", Code: "代码块", Delimiter: "分割线", Link: "链接", Bold: "加粗", Italic: "倾斜", Alert: "高亮块", indent: "缩进", Marker: "突出显示", Color: "文本颜色", Underline: "下划线", InlineCode: "行内代码", Table: "表格", Image: "图片" }, tools: { image: { "Couldn’t upload image. Please try another.": "上传图片失败,请稍后重试。" }, table: { "Add row above": "在上面插入行", "Add row below": "在下面插入行", "Delete row": "删除行", "Add column to left": "在左边插入列", "Add column to right": "在右边插入列", "Delete column": "删除列", "With headings": "使用标题行", "Without headings": "不使用标题行" }, marker: { Marker: "突出显示" }, link: { "Add a link": "添加链接", Save: "确定", "Pasted link is not valid.": "链接地址无效" }, List: { Unordered: "无序", Ordered: "有序", Checklist: "任务列表", "Counter type": "计数器类型", Numeric: "阿拉伯数字", "Lower Roman": "小写罗马数字", "Upper Roman": "大写罗马数字", "Lower Alpha": "小写字母", "Upper Alpha": "大写字母", "Start with": "开始序号" }, paragraph: { "Enter something": "请输入内容" }, stub: { "The block can not be displayed correctly.": "该模块不能放置在这里" }, code: { "Enter your code": "输入代码", Copied: "已复制", "Unable to copy": "复制失败" }, convertTo: { "Convert to": "转化为" }, alert: { "alert-primary": "主要样式", "alert-secondary": "次要样式", "alert-info": "信息", "alert-success": "成功", "alert-warning": "警告", "alert-danger": "危险", "alert-light": "浅色", "alert-dark": "深色", "align-left": "左对齐", "align-center": "居中", "align-right": "右对齐", "Type here...": "输入内容" } }, blockTunes: { delete: { Delete: "删除", "Click to delete": "点击删除" }, moveUp: { "Move up": "向上移" }, moveDown: { "Move down": "向下移" }, filter: { Filter: "过滤" }, blockAlignment: { "left align": "左对齐", "center align": "居中对齐", "right align": "右对齐", "justify align": "两端对齐" }, indent: { "Indent right": "向右缩进", "Indent left": "向左缩进" } } } }, Ft = /* @__PURE__ */ ((u = []) => ({ version: "2.31.36", install: (t, e) => {
3061
+ const Ie = { messages: { ui: { blockTunes: { toggler: { "Click to tune": "可拖拽和点击" } }, toolbar: { toolbox: { Add: "添加", Filter: "过滤", "Nothing found": "无内容" }, popover: { Filter: "过滤", "Nothing found": "无内容" } }, popover: { Filter: "筛选", "Nothing found": "未找到任何内容", "Convert to": "转化为", "Add below": "在下方插入" } }, toolNames: { Text: "段落", H1: "一级标题", H2: "二级标题", H3: "三级标题", H4: "四级标题", H5: "五级标题", H6: "六级标题", "Ordered List": "有序列表", "Unordered List": "无序列表", Checklist: "任务列表", Quote: "引用", Code: "代码块", Delimiter: "分割线", Link: "链接", Bold: "加粗", Italic: "倾斜", Alert: "高亮块", indent: "缩进", Marker: "突出显示", Color: "文本颜色", Underline: "下划线", InlineCode: "行内代码", Table: "表格", Image: "图片" }, tools: { image: { "Couldn’t upload image. Please try another.": "上传图片失败,请稍后重试。" }, table: { "Add row above": "在上面插入行", "Add row below": "在下面插入行", "Delete row": "删除行", "Add column to left": "在左边插入列", "Add column to right": "在右边插入列", "Delete column": "删除列", "With headings": "使用标题行", "Without headings": "不使用标题行" }, marker: { Marker: "突出显示" }, link: { "Add a link": "添加链接", Save: "确定", "Pasted link is not valid.": "链接地址无效" }, List: { Unordered: "无序", Ordered: "有序", Checklist: "任务列表", "Counter type": "计数器类型", Numeric: "阿拉伯数字", "Lower Roman": "小写罗马数字", "Upper Roman": "大写罗马数字", "Lower Alpha": "小写字母", "Upper Alpha": "大写字母", "Start with": "开始序号" }, paragraph: { "Enter something": "请输入内容" }, stub: { "The block can not be displayed correctly.": "该模块不能放置在这里" }, code: { "Enter your code": "输入代码", Copied: "已复制", "Unable to copy": "复制失败" }, convertTo: { "Convert to": "转化为" }, alert: { "alert-primary": "主要样式", "alert-secondary": "次要样式", "alert-info": "信息", "alert-success": "成功", "alert-warning": "警告", "alert-danger": "危险", "alert-light": "浅色", "alert-dark": "深色", "align-left": "左对齐", "align-center": "居中", "align-right": "右对齐", "Type here...": "输入内容" } }, blockTunes: { delete: { Delete: "删除", "Click to delete": "点击删除" }, moveUp: { "Move up": "向上移" }, moveDown: { "Move down": "向下移" }, filter: { Filter: "过滤" }, blockAlignment: { "left align": "左对齐", "center align": "居中对齐", "right align": "右对齐", "justify align": "两端对齐" }, indent: { "Indent right": "向右缩进", "Indent left": "向左缩进" } } } }, Ft = /* @__PURE__ */ ((u = []) => ({ version: "2.31.38", install: (t, e) => {
3062
3062
  t[pt] || (t[pt] = !0, u.forEach((i) => t.use(i)), t.provide("EblEditorSettings", e));
3063
3063
  } }))($t), Ae = Ft.install, Be = Ft.version;
3064
3064
  export {
@@ -3068,4 +3068,3 @@ export {
3068
3068
  Be as version,
3069
3069
  Ie as zhCn
3070
3070
  };
3071
- //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebl-vue/editor-full",
3
- "version": "2.31.36",
3
+ "version": "2.31.38",
4
4
  "type": "module",
5
5
  "author": "lrj525@sina.com",
6
6
  "description": "结构化编辑器",
package/.postcssrc.yml DELETED
@@ -1,33 +0,0 @@
1
- plugins:
2
- # Apply custom property sets via @apply rule
3
- # https://github.com/pascalduez/postcss-apply
4
- postcss-apply: {}
5
-
6
- # Convert modern CSS into something most browsers can understand
7
- # https://github.com/csstools/postcss-preset-env
8
- postcss-preset-env:
9
- # Polyfill CSS features
10
- # https://github.com/csstools/postcss-preset-env#stage
11
- #
12
- # List of features with levels: https://cssdb.org/
13
- stage: 0
14
-
15
- # Define polyfills based on browsers you are supporting
16
- # https://github.com/csstools/postcss-preset-env#browsers
17
- browsers:
18
- - 'last 2 versions'
19
- - '> 1%'
20
-
21
- # Instruct all plugins to omit pre-polyfilled CSS
22
- # https://github.com/csstools/postcss-preset-env#preserve
23
- preserve: false
24
-
25
- # Nested rules unwrapper
26
- # https://github.com/postcss/postcss-nested
27
- #
28
- # As you know 'postcss-preset-env' plugin has an ability to process
29
- # 'postcss-nesting' feature but it does not work with BEM
30
- # Report: https://github.com/csstools/postcss-preset-env/issues/40
31
- postcss-nested: {}
32
-
33
-