@fileverse-dev/dsheet 4.0.5-edit-mode-7 → 4.0.5-edit-mode-8
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/dist/editor/components/api-key-modal/api-key-input.d.ts +1 -1
- package/dist/editor/components/api-key-modal/api-key-modal.d.ts +3 -1
- package/dist/editor/components/api-key-modal/rate-limit-info.d.ts +1 -1
- package/dist/editor/components/comments/comment-sidebar-empty.d.ts +1 -1
- package/dist/editor/components/export-menu-section.d.ts +1 -1
- package/dist/editor/components/import-button-ui.d.ts +1 -1
- package/dist/editor/components/read-only-export-button.d.ts +1 -1
- package/dist/editor/components/sidebar/editor-right-sidebar.d.ts +1 -1
- package/dist/editor/components/sidebar/right-sidebar.d.ts +2 -2
- package/dist/editor/components/sidebar/sidebar-context.d.ts +1 -1
- package/dist/editor/components/sidebar/sidebar-portal-registry.d.ts +2 -2
- package/dist/editor/components/sidebars/conditional-format.d.ts +1 -1
- package/dist/editor/components/sidebars/data-verification.d.ts +1 -1
- package/dist/editor/components/sidebars/function/function-categories.d.ts +3 -1
- package/dist/editor/components/sidebars/function/function-metadata.d.ts +1 -1
- package/dist/editor/components/sidebars/function/functionList.d.ts +2 -1
- package/dist/editor/components/sidebars/function-content.d.ts +1 -1
- package/dist/editor/components/sidebars/named-ranges.d.ts +1 -1
- package/dist/editor/components/sidebars/template-ui.d.ts +4 -2
- package/dist/editor/components/sidebars/templates.d.ts +1 -1
- package/dist/editor/components/skeleton-loader.d.ts +4 -4
- package/dist/editor/components/smart-contract/error-toast.d.ts +1 -1
- package/dist/editor/components/smart-contract/smart-contract-list-item.d.ts +2 -1
- package/dist/editor/components/smart-contract/smart-contract-reading-intro.d.ts +1 -1
- package/dist/editor/components/smart-contract.d.ts +1 -1
- package/dist/editor/components/transition-wrapper.d.ts +1 -1
- package/dist/editor/utils/custom-toolbar-item.d.ts +3 -3
- package/dist/editor/utils/detach-workbook-data.d.ts +8 -0
- package/dist/editor/utils/detach-workbook-data.test.d.ts +1 -0
- package/dist/editor/utils/smart-contract/constants.d.ts +7 -1
- package/dist/{index-BK9lc9z6.js → index-BOZBY97y.js} +14747 -14658
- package/dist/index.es.js +1 -1
- package/dist/{persistence-utils-BXFajzvq.js → persistence-utils-BBTuIssZ.js} +29 -30
- package/dist/persistence.js +1 -1
- package/dist/sheet-engine/react/components/DataVerification/ColorPicker.d.ts +3 -1
- package/dist/sheet-engine/react/components/DataVerification/DropdownOption.d.ts +1 -1
- package/dist/sheet-engine/react/components/DuneChartsInputModal/DuneChartsInputModal.d.ts +2 -1
- package/dist/sheet-engine/react/components/SheetOverlay/FormulaHint/dragable-div.d.ts +1 -1
- package/dist/sheet-engine/react/components/SheetOverlay/FormulaHint/index.d.ts +2 -1
- package/dist/sheet-engine/react/components/SheetOverlay/Icon.d.ts +19 -19
- package/dist/sheet-engine/react/components/SheetOverlay/LucideIcon.d.ts +19 -19
- package/dist/sheet-engine/react/components/Toolbar/FunctionList/FunctionListButton.d.ts +1 -1
- package/dist/sheet-engine/react/components/Toolbar/FunctionList/HoverMenuItem.d.ts +1 -1
- package/dist/sheet-engine/react/components/Toolbar/index.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{use-xlsx-import-impl-CRNz7Q-6.js → use-xlsx-import-impl-DGUKdiRf.js} +52 -52
- package/dist/{xlsx-defined-names-ePgSJMyE.js → xlsx-defined-names-C6vOaVnP.js} +1 -1
- package/dist/{xlsx-export-impl-BHyMCQhr.js → xlsx-export-impl-Dq-QZvKO.js} +3 -3
- package/dist/{xlsx-hyperlink-inline-BOyfzj2W.js → xlsx-hyperlink-inline-BPiN05xL.js} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
1
3
|
export interface ApiKeyModalProps {
|
|
2
4
|
open: boolean;
|
|
3
5
|
apiKeyName: string;
|
|
4
6
|
onSave: (key: string) => void;
|
|
5
7
|
onClose: () => void;
|
|
6
8
|
}
|
|
7
|
-
export declare const ApiKeyModal: ({ open, apiKeyName, onSave, onClose, }: ApiKeyModalProps) =>
|
|
9
|
+
export declare const ApiKeyModal: ({ open, apiKeyName, onSave, onClose, }: ApiKeyModalProps) => React.JSX.Element;
|
|
@@ -7,5 +7,5 @@ type ExportMenuSectionProps = ExportHandlers & {
|
|
|
7
7
|
onItemClick?: () => void;
|
|
8
8
|
testIdPrefix?: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const ExportMenuSection: ({ handleExportToJSON, handleExportToXLSX, handleExportToCSV, onItemClick, testIdPrefix, }: ExportMenuSectionProps) => import("react
|
|
10
|
+
export declare const ExportMenuSection: ({ handleExportToJSON, handleExportToXLSX, handleExportToCSV, onItemClick, testIdPrefix, }: ExportMenuSectionProps) => import("react").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -3,5 +3,5 @@ import { ExportHandlers } from './export-menu-section';
|
|
|
3
3
|
type ReadOnlyExportButtonProps = ExportHandlers & {
|
|
4
4
|
setExportDropdownOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
5
|
};
|
|
6
|
-
export declare const ReadOnlyExportButton: ({ setExportDropdownOpen, handleExportToXLSX, handleExportToCSV, handleExportToJSON, }: ReadOnlyExportButtonProps) => import("react
|
|
6
|
+
export declare const ReadOnlyExportButton: ({ setExportDropdownOpen, handleExportToXLSX, handleExportToCSV, handleExportToJSON, }: ReadOnlyExportButtonProps) => import("react").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -16,5 +16,5 @@ interface EditorRightSidebarProps {
|
|
|
16
16
|
/** Read/preview mode hides the toolbar, so the sidebar starts higher. */
|
|
17
17
|
isReadOnly?: boolean;
|
|
18
18
|
}
|
|
19
|
-
export declare const EditorRightSidebar: ({ isOpen, activePanelConfig, onClose, isReadOnly, }: EditorRightSidebarProps) => import("react
|
|
19
|
+
export declare const EditorRightSidebar: ({ isOpen, activePanelConfig, onClose, isReadOnly, }: EditorRightSidebarProps) => import("react").JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -7,8 +7,8 @@ export declare function RightSidebar({ width, className, children, isOpen, top,
|
|
|
7
7
|
isOpen?: boolean;
|
|
8
8
|
top?: string;
|
|
9
9
|
height?: string;
|
|
10
|
-
}>): import("react
|
|
10
|
+
}>): import("react").JSX.Element;
|
|
11
11
|
export declare function RightSidebarHeader({ className, children, }: Readonly<{
|
|
12
12
|
className?: string;
|
|
13
13
|
children: ReactNode;
|
|
14
|
-
}>): import("react
|
|
14
|
+
}>): import("react").JSX.Element;
|
|
@@ -12,6 +12,6 @@ interface SidebarContextType {
|
|
|
12
12
|
export declare function SidebarProvider({ children, isReadMode, }: Readonly<{
|
|
13
13
|
children: ReactNode;
|
|
14
14
|
isReadMode?: boolean;
|
|
15
|
-
}>): import("react
|
|
15
|
+
}>): import("react").JSX.Element;
|
|
16
16
|
export declare function useSidebar(): SidebarContextType;
|
|
17
17
|
export {};
|
|
@@ -7,7 +7,7 @@ export type SidebarPortalRegistryHandle = {
|
|
|
7
7
|
};
|
|
8
8
|
export declare function SidebarPortalRegistryProvider({ children, }: Readonly<{
|
|
9
9
|
children: ReactNode;
|
|
10
|
-
}>): import("react
|
|
10
|
+
}>): import("react").JSX.Element;
|
|
11
11
|
export declare function useSidebarPortalRegistryHandle(): SidebarPortalRegistryHandle;
|
|
12
12
|
export declare function useSidebarPortalTargets(): SidebarPortalTargets;
|
|
13
13
|
export declare function useSidebarPortalTarget(panelId: string): (node: HTMLElement | null) => void;
|
|
@@ -16,5 +16,5 @@ interface SidebarPortalSlotProps {
|
|
|
16
16
|
className?: string;
|
|
17
17
|
style?: CSSProperties;
|
|
18
18
|
}
|
|
19
|
-
export declare function SidebarPortalSlot({ panelId, className, style, }: Readonly<SidebarPortalSlotProps>): import("react
|
|
19
|
+
export declare function SidebarPortalSlot({ panelId, className, style, }: Readonly<SidebarPortalSlotProps>): import("react").JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const ConditionalFormat: () => import("react
|
|
1
|
+
declare const ConditionalFormat: () => import("react").JSX.Element;
|
|
2
2
|
export { ConditionalFormat };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const DataVerification: () => import("react
|
|
1
|
+
declare const DataVerification: () => import("react").JSX.Element;
|
|
2
2
|
export { DataVerification };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
1
3
|
declare const FunctionCategories: ({ onCategorySelection, categories, categoryName, }: {
|
|
2
4
|
onCategorySelection: (value: string) => void;
|
|
3
5
|
categoryName: string;
|
|
4
6
|
categories: string[];
|
|
5
|
-
}) =>
|
|
7
|
+
}) => React.JSX.Element;
|
|
6
8
|
export default FunctionCategories;
|
|
@@ -3,5 +3,5 @@ import { SpreadsheetFunction } from './types';
|
|
|
3
3
|
declare const FunctionMetadata: ({ selectedFunction, onInsert, }: {
|
|
4
4
|
selectedFunction: SpreadsheetFunction;
|
|
5
5
|
onInsert: () => void;
|
|
6
|
-
}) => import("react
|
|
6
|
+
}) => import("react").JSX.Element;
|
|
7
7
|
export default FunctionMetadata;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { SpreadsheetFunction } from './types';
|
|
2
3
|
|
|
3
4
|
declare const FunctionList: ({ list, onFunctionSelection, selectedFunction, }: {
|
|
4
5
|
list: SpreadsheetFunction[];
|
|
5
6
|
onFunctionSelection: (data: SpreadsheetFunction, functionIndex: number) => void;
|
|
6
7
|
selectedFunction: SpreadsheetFunction | null;
|
|
7
|
-
}) =>
|
|
8
|
+
}) => React.JSX.Element;
|
|
8
9
|
export default FunctionList;
|
|
@@ -4,5 +4,5 @@ import { WorkbookInstance } from '../../../sheet-engine/react';
|
|
|
4
4
|
declare const FunctionContent: ({ sheetEditorRef, shouldHandleSuggestionFromCell, }: {
|
|
5
5
|
sheetEditorRef: React.RefObject<WorkbookInstance>;
|
|
6
6
|
shouldHandleSuggestionFromCell: number;
|
|
7
|
-
}) =>
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
8
|
export default FunctionContent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const NamedRanges: () => import("react
|
|
1
|
+
declare const NamedRanges: () => import("react").JSX.Element;
|
|
2
2
|
export { NamedRanges };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
1
3
|
export interface Template {
|
|
2
4
|
slug: string;
|
|
3
5
|
title: string;
|
|
@@ -16,7 +18,7 @@ export declare const TemplateCard: ({ template, onMouseEnter, onMouseLeave, onSe
|
|
|
16
18
|
onMouseEnter?: () => void;
|
|
17
19
|
onMouseLeave?: () => void;
|
|
18
20
|
onSelect: () => void;
|
|
19
|
-
}) =>
|
|
21
|
+
}) => React.JSX.Element;
|
|
20
22
|
export declare const TemplatePreview: ({ template }: {
|
|
21
23
|
template: Template;
|
|
22
|
-
}) =>
|
|
24
|
+
}) => React.JSX.Element;
|
|
@@ -5,5 +5,5 @@ interface TemplatesProps {
|
|
|
5
5
|
setSelectedTemplate: (template: string) => void;
|
|
6
6
|
setHoveredTemplate: React.Dispatch<React.SetStateAction<Template | null>>;
|
|
7
7
|
}
|
|
8
|
-
export declare const Templates: ({ setSelectedTemplate, setHoveredTemplate, }: TemplatesProps) =>
|
|
8
|
+
export declare const Templates: ({ setSelectedTemplate, setHoveredTemplate, }: TemplatesProps) => React.JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const SkeletonFormulaBar: () => import("react
|
|
1
|
+
export declare const SkeletonFormulaBar: () => import("react").JSX.Element;
|
|
2
2
|
export declare const SkeletonToolbar: ({ isReadOnly, }: {
|
|
3
3
|
isReadOnly: boolean | undefined;
|
|
4
|
-
}) => import("react
|
|
5
|
-
export declare const SkeletonGrid: () => import("react
|
|
4
|
+
}) => import("react").JSX.Element;
|
|
5
|
+
export declare const SkeletonGrid: () => import("react").JSX.Element;
|
|
6
6
|
declare const SkeletonLoader: ({ isReadOnly, }: {
|
|
7
7
|
isReadOnly: boolean | undefined;
|
|
8
|
-
}) => import("react
|
|
8
|
+
}) => import("react").JSX.Element;
|
|
9
9
|
export default SkeletonLoader;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { Abi } from 'viem';
|
|
2
3
|
import { ContractConfig } from '../../types/smart-contract';
|
|
3
4
|
|
|
@@ -5,4 +6,4 @@ export declare const SmartContractListItem: ({ contract, onDelete, fetchContract
|
|
|
5
6
|
contract: ContractConfig;
|
|
6
7
|
onDelete?: (name: string) => void;
|
|
7
8
|
fetchContractAbi: (contract: ContractConfig) => Promise<Abi>;
|
|
8
|
-
}) =>
|
|
9
|
+
}) => React.JSX.Element;
|
|
@@ -12,5 +12,5 @@ interface TransitionWrapperProps {
|
|
|
12
12
|
* A wrapper component that provides smooth enter/exit transitions for its children
|
|
13
13
|
* using opacity and transform animations.
|
|
14
14
|
*/
|
|
15
|
-
export declare const TransitionWrapper: ({ show, children, duration, transitionClasses, }: TransitionWrapperProps) => import("react
|
|
15
|
+
export declare const TransitionWrapper: ({ show, children, duration, transitionClasses, }: TransitionWrapperProps) => import("react").JSX.Element | null;
|
|
16
16
|
export {};
|
|
@@ -23,12 +23,12 @@ export declare const getCustomToolbarItems: ({ handleContentPortal, setShowSmart
|
|
|
23
23
|
}) => ({
|
|
24
24
|
key: string;
|
|
25
25
|
tooltip: string;
|
|
26
|
-
icon:
|
|
26
|
+
icon: React.JSX.Element;
|
|
27
27
|
onClick?: undefined;
|
|
28
28
|
} | {
|
|
29
29
|
key: string;
|
|
30
30
|
tooltip: string;
|
|
31
|
-
icon:
|
|
31
|
+
icon: React.JSX.Element;
|
|
32
32
|
onClick: (() => void) | undefined;
|
|
33
33
|
})[];
|
|
34
34
|
type ReadOnlyExportDeps = {
|
|
@@ -45,6 +45,6 @@ export declare const getReadOnlyCustomToolbarItems: ({ setExportDropdownOpen, ha
|
|
|
45
45
|
key: string;
|
|
46
46
|
tooltip: string;
|
|
47
47
|
onClick: () => void;
|
|
48
|
-
icon:
|
|
48
|
+
icon: React.JSX.Element;
|
|
49
49
|
}[];
|
|
50
50
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a private data snapshot for the workbook. The workbook deep-freezes
|
|
3
|
+
* its input when storing it in Immer state, so passing currentDataRef directly
|
|
4
|
+
* would also freeze the Yjs-derived collaboration data. Later sync and comment
|
|
5
|
+
* marker updates would then throw when mutating that shared source. Cloning here
|
|
6
|
+
* keeps workbook state immutable while collaboration data remains mutable.
|
|
7
|
+
*/
|
|
8
|
+
export declare const detachWorkbookData: <T>(data: T) => T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -36,6 +36,7 @@ export declare const SUPPORTED_VIEM_CHAIN_MAP: {
|
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
sourceId?: number | undefined | undefined;
|
|
39
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
39
40
|
testnet: true;
|
|
40
41
|
custom?: Record<string, unknown> | undefined;
|
|
41
42
|
extendSchema?: Record<string, unknown> | undefined;
|
|
@@ -84,6 +85,7 @@ export declare const SUPPORTED_VIEM_CHAIN_MAP: {
|
|
|
84
85
|
};
|
|
85
86
|
};
|
|
86
87
|
sourceId?: number | undefined | undefined;
|
|
88
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
87
89
|
testnet?: boolean | undefined | undefined;
|
|
88
90
|
custom?: Record<string, unknown> | undefined;
|
|
89
91
|
extendSchema?: Record<string, unknown> | undefined;
|
|
@@ -171,6 +173,7 @@ export declare const SUPPORTED_VIEM_CHAIN_MAP: {
|
|
|
171
173
|
};
|
|
172
174
|
};
|
|
173
175
|
sourceId: 1;
|
|
176
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
174
177
|
testnet?: boolean | undefined | undefined;
|
|
175
178
|
custom?: Record<string, unknown> | undefined;
|
|
176
179
|
extendSchema?: Record<string, unknown> | undefined;
|
|
@@ -405,6 +408,8 @@ export declare const SUPPORTED_VIEM_CHAIN_MAP: {
|
|
|
405
408
|
transactionHash: import('viem').Hash;
|
|
406
409
|
transactionIndex: number;
|
|
407
410
|
type: import('viem').TransactionType;
|
|
411
|
+
depositNonce?: bigint | undefined | undefined;
|
|
412
|
+
depositReceiptVersion?: number | undefined | undefined;
|
|
408
413
|
l1GasPrice: bigint | null;
|
|
409
414
|
l1GasUsed: bigint | null;
|
|
410
415
|
l1Fee: bigint | null;
|
|
@@ -457,10 +462,11 @@ export declare const SUPPORTED_VIEM_CHAIN_MAP: {
|
|
|
457
462
|
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
458
463
|
rpcUrls: {
|
|
459
464
|
readonly default: {
|
|
460
|
-
readonly http: readonly ["https://
|
|
465
|
+
readonly http: readonly ["https://ethereum.reth.rs/rpc"];
|
|
461
466
|
};
|
|
462
467
|
};
|
|
463
468
|
sourceId?: number | undefined | undefined;
|
|
469
|
+
supportsTransactionReplacementDetection?: boolean | undefined | undefined;
|
|
464
470
|
testnet?: boolean | undefined | undefined;
|
|
465
471
|
custom?: Record<string, unknown> | undefined;
|
|
466
472
|
extendSchema?: Record<string, unknown> | undefined;
|