@fileverse-dev/dsheet 1.0.83-sc-ui-1 → 1.0.84

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.
@@ -4,7 +4,6 @@ import { OnboardingHandlerType, DataBlockApiKeyHandlerType } from '../types';
4
4
  type OnboardingHandler = OnboardingHandlerType;
5
5
  type DataBlockApiKeyHandler = DataBlockApiKeyHandlerType;
6
6
  interface EditorWorkbookProps {
7
- setShowSmartContractModal?: React.Dispatch<React.SetStateAction<boolean>>;
8
7
  setShowFetchURLModal?: React.Dispatch<React.SetStateAction<boolean>>;
9
8
  setFetchingURLData?: (fetching: boolean) => void;
10
9
  setInputFetchURLDataBlock?: React.Dispatch<React.SetStateAction<string>>;
@@ -5,7 +5,6 @@ import { SheetUpdateData } from '../types';
5
5
 
6
6
  import * as Y from 'yjs';
7
7
  export interface EditorContextType {
8
- setShowSmartContractModal?: React.Dispatch<React.SetStateAction<boolean>>;
9
8
  getDocumentTitle?: () => string;
10
9
  updateDocumentTitle?: (title: string) => void;
11
10
  isAuthorized: boolean;
@@ -37,7 +36,6 @@ export interface EditorContextType {
37
36
  isCollaborative?: boolean;
38
37
  }
39
38
  interface EditorProviderProps {
40
- setShowSmartContractModal?: React.Dispatch<React.SetStateAction<boolean>>;
41
39
  getDocumentTitle?: () => string;
42
40
  updateDocumentTitle?: (title: string) => void;
43
41
  isAuthorized: boolean;
@@ -7,5 +7,5 @@ import { DsheetProps } from './types';
7
7
  * @param props - Component properties
8
8
  * @returns The SpreadsheetEditor component
9
9
  */
10
- declare const SpreadsheetEditor: ({ isCollaborative, isReadOnly, allowComments, renderNavbar, enableIndexeddbSync, dsheetId, portalContent, onChange, username, selectedTemplate, toggleTemplateSidebar, isTemplateOpen, enableWebrtc, onboardingComplete, onboardingHandler, commentData, getCommentCellUI, dataBlockApiKeyHandler, setFetchingURLData, setShowFetchURLModal, setInputFetchURLDataBlock, sheetEditorRef: externalSheetEditorRef, storeApiKey, onDuneChartEmbed, onSheetCountChange, onDataBlockApiResponse, isAuthorized, getDocumentTitle, updateDocumentTitle, setShowSmartContractModal, editorStateRef, }: DsheetProps) => JSX.Element;
10
+ declare const SpreadsheetEditor: ({ isCollaborative, isReadOnly, allowComments, renderNavbar, enableIndexeddbSync, dsheetId, portalContent, onChange, username, selectedTemplate, toggleTemplateSidebar, isTemplateOpen, enableWebrtc, onboardingComplete, onboardingHandler, commentData, getCommentCellUI, dataBlockApiKeyHandler, setFetchingURLData, setShowFetchURLModal, setInputFetchURLDataBlock, sheetEditorRef: externalSheetEditorRef, storeApiKey, onDuneChartEmbed, onSheetCountChange, onDataBlockApiResponse, isAuthorized, getDocumentTitle, updateDocumentTitle, editorStateRef, }: DsheetProps) => JSX.Element;
11
11
  export default SpreadsheetEditor;
@@ -35,7 +35,6 @@ export type DataBlockApiKeyHandlerType = (params: {
35
35
  }) => void;
36
36
  }) => void;
37
37
  export interface DsheetProps {
38
- setShowSmartContractModal?: React.Dispatch<React.SetStateAction<boolean>>;
39
38
  getDocumentTitle?: () => string;
40
39
  updateDocumentTitle?: (title: string) => void;
41
40
  isAuthorized: boolean;
@@ -2,8 +2,7 @@ import { default as React, ChangeEvent } from 'react';
2
2
  import { WorkbookInstance } from '@fileverse-dev/fortune-react';
3
3
 
4
4
  import * as Y from 'yjs';
5
- export declare const getCustomToolbarItems: ({ setShowSmartContractModal, setExportDropdownOpen, handleCSVUpload, handleXLSXUpload, handleExportToXLSX, handleExportToCSV, handleExportToJSON, sheetEditorRef, ydocRef, dsheetId, currentDataRef, setForceSheetRender, toggleTemplateSidebar, getDocumentTitle, updateDocumentTitle, }: {
6
- setShowSmartContractModal?: React.Dispatch<React.SetStateAction<boolean>>;
5
+ export declare const getCustomToolbarItems: ({ setExportDropdownOpen, handleCSVUpload, handleXLSXUpload, handleExportToXLSX, handleExportToCSV, handleExportToJSON, sheetEditorRef, ydocRef, dsheetId, currentDataRef, setForceSheetRender, toggleTemplateSidebar, getDocumentTitle, updateDocumentTitle, }: {
7
6
  getDocumentTitle?: () => string;
8
7
  updateDocumentTitle?: (title: string) => void;
9
8
  setExportDropdownOpen: React.Dispatch<React.SetStateAction<boolean>>;
@@ -19,14 +18,9 @@ export declare const getCustomToolbarItems: ({ setShowSmartContractModal, setExp
19
18
  setForceSheetRender: React.Dispatch<React.SetStateAction<number>>;
20
19
  toggleTemplateSidebar: (() => void) | undefined;
21
20
  setShowFetchURLModal: React.Dispatch<React.SetStateAction<boolean>> | undefined;
22
- }) => ({
23
- key: string;
24
- tooltip: string;
25
- icon: import("react/jsx-runtime").JSX.Element;
26
- onClick?: undefined;
27
- } | {
21
+ }) => {
28
22
  key: string;
29
23
  tooltip: string;
30
24
  icon: import("react/jsx-runtime").JSX.Element;
31
25
  onClick: (() => void) | undefined;
32
- })[];
26
+ }[];