plane/packages/editor/core/src
M. Palanikannan 0927fa150c
chore: Updated TableView component in table extension to solve sentry (#3309)
error of table not being defined while getting getBoundingClientRect()
and solve other TS issues

- Added ResolvedPos import from @tiptap/pm/model
- Updated setCellsBackgroundColor function parameter type to string
- Declared ToolboxItem type for toolbox items
- Modified columnsToolboxItems and rowsToolboxItems to use the ToolboxItem type
- Updated createToolbox function parameters to specify Element or null for triggerButton and ToolboxItem[] for items
- Added ts-expect-error comment above the toolbox variable declaration
- Updated update method parameter type to readonly Decoration[]
- Changed destructuring assignment of hoveredTable and hoveredCell in updateControls method to use Object.values and reduce method
- Added null check for this.table in updateControls method
- Wrapped the code that updates columnsControl and rowsControl with null checks for each control
- Replaced ts-ignore comments with proper dispatch calls in selectColumn and selectRow methods

Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
2024-01-04 16:30:10 +05:30
..
hooks [refactor] Editor code refactoring (#3194) 2023-12-22 18:10:18 +05:30
lib [refactor] Editor code refactoring (#3194) 2023-12-22 18:10:18 +05:30
styles [fix] Image insertion position at cursor position and Updated placeholder text. (#3224) 2023-12-22 18:10:21 +05:30
types [refactor] Editor code refactoring (#3194) 2023-12-22 18:10:18 +05:30
ui chore: Updated TableView component in table extension to solve sentry (#3309) 2024-01-04 16:30:10 +05:30
index.ts [refactor] Editor code refactoring (#3194) 2023-12-22 18:10:18 +05:30