vue-editify 0.1.48 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/examples/App.vue +1 -1
- package/lib/editify.es.js +73 -73
- package/lib/editify.umd.js +2 -1
- package/lib/index.d.ts +1 -1
- package/package.json +4 -4
- package/src/editify/editify.less +2 -2
- package/src/index.ts +1 -1
- package/vite.config.ts +2 -1
- package/lib/style.css +0 -1
package/lib/index.d.ts
CHANGED
@@ -8,7 +8,7 @@ export type { MenuButtonType, MenuSelectButtonType, MenuDisplayButtonType, MenuI
|
|
8
8
|
export type { ElementMatchConfigType } from './core/function';
|
9
9
|
export { elementIsMatch, getMatchElementByElement, getMatchElementByRange, isList, isTask, elementIsInList, elementIsInTask, hasPreInRange, hasQuoteInRange, hasListInRange, hasTaskInRange, hasLinkInRange, hasTableInRange, hasImageInRange, hasVideoInRange, isRangeInQuote, isRangeInList, isRangeInTask, queryTextStyle, queryTextMark, getRangeText, setIndentIncrease, setIndentDecrease, setQuote, setAlign, setList, setTask, setTextStyle, setTextMark, removeTextStyle, removeTextMark, setLineHeight, insertLink, insertImage, insertVideo, insertTable, insertCodeBlock, insertSeparator } from './core/function';
|
10
10
|
declare const install: FunctionPlugin;
|
11
|
-
declare const version = "0.
|
11
|
+
declare const version = "0.2.0";
|
12
12
|
export { AlexElement } from 'alex-editor';
|
13
13
|
export type { AttachmentOptionsType } from './plugins/attachment';
|
14
14
|
export type { InsertAttachmentUploadErrorType } from './plugins/attachment/insertAttachment/props';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vue-editify",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.2.0",
|
4
4
|
"private": false,
|
5
5
|
"sideEffects": [
|
6
6
|
"*.css"
|
@@ -17,7 +17,7 @@
|
|
17
17
|
"lib": "vue-tsc && vite build"
|
18
18
|
},
|
19
19
|
"dependencies": {
|
20
|
-
"alex-editor": "^1.4.
|
20
|
+
"alex-editor": "^1.4.14",
|
21
21
|
"dap-util": "^1.5.4",
|
22
22
|
"highlight.js": "^11.8.0",
|
23
23
|
"katex": "^0.16.10",
|
@@ -28,12 +28,12 @@
|
|
28
28
|
"@types/node": "^20.11.24",
|
29
29
|
"@vitejs/plugin-vue": "^5.0.4",
|
30
30
|
"less": "^3.0.4",
|
31
|
-
"less-loader": "^5.0.0",
|
32
31
|
"terser": "^5.16.9",
|
33
32
|
"typescript": "^5.2.2",
|
34
33
|
"vite": "^5.2.8",
|
35
34
|
"vite-plugin-dts": "^3.7.3",
|
36
|
-
"vue-tsc": "^1.8.27"
|
35
|
+
"vue-tsc": "^1.8.27",
|
36
|
+
"vite-plugin-css-injected-by-js": "^3.5.1"
|
37
37
|
},
|
38
38
|
"browserslist": [
|
39
39
|
"> 1%",
|
package/src/editify/editify.less
CHANGED
@@ -440,7 +440,7 @@
|
|
440
440
|
width: 100%;
|
441
441
|
border-radius: 4px;
|
442
442
|
margin-bottom: 15px;
|
443
|
-
padding: 10px 10px 10px
|
443
|
+
padding: 10px 10px 10px 60px;
|
444
444
|
font-size: @font-size;
|
445
445
|
|
446
446
|
&::before {
|
@@ -455,7 +455,7 @@
|
|
455
455
|
content: '\e610';
|
456
456
|
font-family: 'editify-icon' !important;
|
457
457
|
font-size: 1.25em;
|
458
|
-
padding: 0
|
458
|
+
padding: 0 20px;
|
459
459
|
}
|
460
460
|
}
|
461
461
|
|
package/src/index.ts
CHANGED
package/vite.config.ts
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
import { defineConfig } from 'vite'
|
2
2
|
import vue from '@vitejs/plugin-vue'
|
3
3
|
import dts from 'vite-plugin-dts'
|
4
|
+
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js'
|
4
5
|
import path from 'path'
|
5
6
|
|
6
7
|
export default defineConfig({
|
7
|
-
plugins: [vue(), dts()],
|
8
|
+
plugins: [vue(), dts(), cssInjectedByJsPlugin({ topExecutionPriority: false })],
|
8
9
|
build: {
|
9
10
|
//打包后的目录名称
|
10
11
|
outDir: 'lib',
|