@ebl-vue/editor-full 1.1.5 → 1.1.7

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/package.json CHANGED
@@ -1,28 +1,30 @@
1
1
  {
2
2
  "name": "@ebl-vue/editor-full",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "type": "module",
5
5
  "author": "lrj525@sina.com",
6
6
  "description": "结构化编辑器",
7
7
  "homepage": "",
8
8
  "license": "MIT",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.mjs"
13
+ }
14
+
15
+ },
9
16
  "scripts": {
10
17
  "dev": "rimraf dist && vite build --watch",
11
18
  "build": "rimraf dist && vite build"
12
19
  },
13
- "exports": {
14
- ".": {
15
- "types": "./types/index.d.ts",
16
- "import": "dist/index.mjs"
17
- },
18
- "./dist/style.css": "./dist/style.css"
19
- },
20
- "main": "dist/index.mjs",
21
- "module": "dist/indexs.mjs",
22
- "types": "./types/index.d.ts",
20
+
21
+ "main": "./dist/index.mjs",
22
+ "module": "./dist/indexs.mjs",
23
+ "types": "./dist/index.d.ts",
23
24
  "typesVersions": {
24
25
  "*": {
25
26
  ".": [
27
+ "./dist/index.d.ts",
26
28
  "./types/index.d.ts"
27
29
  ]
28
30
  }
package/src/index.ts CHANGED
@@ -4,15 +4,15 @@ import './style.css'
4
4
  import { createInstaller } from './installer'
5
5
  import Components from './components';
6
6
  import zhCn from './i18n/zh-cn';
7
- import type { OutputData } from '@ebl-vue/editorjs';
8
7
  import Editor from './components/Editor/Editor.vue';
9
- const installer = createInstaller(Components)
10
- export const install = installer.install
11
- export const version = installer.version
8
+
9
+ const installer = createInstaller(Components);
10
+ export const install = installer.install;
11
+ export const version = installer.version;
12
+
12
13
  export default installer;
13
14
 
14
15
  export {
15
16
  zhCn,
16
17
  Editor as EblEditor
17
18
  };
18
- export type { OutputData };
package/types/index.d.ts CHANGED
@@ -9,10 +9,10 @@ declare module 'vue' {
9
9
  export interface App {
10
10
  [INSTALLED_KEY]?: boolean
11
11
  }
12
- export interface GlobalComponents {
13
- EblEditor: typeof import('@ebl-vue/editor-full')['EblEditor'],
12
+ // export interface GlobalComponents {
13
+ // EblEditor: typeof import('@ebl-vue/editor-full')['EblEditor'],
14
14
 
15
- }
15
+ // }
16
16
  };
17
17
 
18
18
 
package/vite.config.ts CHANGED
@@ -37,7 +37,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
37
37
  sourcemap:true,
38
38
  lib: {
39
39
  entry: path.resolve(__dirname,"src","index.ts"),
40
- name: '@ebl-vue/editor',
40
+ name: '@ebl-vue/editor-full',
41
41
  formats:['es'],
42
42
  fileName: format => `index.mjs`,
43
43
  cssFileName: 'style',