@fileverse-dev/dsheet 2.1.2-dropIn-2 → 2.1.2-dropIn-3
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/editor-workbook.d.ts +4 -0
- package/dist/editor/components/sidebar/sidebar-portal-registry.d.ts +20 -0
- package/dist/{index-CDtU1CMG.js → index-kyh4PUpv.js} +22837 -22752
- package/dist/index.es.js +1 -1
- package/dist/sheet-engine/react/components/SidebarPanelPortals/index.d.ts +17 -0
- package/dist/sheet-engine/react/components/Workbook/index.d.ts +4 -0
- package/dist/sheet-engine/react/components/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{use-xlsx-import-impl-BLkzBn-k.js → use-xlsx-import-impl-C5HJjMKw.js} +1 -1
- package/dist/{xlsx-export-impl-DxWsBfuJ.js → xlsx-export-impl-fPjIH58m.js} +1 -1
- package/package.json +1 -1
- package/dist/sheet-engine/react/components/Toolbar/conditionalFormatPortal.d.ts +0 -7
- package/dist/sheet-engine/react/components/Toolbar/dataVerificationPortal.d.ts +0 -6
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { SidebarPortalRegistryHandle, SidebarPortalRenderer } from '../../sheet-engine/react';
|
|
2
3
|
import { SmartContractQueryHandler } from '../utils/after-update-cell';
|
|
3
4
|
import { OnboardingHandlerType, DataBlockApiKeyHandlerType } from '../types';
|
|
4
5
|
import { CommentsConfig } from '../types/comments';
|
|
@@ -26,6 +27,9 @@ interface EditorWorkbookProps {
|
|
|
26
27
|
onDuneChartEmbed?: () => void;
|
|
27
28
|
onSheetCountChange?: (sheetCount: number) => void;
|
|
28
29
|
handleSmartContractQuery?: SmartContractQueryHandler;
|
|
30
|
+
sidebarActivePanel?: string | null;
|
|
31
|
+
sidebarPortalRegistry?: SidebarPortalRegistryHandle | null;
|
|
32
|
+
sidebarPortalRenderers?: Record<string, SidebarPortalRenderer>;
|
|
29
33
|
}
|
|
30
34
|
export declare const EditorWorkbook: React.NamedExoticComponent<EditorWorkbookProps>;
|
|
31
35
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export type SidebarPortalTargets = Record<string, HTMLElement>;
|
|
4
|
+
export type SidebarPortalRegistryHandle = {
|
|
5
|
+
getTargets: () => SidebarPortalTargets;
|
|
6
|
+
subscribe: (onStoreChange: () => void) => () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function SidebarPortalRegistryProvider({ children, }: Readonly<{
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function useSidebarPortalRegistryHandle(): SidebarPortalRegistryHandle;
|
|
12
|
+
export declare function useSidebarPortalTargets(): SidebarPortalTargets;
|
|
13
|
+
export declare function useSidebarPortalTarget(panelId: string): (node: HTMLElement | null) => void;
|
|
14
|
+
interface SidebarPortalSlotProps {
|
|
15
|
+
panelId: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
style?: CSSProperties;
|
|
18
|
+
}
|
|
19
|
+
export declare function SidebarPortalSlot({ panelId, className, style, }: Readonly<SidebarPortalSlotProps>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|