vue-editify 0.2.0 → 0.2.2

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 (48) hide show
  1. package/lib/components/insertImage/insertImage.vue.d.ts +3 -3
  2. package/lib/components/insertImage/props.d.ts +1 -1
  3. package/lib/components/insertVideo/insertVideo.vue.d.ts +3 -3
  4. package/lib/components/insertVideo/props.d.ts +1 -1
  5. package/lib/core/tool.d.ts +12 -3
  6. package/lib/editify/props.d.ts +1 -1
  7. package/lib/editify.es.js +12794 -12787
  8. package/lib/editify.umd.js +2 -2
  9. package/lib/index.d.ts +731 -5
  10. package/lib/plugins/attachment/index.d.ts +1 -1
  11. package/lib/plugins/attachment/insertAttachment/insertAttachment.vue.d.ts +3 -3
  12. package/lib/plugins/attachment/insertAttachment/props.d.ts +1 -1
  13. package/lib/plugins/infoBlock/index.d.ts +1 -1
  14. package/lib/plugins/mathformula/index.d.ts +1 -1
  15. package/lib/plugins/panel/index.d.ts +1 -1
  16. package/package.json +1 -1
  17. package/src/components/button/button.vue +5 -5
  18. package/src/components/button/props.ts +1 -1
  19. package/src/components/checkbox/checkbox.vue +3 -3
  20. package/src/components/checkbox/props.ts +1 -1
  21. package/src/components/colors/colors.vue +3 -3
  22. package/src/components/colors/props.ts +1 -1
  23. package/src/components/insertImage/insertImage.vue +3 -3
  24. package/src/components/insertImage/props.ts +1 -1
  25. package/src/components/insertLink/insertLink.vue +1 -1
  26. package/src/components/insertVideo/insertVideo.vue +3 -3
  27. package/src/components/insertVideo/props.ts +1 -1
  28. package/src/components/layer/layer.vue +3 -3
  29. package/src/components/menu/menu.vue +13 -13
  30. package/src/components/menu/props.ts +1 -1
  31. package/src/components/toolbar/props.ts +1 -1
  32. package/src/components/toolbar/toolbar.vue +10 -10
  33. package/src/components/tooltip/tooltip.vue +1 -1
  34. package/src/components/triangle/triangle.vue +1 -1
  35. package/src/core/function.ts +2 -2
  36. package/src/core/rule.ts +4 -4
  37. package/src/core/tool.ts +22 -8
  38. package/src/editify/editify.vue +8 -8
  39. package/src/editify/props.ts +2 -2
  40. package/src/index.ts +24 -21
  41. package/src/plugins/attachment/index.ts +8 -8
  42. package/src/plugins/attachment/insertAttachment/insertAttachment.vue +3 -3
  43. package/src/plugins/attachment/insertAttachment/props.ts +1 -1
  44. package/src/plugins/infoBlock/index.ts +4 -4
  45. package/src/plugins/mathformula/index.ts +4 -4
  46. package/src/plugins/panel/index.ts +4 -4
  47. package/tsconfig.json +4 -0
  48. package/vite.config.ts +5 -0
@@ -1,13 +1,13 @@
1
1
  import { common as DapCommon } from 'dap-util'
2
- import { ObjectType, PluginType, cloneData } from '../../core/tool'
3
2
  import { ComponentInternalInstance, h } from 'vue'
4
3
  import { AlexEditor, AlexElement, AlexElementsRangeType } from 'alex-editor'
4
+ import { ObjectType, PluginType, cloneData } from '@/core/tool'
5
5
  import 'katex/dist/katex.css'
6
6
  import KaTex from 'katex'
7
- import Icon from '../../components/icon/icon.vue'
8
- import Button from '../../components/button/button.vue'
7
+ import Icon from '@/components/icon/icon.vue'
8
+ import Button from '@/components/button/button.vue'
9
+ import { hasLinkInRange, hasPreInRange } from '@/core/function'
9
10
  import InsertMathformula from './insertMathformula/insertMathformula.vue'
10
- import { hasLinkInRange, hasPreInRange } from '../../core/function'
11
11
 
12
12
  export type MathformulaOptionsType = {
13
13
  //排序
@@ -1,10 +1,10 @@
1
1
  import { common as DapCommon } from 'dap-util'
2
- import { PluginType } from '../../core/tool'
3
2
  import { ComponentInternalInstance, h } from 'vue'
4
3
  import { AlexEditor, AlexElement, AlexElementsRangeType } from 'alex-editor'
5
- import Icon from '../../components/icon/icon.vue'
6
- import { hasTableInRange } from '../../core/function'
7
- import { hasMathformulaInRange } from '../mathformula'
4
+ import { PluginType } from '@/core/tool'
5
+ import Icon from '@/components/icon/icon.vue'
6
+ import { hasTableInRange } from '@/core/function'
7
+ import { hasMathformulaInRange } from '@/plugins/mathformula'
8
8
 
9
9
  export type PanelOptionsType = {
10
10
  //排序
package/tsconfig.json CHANGED
@@ -7,6 +7,10 @@
7
7
  "skipLibCheck": true,
8
8
  "allowSyntheticDefaultImports": true,
9
9
  "types": ["node"],
10
+ "baseUrl": "./",
11
+ "paths": {
12
+ "@/*": ["src/*"]
13
+ },
10
14
 
11
15
  /* Bundler mode */
12
16
  "moduleResolution": "bundler",
package/vite.config.ts CHANGED
@@ -6,6 +6,11 @@ import path from 'path'
6
6
 
7
7
  export default defineConfig({
8
8
  plugins: [vue(), dts(), cssInjectedByJsPlugin({ topExecutionPriority: false })],
9
+ resolve: {
10
+ alias: {
11
+ '@': path.resolve(__dirname, './src')
12
+ }
13
+ },
9
14
  build: {
10
15
  //打包后的目录名称
11
16
  outDir: 'lib',