@huanban/rulego-editor-react 1.0.2 → 1.0.5
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/RuleGoEditor.d.ts +6 -0
- package/dist/index.cjs.js +221 -203
- package/dist/index.esm.js +11273 -11207
- package/package.json +6 -2
- package/dist/components/ComponentSidebar.d.ts.map +0 -1
- package/dist/components/ContextMenu.d.ts.map +0 -1
- package/dist/components/DataViewDialog.d.ts.map +0 -1
- package/dist/components/DebugPanel.d.ts.map +0 -1
- package/dist/components/EdgePropertyDrawer.d.ts.map +0 -1
- package/dist/components/EditorToolbar.d.ts.map +0 -1
- package/dist/components/ImportExportDialog.d.ts.map +0 -1
- package/dist/components/MiniMap.d.ts.map +0 -1
- package/dist/components/NodePropertyDrawer.d.ts.map +0 -1
- package/dist/components/RuleChainSettings.d.ts.map +0 -1
- package/dist/components/RuleGoEditor.d.ts.map +0 -1
- package/dist/components/SearchPanel.d.ts.map +0 -1
- package/dist/components/ValidationPanel.d.ts.map +0 -1
- package/dist/components/WorkflowInfoPanel.d.ts.map +0 -1
- package/dist/components/WorkflowList.d.ts.map +0 -1
- package/dist/hooks/useClipboard.d.ts.map +0 -1
- package/dist/hooks/useEditorCore.d.ts.map +0 -1
- package/dist/hooks/useEditorI18n.d.ts.map +0 -1
- package/dist/hooks/useEditorTheme.d.ts.map +0 -1
- package/dist/hooks/useKeyboardShortcuts.d.ts.map +0 -1
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.esm.js.map +0 -1
|
@@ -56,6 +56,12 @@ export interface RuleGoEditorProps {
|
|
|
56
56
|
* 支持静态对象或动态函数(每次请求时调用获取最新 Token)
|
|
57
57
|
*/
|
|
58
58
|
fetchHeaders?: Record<string, string> | (() => Record<string, string>);
|
|
59
|
+
/**
|
|
60
|
+
* 自定义 fetch 函数 — 完全替换原生 fetch
|
|
61
|
+
* 当需要自定义请求逻辑(如统一认证拦截、请求签名、错误重试等)时使用
|
|
62
|
+
* 函数签名: (url: string, init: RequestInit) => Promise<Response>
|
|
63
|
+
*/
|
|
64
|
+
customFetch?: (url: string, init: RequestInit) => Promise<Response>;
|
|
59
65
|
/** 初始规则链数据 */
|
|
60
66
|
data?: RuleChainData | null;
|
|
61
67
|
/** 初始组件列表 */
|