@srcker/editor-vue-next 1.0.1 → 1.0.3

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/index.ts CHANGED
@@ -1,11 +1,6 @@
1
1
  /**
2
2
  * 组件统一导出
3
3
  */
4
- import RichEditor from './RichEditor.vue';
4
+ import RichEditor from './src/RichEditor.vue';
5
5
  export { RichEditor }
6
6
 
7
- export default {
8
- install(app: any) {
9
- app.use(RichEditor)
10
- }
11
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@srcker/editor-vue-next",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "^20.19.0 || >=22.12.0"
@@ -0,0 +1,6 @@
1
+ // 统一导出所有自定义 Tiptap 扩展
2
+ export { default as UploadImage } from './UploadImage';
3
+ export { default as BulletListStyle } from './BulletListStyle';
4
+ export { default as OrderedListStyle } from './OrderedListStyle';
5
+ export { default as Indent } from './Indent';
6
+ export { default as FontSize } from './FontSize';
@@ -0,0 +1,6 @@
1
+ // 统一导出所有自定义 Tiptap 扩展
2
+ export { default as UploadImage } from './UploadImage'
3
+ export { default as BulletListStyle } from './BulletListStyle'
4
+ export { default as OrderedListStyle } from './OrderedListStyle'
5
+ export { default as Indent } from './Indent'
6
+ export { default as FontSize } from './FontSize'
package/vite.config.ts CHANGED
@@ -12,11 +12,6 @@ export default defineConfig({
12
12
  name: 'RichEditor',
13
13
  fileName: (format) => `rich-editor.${format}.js`
14
14
  },
15
- resolve: {
16
- alias: {
17
- '@': path.resolve(__dirname, 'src') // 让 Rollup 识别 @
18
- }
19
- },
20
15
  rollupOptions: {
21
16
  external: ['vue'],
22
17
  output: {