@huanban/rulego-editor-core 1.3.13 → 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.
@@ -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,7 +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_FLOW_TAIJI_DATA_URI, HUANBAN_FLOW_TAIJI_SVG_PATH } from './brand-assets';
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';
13
13
  export { getThemeList, normalizeEditorTheme, THEME_PRESETS } from './themes';
14
14
  export type { ThemeVars } from './themes';
15
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.13";
2
- export declare const EDITOR_VERSION = "1.3.13";
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.13",
3
+ "version": "1.3.14",
4
4
  "description": "RuleGo 规则链编辑器核心库 - 框架无关的 Headless 编辑器引擎 + API 抽象层 (WorkflowFetcher)",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
@@ -12,7 +12,8 @@
12
12
  "import": "./dist/index.esm.js",
13
13
  "require": "./dist/index.cjs.js"
14
14
  },
15
- "./assets/images/huanban-flow-taiji.svg": "./assets/images/huanban-flow-taiji.svg"
15
+ "./assets/images/logo.svg": "./assets/images/logo.svg",
16
+ "./assets/images/favicon.svg": "./assets/images/favicon.svg"
16
17
  },
17
18
  "files": [
18
19
  "assets/images/**/*.svg",
@@ -1,10 +0,0 @@
1
- /**
2
- * Stable editor brand assets.
3
- *
4
- * The physical SVG is shipped with @huanban/rulego-editor-core under
5
- * assets/images, while examples use the data URI so deployments do not depend
6
- * on a backend /brand static route.
7
- */
8
- export declare const HUANBAN_FLOW_TAIJI_SVG_PATH = "assets/images/huanban-flow-taiji.svg";
9
- export declare const HUANBAN_FLOW_TAIJI_DATA_URI = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJIdWFuYmFuIHdvcmtmbG93IHRhaWppIGxvZ28iPiA8ZGVmcz4gPGxpbmVhckdyYWRpZW50IGlkPSJpbmsiIHgxPSIxNCIgeTE9IjgiIHgyPSI1MCIgeTI9IjU2IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+IDxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzBmMTcyYSIvPiA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMyNzM2NGEiLz4gPC9saW5lYXJHcmFkaWVudD4gPGxpbmVhckdyYWRpZW50IGlkPSJ0ZWFsIiB4MT0iMTIiIHkxPSIxMiIgeDI9IjUyIiB5Mj0iNTIiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4gPHN0b3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