@fses/workbench-app 0.3.5 → 0.3.7

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.
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import type { RoleId } from '@fses/workbench-card/types';
7
7
  export interface WorkbenchAppAssetsConfig {
8
- /** ECharts 模板静态资产 CDN base URL,未配置时前端继续使用同源 public path。 */
8
+ /** ECharts 模板静态资产 CDN base URL,未配置时使用内置公共资源地址。 */
9
9
  echartsTemplateCdnBaseUrl?: string;
10
10
  }
11
11
  export interface WorkbenchAppBrandConfig {
@@ -50,3 +50,16 @@ export interface WorkbenchAppConfig {
50
50
  /** 包内 IO 迁移开关,默认走 legacy 兼容链路。 */
51
51
  transportMode?: 'adapter' | 'legacy';
52
52
  }
53
+ /**
54
+ * 工作台内置 ECharts 静态资源 CDN 地址。
55
+ *
56
+ * 脚手架发布后不再保证携带完整的 ECharts 模板目录,因此包内运行时必须有
57
+ * 一个可用的公共资源兜底;宿主仍可通过 `assets.echartsTemplateCdnBaseUrl` 覆盖。
58
+ */
59
+ export declare const DEFAULT_ECHARTS_TEMPLATE_CDN_BASE_URL = "https://byteluck.oss-cn-beijing.aliyuncs.com/resources";
60
+ /**
61
+ * 解析工作台 ECharts 静态资源 CDN 地址。
62
+ * @param config - 当前工作台配置。
63
+ * @returns 宿主配置的非空地址,未配置时返回内置公共资源地址。
64
+ */
65
+ export declare function resolveWorkbenchEchartsTemplateCdnBaseUrl(config?: WorkbenchAppConfig): string;
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as z, useAttrs as N, ref as _, computed as g, watch as G, openBlock as s, createElementBlock as d, Fragment as E, createElementVNode as n, mergeProps as H, unref as m, renderSlot as ee, createBlock as B, Teleport as Q, normalizeStyle as te, normalizeClass as X, createCommentVNode as A, toDisplayString as b, reactive as U, withModifiers as ae, createVNode as $, renderList as V, createTextVNode as re, withDirectives as O, vModelSelect as ie, vModelDynamic as le } from "vue";
2
- import { d as t, e as oe } from "./cardFactory-D5dyYSC3.js";
2
+ import { d as t, e as oe } from "./cardFactory-Bmt-0aZg.js";
3
3
  import "@fses/workbench-card";
4
4
  import "@fses/workbench-card/registry";
5
5
  import { WorkbenchBlockRenderer as se } from "@fses/workbench-card/renderers";
6
- import { s as ne, e as de } from "./normalizeWorkbenchExtensions-Ccv3n3fC.js";
7
- import { _ as ce } from "./index-B91WNNqp.js";
6
+ import { s as ne, e as de } from "./normalizeWorkbenchExtensions-Ve5GcdIX.js";
7
+ import { _ as ce } from "./index-BJCPHCc1.js";
8
8
  import { X as ue, AlertCircle as pe, Check as me } from "lucide-vue-next";
9
9
  import { clsx as be } from "clsx";
10
10
  import { twMerge as fe } from "tailwind-merge";
@@ -1,4 +1,4 @@
1
- import { W as s, a as T, b as A, c as R, d as n, n as o, w as a } from "../normalizeWorkbenchExtensions-Ccv3n3fC.js";
1
+ import { W as s, a as T, b as A, c as R, d as n, n as o, w as a } from "../normalizeWorkbenchExtensions-Ve5GcdIX.js";
2
2
  export {
3
3
  s as WORKBENCH_CUSTOM_CARD_CATALOG,
4
4
  T as WORKBENCH_TEMPLATE_WEATHER_CAPABILITY_ID,
@@ -1,9 +1,9 @@
1
- import { D as s, F as o, G as r, H as t, I as n, A as c, J as l, K as i, L as p, B as A, M as C, N as d, O as m, P as E, Q as u, R as g, S as h, T as R, U as W, V as _, X as k, Y as P, Z as S, $ as b, a0 as T, C as v, p as f, y as M, r as L, e as y, h as O, i as N, s as D, g as I, a1 as B, u as H, w as x } from "./index-B91WNNqp.js";
1
+ import { D as s, F as o, G as r, H as t, I as n, A as c, J as l, K as i, L as p, B as A, M as C, N as d, O as m, P as E, Q as u, R as g, S as h, T as R, U as W, V as _, X as k, Y as P, Z as S, $ as b, a0 as T, C as v, p as f, y as M, r as L, e as y, h as O, i as N, s as D, g as I, a1 as B, u as H, w as x } from "./index-BJCPHCc1.js";
2
2
  import { WORKBENCH_APP_I18N_PROJECTS as K, resolveWorkbenchI18nProjects as F } from "./i18n/index.js";
3
- import { D as U, L as V, S as Y, j, k as z, a as X, m as q, n as J, o as Q, h as Z, g as $, f as ee, p as ae, q as se, s as oe, t as re, l as te, u as ne, v as ce, w as le, x as ie, y as pe, r as Ae, z as Ce } from "./cardFactory-D5dyYSC3.js";
4
- import { c as me } from "./canvasFacade-ZFqB_i7z.js";
5
- import { D as ue, i as ge, j as he, k as Re, l as We, m as _e, n as ke, o as Pe, c as Se, a as be, p as Te, q as ve, e as fe, s as Me, t as Le, v as ye, w as Oe, x as Ne, y as De, z as Ie, A as Be, B as He, C as xe, E as we, F as Ke, G as Fe, H as Ge, I as Ue, J as Ve, K as Ye, L as je, M as ze, N as Xe, O as qe, P as Je, u as Qe, b as Ze, Q as $e, R as ea } from "./useWorkbenchRuntime-Dhqcfdj5.js";
6
- import { W as sa, a as oa, b as ra, c as ta, d as na } from "./normalizeWorkbenchExtensions-Ccv3n3fC.js";
3
+ import { D as U, L as V, S as Y, j, k as z, a as X, m as q, n as J, o as Q, h as Z, g as $, f as ee, p as ae, q as se, s as oe, t as re, l as te, u as ne, v as ce, w as le, x as ie, y as pe, r as Ae, z as Ce } from "./cardFactory-Bmt-0aZg.js";
4
+ import { c as me } from "./canvasFacade-DlebDEqi.js";
5
+ import { D as ue, i as ge, j as he, k as Re, l as We, m as _e, n as ke, o as Pe, c as Se, a as be, p as Te, q as ve, e as fe, s as Me, t as Le, v as ye, w as Oe, x as Ne, y as De, z as Ie, A as Be, B as He, C as xe, E as we, F as Ke, G as Fe, H as Ge, I as Ue, J as Ve, K as Ye, L as je, M as ze, N as Xe, O as qe, P as Je, u as Qe, b as Ze, Q as $e, R as ea } from "./useWorkbenchRuntime-gWFb0SyH.js";
6
+ import { W as sa, a as oa, b as ra, c as ta, d as na } from "./normalizeWorkbenchExtensions-Ve5GcdIX.js";
7
7
  export {
8
8
  ue as DEEP_AGENT_TOOL_DISPLAY_NAMES,
9
9
  ge as DEEP_AGENT_VISIBLE_PROGRESS_TEXTS,
@@ -1,13 +1,13 @@
1
1
  import "./i18n/index.js";
2
2
  import { toRefs as Fe, shallowReadonly as Y, inject as ye, defineComponent as M, provide as G, openBlock as k, createElementBlock as W, renderSlot as O, createElementVNode as D, normalizeClass as ie, normalizeStyle as q, withModifiers as He, unref as J, createCommentVNode as U, createVNode as T, Transition as $e, withCtx as H, shallowRef as re, onMounted as ke, watch as Ee, onBeforeUnmount as L, toDisplayString as Ke, createBlock as V, resolveDynamicComponent as ne, Fragment as qe, renderList as Ue, computed as Ie, defineAsyncComponent as Q, ref as xe, h as Le } from "vue";
3
- import { d as u, f as Ae, g as _e, h as Re, i as Ve } from "./cardFactory-D5dyYSC3.js";
4
- import { n as Ge, w as ze } from "./normalizeWorkbenchExtensions-Ccv3n3fC.js";
3
+ import { d as u, f as Ae, g as _e, h as Re, i as Ve } from "./cardFactory-Bmt-0aZg.js";
4
+ import { n as Ge, w as ze } from "./normalizeWorkbenchExtensions-Ve5GcdIX.js";
5
5
  import { W as Ce, a as Qe, c as je } from "./index-DkGYPLLJ.js";
6
6
  import { fetchEventSource as Ye } from "@microsoft/fetch-event-source";
7
- import { r as Je, e as Xe, d as Ze, f as et, g as tt, c as rt, a as nt, W as ot, h as st } from "./useWorkbenchRuntime-Dhqcfdj5.js";
8
- import "./canvasFacade-ZFqB_i7z.js";
7
+ import { r as Je, e as Xe, d as Ze, f as et, g as tt, c as rt, a as nt, W as ot, h as st } from "./useWorkbenchRuntime-gWFb0SyH.js";
8
+ import "./canvasFacade-DlebDEqi.js";
9
9
  import { useRoute as at } from "vue-router";
10
- const it = "0.3.5", ce = "workbench-app-version";
10
+ const it = "0.3.7", ce = "workbench-app-version";
11
11
  function ct() {
12
12
  if (typeof document > "u" || document.querySelector(`meta[name="${ce}"]`)) return !1;
13
13
  const e = document.createElement("meta");
@@ -303,7 +303,7 @@ const F = /* @__PURE__ */ M({
303
303
  }, 8, ["adapters", "config", "extensions"]));
304
304
  }
305
305
  }), Ct = "workbench.builtin.card-center", Wt = "workbench.card-center", le = "workbench.card-center.drawer", vt = "workbench.card-center.open", dn = "workbench.card-center.insert-system-card", ln = "workbench.card-center.insert-custom-card", un = "workbench.card-center.config-dialog-change", St = Q(
306
- () => import("./WorkbenchCardCenterDrawer-Dp5ygyZ3.js")
306
+ () => import("./WorkbenchCardCenterDrawer-n-NpuRXY.js")
307
307
  );
308
308
  function Pt() {
309
309
  return {
@@ -331,7 +331,7 @@ function Pt() {
331
331
  version: "1.0.0"
332
332
  };
333
333
  }
334
- const Tt = "workbench.optional.diagnostics", Nt = "workbench.diagnostics.route", Ot = "workbench.diagnostics.refresh", Dt = "workbench.diagnostics.refreshed", ue = Q(() => import("./WorkbenchDiagnosticsPage-DOa2B34l.js")), Mt = Q(() => import("./WorkbenchDiagnosticsFooter-C0is4UXX.js"));
334
+ const Tt = "workbench.optional.diagnostics", Nt = "workbench.diagnostics.route", Ot = "workbench.diagnostics.refresh", Dt = "workbench.diagnostics.refreshed", ue = Q(() => import("./WorkbenchDiagnosticsPage-DwnoO7II.js")), Mt = Q(() => import("./WorkbenchDiagnosticsFooter-yEvt4Wkw.js"));
335
335
  function Bt() {
336
336
  return {
337
337
  id: Tt,
@@ -1047,7 +1047,7 @@ const hn = /* @__PURE__ */ M({
1047
1047
  });
1048
1048
  const o = ze(r.extensions);
1049
1049
  Ve(t.adapters, t.config, o);
1050
- const s = Q(() => import("./Workspace-CgFYrVQM.js"));
1050
+ const s = Q(() => import("./Workspace-B8D8DbLe.js"));
1051
1051
  return (a, i) => (k(), V(J(s), {
1052
1052
  "embed-in-portal": t.embedInPortal
1053
1053
  }, {
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import type { Component } from 'vue';
7
7
  import type { WorkbenchAppAdapters } from '../../../adapters/types';
8
- import type { WorkbenchAppConfig } from '../../../config/workbenchAppConfig';
8
+ import { type WorkbenchAppConfig } from '../../../config/workbenchAppConfig';
9
9
  import type { WorkbenchAppExtensions } from '../../../extensions';
10
10
  /**
11
11
  * 设置当前工作台扩展。
@@ -25,6 +25,11 @@ export declare function configureRuntimeHost(adapters: Partial<WorkbenchAppAdapt
25
25
  export declare function runtimeAdapters(): Partial<WorkbenchAppAdapters>;
26
26
  /** @returns 当前工作台配置。 */
27
27
  export declare function runtimeConfig(): WorkbenchAppConfig;
28
+ /**
29
+ * 读取当前工作台 ECharts 静态资源 CDN 地址。
30
+ * @returns 宿主配置地址,未配置时返回包内公共资源兜底地址。
31
+ */
32
+ export declare function runtimeEchartsTemplateCdnBaseUrl(): string;
28
33
  /**
29
34
  * 读取当前工作台扩展。
30
35
  * @returns 当前扩展对象。
@@ -1,4 +1,4 @@
1
- import { b as V, c as D, d as k } from "./cardFactory-D5dyYSC3.js";
1
+ import { b as V, c as D, d as k } from "./cardFactory-Bmt-0aZg.js";
2
2
  import { defineComponent as H, computed as A, ref as E, watch as G, onBeforeUnmount as j, openBlock as _, createElementBlock as w, createElementVNode as d, toDisplayString as f, createCommentVNode as W, normalizeClass as T } from "vue";
3
3
  const q = "/workbench-card-previews/custom-cards";
4
4
  function B(e) {
@@ -1,4 +1,4 @@
1
- import { W as o, c as r, a as t, u as a, b as c } from "../useWorkbenchRuntime-Dhqcfdj5.js";
1
+ import { W as o, c as r, a as t, u as a, b as c } from "../useWorkbenchRuntime-gWFb0SyH.js";
2
2
  export {
3
3
  o as WORKBENCH_RUNTIME_STORE_DEFINITION_KEY,
4
4
  r as createWorkbenchRuntimeScope,