@huanban/rulego-editor-core 1.4.1 → 1.4.2

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.
@@ -14,6 +14,6 @@ export { escapeHtml, escapeAttr, setSafeText, safeUrl, safeImageUrl, safeCssColo
14
14
  export { DEFAULT_ICON_URL, normalizeIconTheme, resolveIconUrl } from './icon-utils';
15
15
  export type { IconThemeName, ResolveIconUrlOptions } from './icon-utils';
16
16
  export { HUANBAN_FAVICON_DATA_URI, HUANBAN_FAVICON_SVG, HUANBAN_FAVICON_SVG_PATH, HUANBAN_LOGO_DATA_URI, HUANBAN_LOGO_SVG, HUANBAN_LOGO_SVG_PATH, } from './browser-assets';
17
- export { getThemeList, normalizeEditorTheme, THEME_PRESETS } from './themes';
17
+ export { getCoreThemeDefinition, getCoreThemeVariables, getThemeList, getThemeRuntimeVariables, normalizeEditorTheme, THEME_PRESETS, } from './themes';
18
18
  export type { ThemeVars } from './themes';
19
19
  export type { RichHtmlPolicy, RedactOptions, FormatJsonBoundedOptions, ParseJsonBoundedOptions, } from './security-utils';
@@ -2,6 +2,7 @@ export interface LogicFlowNodeTheme {
2
2
  id: string;
3
3
  isDark: boolean;
4
4
  }
5
+ export declare function resolveLogicFlowNodeRadius(lf: any): number;
5
6
  export declare function deriveDarkNodeBackground(color: string): string;
6
7
  export declare function resolveLogicFlowNodeTheme(lf: any): LogicFlowNodeTheme;
7
8
  export declare function resolveLogicFlowNodeBackground(lf: any, color: string): string;
@@ -1,9 +1,13 @@
1
+ import type { ThemeDefinition as CoreThemeDefinition } from '../core/ThemeManager';
1
2
  export interface ThemeVars {
2
3
  label: string;
3
4
  labelEn: string;
4
5
  vars: Record<string, string>;
5
6
  }
6
7
  export declare const THEME_PRESETS: Record<string, ThemeVars>;
8
+ export declare function getCoreThemeVariables(themeId: string): Record<string, string>;
9
+ export declare function getThemeRuntimeVariables(themeId?: string | null): Record<string, string>;
10
+ export declare function getCoreThemeDefinition(themeId: string): CoreThemeDefinition;
7
11
  export declare function normalizeEditorTheme(theme?: string | null): string;
8
12
  export declare function getThemeCSS(): string;
9
13
  export declare function getThemeList(locale: string): Array<{
@@ -112,6 +112,8 @@ export interface ComponentDefinition {
112
112
  relationTypes: string[];
113
113
  color?: string;
114
114
  nodeType?: string;
115
+ notInput?: boolean;
116
+ notOutput?: boolean;
115
117
  order?: number;
116
118
  disabled?: boolean;
117
119
  [key: string]: unknown;
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const HUANBAN_RULEGO_EDITOR_VERSION = "1.4.1";
2
- export declare const EDITOR_VERSION = "1.4.1";
1
+ export declare const HUANBAN_RULEGO_EDITOR_VERSION = "1.4.2";
2
+ export declare const EDITOR_VERSION = "1.4.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huanban/rulego-editor-core",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "RuleGo 规则链编辑器核心库 - 框架无关的 Headless 编辑器引擎 + API 抽象层 (WorkflowFetcher)",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",