@huanban/rulego-editor-core 1.4.0 → 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.
- package/README.md +2 -2
- package/dist/chunks/{editor-core-dialogs-CkFLaC8Q.js → editor-core-dialogs-BMWb0WRN.js} +2508 -2456
- package/dist/chunks/{editor-core-property-drawers-lLsBIoCa.js → editor-core-property-drawers-BPh-jj1b.js} +1653 -1690
- package/dist/chunks/{editor-core-standalone-CHXk3ukc.js → editor-core-standalone-Cls7lcgT.js} +3479 -3447
- package/dist/chunks/{editor-core-styles-C1TbLgCK.js → editor-core-styles-DFhXz0vB.js} +351 -112
- package/dist/index.cjs +544 -532
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +109 -106
- package/dist/index.umd.js +556 -544
- package/dist/standalone/editor-sidebar.d.ts +1 -0
- package/dist/standalone/index.d.ts +1 -1
- package/dist/standalone/node-definitions.d.ts +1 -1
- package/dist/standalone/node-identity.d.ts +1 -0
- package/dist/standalone/node-theme.d.ts +1 -0
- package/dist/standalone/themes.d.ts +4 -0
- package/dist/types/component.d.ts +2 -0
- package/dist/version.d.ts +2 -2
- package/package.json +1 -1
|
@@ -10,3 +10,4 @@ export interface DragNodeData {
|
|
|
10
10
|
export declare function renderSidebar(editor: any): void;
|
|
11
11
|
export declare function buildDragNodeData(comp: ComponentDefinition & Record<string, any>, label?: string, allComponents?: Array<ComponentDefinition & Record<string, any>>): DragNodeData;
|
|
12
12
|
export declare function inferNodeType(comp: ComponentDefinition & Record<string, any>): string;
|
|
13
|
+
export declare function resolveComponentNodeType(comp: ComponentDefinition & Record<string, any>): string;
|
|
@@ -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';
|
|
@@ -9,7 +9,7 @@ export declare const CATEGORY_CONFIG: Record<string, CategoryConfig>;
|
|
|
9
9
|
export declare const CATEGORY_ORDER: ReadonlyArray<string>;
|
|
10
10
|
export declare const CATEGORY_PATH_MAP: Record<string, string>;
|
|
11
11
|
export declare function getCategoryKey(rawCat: string): string;
|
|
12
|
-
export declare function resolveRuntimeCategoryKey(component: any,
|
|
12
|
+
export declare function resolveRuntimeCategoryKey(component: any, _isEndpoint?: boolean): string;
|
|
13
13
|
export declare function getCategoryConfig(cat: string): CategoryConfig;
|
|
14
14
|
export declare function adapterRelationTypeLabel(relationTypes: any, translate?: (value: string) => string): any;
|
|
15
15
|
export declare function adapterEndpointDefaults(component: any, isEndpoint?: boolean): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare function isRuleGoEndpointType(type: unknown): boolean;
|
|
1
2
|
export declare function isLogicFlowVisualNodeType(type: unknown): boolean;
|
|
2
3
|
export declare function resolveRuleGoNodeType(modelType: unknown, viewType?: unknown, graphType?: unknown): string;
|
|
3
4
|
export interface NormalizeEditableNodeModelOptions {
|
|
@@ -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<{
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const HUANBAN_RULEGO_EDITOR_VERSION = "1.4.
|
|
2
|
-
export declare const EDITOR_VERSION = "1.4.
|
|
1
|
+
export declare const HUANBAN_RULEGO_EDITOR_VERSION = "1.4.2";
|
|
2
|
+
export declare const EDITOR_VERSION = "1.4.2";
|