@hmg-report-editor/core 1.0.0 → 1.0.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.
@@ -63,8 +63,10 @@ export declare abstract class BaseControlNodeView<TAttrs extends StructuredField
63
63
  private isDragEvent;
64
64
  /** 生成控件 HTML 和纯文本并写入剪贴板。 */
65
65
  private writeControlToClipboard;
66
- /** Deletes an empty control and restores the editor caret at the removed node position. */
66
+ /** Deletes an empty control from its input shortcut. */
67
67
  private deleteEmptyControlFromInput;
68
+ /** Removes this control and restores the editor caret at its former document position. */
69
+ protected removeControlAndRestoreCaret(): boolean;
68
70
  /** 允许子类追加节点特有的剪贴板属性。 */
69
71
  protected decorateClipboardElement(_element: HTMLSpanElement): void;
70
72
  /** 返回控件根元素 class。 */
package/package.json CHANGED
@@ -1,37 +1,37 @@
1
- {
2
- "name": "@hmg-report-editor/core",
3
- "version": "1.0.0",
1
+ {
2
+ "name": "@hmg-report-editor/core",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "registry": "https://registry.npmjs.org/"
8
8
  },
9
9
  "files": [
10
- "dist"
11
- ],
12
- "main": "./dist/index.cjs",
13
- "module": "./dist/index.js",
14
- "types": "./dist/index.d.ts",
15
- "exports": {
16
- ".": {
17
- "types": "./dist/index.d.ts",
18
- "import": "./dist/index.js",
19
- "require": "./dist/index.cjs"
20
- }
21
- },
22
- "scripts": {
23
- "build": "vite build && tsc -p tsconfig.build.json && node ../../scripts/finalize-package-types.mjs .",
24
- "typecheck": "tsc -p tsconfig.json --noEmit"
25
- },
26
- "dependencies": {
27
- "@tiptap/core": "^2.12.0",
28
- "@tiptap/extension-font-family": "^2.12.0",
29
- "@tiptap/extension-text-style": "^2.12.0",
30
- "@tiptap/extension-underline": "^2.12.0",
31
- "@tiptap/pm": "^2.12.0",
32
- "@tiptap/starter-kit": "^2.12.0"
33
- },
34
- "peerDependencies": {
35
- "@tiptap/core": "^2.12.0"
36
- }
37
- }
10
+ "dist"
11
+ ],
12
+ "main": "./dist/index.cjs",
13
+ "module": "./dist/index.js",
14
+ "types": "./dist/index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "import": "./dist/index.js",
19
+ "require": "./dist/index.cjs"
20
+ }
21
+ },
22
+ "scripts": {
23
+ "build": "vite build && tsc -p tsconfig.build.json && node ../../scripts/finalize-package-types.mjs .",
24
+ "typecheck": "tsc -p tsconfig.json --noEmit"
25
+ },
26
+ "dependencies": {
27
+ "@tiptap/core": "^2.12.0",
28
+ "@tiptap/extension-font-family": "^2.12.0",
29
+ "@tiptap/extension-text-style": "^2.12.0",
30
+ "@tiptap/extension-underline": "^2.12.0",
31
+ "@tiptap/pm": "^2.12.0",
32
+ "@tiptap/starter-kit": "^2.12.0"
33
+ },
34
+ "peerDependencies": {
35
+ "@tiptap/core": "^2.12.0"
36
+ }
37
+ }