vue-editify 0.1.49 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
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.1.49";
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.1.49",
3
+ "version": "0.2.0",
4
4
  "private": false,
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -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/index.ts CHANGED
@@ -19,7 +19,7 @@ const install: FunctionPlugin = (app: App) => {
19
19
  app.component(Editify.name!, Editify)
20
20
  }
21
21
  //版本号
22
- const version = '0.1.49'
22
+ const version = '0.2.0'
23
23
 
24
24
  //导出AlexElement元素
25
25
  export { AlexElement } from 'alex-editor'
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',