@thanhpv102/easy-email-core 4.19.2 → 4.19.5

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.
@@ -8,14 +8,14 @@ export declare function getNodeIdxFromClassName(classList: DOMTokenList): string
8
8
  export declare function getNodeTypeFromClassName(classList: DOMTokenList | string): BlockType | null;
9
9
  export declare const getIndexByIdx: (idx: string) => number;
10
10
  export declare const getParentIdx: (idx: string) => string | undefined;
11
- export declare const getValueByIdx: <T extends IBlockData<any, any>>(values: {
11
+ export declare const getValueByIdx: <T extends IBlockData>(values: {
12
12
  content: IBlockData;
13
13
  }, idx: string) => T | null;
14
- export declare const getParentByIdx: <T extends IBlockData<any, any> = IBlockData<any, any>>(values: {
14
+ export declare const getParentByIdx: <T extends IBlockData = IBlockData>(values: {
15
15
  content: IBlockData;
16
16
  }, idx: string) => T | null;
17
17
  export declare const getSiblingIdx: (sourceIndex: string, num: number) => string;
18
- export declare const getParentByType: <T extends IBlockData<any, any>>(context: {
18
+ export declare const getParentByType: <T extends IBlockData>(context: {
19
19
  content: IBlockData;
20
20
  }, idx: string, type: BlockType) => T | null;
21
21
  export declare const getSameParent: (values: {
@@ -24,7 +24,7 @@ export declare const getSameParent: (values: {
24
24
  parent: IBlockData;
25
25
  parentIdx: string;
26
26
  } | null;
27
- export declare const getParenRelativeByType: <T extends IBlockData<any, any>>(context: {
27
+ export declare const getParenRelativeByType: <T extends IBlockData>(context: {
28
28
  content: IBlockData;
29
29
  }, idx: string, type: BlockType) => {
30
30
  parentIdx: string;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@thanhpv102/easy-email-core",
3
3
  "license": "MIT",
4
4
  "description": "Email editor",
5
- "version": "4.19.2",
5
+ "version": "4.19.5",
6
6
  "author": "m-Ryan",
7
7
  "repository": {
8
8
  "type": "git",
@@ -28,46 +28,46 @@
28
28
  ]
29
29
  },
30
30
  "devDependencies": {
31
- "@babel/core": "^7.15.0",
32
- "@babel/preset-env": "^7.15.0",
33
- "@babel/preset-react": "^7.14.5",
34
- "@babel/preset-typescript": "^7.15.0",
35
- "@types/he": "^1.2.0",
36
- "@types/jest": "^26.0.24",
37
- "@types/js-beautify": "^1.13.3",
38
- "@types/jsdom": "^16.2.13",
39
- "@types/lodash": "^4.14.178",
40
- "@types/node": "^16.11.7",
41
- "@types/react": "^19.0.0",
42
- "@types/react-dom": "^19.0.0",
43
- "@types/uuid": "^8.3.4",
44
- "@typescript-eslint/eslint-plugin": "^4.28.3",
45
- "@typescript-eslint/parser": "^4.28.3",
46
- "babel-jest": "^27.0.6",
47
- "eslint": "9.26.0",
48
- "eslint-config-prettier": "^8.3.0",
49
- "eslint-loader": "^4.0.2",
50
- "eslint-plugin-import": "^2.23.4",
51
- "eslint-plugin-prettier": "^3.4.0",
52
- "eslint-plugin-react": "^7.24.0",
53
- "eslint-plugin-react-hooks": "^4.2.0",
54
- "jest": "^27.0.6",
55
- "jsdom": "^17.0.0",
56
- "liquidjs": "10.0.0",
31
+ "@babel/core": "^7.26.0",
32
+ "@babel/preset-env": "^7.26.0",
33
+ "@babel/preset-react": "^7.26.3",
34
+ "@babel/preset-typescript": "^7.26.0",
35
+ "@types/he": "^1.2.3",
36
+ "@types/jest": "^29.5.14",
37
+ "@types/js-beautify": "^1.14.3",
38
+ "@types/jsdom": "^21.1.7",
39
+ "@types/lodash": "^4.17.15",
40
+ "@types/node": "^22.12.12",
41
+ "@types/react": "^19.0.2",
42
+ "@types/react-dom": "^19.0.2",
43
+ "@types/uuid": "^10.0.0",
44
+ "@typescript-eslint/eslint-plugin": "^8.24.0",
45
+ "@typescript-eslint/parser": "^8.24.0",
46
+ "babel-jest": "^29.7.0",
47
+ "eslint": "^9.17.0",
48
+ "eslint-config-prettier": "^9.1.0",
49
+ "eslint-webpack-plugin": "^4.2.0",
50
+ "eslint-plugin-import": "^2.31.0",
51
+ "eslint-plugin-prettier": "^5.2.1",
52
+ "eslint-plugin-react": "^7.37.2",
53
+ "eslint-plugin-react-hooks": "^5.1.0",
54
+ "jest": "^29.7.0",
55
+ "jsdom": "^26.0.0",
56
+ "liquidjs": "^10.19.2",
57
57
  "react": "^19.0.0",
58
58
  "react-dom": "^19.0.0",
59
- "rimraf": "^3.0.2",
60
- "ts-node": "^10.4.0",
61
- "tsc-alias": "^1.4.1",
62
- "tsconfig-paths": "^3.11.0",
63
- "typescript": "^4.4.4",
64
- "vite": "7.1.11"
59
+ "rimraf": "^6.0.1",
60
+ "ts-node": "^10.9.2",
61
+ "tsc-alias": "^1.8.10",
62
+ "tsconfig-paths": "^4.2.0",
63
+ "typescript": "^5.7.2",
64
+ "vite": "^7.1.11"
65
65
  },
66
66
  "dependencies": {
67
67
  "he": "^1.2.0",
68
- "js-beautify": "^1.14.4",
69
- "lodash": "^4.17.21",
70
- "uuid": "^8.3.2"
68
+ "js-beautify": "^1.15.1",
69
+ "lodash": "^4.17.23",
70
+ "uuid": "^10.0.0"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "react": "^19.0.0",