@ebl-vue/editor-full 2.31.35 → 2.31.37
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/.postcssrc.yml +33 -0
- package/dist/index.d.ts +3 -7
- package/dist/index.mjs +184 -183
- package/dist/index.mjs.map +1 -0
- package/package.json +1 -1
- package/postcss.config.js +15 -0
- package/src/components/Editor/Editor.vue +293 -0
- package/src/components/index.ts +27 -0
- package/src/constants/index.ts +1 -0
- package/src/i18n/zh-cn.ts +160 -0
- package/src/icons/index.ts +93 -0
- package/src/index.ts +21 -0
- package/src/installer.ts +21 -0
- package/src/plugins/alert/index.ts +455 -0
- package/src/plugins/block-alignment/index.ts +117 -0
- package/src/plugins/block-alignment/readme.md +1 -0
- package/src/plugins/code/LICENSE +21 -0
- package/src/plugins/code/index.ts +619 -0
- package/src/plugins/code/utils/string.ts +34 -0
- package/src/plugins/color-picker/index.ts +132 -0
- package/src/plugins/delimiter/index.ts +121 -0
- package/src/plugins/drag-drop/index.css +19 -0
- package/src/plugins/drag-drop/index.ts +151 -0
- package/src/plugins/drag-drop/readme.md +1 -0
- package/src/plugins/header/H1.ts +404 -0
- package/src/plugins/header/H2.ts +403 -0
- package/src/plugins/header/H3.ts +404 -0
- package/src/plugins/header/H4.ts +404 -0
- package/src/plugins/header/H5.ts +403 -0
- package/src/plugins/header/H6.ts +404 -0
- package/src/plugins/header/index.ts +15 -0
- package/src/plugins/header/types.d.ts +46 -0
- package/src/plugins/imageResizeCrop/ImageTune.ts +635 -0
- package/src/plugins/imageResizeCrop/index.css +230 -0
- package/src/plugins/imageResizeCrop/index.ts +5 -0
- package/src/plugins/imageResizeCrop/types.d.ts +23 -0
- package/src/plugins/imageTool/index.ts +510 -0
- package/src/plugins/imageTool/types/codexteam__ajax.d.ts +89 -0
- package/src/plugins/imageTool/types/types.ts +236 -0
- package/src/plugins/imageTool/ui.ts +313 -0
- package/src/plugins/imageTool/uploader.ts +293 -0
- package/src/plugins/imageTool/utils/dom.ts +24 -0
- package/src/plugins/imageTool/utils/index.ts +73 -0
- package/src/plugins/imageTool/utils/isPromise.ts +10 -0
- package/src/plugins/indent/index.ts +695 -0
- package/src/plugins/inline-code/index.ts +203 -0
- package/src/plugins/list/ListRenderer/ChecklistRenderer.ts +208 -0
- package/src/plugins/list/ListRenderer/ListRenderer.ts +73 -0
- package/src/plugins/list/ListRenderer/OrderedListRenderer.ts +123 -0
- package/src/plugins/list/ListRenderer/UnorderedListRenderer.ts +123 -0
- package/src/plugins/list/ListRenderer/index.ts +6 -0
- package/src/plugins/list/ListTabulator/index.ts +1179 -0
- package/src/plugins/list/index.ts +488 -0
- package/src/plugins/list/styles/CssPrefix.ts +4 -0
- package/src/plugins/list/types/Elements.ts +14 -0
- package/src/plugins/list/types/ItemMeta.ts +40 -0
- package/src/plugins/list/types/ListParams.ts +102 -0
- package/src/plugins/list/types/ListRenderer.ts +6 -0
- package/src/plugins/list/types/OlCounterType.ts +63 -0
- package/src/plugins/list/types/index.ts +14 -0
- package/src/plugins/list/utils/focusItem.ts +18 -0
- package/src/plugins/list/utils/getChildItems.ts +40 -0
- package/src/plugins/list/utils/getItemChildWrapper.ts +10 -0
- package/src/plugins/list/utils/getItemContentElement.ts +10 -0
- package/src/plugins/list/utils/getSiblings.ts +52 -0
- package/src/plugins/list/utils/isLastItem.ts +9 -0
- package/src/plugins/list/utils/itemHasSublist.ts +10 -0
- package/src/plugins/list/utils/normalizeData.ts +83 -0
- package/src/plugins/list/utils/removeChildWrapperIfEmpty.ts +31 -0
- package/src/plugins/list/utils/renderToolboxInput.ts +113 -0
- package/src/plugins/list/utils/stripNumbers.ts +7 -0
- package/src/plugins/list/utils/type-guards.ts +8 -0
- package/src/plugins/marker/index.ts +199 -0
- package/src/plugins/outline/index.ts +62 -0
- package/src/plugins/outline/outline.css +52 -0
- package/src/plugins/paragraph/index.ts +384 -0
- package/src/plugins/paragraph/types/icons.d.ts +4 -0
- package/src/plugins/paragraph/utils/makeFragment.ts +17 -0
- package/src/plugins/quote/index.ts +203 -0
- package/src/plugins/table/index.ts +4 -0
- package/src/plugins/table/plugin.ts +255 -0
- package/src/plugins/table/table.ts +1202 -0
- package/src/plugins/table/toolbox.ts +166 -0
- package/src/plugins/table/utils/dom.ts +130 -0
- package/src/plugins/table/utils/popover.ts +185 -0
- package/src/plugins/table/utils/throttled.ts +22 -0
- package/src/plugins/underline/index.ts +214 -0
- package/src/plugins/undo/index.ts +526 -0
- package/src/plugins/undo/observer.ts +101 -0
- package/src/plugins/undo/vanilla-caret-js.ts +102 -0
- package/src/style.css +139 -0
- package/src/types.ts +3 -0
- package/src/utils/AxiosService.ts +87 -0
- package/src/utils/index.ts +15 -0
- package/src/utils/install.ts +19 -0
- package/tsconfig.json +37 -0
- package/vite.config.ts +81 -0
package/.postcssrc.yml
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
|
package/dist/index.d.ts
CHANGED
|
@@ -25,20 +25,15 @@ showOutline: boolean;
|
|
|
25
25
|
|
|
26
26
|
declare function getData(): Promise<unknown>;
|
|
27
27
|
|
|
28
|
-
export declare interface IEblEditorConfig {
|
|
29
|
-
editorSettings: IEblEditorConfig;
|
|
30
|
-
userStore: any;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
28
|
export declare interface IEblEditorSettings {
|
|
34
29
|
fileUploadEndpoint: string;
|
|
35
30
|
}
|
|
36
31
|
|
|
37
|
-
export declare const install: (app: App, config:
|
|
32
|
+
export declare const install: (app: App, config: IEblEditorSettings) => void;
|
|
38
33
|
|
|
39
34
|
declare const installer: {
|
|
40
35
|
version: string;
|
|
41
|
-
install: (app: App, config:
|
|
36
|
+
install: (app: App, config: IEblEditorSettings) => void;
|
|
42
37
|
};
|
|
43
38
|
export default installer;
|
|
44
39
|
|
|
@@ -47,6 +42,7 @@ declare interface Props {
|
|
|
47
42
|
placeholder: string;
|
|
48
43
|
data: OutputData;
|
|
49
44
|
locale: any;
|
|
45
|
+
userStore: any;
|
|
50
46
|
showOutline?: boolean;
|
|
51
47
|
}
|
|
52
48
|
|