@huanban/rulego-editor-react 2.0.0 → 2.1.0
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/components/ContextMenu.d.ts +1 -0
- package/dist/components/CrossChainSearchPanel.d.ts +20 -0
- package/dist/components/EditorPanelDock.d.ts +1 -1
- package/dist/index.cjs +9 -9
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +3702 -3612
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type LocaleMessages } from '@huanban/rulego-editor-core';
|
|
3
|
+
import { type EditorTranslate } from '../i18n';
|
|
4
|
+
export interface CrossChainSearchChain {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
data?: unknown;
|
|
8
|
+
}
|
|
9
|
+
export interface CrossChainSearchPanelProps {
|
|
10
|
+
chains: CrossChainSearchChain[];
|
|
11
|
+
chainData?: Record<string, unknown>;
|
|
12
|
+
loadChain?: (chainId: string, signal?: AbortSignal) => Promise<unknown>;
|
|
13
|
+
offline?: boolean;
|
|
14
|
+
onSelectChain?: (chainId: string) => void;
|
|
15
|
+
onSelectNode?: (chainId: string, nodeId: string) => void;
|
|
16
|
+
locale?: string;
|
|
17
|
+
messages?: LocaleMessages;
|
|
18
|
+
t?: EditorTranslate;
|
|
19
|
+
}
|
|
20
|
+
export default function CrossChainSearchPanel({ chains, chainData, loadChain, offline, onSelectChain, onSelectNode, locale, messages, t, }: CrossChainSearchPanelProps): React.JSX.Element;
|
|
@@ -14,5 +14,5 @@ export interface EditorPanelDockProps {
|
|
|
14
14
|
onTogglePanel?: (panelId: string, expanded: boolean) => void;
|
|
15
15
|
onResize?: (dock: EditorDockId, size: number) => void;
|
|
16
16
|
}
|
|
17
|
-
export declare function EditorPanelDock({ dock, dockState, panelState, renderPanel, title, className, onToggleDock, onActivatePanel, onClosePanel, onTogglePanel, onResize, }: EditorPanelDockProps): React.JSX.Element
|
|
17
|
+
export declare function EditorPanelDock({ dock, dockState, panelState, renderPanel, title, className, onToggleDock, onActivatePanel, onClosePanel, onTogglePanel, onResize, }: EditorPanelDockProps): React.JSX.Element;
|
|
18
18
|
export default EditorPanelDock;
|