@ebl-vue/editor-full 1.1.6 → 1.1.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.
- package/dist/index.d.ts +48 -4
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -9
- package/src/components/Editor/Editor.vue +1 -1
- package/src/index.ts +10 -7
- package/src/installer.ts +4 -6
- package/src/types.ts +3 -0
- package/types/index.d.ts +1 -5
- package/vite.config.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,55 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
3
|
+
import { ComponentProvideOptions } from 'vue';
|
|
4
|
+
import { DefineComponent } from 'vue';
|
|
5
|
+
import { I18nConfig } from '@ebl-vue/editorjs/types/configs/i18n-config';
|
|
6
|
+
import { OutputData } from '@ebl-vue/editorjs';
|
|
7
|
+
import { PublicProps } from 'vue';
|
|
2
8
|
|
|
3
|
-
export declare
|
|
9
|
+
export declare const EblEditor: DefineComponent<Props, {
|
|
10
|
+
validate: typeof validate;
|
|
11
|
+
getData: typeof getData;
|
|
12
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
13
|
+
onReady: (...args: any[]) => void;
|
|
14
|
+
onChange: (...args: any[]) => void;
|
|
15
|
+
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
16
|
+
onOnReady?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
data: OutputData;
|
|
20
|
+
readOnly: boolean;
|
|
21
|
+
placeholder: string;
|
|
22
|
+
locale: any;
|
|
23
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
|
|
25
|
+
declare function getData(): Promise<unknown>;
|
|
26
|
+
|
|
27
|
+
export declare interface IEblEditorSettings {
|
|
4
28
|
fileUploadEndpoint: string;
|
|
5
|
-
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export declare const install: (app: App, config: IEblEditorSettings) => void;
|
|
32
|
+
|
|
33
|
+
declare const installer: {
|
|
34
|
+
version: string;
|
|
35
|
+
install: (app: App, config: IEblEditorSettings) => void;
|
|
36
|
+
};
|
|
37
|
+
export default installer;
|
|
38
|
+
|
|
39
|
+
declare interface Props {
|
|
40
|
+
readOnly: boolean;
|
|
41
|
+
placeholder: string;
|
|
42
|
+
data: OutputData;
|
|
43
|
+
locale: any;
|
|
6
44
|
userStore: any;
|
|
7
45
|
}
|
|
8
46
|
|
|
9
|
-
|
|
47
|
+
/**
|
|
48
|
+
* 验证是否为空 */
|
|
49
|
+
declare function validate(): Promise<unknown>;
|
|
50
|
+
|
|
51
|
+
export declare const version: string;
|
|
52
|
+
|
|
53
|
+
export declare const zhCn: I18nConfig;
|
|
10
54
|
|
|
11
55
|
export { }
|
package/dist/index.mjs
CHANGED
|
@@ -2972,8 +2972,8 @@ for (let h in _t) {
|
|
|
2972
2972
|
const t = Xt(_t[h]);
|
|
2973
2973
|
Rt.push(t);
|
|
2974
2974
|
}
|
|
2975
|
-
const Ee = { messages: { ui: { blockTunes: { toggler: { "Click to tune": "可拖拽和点击" } }, toolbar: { toolbox: { Add: "添加", Filter: "过滤", "Nothing found": "无内容" }, popover: { Filter: "过滤", "Nothing found": "无内容" } }, popover: { Filter: "筛选", "Nothing found": "未找到任何内容", "Convert to": "转化为" } }, 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: "已复制" }, 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": "右对齐" } }, 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": "向左缩进" } } } }, Dt = /* @__PURE__ */ ((h = []) => ({ version: "1.1.
|
|
2976
|
-
t[dt] || (t[dt] = !0, h.forEach((i) => t.use(i)),
|
|
2975
|
+
const Ee = { messages: { ui: { blockTunes: { toggler: { "Click to tune": "可拖拽和点击" } }, toolbar: { toolbox: { Add: "添加", Filter: "过滤", "Nothing found": "无内容" }, popover: { Filter: "过滤", "Nothing found": "无内容" } }, popover: { Filter: "筛选", "Nothing found": "未找到任何内容", "Convert to": "转化为" } }, 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: "已复制" }, 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": "右对齐" } }, 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": "向左缩进" } } } }, Dt = /* @__PURE__ */ ((h = []) => ({ version: "1.1.8", install: (t, e) => {
|
|
2976
|
+
t[dt] || (t[dt] = !0, h.forEach((i) => t.use(i)), t.provide("EblEditorSettings", e));
|
|
2977
2977
|
} }))(Rt), Me = Dt.install, _e = Dt.version;
|
|
2978
2978
|
export {
|
|
2979
2979
|
ke as EblEditor,
|