@huanban/rulego-editor-core 1.3.10 → 1.3.12
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/api/RuleChainAPI.d.ts +2 -0
- package/dist/api/types.d.ts +2 -2
- package/dist/index.cjs.js +650 -595
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +17475 -17310
- package/dist/index.umd.js +565 -510
- package/dist/standalone/HuanbanRulegoEditor.d.ts +8 -4
- package/dist/version.d.ts +3 -0
- package/package.json +1 -1
|
@@ -168,12 +168,16 @@ export interface HuanbanRulegoEditorOptions {
|
|
|
168
168
|
initialTab?: SettingsDialogTab;
|
|
169
169
|
apiBase?: string;
|
|
170
170
|
baseUrl?: string;
|
|
171
|
+
browserConsoleLog?: boolean;
|
|
171
172
|
}) => void;
|
|
172
173
|
/** 内置设置弹窗保存系统设置后触发 */
|
|
173
174
|
onSettingsSubmit?: (data: {
|
|
174
175
|
apiBase: string;
|
|
175
176
|
baseUrl: string;
|
|
177
|
+
browserConsoleLog?: boolean;
|
|
176
178
|
}) => void;
|
|
179
|
+
/** 示例/宿主调试日志是否允许输出到浏览器 console;核心仅在设置弹窗中透传该偏好 */
|
|
180
|
+
browserConsoleLog?: boolean;
|
|
177
181
|
/** 内置设置弹窗点击登录时触发;未提供时仅提示宿主接入 */
|
|
178
182
|
onLoginClick?: () => void;
|
|
179
183
|
/** 是否在工具栏显示「导出」按钮, 默认 true (已有导出功能则显示增强弹窗) */
|
|
@@ -554,22 +558,22 @@ export declare class HuanbanRulegoEditor {
|
|
|
554
558
|
*/
|
|
555
559
|
private _autoLoadComponents;
|
|
556
560
|
/**
|
|
557
|
-
* 通用数据请求方法 —
|
|
561
|
+
* 通用数据请求方法 — 只从真实 API 加载,失败直接 reject。
|
|
558
562
|
*
|
|
559
563
|
* @param apiBase - API 基础地址 (如 'http://127.0.0.1:9090/api/v1')
|
|
560
564
|
* @param path - 请求路径 (如 '/components')
|
|
561
|
-
* @param
|
|
565
|
+
* @param legacyFallbackFile - 旧版本兼容参数,当前不再读取本地替代数据
|
|
562
566
|
* @param timeout - 超时毫秒数, 默认 5000
|
|
563
567
|
* @param headers - 可选的自定义请求头 (如认证 Token)
|
|
564
568
|
* @returns Promise<any> 解析后的 JSON 数据
|
|
565
569
|
*
|
|
566
570
|
* @example
|
|
567
571
|
* ```js
|
|
568
|
-
* HuanbanRulegoEditor.fetchData('http://api.example.com
|
|
572
|
+
* HuanbanRulegoEditor.fetchData('http://api.example.com/api/v1', '/components')
|
|
569
573
|
* .then(data => console.log(data))
|
|
570
574
|
* ```
|
|
571
575
|
*/
|
|
572
|
-
static fetchData(apiBase: string, path: string,
|
|
576
|
+
static fetchData(apiBase: string, path: string, legacyFallbackFile?: string, timeout?: number, headers?: Record<string, string>): Promise<unknown>;
|
|
573
577
|
/**
|
|
574
578
|
* 开启/关闭编辑器内部调试日志
|
|
575
579
|
*
|