@juzhenfe/modules 2.2.7 → 2.3.1

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.
@@ -4,4 +4,5 @@ export default function setup(): {
4
4
  init: Function;
5
5
  get: (id: string) => JuzhenEditor.Editor;
6
6
  }>;
7
+ loadTinymceLang: (path?: string[]) => Promise<boolean>;
7
8
  };
@@ -1,5 +1,6 @@
1
1
  /// <reference path="../../types/upload.d.ts" />
2
2
  /// <reference path="../../types/editor.d.ts" />
3
+ /// <reference path="../../types/shims-vue-properties.d.ts" />
3
4
  import { App } from 'vue';
4
5
  import { InstallOptions } from '../../types/type';
5
6
  import Upload from '../upload';
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
21
21
  };
22
22
  };
23
23
  mode: {
24
- type: PropType<"image" | "video" | "file">;
24
+ type: PropType<"image" | "video" | "file" | "audio">;
25
25
  default: string;
26
26
  };
27
27
  accept: {
@@ -84,6 +84,7 @@ declare const _default: import("vue").DefineComponent<{
84
84
  height?: undefined;
85
85
  lineHeight?: undefined;
86
86
  }>;
87
+ ondrop: (index: any, e: any) => Promise<void>;
87
88
  onClickItem: (index: number) => void;
88
89
  cancelUpload: (index: number) => void;
89
90
  handleDeleteItem: (index: number) => Promise<void>;
@@ -112,7 +113,7 @@ declare const _default: import("vue").DefineComponent<{
112
113
  };
113
114
  };
114
115
  mode: {
115
- type: PropType<"image" | "video" | "file">;
116
+ type: PropType<"image" | "video" | "file" | "audio">;
116
117
  default: string;
117
118
  };
118
119
  accept: {
@@ -155,7 +156,7 @@ declare const _default: import("vue").DefineComponent<{
155
156
  data: {
156
157
  path: string;
157
158
  };
158
- mode: "image" | "video" | "file";
159
+ mode: "image" | "video" | "file" | "audio";
159
160
  modelValue: string;
160
161
  sperator: string;
161
162
  url: string;
@@ -0,0 +1,11 @@
1
+ declare class MyConsole {
2
+ private successColor;
3
+ private errorColor;
4
+ private infoColor;
5
+ private genColor;
6
+ success(text: string): void;
7
+ error(text: string): void;
8
+ info(text: string): void;
9
+ }
10
+ declare const myConsole: MyConsole;
11
+ export default myConsole;
@@ -1,7 +1,10 @@
1
+ import { Utils } from '../packages/modules';
1
2
  import { InstallOptions } from './type'
2
3
 
3
4
  declare module '@vue/runtime-core' {
4
5
  export interface ComponentCustomProperties {
5
6
  juzhenModulesOptions: InstallOptions;
7
+ JZUtils: typeof Utils
6
8
  }
9
+
7
10
  }
package/package.json CHANGED
@@ -1,55 +1,55 @@
1
- {
2
- "name": "@juzhenfe/modules",
3
- "version": "2.2.7",
4
- "main": "dist/index.min.js",
5
- "types": "dist/packages/modules/index.d.ts",
6
- "scripts": {
7
- "dev": "lerna bootstrap && vite --force",
8
- "build": "cross-env NODE_ENV=production rollup -c ./build/rollup.config.js",
9
- "clean": "rimraf dist",
10
- "build:type": "node ./build/build-type.js",
11
- "build:es": "npm run clean && lerna bootstrap && npm run build && npm run build:type",
12
- "pub": "npm publish --access public",
13
- "version": "npm run build:es && npm run pub"
14
- },
15
- "files": [
16
- "dist"
17
- ],
18
- "devDependencies": {
19
- "@babel/core": "^7.15.8",
20
- "@babel/plugin-transform-runtime": "^7.15.8",
21
- "@babel/preset-env": "^7.15.8",
22
- "@juzhenfe/page-model": "^1.11.7",
23
- "@juzhenfe/request": "^1.6.1",
24
- "@rollup/plugin-babel": "^5.3.0",
25
- "@rollup/plugin-commonjs": "^18.1.0",
26
- "@rollup/plugin-image": "^2.0.6",
27
- "@rollup/plugin-json": "^4.1.0",
28
- "@rollup/plugin-node-resolve": "^11.2.1",
29
- "@rollup/plugin-typescript": "^8.2.1",
30
- "@vitejs/plugin-vue": "^1.2.3",
31
- "@vitejs/plugin-vue-jsx": "^1.1.5",
32
- "@vue/compiler-sfc": "^3.1.2",
33
- "clipboard": "^2.0.8",
34
- "core-js": "^3.15.1",
35
- "cross-env": "^7.0.3",
36
- "element-plus": "^1.1.0-beta.20",
37
- "lerna": "^4.0.0",
38
- "rimraf": "^3.0.2",
39
- "rollup": "^2.60.1",
40
- "rollup-plugin-scss": "^2.6.1",
41
- "rollup-plugin-terser": "^7.0.2",
42
- "rollup-plugin-typescript2": "^0.30.0",
43
- "rollup-plugin-vue": "^6.0.0",
44
- "sass": "^1.43.4",
45
- "the-answer": "^1.0.0",
46
- "typescript": "^4.3.4",
47
- "vite": "^2.6.7",
48
- "vue": "^3.2.20",
49
- "vue-router": "^4.0.12",
50
- "vue-tsc": "^0.1.7"
51
- },
52
- "dependencies": {
53
- "echarts": "^5.1.2"
54
- }
55
- }
1
+ {
2
+ "name": "@juzhenfe/modules",
3
+ "version": "2.3.1",
4
+ "main": "dist/index.min.js",
5
+ "types": "dist/packages/modules/index.d.ts",
6
+ "scripts": {
7
+ "dev": "lerna bootstrap && vite --force",
8
+ "build": "cross-env NODE_ENV=production rollup -c ./build/rollup.config.js",
9
+ "clean": "rimraf dist",
10
+ "build:type": "node ./build/build-type.js",
11
+ "build:es": "npm run clean && lerna bootstrap && npm run build && npm run build:type",
12
+ "pub": "npm publish --access public",
13
+ "version": "npm run build:es && npm run pub"
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "devDependencies": {
19
+ "@babel/core": "^7.15.8",
20
+ "@babel/plugin-transform-runtime": "^7.15.8",
21
+ "@babel/preset-env": "^7.15.8",
22
+ "@juzhenfe/page-model": "^1.11.7",
23
+ "@juzhenfe/request": "^1.6.1",
24
+ "@rollup/plugin-babel": "^5.3.0",
25
+ "@rollup/plugin-commonjs": "^18.1.0",
26
+ "@rollup/plugin-image": "^2.0.6",
27
+ "@rollup/plugin-json": "^4.1.0",
28
+ "@rollup/plugin-node-resolve": "^11.2.1",
29
+ "@rollup/plugin-typescript": "^8.2.1",
30
+ "@vitejs/plugin-vue": "^1.2.3",
31
+ "@vitejs/plugin-vue-jsx": "^1.1.5",
32
+ "@vue/compiler-sfc": "^3.1.2",
33
+ "clipboard": "^2.0.8",
34
+ "core-js": "^3.15.1",
35
+ "cross-env": "^7.0.3",
36
+ "element-plus": "^2.0.5",
37
+ "lerna": "^4.0.0",
38
+ "rimraf": "^3.0.2",
39
+ "rollup": "^2.60.1",
40
+ "rollup-plugin-scss": "^2.6.1",
41
+ "rollup-plugin-terser": "^7.0.2",
42
+ "rollup-plugin-typescript2": "^0.30.0",
43
+ "rollup-plugin-vue": "^6.0.0",
44
+ "sass": "^1.43.4",
45
+ "the-answer": "^1.0.0",
46
+ "typescript": "^4.3.4",
47
+ "vite": "^2.8.6",
48
+ "vue": "^3.2.31",
49
+ "vue-router": "^4.0.12",
50
+ "vue-tsc": "^0.1.7"
51
+ },
52
+ "dependencies": {
53
+ "echarts": "^5.1.2"
54
+ }
55
+ }