@extable/core 0.3.0 → 0.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.
@@ -24,6 +24,11 @@ export interface Renderer {
24
24
  rowId: string;
25
25
  colKey: string;
26
26
  kind: "button" | "link";
27
+ } | {
28
+ rowId: string;
29
+ colKey: string;
30
+ kind: "tag-remove";
31
+ tagIndex: number;
27
32
  } | null;
28
33
  setActiveCell(rowId: string | null, colKey: string | null): void;
29
34
  setSelection(ranges: SelectionRange[]): void;
@@ -61,6 +66,11 @@ export declare class HTMLRenderer implements Renderer {
61
66
  rowId: string;
62
67
  colKey: string;
63
68
  kind: "button" | "link";
69
+ } | {
70
+ rowId: string;
71
+ colKey: string;
72
+ kind: "tag-remove";
73
+ tagIndex: number;
64
74
  } | null;
65
75
  private renderHeader;
66
76
  private renderRow;
@@ -97,6 +107,8 @@ export declare class CanvasRenderer implements Renderer {
97
107
  private pendingCursorPoint;
98
108
  private hoverHeaderColKey;
99
109
  private hoverHeaderIcon;
110
+ private hoverActionKey;
111
+ private activeActionKey;
100
112
  private rowHeightCacheKey;
101
113
  private rowHeightMeasuredVersion;
102
114
  private rowHeightMeasureRaf;
@@ -133,6 +145,8 @@ export declare class CanvasRenderer implements Renderer {
133
145
  private isPointInSelection;
134
146
  private handlePointerMove;
135
147
  private handlePointerLeave;
148
+ private handlePointerDown;
149
+ private handlePointerUp;
136
150
  private positionTooltipAtRect;
137
151
  private refreshTooltipPosition;
138
152
  private getCellRect;
@@ -13,6 +13,11 @@ type ActionHitTest = (event: MouseEvent) => {
13
13
  rowId: string;
14
14
  colKey: string;
15
15
  kind: "button" | "link";
16
+ } | {
17
+ rowId: string;
18
+ colKey: string;
19
+ kind: "tag-remove";
20
+ tagIndex: number;
16
21
  } | null;
17
22
  type ActiveChange = (rowId: string | null, colKey: string | null) => void;
18
23
  type ContextMenuHandler = (rowId: string | null, colKey: string | null, clientX: number, clientY: number) => void;
@@ -61,6 +66,8 @@ export declare class SelectionManager {
61
66
  private activeHostOriginalText;
62
67
  private composing;
63
68
  private lastCompositionEnd;
69
+ private readonly handleInputCompositionStart;
70
+ private readonly handleInputCompositionEnd;
64
71
  private readonly handleSelectionBlur;
65
72
  private readonly handleRootKeydown;
66
73
  private isCellReadonly;
@@ -131,6 +138,8 @@ export declare class SelectionManager {
131
138
  private positionFloatingContentBox;
132
139
  private handleClick;
133
140
  private triggerCellAction;
141
+ private removeTagValue;
142
+ private normalizeTagValues;
134
143
  private openLink;
135
144
  private toggleBoolean;
136
145
  private handleContextMenu;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extable/core",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "format": "biome format --write ."
32
32
  },
33
33
  "dependencies": {
34
- "@extable/sequence": "0.2.0"
34
+ "@extable/sequence": "0.3.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "typescript": "^5.6.3"