quill-table-up 3.0.2 → 3.1.0

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,8 +1,8 @@
1
1
  {
2
2
  "name": "quill-table-up",
3
3
  "type": "module",
4
- "version": "3.0.2",
5
- "packageManager": "pnpm@10.15.0",
4
+ "version": "3.1.0",
5
+ "packageManager": "pnpm@10.17.1",
6
6
  "description": "A table module for quill2.x",
7
7
  "author": "zzxming",
8
8
  "license": "MIT",
@@ -48,31 +48,35 @@
48
48
  },
49
49
  "devDependencies": {
50
50
  "@babel/preset-env": "^7.28.3",
51
- "@oxc-project/runtime": "^0.84.0",
52
- "@playwright/test": "^1.55.0",
51
+ "@oxc-project/runtime": "^0.92.0",
52
+ "@playwright/test": "^1.55.1",
53
53
  "@prettier/plugin-xml": "^3.4.2",
54
54
  "@rollup/plugin-babel": "^6.0.4",
55
55
  "@rollup/plugin-typescript": "^12.1.4",
56
56
  "@types/gulp": "^4.0.17",
57
- "@types/node": "^24.3.0",
58
- "@typescript-eslint/eslint-plugin": "^8.41.0",
59
- "@typescript-eslint/parser": "^8.41.0",
57
+ "@types/gulp-clean-css": "^4.3.4",
58
+ "@types/gulp-less": "^0.0.36",
59
+ "@types/gulp-postcss": "^8.0.6",
60
+ "@types/node": "^24.5.2",
61
+ "@types/postcss-pxtorem": "^6.1.0",
62
+ "@typescript-eslint/eslint-plugin": "^8.44.1",
63
+ "@typescript-eslint/parser": "^8.44.1",
60
64
  "@vitest/coverage-v8": "^3.2.4",
61
65
  "@vitest/ui": "^3.2.4",
62
- "@zzxming/eslint-config": "0.5.3",
66
+ "@zzxming/eslint-config": "0.5.8",
63
67
  "autoprefixer": "^10.4.21",
64
- "eslint": "^9.34.0",
68
+ "eslint": "^9.36.0",
65
69
  "gulp": "^5.0.1",
66
70
  "gulp-clean-css": "^4.3.0",
67
71
  "gulp-less": "^5.0.0",
68
72
  "gulp-postcss": "^10.0.0",
69
- "jsdom": "^26.1.0",
73
+ "jsdom": "^27.0.0",
70
74
  "parchment": "^3.0.0",
71
75
  "postcss-pxtorem": "^6.1.0",
72
76
  "resize-observer-polyfill": "^1.5.1",
73
- "tsdown": "^0.14.2",
77
+ "tsdown": "^0.15.5",
74
78
  "tslib": "^2.8.1",
75
- "tsx": "^4.20.5",
79
+ "tsx": "^4.20.6",
76
80
  "typescript": "~5.9.2",
77
81
  "vitest": "^3.2.4",
78
82
  "ws": "^8.18.3"
@@ -4,7 +4,7 @@ import type { Delta, Op } from 'quill';
4
4
  // Specify the index of the editor before use.
5
5
  export class EditorPage {
6
6
  public index: number = 0;
7
- constructor(protected readonly page: Page) {}
7
+ constructor(public page: Page) {}
8
8
 
9
9
  get root() {
10
10
  return this.page.locator('.ql-editor');
@@ -23,10 +23,11 @@ export class EditorPage {
23
23
  }, { index: this.index });
24
24
  }
25
25
 
26
+ async setSelection(index: null): Promise<void>;
26
27
  async setSelection(index: number, length: number): Promise<void>;
27
28
  async setSelection(range: { index: number; length: number }): Promise<void>;
28
29
  async setSelection(
29
- range: { index: number; length: number } | number,
30
+ range: { index: number; length: number } | number | null,
30
31
  length?: number,
31
32
  ) {
32
33
  await this.page.evaluate(