@huanban/rulego-editor-core 1.3.12 → 1.3.14
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/assets/images/favicon.svg +23 -0
- package/assets/images/logo.svg +37 -0
- package/dist/index.cjs.js +617 -559
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +13700 -13470
- package/dist/index.umd.js +621 -563
- package/dist/standalone/HuanbanRulegoEditor.d.ts +3 -1
- package/dist/standalone/browser-assets.d.ts +14 -0
- package/dist/standalone/editor-toolbar.d.ts +3 -0
- package/dist/standalone/index.d.ts +1 -0
- package/dist/version.d.ts +2 -2
- package/package.json +4 -2
|
@@ -209,8 +209,10 @@ export interface HuanbanRulegoEditorOptions {
|
|
|
209
209
|
onLocaleChange?: (locale: string) => void;
|
|
210
210
|
/** 是否在节点 Drawer 中显示调试日志 Tab, 默认 true (有 apiBase 时) */
|
|
211
211
|
showDebugTab?: boolean;
|
|
212
|
-
/**
|
|
212
|
+
/** 是否在工具栏显示「部署」按钮, 默认 true */
|
|
213
213
|
showDeployButton?: boolean;
|
|
214
|
+
/** 是否显示兼容保留的「重载」按钮, 默认 false;后端不保证支持 operate/reload */
|
|
215
|
+
showReloadButton?: boolean;
|
|
214
216
|
/** 劫持部署/下线行为;action 使用后端 operate 协议:start=部署/启动,stop=下线 */
|
|
215
217
|
onDeploy?: (chainId: string, action: 'start' | 'stop' | 'reload') => void | boolean | {
|
|
216
218
|
success?: boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stable editor browser assets.
|
|
3
|
+
*
|
|
4
|
+
* The SVG files are shipped by @huanban/rulego-editor-core under assets/images.
|
|
5
|
+
* Examples use data URIs for in-app logos and normal favicon.svg files for
|
|
6
|
+
* browser tab icons.
|
|
7
|
+
*/
|
|
8
|
+
export declare const HUANBAN_LOGO_SVG_PATH = "assets/images/logo.svg";
|
|
9
|
+
export declare const HUANBAN_FAVICON_SVG_PATH = "assets/images/favicon.svg";
|
|
10
|
+
export declare const HUANBAN_LOGO_SVG = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 64 64\" role=\"img\" aria-label=\"Huanban workflow logo\">\n <defs>\n <linearGradient id=\"ink\" x1=\"14\" y1=\"8\" x2=\"50\" y2=\"56\" gradientUnits=\"userSpaceOnUse\">\n <stop offset=\"0\" stop-color=\"#0f172a\"/>\n <stop offset=\"1\" stop-color=\"#27364a\"/>\n </linearGradient>\n <linearGradient id=\"teal\" x1=\"12\" y1=\"12\" x2=\"52\" y2=\"52\" gradientUnits=\"userSpaceOnUse\">\n <stop offset=\"0\" stop-color=\"#2dd4bf\"/>\n <stop offset=\"1\" stop-color=\"#0f766e\"/>\n </linearGradient>\n <linearGradient id=\"gold\" x1=\"45\" y1=\"10\" x2=\"20\" y2=\"56\" gradientUnits=\"userSpaceOnUse\">\n <stop offset=\"0\" stop-color=\"#fde68a\"/>\n <stop offset=\"1\" stop-color=\"#f59e0b\"/>\n </linearGradient>\n <filter id=\"soft-shadow\" x=\"-20%\" y=\"-20%\" width=\"140%\" height=\"140%\">\n <feDropShadow dx=\"0\" dy=\"2\" stdDeviation=\"2\" flood-color=\"#0f172a\" flood-opacity=\".16\"/>\n </filter>\n </defs>\n <g fill=\"none\" filter=\"url(#soft-shadow)\">\n <circle cx=\"32\" cy=\"32\" r=\"29\" stroke=\"url(#ink)\" stroke-width=\"3\"/>\n <circle cx=\"32\" cy=\"32\" r=\"25.5\" fill=\"#f8fafc\" stroke=\"#ffffff\" stroke-width=\"1.5\"/>\n <path d=\"M32 6.5a25.5 25.5 0 1 1 0 51 12.75 12.75 0 1 0 0-25.5 12.75 12.75 0 1 1 0-25.5Z\" fill=\"url(#ink)\"/>\n <circle cx=\"32\" cy=\"19.25\" r=\"5.6\" fill=\"#f8fafc\" stroke=\"url(#teal)\" stroke-width=\"2.5\"/>\n <circle cx=\"32\" cy=\"44.75\" r=\"5.6\" fill=\"#111827\" stroke=\"url(#gold)\" stroke-width=\"2.5\"/>\n <path d=\"M17.5 32c3.6-7.5 8.5-11.2 14.5-11.2S43 24.5 46.5 32c-3.6 7.5-8.5 11.2-14.5 11.2S21 39.5 17.5 32Z\" stroke=\"#2563eb\" stroke-width=\"2.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\" opacity=\".72\"/>\n <circle cx=\"17.5\" cy=\"32\" r=\"3.4\" fill=\"#2563eb\" stroke=\"#f8fafc\" stroke-width=\"1.6\"/>\n <circle cx=\"46.5\" cy=\"32\" r=\"3.4\" fill=\"#14b8a6\" stroke=\"#f8fafc\" stroke-width=\"1.6\"/>\n <circle cx=\"32\" cy=\"8.5\" r=\"2.4\" fill=\"#f59e0b\"/>\n <circle cx=\"48.6\" cy=\"15.4\" r=\"2.4\" fill=\"#14b8a6\"/>\n <circle cx=\"55.5\" cy=\"32\" r=\"2.4\" fill=\"#2563eb\"/>\n <circle cx=\"48.6\" cy=\"48.6\" r=\"2.4\" fill=\"#f59e0b\"/>\n <circle cx=\"32\" cy=\"55.5\" r=\"2.4\" fill=\"#14b8a6\"/>\n <circle cx=\"15.4\" cy=\"48.6\" r=\"2.4\" fill=\"#2563eb\"/>\n <circle cx=\"8.5\" cy=\"32\" r=\"2.4\" fill=\"#f59e0b\"/>\n <circle cx=\"15.4\" cy=\"15.4\" r=\"2.4\" fill=\"#14b8a6\"/>\n </g>\n</svg>";
|
|
11
|
+
export declare const HUANBAN_FAVICON_SVG = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 64 64\" role=\"img\" aria-label=\"Huanban workflow icon\">\n <defs>\n <linearGradient id=\"ink\" x1=\"14\" y1=\"8\" x2=\"50\" y2=\"56\" gradientUnits=\"userSpaceOnUse\">\n <stop offset=\"0\" stop-color=\"#0f172a\"/>\n <stop offset=\"1\" stop-color=\"#27364a\"/>\n </linearGradient>\n <linearGradient id=\"teal\" x1=\"12\" y1=\"12\" x2=\"52\" y2=\"52\" gradientUnits=\"userSpaceOnUse\">\n <stop offset=\"0\" stop-color=\"#2dd4bf\"/>\n <stop offset=\"1\" stop-color=\"#0f766e\"/>\n </linearGradient>\n <linearGradient id=\"gold\" x1=\"45\" y1=\"10\" x2=\"20\" y2=\"56\" gradientUnits=\"userSpaceOnUse\">\n <stop offset=\"0\" stop-color=\"#fde68a\"/>\n <stop offset=\"1\" stop-color=\"#f59e0b\"/>\n </linearGradient>\n </defs>\n <circle cx=\"32\" cy=\"32\" r=\"29\" fill=\"#f8fafc\" stroke=\"url(#ink)\" stroke-width=\"3\"/>\n <path d=\"M32 6.5a25.5 25.5 0 1 1 0 51 12.75 12.75 0 1 0 0-25.5 12.75 12.75 0 1 1 0-25.5Z\" fill=\"url(#ink)\"/>\n <circle cx=\"32\" cy=\"19.25\" r=\"5.6\" fill=\"#f8fafc\" stroke=\"url(#teal)\" stroke-width=\"2.5\"/>\n <circle cx=\"32\" cy=\"44.75\" r=\"5.6\" fill=\"#111827\" stroke=\"url(#gold)\" stroke-width=\"2.5\"/>\n <path d=\"M17.5 32c3.6-7.5 8.5-11.2 14.5-11.2S43 24.5 46.5 32c-3.6 7.5-8.5 11.2-14.5 11.2S21 39.5 17.5 32Z\" stroke=\"#2563eb\" stroke-width=\"2.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\" opacity=\".78\"/>\n <circle cx=\"17.5\" cy=\"32\" r=\"3.4\" fill=\"#2563eb\" stroke=\"#f8fafc\" stroke-width=\"1.6\"/>\n <circle cx=\"46.5\" cy=\"32\" r=\"3.4\" fill=\"#14b8a6\" stroke=\"#f8fafc\" stroke-width=\"1.6\"/>\n</svg>";
|
|
12
|
+
export declare const HUANBAN_LOGO_DATA_URI: string;
|
|
13
|
+
export declare const HUANBAN_FAVICON_DATA_URI: string;
|
|
14
|
+
//# sourceMappingURL=browser-assets.d.ts.map
|
|
@@ -9,6 +9,7 @@ export { debugLog, setDebug, isDebug } from './logger';
|
|
|
9
9
|
export { escapeHtml, escapeAttr, setSafeText, safeUrl, safeImageUrl, safeCssColor, sanitizeRichHtml, sanitizeDescription, redactSensitive, formatJsonBounded, parseJsonBounded, } from './security-utils';
|
|
10
10
|
export { DEFAULT_ICON_URL, normalizeIconTheme, resolveIconUrl } from './icon-utils';
|
|
11
11
|
export type { IconThemeName, ResolveIconUrlOptions } from './icon-utils';
|
|
12
|
+
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';
|
|
12
13
|
export { getThemeList, normalizeEditorTheme, THEME_PRESETS } from './themes';
|
|
13
14
|
export type { ThemeVars } from './themes';
|
|
14
15
|
export type { RichHtmlPolicy, RedactOptions, FormatJsonBoundedOptions, ParseJsonBoundedOptions, } from './security-utils';
|
package/dist/version.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const HUANBAN_RULEGO_EDITOR_VERSION = "1.3.
|
|
2
|
-
export declare const EDITOR_VERSION = "1.3.
|
|
1
|
+
export declare const HUANBAN_RULEGO_EDITOR_VERSION = "1.3.14";
|
|
2
|
+
export declare const EDITOR_VERSION = "1.3.14";
|
|
3
3
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huanban/rulego-editor-core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.14",
|
|
4
4
|
"description": "RuleGo 规则链编辑器核心库 - 框架无关的 Headless 编辑器引擎 + API 抽象层 (WorkflowFetcher)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"import": "./dist/index.esm.js",
|
|
13
13
|
"require": "./dist/index.cjs.js"
|
|
14
|
-
}
|
|
14
|
+
},
|
|
15
|
+
"./assets/images/logo.svg": "./assets/images/logo.svg",
|
|
16
|
+
"./assets/images/favicon.svg": "./assets/images/favicon.svg"
|
|
15
17
|
},
|
|
16
18
|
"files": [
|
|
17
19
|
"assets/images/**/*.svg",
|