@fileverse-dev/dsheet 1.2.21-patch-3 → 1.2.21-patch-4

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/README.md CHANGED
@@ -99,7 +99,7 @@ function App() {
99
99
  | `renderNavbar` | `(editorValues?: EditorValues) => JSX.Element` | Custom navbar renderer |
100
100
  | `onboardingHandler` | `OnboardingHandlerType` | Custom onboarding logic |
101
101
  | `dataBlockApiKeyHandler` | `DataBlockApiKeyHandlerType` | API key handler for data blocks |
102
- | `getCommentCellUI` | `(row: number, column: number) => void` | Custom comment UI handler |
102
+ | `getCommentCellUI` | `(row: number, column: number, dragHandler: CommentUIDragFn) => void` | Custom comment UI handler |
103
103
  | `commentData` | `Object` | Comment data for cells |
104
104
  | `toggleTemplateSidebar` | `() => void` | Template sidebar toggle handler |
105
105
  | `storeApiKey` | `(apiKeyName: string) => void` | API key storage handler |
@@ -1,4 +1,5 @@
1
- import { default as React } from 'react';
1
+ import { default as React, ComponentProps } from 'react';
2
+ import { Workbook } from '@fileverse-dev/fortune-react';
2
3
  import { SmartContractQueryHandler } from '../utils/after-update-cell';
3
4
  import { OnboardingHandlerType, DataBlockApiKeyHandlerType } from '../types';
4
5
 
@@ -17,7 +18,7 @@ interface EditorWorkbookProps {
17
18
  dataBlockApiKeyHandler?: DataBlockApiKeyHandler;
18
19
  exportDropdownOpen?: boolean;
19
20
  commentData?: Object;
20
- getCommentCellUI?: (row: number, column: number) => void;
21
+ getCommentCellUI?: ComponentProps<typeof Workbook>['getCommentCellUI'];
21
22
  setExportDropdownOpen?: React.Dispatch<React.SetStateAction<boolean>>;
22
23
  dsheetId: string;
23
24
  storeApiKey?: (apiKeyName: string) => void;
@@ -1,5 +1,5 @@
1
- import { Sheet, WorkbookInstance, Cell } from '@fileverse-dev/fortune-react';
2
- import { RefObject } from 'react';
1
+ import { Sheet, Workbook, WorkbookInstance, Cell } from '@fileverse-dev/fortune-react';
2
+ import { ComponentProps, RefObject } from 'react';
3
3
  import { ERROR_MESSAGES_FLAG } from './constants/shared-constants';
4
4
  import { SmartContractQueryHandler } from './utils/after-update-cell';
5
5
 
@@ -60,7 +60,7 @@ export interface DsheetProps {
60
60
  onboardingHandler?: OnboardingHandlerType;
61
61
  dataBlockApiKeyHandler?: DataBlockApiKeyHandlerType;
62
62
  setForceSheetRender?: React.Dispatch<React.SetStateAction<number>>;
63
- getCommentCellUI?: (row: number, column: number) => void;
63
+ getCommentCellUI?: ComponentProps<typeof Workbook>['getCommentCellUI'];
64
64
  commentData?: Object;
65
65
  toggleTemplateSidebar?: () => void;
66
66
  sheetEditorRef?: RefObject<WorkbookInstance & {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "1.2.21-patch-3",
5
+ "version": "1.2.21-patch-4",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {