@vtj/designer 0.16.23 → 0.16.25

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,4 @@
1
+ import { _ as f } from "./index-CXlJx_CB.js";
2
+ export {
3
+ f as default
4
+ };
@@ -7,7 +7,7 @@ import Mp from "element-plus/es/locale/lang/zh-cn";
7
7
  import { XDialogForm as Wt, XField as Y, XIcon as zt, createDialog as ec, XDialog as Xt, XPanel as ws, XAction as Ne, XTabs as Es, XContainer as Ie, XForm as Fa, XAttachment as jp, XGrid as Ha, XActionBar as tc, XInputUnit as nc, vResizable as Ll } from "@vtj/ui";
8
8
  import { BUILT_IN_NAME as os, isNode as Dn, isBlockSchema as Lp, NodeModel as Vo, cloneDsl as Ul, isBlock as it, DirectiveModel as oc, I18N_LOCALES as Up, createNodeFrom as Bp, BUILT_IN_VUE as Bl, BUILT_IN_VUE_ROUTER as $p, emitter as vt, EVENT_PROJECT_ACTIVED as fa, EVENT_NODE_CHANGE as mr, EVENT_BLOCK_CHANGE as ga, Base as rc, BUILT_IN_LIBRARAY_MAP as zp, ProjectModel as Fp, EVENT_PROJECT_CHANGE as Hp, EVENT_PROJECT_BLOCKS_CHANGE as Jp, EVENT_PROJECT_PAGES_CHANGE as Gp, EVENT_PROJECT_DEPS_CHANGE as Kp, EVENT_PROJECT_PUBLISH as Wp, EVENT_PROJECT_FILE_PUBLISH as qp, EVENT_HISTORY_CHANGE as Qp, EVENT_HISTORY_LOAD as Yp, EVENT_PROJECT_GEN_SOURCE as Xp, BlockModel as Bs, HistoryModel as Zp } from "@vtj/core";
9
9
  import { parseExpression as Lo, parseFunction as Ja, BUILT_IN_DIRECTIVES as ef, nodeCache as tf, createSchemaApi as nf, isJSFunction as sc, JSCodeToString as Uo, LIFE_CYCLES_LIST as of, DATA_TYPES as rf, createMock as sf, isJSExpression as Eo, REMOTE as ac, NodeEnv as Hn, HTML_TAGS as af, ContextMode as ma, clearLoaderCache as $l, parseDeps as lf, parseUrls as cf, createAssetsCss as uf, createAssetScripts as zl, getRawComponent as Fl, createSchemaApis as df, mockCleanup as pf, mockApis as ff, adoptStylesToInline as gf, Provider as mf, Access as hf, ACCESS as vf } from "@vtj/renderer";
10
- import { delay as Oe, storage as ln, uid as ks, kebabCase as bf, jsonp as Gn, groupBy as hr, isUrl as yf, camelCase as _f, dataURLtoBlob as lc, fileToBase64 as Ga, upperFirstCamelCase as ic, toRawType as $s, cloneDeep as Or, merge as Ss, logger as jn, isPlainObject as wf, throttle as Ef, toArray as Ka, debounce as kf, uuid as Sf, getClientInfo as xf, base64 as Cf, arrayToMap as Af, isBoolean as Tf } from "@vtj/utils";
10
+ import { delay as Te, storage as ln, uid as ks, kebabCase as bf, jsonp as Gn, groupBy as hr, isUrl as yf, camelCase as _f, dataURLtoBlob as lc, fileToBase64 as Ga, upperFirstCamelCase as ic, toRawType as $s, cloneDeep as Or, merge as Ss, logger as jn, isPlainObject as wf, throttle as Ef, toArray as Ka, debounce as kf, uuid as Sf, getClientInfo as xf, base64 as Cf, arrayToMap as Af, isBoolean as Tf } from "@vtj/utils";
11
11
  import * as Of from "@vtj/icons";
12
12
  import { VtjIconBack as If, VtjIconPc as Rf, VtjIconPhone as Df, VtjIconPad as Nf, VtjIconEdit as Wa, VtjIconUndo as Vf, VtjIconRedo as Pf, VtjIconTemplate as lr, Upload as cc, Share as Mf, Lock as jf, VtjIconPreview as Lf, VtjIconRefresh as uc, VtjIconPageSetting as Uf, Download as ir, VtjIconPublish as Hl, VtjIconProject as Bf, icons as ha, ArrowDown as xs, Search as un, CopyDocument as dc, Back as $f, VtjIconPlus as pc, EditPen as fc, Delete as qa, VtjIconSave as Qa, ArrowUp as gc, MoreFilled as So, VtjIconCheck as Ya, VtjIconComponents as mc, VtjIconShare as zf, VtjIconHome as Ff, VtjIconVisible as Hf, VtjIconInvisible as hc, VtjIconUnlock as Jf, VtjIconLock as vc, VtjIconRemove as Cs, VtjIconCopy as Xa, Files as Gf, VtjIconSearch as Kf, Flag as Wf, VtjIconDiff as qf, VtjIconHelp as bc, VtjIconOpenapi as Qf, VtjIconLayers as yc, Edit as Yf, Rank as Xf, VtjIconArrowUp as Zf, VtjIconArrowDown as eg, IconDisplayBlock as tg, IconDisplayFlex as ng, IconDisplayInlineBlock as og, IconDisplayInline as rg, IconEyeInvisible as sg, IconFlexDirectionrow as ag, IconFlexDirectionrowReverse as lg, IconFlexDirectioncolumn as ig, IconFlexDirectioncolumnReverse as cg, IconFlexJustifyflexStartrow as ug, IconFlexJustifyflexEndrow as dg, IconFlexJustifycenterrow as pg, IconFlexJustifyspaceBetweenrow as fg, IconFlexJustifyspaceAroundrow as gg, IconFlexAlignflexStartrow as mg, IconFlexAlignflexEndrow as hg, IconFlexAligncenterrow as vg, IconFlexAlignbaselinerow as bg, IconFlexAlignstretchrow as yg, IconPositionTopLeft as _g, IconPositionTopRight as wg, IconPositionBottomLeft as Eg, IconPositionBottomRight as kg, IconPositionLeft as Sg, IconPositionRight as xg, IconPositionTop as Cg, IconPositionBottom as Ag, IconPositionAll as Tg, IconTextAlignLeft as Og, IconTextAlignCenter as Ig, IconTextAlignRight as Rg, IconTextAlignJustify as Dg, IconFontStyleNone as Ng, IconFontStyleItalic as Vg, IconCross as _c, IconTextDecorationUnderline as Pg, IconTextDecorationStrike as Mg, IconTextDecorationOverline as jg, IconTileXy as Lg, IconTileX as Ug, IconTileY as Bg, IconClose as $g, IconBorderAll as zg, IconBorderLeft as Fg, IconBorderTop as Hg, IconBorderBottom as Jg, IconBorderRight as Gg, IconBorderStyleSolid as Kg, IconBorderStyleDashed as Wg, IconBorderStyleDotted as qg, IconCursorAuto as Qg, IconCursorPointer as Yg, IconCursorNotAllowed as Xg, IconCursorNone as Zg, ArrowRight as em, UserFilled as Za, VtjIconInfo as tm, VtjIconNewChat as wc, Plus as Ec, Promotion as rs, CircleClose as nm, ArrowDownBold as om, ArrowUpBold as rm, Refresh as sm, View as kc, VtjIconAi as Sc, VtjIconNpCancel as am, UploadFilled as xc, CloseBold as Cc, ShoppingCart as lm, Finished as im, Hide as cm, Top as um, Bottom as dm, VtjIconChatRecord as pm, VtjIconClose as fm, Setting as gm, VtjIconDevTools as mm, VtjIconLeftPanel as hm, VtjIconBottomPanel as vm, VtjIconRightPanel as bm, Sunny as ym, Moon as _m, VtjIconDocument as wm, VtjIconBlock as Em, VtjIconOutline as km, VtjIconHistory as Sm, VtjIconApi as xm, VtjIconCategory as Cm, VtjIconUniapp as Am, VtjIconMaster as Tm, VtjIconGlobal as Om, VtjIconLang as Im, VtjIconEnv as Rm, HomeFilled as Dm, Close as Nm, VtjIconVars as Vm, VtjIconSwitch as Pm, Switch as Mm } from "@vtj/icons";
13
13
  import { PAGE_LIFE_CYCLES_LIST as jm, COMPONENT_LIFE_CYCLES_LIST as Lm, APP_LIFE_CYCLE as el, createUniAppComponent as Um, setupUniApp as Bm } from "@vtj/uni";
@@ -19,10 +19,10 @@ import { editor as zm } from "monaco-editor";
19
19
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
20
20
  * @name @vtj/designer
21
21
  * @author CHC chenhuachun1549@dingtalk.com
22
- * @version 0.16.23
22
+ * @version 0.16.25
23
23
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
24
24
  */
25
- const vr = "0.16.23", Fm = {
25
+ const vr = "0.16.25", Fm = {
26
26
  width: 390,
27
27
  height: 844
28
28
  }, Hm = {
@@ -1217,7 +1217,7 @@ if (typeof window < "u") {
1217
1217
  const Uc = "ctrl+s, command+s", Bc = "ctrl+p, command+p", $c = "f5, ctrl+r, command+r", zc = "ctrl+z, command+z", Fc = "shift+ctrl+z, shift+command+z", Hc = "backspace", Jc = "ctrl+c, command+c", Gc = "ctrl+v, command+v", Kc = "ctrl+x, command+x", Wc = "up", qc = "down", Qc = "left", Yc = "right", Xc = "shift+up, shift+left", Zc = "shift+down, shift+right", eu = "escape", tu = "ctrl+a, command+a", Gs = "Designer_Clipboard__";
1218
1218
  function Gh() {
1219
1219
  const e = Le(), { copy: t, text: n } = Ts({}), o = {}, s = bt(null), r = async () => {
1220
- await Oe(100), s.value = e.simulator.contentWindow?.hotkeys;
1220
+ await Te(100), s.value = e.simulator.contentWindow?.hotkeys;
1221
1221
  }, a = (u, p) => {
1222
1222
  o[u] = p, s.value && (s.value(u, p), Yt(u, p));
1223
1223
  }, l = (u) => {
@@ -1254,7 +1254,7 @@ function Gh() {
1254
1254
  u?.preventDefault();
1255
1255
  const p = e.skeleton?.getRegion("Apps").regionRef;
1256
1256
  if (p) {
1257
- p.setActive("History"), await Oe(100);
1257
+ p.setActive("History"), await Te(100);
1258
1258
  const g = e.skeleton?.getWidget("History")?.widgetRef;
1259
1259
  g && g.openAdd();
1260
1260
  }
@@ -2555,9 +2555,9 @@ function mv(e) {
2555
2555
  },
2556
2556
  shouldNext: (_) => {
2557
2557
  const C = _.content || _.reasoning || "", O = _.message?.trim() || "";
2558
- return O.startsWith("4") || O.startsWith("5") || C.includes("F:") || C.includes("R:") ? !1 : !!(_.toolCallId && (_.toolContent || _.message));
2558
+ return O.startsWith("4") || O.startsWith("5") || C.includes("F:") || C.includes("R:") ? !1 : !!(_.toolCallId && (_.toolContent || _.message) || C.includes("P:") && !C.includes("A:"));
2559
2559
  },
2560
- createNextPrompt: (_) => _.toolCallId ? _.toolContent || _.message || "O: 动作执行成功" : _.status === "Error" || _.status === "Failed" ? _.toolContent || _.message || "O: 动作执行失败" : "执行计划",
2560
+ createNextPrompt: (_) => _.toolCallId ? _.toolContent || _.message || "O: 动作执行成功" : _.status === "Error" || _.status === "Failed" ? _.toolContent || _.message || "O: 动作执行失败" : "O: 开始执行计划",
2561
2561
  getCurrentVue: p,
2562
2562
  convertVueToDsl: l
2563
2563
  };
@@ -2662,14 +2662,14 @@ function yv() {
2662
2662
  const { topic: Ce, chat: Ee } = ue.data;
2663
2663
  Ee.type = Ce.type, G.value = [], $.value.unshift(Ce), S.value = !1, K.value = Ce;
2664
2664
  const _t = an(Ee);
2665
- G.value.push(_t), Qe(_t, async (dt) => {
2665
+ G.value.push(_t), Ke(_t, async (dt) => {
2666
2666
  if (J.auto && await Me(dt), ft(dt))
2667
2667
  return xt({
2668
2668
  ...J,
2669
2669
  toolCallId: dt.toolCallId,
2670
2670
  prompt: je(dt)
2671
2671
  });
2672
- }), await Oe(0), M.value && M.value.scrollToBottom();
2672
+ }), await Te(0), M.value && M.value.scrollToBottom();
2673
2673
  } else
2674
2674
  await at();
2675
2675
  return ue;
@@ -2680,7 +2680,7 @@ function yv() {
2680
2680
  const { topic: Ce, chat: Ee } = ue.data;
2681
2681
  G.value = [], $.value.unshift(Ce), S.value = !1, K.value = Ce, Ce.image && (Ee.image = b(Ce.image)), Ee.type = Ce.type;
2682
2682
  const _t = an(Ee);
2683
- G.value.push(_t), Qe(_t, async (dt) => {
2683
+ G.value.push(_t), Ke(_t, async (dt) => {
2684
2684
  if (dt.status === "Success" && J.auto && await Me(dt), ft(dt))
2685
2685
  return xt({
2686
2686
  model: J.model,
@@ -2688,7 +2688,7 @@ function yv() {
2688
2688
  toolCallId: dt.toolCallId,
2689
2689
  prompt: je(dt)
2690
2690
  });
2691
- }), await Oe(0), M.value && M.value.scrollToBottom();
2691
+ }), await Te(0), M.value && M.value.scrollToBottom();
2692
2692
  } else
2693
2693
  await at();
2694
2694
  return ue;
@@ -2699,7 +2699,7 @@ function yv() {
2699
2699
  const { topic: Ce, chat: Ee } = ue.data;
2700
2700
  G.value = [], $.value.unshift(Ce), S.value = !1, K.value = Ce, Ce.image && (Ee.image = b(Ce.image)), Ce.json && (Ee.json = y(Ce.json)), Ee.type = Ce.type, Ee.dataType = Ce.dataType;
2701
2701
  const _t = an(Ee);
2702
- G.value.push(_t), Qe(_t, async (dt) => {
2702
+ G.value.push(_t), Ke(_t, async (dt) => {
2703
2703
  if (dt.status === "Success" && J.auto && await Me(dt), ft(dt))
2704
2704
  return xt({
2705
2705
  model: J.model,
@@ -2707,7 +2707,7 @@ function yv() {
2707
2707
  toolCallId: dt.toolCallId,
2708
2708
  prompt: je(dt)
2709
2709
  });
2710
- }), await Oe(0), M.value && M.value.scrollToBottom();
2710
+ }), await Te(0), M.value && M.value.scrollToBottom();
2711
2711
  } else
2712
2712
  await at();
2713
2713
  return ue;
@@ -2722,21 +2722,21 @@ function yv() {
2722
2722
  }, ue = await a(oe).catch(() => null);
2723
2723
  if (x.value = !1, ue && ue.success) {
2724
2724
  const Ce = an(ue.data);
2725
- G.value.push(Ce), Qe(Ce, async (Ee) => {
2725
+ G.value.push(Ce), Ke(Ce, async (Ee) => {
2726
2726
  if (Ee.status === "Success" && J.auto && await Me(Ee), ft(Ee))
2727
2727
  return xt({
2728
2728
  ...J,
2729
2729
  toolCallId: Ee.toolCallId,
2730
2730
  prompt: je(Ee)
2731
2731
  });
2732
- }), await Oe(0), M.value && M.value.scrollToBottom();
2732
+ }), await Te(0), M.value && M.value.scrollToBottom();
2733
2733
  } else
2734
2734
  await at();
2735
2735
  return ue;
2736
2736
  }, It = async (J) => {
2737
2737
  const oe = await l(J.id).catch(() => null);
2738
2738
  oe && oe.success && ($.value = $.value.filter((ue) => ue.id !== J.id), J.id === K.value?.id && (G.value = [], K.value = null, S.value = !0));
2739
- }, Qe = async (J, oe) => {
2739
+ }, Ke = async (J, oe) => {
2740
2740
  t.state.streaming = !0, B.value = "", J.content = "", J.reasoning = "", J.status = "Pending", J.reasoning = "", J.message = "";
2741
2741
  let ue = 0;
2742
2742
  const Ce = Date.now();
@@ -2789,7 +2789,7 @@ function yv() {
2789
2789
  });
2790
2790
  }, gt = (J) => {
2791
2791
  if (!te.value)
2792
- return Qe(J, async (oe) => {
2792
+ return Ke(J, async (oe) => {
2793
2793
  if (t.state.autoApply && await Me(oe), ft(oe))
2794
2794
  return xt({
2795
2795
  model: K.value?.model,
@@ -4064,14 +4064,14 @@ function ci(e) {
4064
4064
  }
4065
4065
  let Vt = /* @__PURE__ */ (function(e) {
4066
4066
  return e.VISIT_COMPONENT_TREE = "visitComponentTree", e.INSPECT_COMPONENT = "inspectComponent", e.EDIT_COMPONENT_STATE = "editComponentState", e.GET_INSPECTOR_TREE = "getInspectorTree", e.GET_INSPECTOR_STATE = "getInspectorState", e.EDIT_INSPECTOR_STATE = "editInspectorState", e.INSPECT_TIMELINE_EVENT = "inspectTimelineEvent", e.TIMELINE_CLEARED = "timelineCleared", e.SET_PLUGIN_SETTINGS = "setPluginSettings", e;
4067
- })({}), qe = /* @__PURE__ */ (function(e) {
4067
+ })({}), Qe = /* @__PURE__ */ (function(e) {
4068
4068
  return e.ADD_INSPECTOR = "addInspector", e.SEND_INSPECTOR_TREE = "sendInspectorTree", e.SEND_INSPECTOR_STATE = "sendInspectorState", e.CUSTOM_INSPECTOR_SELECT_NODE = "customInspectorSelectNode", e.TIMELINE_LAYER_ADDED = "timelineLayerAdded", e.TIMELINE_EVENT_ADDED = "timelineEventAdded", e.GET_COMPONENT_INSTANCES = "getComponentInstances", e.GET_COMPONENT_BOUNDS = "getComponentBounds", e.GET_COMPONENT_NAME = "getComponentName", e.COMPONENT_HIGHLIGHT = "componentHighlight", e.COMPONENT_UNHIGHLIGHT = "componentUnhighlight", e;
4069
4069
  })({}), Ht = /* @__PURE__ */ (function(e) {
4070
4070
  return e.SEND_INSPECTOR_TREE_TO_CLIENT = "sendInspectorTreeToClient", e.SEND_INSPECTOR_STATE_TO_CLIENT = "sendInspectorStateToClient", e.SEND_TIMELINE_EVENT_TO_CLIENT = "sendTimelineEventToClient", e.SEND_INSPECTOR_TO_CLIENT = "sendInspectorToClient", e.SEND_ACTIVE_APP_UNMOUNTED_TO_CLIENT = "sendActiveAppUpdatedToClient", e.DEVTOOLS_STATE_UPDATED = "devtoolsStateUpdated", e.DEVTOOLS_CONNECTED_UPDATED = "devtoolsConnectedUpdated", e.ROUTER_INFO_UPDATED = "routerInfoUpdated", e;
4071
4071
  })({});
4072
4072
  function Gb() {
4073
4073
  const e = du();
4074
- e.hook(qe.ADD_INSPECTOR, ({ inspector: o, plugin: s }) => {
4074
+ e.hook(Qe.ADD_INSPECTOR, ({ inspector: o, plugin: s }) => {
4075
4075
  Hb(o, s.descriptor);
4076
4076
  });
4077
4077
  const t = oo(async ({ inspectorId: o, plugin: s }) => {
@@ -4093,7 +4093,7 @@ function Gb() {
4093
4093
  })));
4094
4094
  }, Ht.SEND_INSPECTOR_TREE_TO_CLIENT);
4095
4095
  }, 120);
4096
- e.hook(qe.SEND_INSPECTOR_TREE, t);
4096
+ e.hook(Qe.SEND_INSPECTOR_TREE, t);
4097
4097
  const n = oo(async ({ inspectorId: o, plugin: s }) => {
4098
4098
  if (!o || !s?.descriptor?.app || Re.highPerfModeEnabled) return;
4099
4099
  const r = Xn(o, s.descriptor.app), a = {
@@ -4114,12 +4114,12 @@ function Gb() {
4114
4114
  })));
4115
4115
  }, Ht.SEND_INSPECTOR_STATE_TO_CLIENT);
4116
4116
  }, 120);
4117
- return e.hook(qe.SEND_INSPECTOR_STATE, n), e.hook(qe.CUSTOM_INSPECTOR_SELECT_NODE, ({ inspectorId: o, nodeId: s, plugin: r }) => {
4117
+ return e.hook(Qe.SEND_INSPECTOR_STATE, n), e.hook(Qe.CUSTOM_INSPECTOR_SELECT_NODE, ({ inspectorId: o, nodeId: s, plugin: r }) => {
4118
4118
  const a = Xn(o, r.descriptor.app);
4119
4119
  a && (a.selectedNodeId = s);
4120
- }), e.hook(qe.TIMELINE_LAYER_ADDED, ({ options: o, plugin: s }) => {
4120
+ }), e.hook(Qe.TIMELINE_LAYER_ADDED, ({ options: o, plugin: s }) => {
4121
4121
  zb(o, s.descriptor);
4122
- }), e.hook(qe.TIMELINE_EVENT_ADDED, ({ options: o, plugin: s }) => {
4122
+ }), e.hook(Qe.TIMELINE_EVENT_ADDED, ({ options: o, plugin: s }) => {
4123
4123
  Re.highPerfModeEnabled || !Re.timelineLayersState?.[s.descriptor.id] && ![
4124
4124
  "performance",
4125
4125
  "component-event",
@@ -4128,15 +4128,15 @@ function Gb() {
4128
4128
  ].includes(o.layerId) || e.callHookWith(async (r) => {
4129
4129
  await Promise.all(r.map((a) => a(o)));
4130
4130
  }, Ht.SEND_TIMELINE_EVENT_TO_CLIENT);
4131
- }), e.hook(qe.GET_COMPONENT_INSTANCES, async ({ app: o }) => {
4131
+ }), e.hook(Qe.GET_COMPONENT_INSTANCES, async ({ app: o }) => {
4132
4132
  const s = o.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
4133
4133
  if (!s) return null;
4134
4134
  const r = s.id.toString();
4135
4135
  return [...s.instanceMap].filter(([a]) => a.split(":")[0] === r).map(([, a]) => a);
4136
- }), e.hook(qe.GET_COMPONENT_BOUNDS, async ({ instance: o }) => ko(o)), e.hook(qe.GET_COMPONENT_NAME, ({ instance: o }) => vn(o)), e.hook(qe.COMPONENT_HIGHLIGHT, ({ uid: o }) => {
4136
+ }), e.hook(Qe.GET_COMPONENT_BOUNDS, async ({ instance: o }) => ko(o)), e.hook(Qe.GET_COMPONENT_NAME, ({ instance: o }) => vn(o)), e.hook(Qe.COMPONENT_HIGHLIGHT, ({ uid: o }) => {
4137
4137
  const s = $e.value.instanceMap.get(o);
4138
4138
  s && Ab(s);
4139
- }), e.hook(qe.COMPONENT_UNHIGHLIGHT, () => {
4139
+ }), e.hook(Qe.COMPONENT_UNHIGHLIGHT, () => {
4140
4140
  wu();
4141
4141
  }), e;
4142
4142
  }
@@ -4416,32 +4416,32 @@ var sy = class {
4416
4416
  ];
4417
4417
  pt.callHook(Ue.COMPONENT_UPDATED, ...n);
4418
4418
  } else pt.callHook(Ue.COMPONENT_UPDATED);
4419
- this.hooks.callHook(qe.SEND_INSPECTOR_STATE, {
4419
+ this.hooks.callHook(Qe.SEND_INSPECTOR_STATE, {
4420
4420
  inspectorId: t.id,
4421
4421
  plugin: this.plugin
4422
4422
  });
4423
4423
  }
4424
4424
  }
4425
4425
  addInspector(e) {
4426
- this.hooks.callHook(qe.ADD_INSPECTOR, {
4426
+ this.hooks.callHook(Qe.ADD_INSPECTOR, {
4427
4427
  inspector: e,
4428
4428
  plugin: this.plugin
4429
4429
  }), this.plugin.descriptor.settings && Ou(e.id, this.plugin.descriptor.settings);
4430
4430
  }
4431
4431
  sendInspectorTree(e) {
4432
- Re.highPerfModeEnabled || this.hooks.callHook(qe.SEND_INSPECTOR_TREE, {
4432
+ Re.highPerfModeEnabled || this.hooks.callHook(Qe.SEND_INSPECTOR_TREE, {
4433
4433
  inspectorId: e,
4434
4434
  plugin: this.plugin
4435
4435
  });
4436
4436
  }
4437
4437
  sendInspectorState(e) {
4438
- Re.highPerfModeEnabled || this.hooks.callHook(qe.SEND_INSPECTOR_STATE, {
4438
+ Re.highPerfModeEnabled || this.hooks.callHook(Qe.SEND_INSPECTOR_STATE, {
4439
4439
  inspectorId: e,
4440
4440
  plugin: this.plugin
4441
4441
  });
4442
4442
  }
4443
4443
  selectInspectorNode(e, t) {
4444
- this.hooks.callHook(qe.CUSTOM_INSPECTOR_SELECT_NODE, {
4444
+ this.hooks.callHook(Qe.CUSTOM_INSPECTOR_SELECT_NODE, {
4445
4445
  inspectorId: e,
4446
4446
  nodeId: t,
4447
4447
  plugin: this.plugin
@@ -4454,13 +4454,13 @@ var sy = class {
4454
4454
  return Re.highPerfModeEnabled ? 0 : Date.now();
4455
4455
  }
4456
4456
  addTimelineLayer(e) {
4457
- this.hooks.callHook(qe.TIMELINE_LAYER_ADDED, {
4457
+ this.hooks.callHook(Qe.TIMELINE_LAYER_ADDED, {
4458
4458
  options: e,
4459
4459
  plugin: this.plugin
4460
4460
  });
4461
4461
  }
4462
4462
  addTimelineEvent(e) {
4463
- Re.highPerfModeEnabled || this.hooks.callHook(qe.TIMELINE_EVENT_ADDED, {
4463
+ Re.highPerfModeEnabled || this.hooks.callHook(Qe.TIMELINE_EVENT_ADDED, {
4464
4464
  options: e,
4465
4465
  plugin: this.plugin
4466
4466
  });
@@ -4469,20 +4469,20 @@ var sy = class {
4469
4469
  return Tu(e ?? this.plugin.descriptor.id, this.plugin.descriptor.settings);
4470
4470
  }
4471
4471
  getComponentInstances(e) {
4472
- return this.hooks.callHook(qe.GET_COMPONENT_INSTANCES, { app: e });
4472
+ return this.hooks.callHook(Qe.GET_COMPONENT_INSTANCES, { app: e });
4473
4473
  }
4474
4474
  getComponentBounds(e) {
4475
- return this.hooks.callHook(qe.GET_COMPONENT_BOUNDS, { instance: e });
4475
+ return this.hooks.callHook(Qe.GET_COMPONENT_BOUNDS, { instance: e });
4476
4476
  }
4477
4477
  getComponentName(e) {
4478
- return this.hooks.callHook(qe.GET_COMPONENT_NAME, { instance: e });
4478
+ return this.hooks.callHook(Qe.GET_COMPONENT_NAME, { instance: e });
4479
4479
  }
4480
4480
  highlightElement(e) {
4481
4481
  const t = e.__VUE_DEVTOOLS_NEXT_UID__;
4482
- return this.hooks.callHook(qe.COMPONENT_HIGHLIGHT, { uid: t });
4482
+ return this.hooks.callHook(Qe.COMPONENT_HIGHLIGHT, { uid: t });
4483
4483
  }
4484
4484
  unhighlightElement() {
4485
- return this.hooks.callHook(qe.COMPONENT_UNHIGHLIGHT);
4485
+ return this.hooks.callHook(Qe.COMPONENT_UNHIGHLIGHT);
4486
4486
  }
4487
4487
  };
4488
4488
  const ay = sy, ly = /* @__PURE__ */ new Set([
@@ -5292,7 +5292,7 @@ function zy(e) {
5292
5292
  },
5293
5293
  sendInspectorState(t) {
5294
5294
  const n = Xn(t);
5295
- e.callHook(qe.SEND_INSPECTOR_STATE, {
5295
+ e.callHook(Qe.SEND_INSPECTOR_STATE, {
5296
5296
  inspectorId: t,
5297
5297
  plugin: {
5298
5298
  descriptor: n.descriptor,
@@ -8196,10 +8196,10 @@ const bo = {
8196
8196
  return Jb(e);
8197
8197
  },
8198
8198
  highlighComponent(e) {
8199
- return Ye.ctx.hooks.callHook(qe.COMPONENT_HIGHLIGHT, { uid: e });
8199
+ return Ye.ctx.hooks.callHook(Qe.COMPONENT_HIGHLIGHT, { uid: e });
8200
8200
  },
8201
8201
  unhighlight() {
8202
- return Ye.ctx.hooks.callHook(qe.COMPONENT_UNHIGHLIGHT);
8202
+ return Ye.ctx.hooks.callHook(Qe.COMPONENT_UNHIGHLIGHT);
8203
8203
  },
8204
8204
  updateDevToolsClientDetected(e) {
8205
8205
  Ju(e);
@@ -8293,7 +8293,7 @@ function Lw() {
8293
8293
  );
8294
8294
  _r.splice(m, 1);
8295
8295
  const b = g.find((_) => _.id === p), y = g.find((_) => _.id !== p);
8296
- y && o.value && (await bo.toggleApp(y.id), ls(y)), b && (wa(b.app), s.value.callHook("app:unmount", b.app)), await Oe(500), t.value.$vtjEl.click();
8296
+ y && o.value && (await bo.toggleApp(y.id), ls(y)), b && (wa(b.app), s.value.callHook("app:unmount", b.app)), await Te(500), t.value.$vtjEl.click();
8297
8297
  };
8298
8298
  return {
8299
8299
  dialogRef: t,
@@ -8989,7 +8989,7 @@ const Bw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
8989
8989
  const n = e, { engine: o, designer: s } = mn(), { isLogined: r, toRemoteAuth: a } = io(), l = R(!1), c = R(!1), d = R(), f = R(), u = R(), p = () => {
8990
8990
  o.current.value ? (l.value ? o.skeleton?.getWidget("Previewer")?.widgetRef.refresh() : (s.value?.setSelected(null), o.simulator.refresh()), Be("刷新完成", "success")) : Be("请先打开文件", "warning");
8991
8991
  }, g = async () => {
8992
- o.current.value ? (l.value && (o.skeleton?.closePreview(), l.value = !1, await Oe(1e3)), s.value?.setSelected(o.current.value)) : Be("请先打开文件", "warning");
8992
+ o.current.value ? (l.value && (o.skeleton?.closePreview(), l.value = !1, await Te(1e3)), s.value?.setSelected(o.current.value)) : Be("请先打开文件", "warning");
8993
8993
  }, m = () => {
8994
8994
  if (o.project.value)
8995
8995
  if (o.current.value) {
@@ -9049,7 +9049,7 @@ const Bw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
9049
9049
  Be("项目没有页面,无需发布", "warning");
9050
9050
  return;
9051
9051
  }
9052
- E.active(x), await Oe(300), u.value = await o.simulator.capture(), f?.value.openDialog();
9052
+ E.active(x), await Te(300), u.value = await o.simulator.capture(), f?.value.openDialog();
9053
9053
  }, O = (E) => {
9054
9054
  const x = o.project.value;
9055
9055
  if (x)
@@ -9361,7 +9361,7 @@ const Bw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
9361
9361
  ]));
9362
9362
  }
9363
9363
  }), Ze = vp({
9364
- loader: () => import("./Editor-CkTaBh2w.js"),
9364
+ loader: () => import("./Editor-DfSjsRF9.js"),
9365
9365
  loadingComponent: H({
9366
9366
  render() {
9367
9367
  return eo("div", "正在拼命加载...");
@@ -10897,7 +10897,7 @@ const Bw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
10897
10897
  }, u = async (k) => {
10898
10898
  if (s && r.value) {
10899
10899
  const A = await s.service.uploadStaticFile(k, r.value.id);
10900
- return await Oe(150), d(A);
10900
+ return await Te(150), d(A);
10901
10901
  }
10902
10902
  return null;
10903
10903
  }, p = (k) => k ? (k || "").split(",").map((E) => ({ url: E })) : [], g = R(
@@ -13209,7 +13209,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ie = D, te = B), W ==
13209
13209
  ne.forEach((J) => gt.openNode(J));
13210
13210
  }
13211
13211
  let It = {};
13212
- function Qe(ne, J) {
13212
+ function Ke(ne, J) {
13213
13213
  const oe = J && J[0];
13214
13214
  if (Me += ne, oe == null)
13215
13215
  return je(), 0;
@@ -13252,10 +13252,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ie = D, te = B), W ==
13252
13252
  Un++, qt ? qt = !1 : we.matcher.considerAll(), we.matcher.lastIndex = Rt;
13253
13253
  const ne = we.matcher.exec(B);
13254
13254
  if (!ne) break;
13255
- const J = B.substring(Rt, ne.index), oe = Qe(J, ne);
13255
+ const J = B.substring(Rt, ne.index), oe = Ke(J, ne);
13256
13256
  Rt = ne.index + oe;
13257
13257
  }
13258
- Qe(B.substring(Rt));
13258
+ Ke(B.substring(Rt));
13259
13259
  }
13260
13260
  return gt.finalize(), uo = gt.toHTML(), {
13261
13261
  language: D,
@@ -23292,7 +23292,7 @@ function Rx() {
23292
23292
  function It(P, q) {
23293
23293
  Array.isArray(P.illegal) && (P.illegal = _(...P.illegal));
23294
23294
  }
23295
- function Qe(P, q) {
23295
+ function Ke(P, q) {
23296
23296
  if (P.match) {
23297
23297
  if (P.begin || P.end) throw new Error("begin & end are not supported with match");
23298
23298
  P.begin = P.match, delete P.match;
@@ -23464,7 +23464,7 @@ function Rx() {
23464
23464
  yn,
23465
23465
  // do this early so compiler extensions generally don't have to worry about
23466
23466
  // the distinction between match/begin
23467
- Qe,
23467
+ Ke,
23468
23468
  Ee,
23469
23469
  Qo
23470
23470
  ].forEach((wt) => wt(ge, de)), P.compilerExtensions.forEach((wt) => wt(ge, de)), ge.__beforeBegin = null, [
@@ -23534,39 +23534,39 @@ function Rx() {
23534
23534
  ve += Z.parentNode ? Z.parentNode.className : "";
23535
23535
  const Pe = de.languageDetectRe.exec(ve);
23536
23536
  if (Pe) {
23537
- const Ke = Bn(Pe[1]);
23538
- return Ke || (Un(ht.replace("{}", Pe[1])), Un("Falling back to no-highlight mode for this block.", Z)), Ke ? Pe[1] : "no-highlight";
23537
+ const We = Bn(Pe[1]);
23538
+ return We || (Un(ht.replace("{}", Pe[1])), Un("Falling back to no-highlight mode for this block.", Z)), We ? Pe[1] : "no-highlight";
23539
23539
  }
23540
- return ve.split(/\s+/).find((Ke) => ke(Ke) || Bn(Ke));
23540
+ return ve.split(/\s+/).find((We) => ke(We) || Bn(We));
23541
23541
  }
23542
23542
  function wt(Z, ve, Pe) {
23543
- let Ke = "", At = "";
23544
- typeof ve == "object" ? (Ke = Z, Pe = ve.ignoreIllegals, At = ve.language) : (qt("10.7.0", "highlight(lang, code, ...args) has been deprecated."), qt("10.7.0", `Please use highlight(code, options) instead.
23545
- https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, Ke = ve), Pe === void 0 && (Pe = !0);
23543
+ let We = "", At = "";
23544
+ typeof ve == "object" ? (We = Z, Pe = ve.ignoreIllegals, At = ve.language) : (qt("10.7.0", "highlight(lang, code, ...args) has been deprecated."), qt("10.7.0", `Please use highlight(code, options) instead.
23545
+ https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, We = ve), Pe === void 0 && (Pe = !0);
23546
23546
  const sn = {
23547
- code: Ke,
23547
+ code: We,
23548
23548
  language: At
23549
23549
  };
23550
23550
  Vr("before:highlight", sn);
23551
23551
  const $n = sn.result ? sn.result : Xo(sn.language, sn.code, Pe);
23552
23552
  return $n.code = sn.code, Vr("after:highlight", $n), $n;
23553
23553
  }
23554
- function Xo(Z, ve, Pe, Ke) {
23554
+ function Xo(Z, ve, Pe, We) {
23555
23555
  const At = /* @__PURE__ */ Object.create(null);
23556
23556
  function sn(le, me) {
23557
23557
  return le.keywords[me];
23558
23558
  }
23559
23559
  function $n() {
23560
- if (!Te.keywords) {
23561
- Dt.addText(We);
23560
+ if (!Oe.keywords) {
23561
+ Dt.addText(qe);
23562
23562
  return;
23563
23563
  }
23564
23564
  let le = 0;
23565
- Te.keywordPatternRe.lastIndex = 0;
23566
- let me = Te.keywordPatternRe.exec(We), De = "";
23565
+ Oe.keywordPatternRe.lastIndex = 0;
23566
+ let me = Oe.keywordPatternRe.exec(qe), De = "";
23567
23567
  for (; me; ) {
23568
- De += We.substring(le, me.index);
23569
- const Fe = wn.case_insensitive ? me[0].toLowerCase() : me[0], Bt = sn(Te, Fe);
23568
+ De += qe.substring(le, me.index);
23569
+ const Fe = wn.case_insensitive ? me[0].toLowerCase() : me[0], Bt = sn(Oe, Fe);
23570
23570
  if (Bt) {
23571
23571
  const [Rn, ip] = Bt;
23572
23572
  if (Dt.addText(De), De = "", At[Fe] = (At[Fe] || 0) + 1, At[Fe] <= Jd && (jr += ip), Rn.startsWith("_"))
@@ -23577,26 +23577,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, Ke = ve), Pe
23577
23577
  }
23578
23578
  } else
23579
23579
  De += me[0];
23580
- le = Te.keywordPatternRe.lastIndex, me = Te.keywordPatternRe.exec(We);
23580
+ le = Oe.keywordPatternRe.lastIndex, me = Oe.keywordPatternRe.exec(qe);
23581
23581
  }
23582
- De += We.substring(le), Dt.addText(De);
23582
+ De += qe.substring(le), Dt.addText(De);
23583
23583
  }
23584
23584
  function Pr() {
23585
- if (We === "") return;
23585
+ if (qe === "") return;
23586
23586
  let le = null;
23587
- if (typeof Te.subLanguage == "string") {
23588
- if (!q[Te.subLanguage]) {
23589
- Dt.addText(We);
23587
+ if (typeof Oe.subLanguage == "string") {
23588
+ if (!q[Oe.subLanguage]) {
23589
+ Dt.addText(qe);
23590
23590
  return;
23591
23591
  }
23592
- le = Xo(Te.subLanguage, We, !0, Pl[Te.subLanguage]), Pl[Te.subLanguage] = /** @type {CompiledMode} */
23592
+ le = Xo(Oe.subLanguage, qe, !0, Pl[Oe.subLanguage]), Pl[Oe.subLanguage] = /** @type {CompiledMode} */
23593
23593
  le._top;
23594
23594
  } else
23595
- le = Vs(We, Te.subLanguage.length ? Te.subLanguage : null);
23596
- Te.relevance > 0 && (jr += le.relevance), Dt.__addSublanguage(le._emitter, le.language);
23595
+ le = Vs(qe, Oe.subLanguage.length ? Oe.subLanguage : null);
23596
+ Oe.relevance > 0 && (jr += le.relevance), Dt.__addSublanguage(le._emitter, le.language);
23597
23597
  }
23598
23598
  function Qt() {
23599
- Te.subLanguage != null ? Pr() : $n(), We = "";
23599
+ Oe.subLanguage != null ? Pr() : $n(), qe = "";
23600
23600
  }
23601
23601
  function _n(le, me) {
23602
23602
  le !== "" && (Dt.startScope(me), Dt.addText(le), Dt.endScope());
@@ -23610,11 +23610,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, Ke = ve), Pe
23610
23610
  continue;
23611
23611
  }
23612
23612
  const Bt = wn.classNameAliases[le[De]] || le[De], Rn = me[De];
23613
- Bt ? _n(Rn, Bt) : (We = Rn, $n(), We = ""), De++;
23613
+ Bt ? _n(Rn, Bt) : (qe = Rn, $n(), qe = ""), De++;
23614
23614
  }
23615
23615
  }
23616
23616
  function Dl(le, me) {
23617
- return le.scope && typeof le.scope == "string" && Dt.openNode(wn.classNameAliases[le.scope] || le.scope), le.beginScope && (le.beginScope._wrap ? (_n(We, wn.classNameAliases[le.beginScope._wrap] || le.beginScope._wrap), We = "") : le.beginScope._multi && (Rl(le.beginScope, me), We = "")), Te = Object.create(le, { parent: { value: Te } }), Te;
23617
+ return le.scope && typeof le.scope == "string" && Dt.openNode(wn.classNameAliases[le.scope] || le.scope), le.beginScope && (le.beginScope._wrap ? (_n(qe, wn.classNameAliases[le.beginScope._wrap] || le.beginScope._wrap), qe = "") : le.beginScope._multi && (Rl(le.beginScope, me), qe = "")), Oe = Object.create(le, { parent: { value: Oe } }), Oe;
23618
23618
  }
23619
23619
  function Nl(le, me, De) {
23620
23620
  let Fe = O(le.endRe, De);
@@ -23633,39 +23633,39 @@ https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, Ke = ve), Pe
23633
23633
  return Nl(le.parent, me, De);
23634
23634
  }
23635
23635
  function op(le) {
23636
- return Te.matcher.regexIndex === 0 ? (We += le[0], 1) : (Ls = !0, 0);
23636
+ return Oe.matcher.regexIndex === 0 ? (qe += le[0], 1) : (Ls = !0, 0);
23637
23637
  }
23638
23638
  function rp(le) {
23639
23639
  const me = le[0], De = le.rule, Fe = new t(De), Bt = [De.__beforeBegin, De["on:begin"]];
23640
23640
  for (const Rn of Bt)
23641
23641
  if (Rn && (Rn(le, Fe), Fe.isMatchIgnored))
23642
23642
  return op(me);
23643
- return De.skip ? We += me : (De.excludeBegin && (We += me), Qt(), !De.returnBegin && !De.excludeBegin && (We = me)), Dl(De, le), De.returnBegin ? 0 : me.length;
23643
+ return De.skip ? qe += me : (De.excludeBegin && (qe += me), Qt(), !De.returnBegin && !De.excludeBegin && (qe = me)), Dl(De, le), De.returnBegin ? 0 : me.length;
23644
23644
  }
23645
23645
  function sp(le) {
23646
- const me = le[0], De = ve.substring(le.index), Fe = Nl(Te, le, De);
23646
+ const me = le[0], De = ve.substring(le.index), Fe = Nl(Oe, le, De);
23647
23647
  if (!Fe)
23648
23648
  return Cl;
23649
- const Bt = Te;
23650
- Te.endScope && Te.endScope._wrap ? (Qt(), _n(me, Te.endScope._wrap)) : Te.endScope && Te.endScope._multi ? (Qt(), Rl(Te.endScope, le)) : Bt.skip ? We += me : (Bt.returnEnd || Bt.excludeEnd || (We += me), Qt(), Bt.excludeEnd && (We = me));
23649
+ const Bt = Oe;
23650
+ Oe.endScope && Oe.endScope._wrap ? (Qt(), _n(me, Oe.endScope._wrap)) : Oe.endScope && Oe.endScope._multi ? (Qt(), Rl(Oe.endScope, le)) : Bt.skip ? qe += me : (Bt.returnEnd || Bt.excludeEnd || (qe += me), Qt(), Bt.excludeEnd && (qe = me));
23651
23651
  do
23652
- Te.scope && Dt.closeNode(), !Te.skip && !Te.subLanguage && (jr += Te.relevance), Te = Te.parent;
23653
- while (Te !== Fe.parent);
23652
+ Oe.scope && Dt.closeNode(), !Oe.skip && !Oe.subLanguage && (jr += Oe.relevance), Oe = Oe.parent;
23653
+ while (Oe !== Fe.parent);
23654
23654
  return Fe.starts && Dl(Fe.starts, le), Bt.returnEnd ? 0 : me.length;
23655
23655
  }
23656
23656
  function ap() {
23657
23657
  const le = [];
23658
- for (let me = Te; me !== wn; me = me.parent)
23658
+ for (let me = Oe; me !== wn; me = me.parent)
23659
23659
  me.scope && le.unshift(me.scope);
23660
23660
  le.forEach((me) => Dt.openNode(me));
23661
23661
  }
23662
23662
  let Mr = {};
23663
23663
  function Vl(le, me) {
23664
23664
  const De = me && me[0];
23665
- if (We += le, De == null)
23665
+ if (qe += le, De == null)
23666
23666
  return Qt(), 0;
23667
23667
  if (Mr.type === "begin" && me.type === "end" && Mr.index === me.index && De === "") {
23668
- if (We += ve.slice(me.index, me.index + 1), !mt) {
23668
+ if (qe += ve.slice(me.index, me.index + 1), !mt) {
23669
23669
  const Fe = new Error(`0 width match regex (${Z})`);
23670
23670
  throw Fe.languageName = Z, Fe.badRule = Mr.rule, Fe;
23671
23671
  }
@@ -23674,35 +23674,35 @@ https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, Ke = ve), Pe
23674
23674
  if (Mr = me, me.type === "begin")
23675
23675
  return rp(me);
23676
23676
  if (me.type === "illegal" && !Pe) {
23677
- const Fe = new Error('Illegal lexeme "' + De + '" for mode "' + (Te.scope || "<unnamed>") + '"');
23678
- throw Fe.mode = Te, Fe;
23677
+ const Fe = new Error('Illegal lexeme "' + De + '" for mode "' + (Oe.scope || "<unnamed>") + '"');
23678
+ throw Fe.mode = Oe, Fe;
23679
23679
  } else if (me.type === "end") {
23680
23680
  const Fe = sp(me);
23681
23681
  if (Fe !== Cl)
23682
23682
  return Fe;
23683
23683
  }
23684
23684
  if (me.type === "illegal" && De === "")
23685
- return We += `
23685
+ return qe += `
23686
23686
  `, 1;
23687
23687
  if (js > 1e5 && js > me.index * 3)
23688
23688
  throw new Error("potential infinite loop, way more iterations than matches");
23689
- return We += De, De.length;
23689
+ return qe += De, De.length;
23690
23690
  }
23691
23691
  const wn = Bn(Z);
23692
23692
  if (!wn)
23693
23693
  throw Rt(ht.replace("{}", Z)), new Error('Unknown language: "' + Z + '"');
23694
23694
  const lp = _t(wn);
23695
- let Ms = "", Te = Ke || lp;
23695
+ let Ms = "", Oe = We || lp;
23696
23696
  const Pl = {}, Dt = new de.__emitter(de);
23697
23697
  ap();
23698
- let We = "", jr = 0, fo = 0, js = 0, Ls = !1;
23698
+ let qe = "", jr = 0, fo = 0, js = 0, Ls = !1;
23699
23699
  try {
23700
23700
  if (wn.__emitTokens)
23701
23701
  wn.__emitTokens(ve, Dt);
23702
23702
  else {
23703
- for (Te.matcher.considerAll(); ; ) {
23704
- js++, Ls ? Ls = !1 : Te.matcher.considerAll(), Te.matcher.lastIndex = fo;
23705
- const le = Te.matcher.exec(ve);
23703
+ for (Oe.matcher.considerAll(); ; ) {
23704
+ js++, Ls ? Ls = !1 : Oe.matcher.considerAll(), Oe.matcher.lastIndex = fo;
23705
+ const le = Oe.matcher.exec(ve);
23706
23706
  if (!le) break;
23707
23707
  const me = ve.substring(fo, le.index), De = Vl(me, le);
23708
23708
  fo = le.index + De;
@@ -23715,7 +23715,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, Ke = ve), Pe
23715
23715
  relevance: jr,
23716
23716
  illegal: !1,
23717
23717
  _emitter: Dt,
23718
- _top: Te
23718
+ _top: Oe
23719
23719
  };
23720
23720
  } catch (le) {
23721
23721
  if (le.message && le.message.includes("Illegal"))
@@ -23741,7 +23741,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, Ke = ve), Pe
23741
23741
  relevance: 0,
23742
23742
  errorRaised: le,
23743
23743
  _emitter: Dt,
23744
- _top: Te
23744
+ _top: Oe
23745
23745
  };
23746
23746
  throw le;
23747
23747
  }
@@ -23758,11 +23758,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, Ke = ve), Pe
23758
23758
  }
23759
23759
  function Vs(Z, ve) {
23760
23760
  ve = ve || de.languages || Object.keys(q);
23761
- const Pe = Ns(Z), Ke = ve.filter(Bn).filter(Il).map(
23761
+ const Pe = Ns(Z), We = ve.filter(Bn).filter(Il).map(
23762
23762
  (Qt) => Xo(Qt, Z, !1)
23763
23763
  );
23764
- Ke.unshift(Pe);
23765
- const At = Ke.sort((Qt, _n) => {
23764
+ We.unshift(Pe);
23765
+ const At = We.sort((Qt, _n) => {
23766
23766
  if (Qt.relevance !== _n.relevance) return _n.relevance - Qt.relevance;
23767
23767
  if (Qt.language && _n.language) {
23768
23768
  if (Bn(Qt.language).supersetOf === _n.language)
@@ -23775,8 +23775,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, Ke = ve), Pe
23775
23775
  return Pr.secondBest = $n, Pr;
23776
23776
  }
23777
23777
  function Gd(Z, ve, Pe) {
23778
- const Ke = ve && se[ve] || Pe;
23779
- Z.classList.add("hljs"), Z.classList.add(`language-${Ke}`);
23778
+ const We = ve && se[ve] || Pe;
23779
+ Z.classList.add("hljs"), Z.classList.add(`language-${We}`);
23780
23780
  }
23781
23781
  function Ps(Z) {
23782
23782
  let ve = null;
@@ -23795,7 +23795,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, Ke = ve), Pe
23795
23795
  Z.innerHTML
23796
23796
  );
23797
23797
  ve = Z;
23798
- const Ke = ve.textContent, At = Pe ? wt(Ke, { language: Pe, ignoreIllegals: !0 }) : Vs(Ke);
23798
+ const We = ve.textContent, At = Pe ? wt(We, { language: Pe, ignoreIllegals: !0 }) : Vs(We);
23799
23799
  Z.innerHTML = At.value, Z.dataset.highlighted = "yes", Gd(Z, Pe, At.language), Z.result = {
23800
23800
  language: At.language,
23801
23801
  // TODO: remove with version 11.0
@@ -23804,7 +23804,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, Ke = ve), Pe
23804
23804
  }, At.secondBest && (Z.secondBest = {
23805
23805
  language: At.secondBest.language,
23806
23806
  relevance: At.secondBest.relevance
23807
- }), Vr("after:highlightElement", { el: Z, result: At, text: Ke });
23807
+ }), Vr("after:highlightElement", { el: Z, result: At, text: We });
23808
23808
  }
23809
23809
  function Kd(Z) {
23810
23810
  de = xl(de, Z);
@@ -23830,11 +23830,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, Ke = ve), Pe
23830
23830
  let Pe = null;
23831
23831
  try {
23832
23832
  Pe = ve(P);
23833
- } catch (Ke) {
23833
+ } catch (We) {
23834
23834
  if (Rt("Language definition for '{}' could not be registered.".replace("{}", Z)), mt)
23835
- Rt(Ke);
23835
+ Rt(We);
23836
23836
  else
23837
- throw Ke;
23837
+ throw We;
23838
23838
  Pe = ge;
23839
23839
  }
23840
23840
  Pe.name || (Pe.name = Z), q[Z] = Pe, Pe.rawDefinition = ve.bind(null, P), Pe.aliases && Ol(Pe.aliases, { languageName: Z });
@@ -23879,8 +23879,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), At = Z, Ke = ve), Pe
23879
23879
  }
23880
23880
  function Vr(Z, ve) {
23881
23881
  const Pe = Z;
23882
- Ae.forEach(function(Ke) {
23883
- Ke[Pe] && Ke[Pe](ve);
23882
+ Ae.forEach(function(We) {
23883
+ We[Pe] && We[Pe](ve);
23884
23884
  });
23885
23885
  }
23886
23886
  function np(Z) {
@@ -25881,7 +25881,9 @@ ${m}${b}`;
25881
25881
  "cancel"
25882
25882
  ],
25883
25883
  setup(e, { emit: t }) {
25884
- const n = e, o = t, s = { figma: $d, sketch: zd, mastergo: Xr, other: pr, unknown: pr }, r = V(() => n.type === "ai"), a = V(() => n.type === "system"), l = V(() => {
25884
+ const n = e, o = t, s = { figma: $d, sketch: zd, mastergo: Xr, other: pr, unknown: pr }, r = V(() => n.type === "ai"), a = V(
25885
+ () => n.type === "system" || n.data?.prompt?.startsWith("O:")
25886
+ ), l = V(() => {
25885
25887
  const { status: I, content: L } = n.data;
25886
25888
  return I === "Success" && (L.includes("```vue") || L.includes("```diff"));
25887
25889
  }), c = V(
@@ -25912,7 +25914,7 @@ ${m}${b}`;
25912
25914
  ]), b = V(() => ({
25913
25915
  "is-user": n.type === "user",
25914
25916
  "is-ai": n.type === "ai",
25915
- "is-system": n.type === "system"
25917
+ "is-system": a.value
25916
25918
  })), y = V(() => n.data.reasoning ? `已经深度思考 (用时 ${Math.ceil(n.data.thinking / 1e3)} 秒)` : u.value ? "展开" : "收起"), _ = (I) => I.type === "json" && I.json ? I.dataType ? s[I.dataType] || s.other : I.json.includes("/sketch/") ? s.sketch : I.json.includes("/figma/") ? s.figma : I.json.includes("/group/") || I.json.includes("/frame/") || I.json.includes("/component/") || I.json.includes("/mastergo/") ? s.mastergo : s.other : I.image ? I.image : "", C = (I = "") => {
25917
25919
  const L = I.split("/");
25918
25920
  return L.length > 6 ? L.slice(6).join("/") : I;
@@ -27026,28 +27028,28 @@ ${m}${b}`;
27026
27028
  ref: _,
27027
27029
  class: "v-ai-widget__bubble-list"
27028
27030
  }, [
27029
- (h(!0), j(ee, null, pe(i(c), (Qe) => (h(), j(ee, {
27030
- key: Qe.id
27031
+ (h(!0), j(ee, null, pe(i(c), (Ke) => (h(), j(ee, {
27032
+ key: Ke.id
27031
27033
  }, [
27032
- Qe.toolCallId ? (h(), T(ia, {
27034
+ Ke.toolCallId || Ke.prompt?.startsWith("O:") ? (h(), T(ia, {
27033
27035
  key: 0,
27034
27036
  type: "system",
27035
- data: Qe,
27037
+ data: Ke,
27036
27038
  code: !i($)
27037
27039
  }, null, 8, ["data", "code"])) : (h(), T(ia, {
27038
27040
  key: 1,
27039
27041
  type: "user",
27040
- data: Qe
27042
+ data: Ke
27041
27043
  }, null, 8, ["data"])),
27042
27044
  v(ia, {
27043
27045
  type: "ai",
27044
- data: Qe,
27046
+ data: Ke,
27045
27047
  code: !i($),
27046
- onView: (Ct) => i(m)(Qe),
27047
- onRefresh: (Ct) => i(b)(Qe),
27048
- onApply: (Ct) => i(y)(Qe, !0),
27049
- onFix: (Ct) => i(G)(Qe),
27050
- onCancel: (Ct) => i(ft)(Qe)
27048
+ onView: (Ct) => i(m)(Ke),
27049
+ onRefresh: (Ct) => i(b)(Ke),
27050
+ onApply: (Ct) => i(y)(Ke, !0),
27051
+ onFix: (Ct) => i(G)(Ke),
27052
+ onCancel: (Ct) => i(ft)(Ke)
27051
27053
  }, null, 8, ["data", "code", "onView", "onRefresh", "onApply", "onFix", "onCancel"])
27052
27054
  ], 64))), 128)),
27053
27055
  i(c).length ? U("", !0) : (h(), T(i(rt), { key: 0 }))
@@ -27055,7 +27057,7 @@ ${m}${b}`;
27055
27057
  i(O) ? (h(), T(CC, {
27056
27058
  key: 3,
27057
27059
  modelValue: i(k),
27058
- "onUpdate:modelValue": It[0] || (It[0] = (Qe) => to(k) ? k.value = Qe : null),
27060
+ "onUpdate:modelValue": It[0] || (It[0] = (Ke) => to(k) ? k.value = Ke : null),
27059
27061
  chat: i(O),
27060
27062
  "update-chat-dsl": i(te),
27061
27063
  onApply: i(y)
@@ -27107,7 +27109,7 @@ ${m}${b}`;
27107
27109
  "modal-class": "v-ai-widget__drawer-modal",
27108
27110
  "append-to-body": !1,
27109
27111
  modelValue: Je.value,
27110
- "onUpdate:modelValue": It[1] || (It[1] = (Qe) => Je.value = Qe)
27112
+ "onUpdate:modelValue": It[1] || (It[1] = (Ke) => Je.value = Ke)
27111
27113
  }, {
27112
27114
  default: w(() => [
27113
27115
  v(i(xe), {
@@ -29895,7 +29897,7 @@ ${m}${b}`;
29895
29897
  ),
29896
29898
  r
29897
29899
  );
29898
- a.dir || (e.active(a), await Oe(t.activeDelayMs));
29900
+ a.dir || (e.active(a), await Te(t.activeDelayMs));
29899
29901
  const { name: l, title: c, layout: d, dir: f } = n;
29900
29902
  return a ? {
29901
29903
  name: l,
@@ -29944,7 +29946,7 @@ ${m}${b}`;
29944
29946
  "调用 updatePage 工具参数错误,第一个参数要求是 PageFile 对象"
29945
29947
  );
29946
29948
  const o = e.updatePage(n);
29947
- if (await Oe(t.activeDelayMs), o) {
29949
+ if (await Te(t.activeDelayMs), o) {
29948
29950
  const { name: s, title: r, layout: a, dir: l, id: c } = o;
29949
29951
  return { name: s, title: r, layout: a, dir: l, id: c };
29950
29952
  }
@@ -29979,7 +29981,7 @@ ${m}${b}`;
29979
29981
  required: !0
29980
29982
  }
29981
29983
  ],
29982
- createHandler: ({ project: e, config: t }) => async (n) => (e.removePage(n), await Oe(t.activeDelayMs), !0)
29984
+ createHandler: ({ project: e, config: t }) => async (n) => (e.removePage(n), await Te(t.activeDelayMs), !0)
29983
29985
  }, QA = {
29984
29986
  name: "getBlocks",
29985
29987
  description: "获取当前项目的全部区块组件",
@@ -30027,7 +30029,7 @@ ${m}${b}`;
30027
30029
  "调用 createBlock 工具参数错误,第一个参数要求是 BlockFile 对象"
30028
30030
  );
30029
30031
  const o = await e.createBlock(n);
30030
- e.active(o), await Oe(t.activeDelayMs);
30032
+ e.active(o), await Te(t.activeDelayMs);
30031
30033
  const { name: s, title: r, category: a } = n;
30032
30034
  return o ? {
30033
30035
  name: s,
@@ -30071,7 +30073,7 @@ ${m}${b}`;
30071
30073
  ],
30072
30074
  createHandler: ({ project: e, config: t }) => async (n) => {
30073
30075
  const o = e.updateBlock(n);
30074
- if (await Oe(t.activeDelayMs), o) {
30076
+ if (await Te(t.activeDelayMs), o) {
30075
30077
  const { name: s, title: r, id: a, category: l } = n;
30076
30078
  return {
30077
30079
  name: s,
@@ -30093,7 +30095,7 @@ ${m}${b}`;
30093
30095
  required: !0
30094
30096
  }
30095
30097
  ],
30096
- createHandler: ({ project: e, config: t }) => async (n) => (e.removeBlock(n), await Oe(t.activeDelayMs), !0)
30098
+ createHandler: ({ project: e, config: t }) => async (n) => (e.removeBlock(n), await Te(t.activeDelayMs), !0)
30097
30099
  }, eT = {
30098
30100
  name: "active",
30099
30101
  description: "打开一个文件(页面或区块组件)",
@@ -30107,7 +30109,7 @@ ${m}${b}`;
30107
30109
  ],
30108
30110
  createHandler: ({ project: e, config: t }) => async (n) => {
30109
30111
  const o = e.getFile(n);
30110
- return o ? (e.active(o), await Oe(t.activeDelayMs), !0) : null;
30112
+ return o ? (e.active(o), await Te(t.activeDelayMs), !0) : null;
30111
30113
  }
30112
30114
  }, tT = {
30113
30115
  name: "getCurrentFile",
@@ -30147,7 +30149,7 @@ ${m}${b}`;
30147
30149
  let n = null;
30148
30150
  return e.provider.errorHandler = (o) => {
30149
30151
  n = o;
30150
- }, e.simulator.refresh(), await Oe(t.activeDelayMs), e.provider.errorHandler = null, n ? `运行时报错:
30152
+ }, e.simulator.refresh(), await Te(t.activeDelayMs), await Te(1e3), e.provider.errorHandler = null, n ? `运行时报错:
30151
30153
  ${n.message}
30152
30154
  请检查页面代码并修复` : !0;
30153
30155
  }
@@ -30185,7 +30187,7 @@ ${n.message}
30185
30187
  createHandler({ project: e, config: t }) {
30186
30188
  return async (n) => {
30187
30189
  const o = e.setApi(n);
30188
- return await Oe(t.activeDelayMs), o;
30190
+ return await Te(t.activeDelayMs), o;
30189
30191
  };
30190
30192
  }
30191
30193
  }, sT = {
@@ -30193,7 +30195,7 @@ ${n.message}
30193
30195
  description: "获取当前项目可用的APIs",
30194
30196
  parameters: [],
30195
30197
  createHandler({ project: e, config: t }) {
30196
- return async () => (await Oe(t.activeDelayMs), e.apis);
30198
+ return async () => (await Te(t.activeDelayMs), e.apis);
30197
30199
  }
30198
30200
  }, aT = {
30199
30201
  name: "removeApi",
@@ -30206,7 +30208,7 @@ ${n.message}
30206
30208
  required: !0
30207
30209
  }
30208
30210
  ],
30209
- createHandler: ({ project: e, config: t }) => async (n) => (e.removeApi(n), await Oe(t.activeDelayMs), !0)
30211
+ createHandler: ({ project: e, config: t }) => async (n) => (e.removeApi(n), await Te(t.activeDelayMs), !0)
30210
30212
  }, lT = {
30211
30213
  name: "removeApis",
30212
30214
  description: "批量删除API",
@@ -30225,7 +30227,7 @@ ${n.message}
30225
30227
  createHandler: ({ project: e, config: t }) => async (n = []) => {
30226
30228
  for (const o of n)
30227
30229
  e.removeApi(o);
30228
- return await Oe(t.activeDelayMs), !0;
30230
+ return await Te(t.activeDelayMs), !0;
30229
30231
  }
30230
30232
  }, iT = {
30231
30233
  name: "setHomepage",
@@ -30238,7 +30240,7 @@ ${n.message}
30238
30240
  required: !0
30239
30241
  }
30240
30242
  ],
30241
- createHandler: ({ project: e, config: t }) => async (n) => (e.setHomepage(n), await Oe(t.activeDelayMs), !0)
30243
+ createHandler: ({ project: e, config: t }) => async (n) => (e.setHomepage(n), await Te(t.activeDelayMs), !0)
30242
30244
  }, cT = {
30243
30245
  name: "setGlobalCss",
30244
30246
  description: "设置应用的全局css代码",
@@ -30250,13 +30252,13 @@ ${n.message}
30250
30252
  required: !0
30251
30253
  }
30252
30254
  ],
30253
- createHandler: ({ project: e, config: t }) => async (n) => (e.platform === "uniapp" ? e.setUniConfig("css", n) : e.setGloblas("css", n), await Oe(t.activeDelayMs), !0)
30255
+ createHandler: ({ project: e, config: t }) => async (n) => (e.platform === "uniapp" ? e.setUniConfig("css", n) : e.setGloblas("css", n), await Te(t.activeDelayMs), !0)
30254
30256
  }, uT = {
30255
30257
  name: "getGlobalCss",
30256
30258
  description: "获取应用的全局css代码",
30257
30259
  parameters: [],
30258
30260
  createHandler: ({ project: e, config: t }) => async () => {
30259
- if (await Oe(t.activeDelayMs), e.platform === "uniapp")
30261
+ if (await Te(t.activeDelayMs), e.platform === "uniapp")
30260
30262
  e.uniConfig.css;
30261
30263
  else
30262
30264
  return e.globals.css || "没有全局CSS";
@@ -30295,12 +30297,12 @@ store的代码是一个js函数,函数接收的app参数是 Vue的应用实例
30295
30297
  createHandler: ({ project: e, config: t }) => async (n) => (e.setGloblas("store", {
30296
30298
  type: "JSFunction",
30297
30299
  value: n
30298
- }), await Oe(t.activeDelayMs), !0)
30300
+ }), await Te(t.activeDelayMs), !0)
30299
30301
  }, pT = {
30300
30302
  name: "getGlobalStore",
30301
30303
  description: "获取应用的全局状态(Pinia Store)",
30302
30304
  parameters: [],
30303
- createHandler: ({ project: e, config: t }) => async () => (await Oe(t.activeDelayMs), e.globals.store?.value || "当前没有配置全局状态")
30305
+ createHandler: ({ project: e, config: t }) => async () => (await Te(t.activeDelayMs), e.globals.store?.value || "当前没有配置全局状态")
30304
30306
  }, fT = {
30305
30307
  name: "setGlobalAccess",
30306
30308
  description: `设置权限控制插件配置项, 配置样例:
@@ -30335,17 +30337,17 @@ store的代码是一个js函数,函数接收的app参数是 Vue的应用实例
30335
30337
  createHandler: ({ project: e, config: t }) => async (n) => (e.setGloblas("access", {
30336
30338
  type: "JSFunction",
30337
30339
  value: n
30338
- }), await Oe(t.activeDelayMs), !0)
30340
+ }), await Te(t.activeDelayMs), !0)
30339
30341
  }, gT = {
30340
30342
  name: "getGlobalAccess",
30341
30343
  description: "查看权限控制插件配置项",
30342
30344
  parameters: [],
30343
- createHandler: ({ project: e, config: t }) => async () => (await Oe(t.activeDelayMs), e.globals.access?.value || "当前没有配置权限控制插件")
30345
+ createHandler: ({ project: e, config: t }) => async () => (await Te(t.activeDelayMs), e.globals.access?.value || "当前没有配置权限控制插件")
30344
30346
  }, mT = {
30345
30347
  name: "getGlobalAxios",
30346
30348
  description: "查看Axios请求工具配置项",
30347
30349
  parameters: [],
30348
- createHandler: ({ project: e, config: t }) => async () => (await Oe(t.activeDelayMs), e.globals.axios?.value || "当前没有配置请求工具")
30350
+ createHandler: ({ project: e, config: t }) => async () => (await Te(t.activeDelayMs), e.globals.axios?.value || "当前没有配置请求工具")
30349
30351
  }, hT = {
30350
30352
  name: "setGlobalAxios",
30351
30353
  description: `
@@ -30382,7 +30384,7 @@ store的代码是一个js函数,函数接收的app参数是 Vue的应用实例
30382
30384
  createHandler: ({ project: e, config: t }) => async (n) => (e.setGloblas("axios", {
30383
30385
  type: "JSFunction",
30384
30386
  value: n
30385
- }), await Oe(t.activeDelayMs), !0)
30387
+ }), await Te(t.activeDelayMs), !0)
30386
30388
  }, vT = {
30387
30389
  name: "setGlobalRequestInterceptor",
30388
30390
  description: `设置全局Axios全局请求拦截器, 代码样例:
@@ -30411,12 +30413,12 @@ axios请求拦截的代码是一个js函数,函数接收两个参数:
30411
30413
  createHandler: ({ project: e, config: t }) => async (n) => (e.setGloblas("request", {
30412
30414
  type: "JSFunction",
30413
30415
  value: n
30414
- }), await Oe(t.activeDelayMs), !0)
30416
+ }), await Te(t.activeDelayMs), !0)
30415
30417
  }, bT = {
30416
30418
  name: "getGlobalRequestInterceptor",
30417
30419
  description: "查看全局Axios全局请求拦截器",
30418
30420
  parameters: [],
30419
- createHandler: ({ project: e, config: t }) => async () => (await Oe(t.activeDelayMs), e.globals.request?.value || "当前没有配置请求拦截器")
30421
+ createHandler: ({ project: e, config: t }) => async () => (await Te(t.activeDelayMs), e.globals.request?.value || "当前没有配置请求拦截器")
30420
30422
  }, yT = {
30421
30423
  name: "setGlobalResponseInterceptor",
30422
30424
  description: `设置全局Axios全局响应拦截器, 代码样例:
@@ -30445,22 +30447,22 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30445
30447
  createHandler: ({ project: e, config: t }) => async (n) => (e.setGloblas("response", {
30446
30448
  type: "JSFunction",
30447
30449
  value: n
30448
- }), await Oe(t.activeDelayMs), !0)
30450
+ }), await Te(t.activeDelayMs), !0)
30449
30451
  }, _T = {
30450
30452
  name: "getGlobalResponseInterceptor",
30451
30453
  description: "查看全局Axios全局响应拦截器",
30452
30454
  parameters: [],
30453
- createHandler: ({ project: e, config: t }) => async () => (await Oe(t.activeDelayMs), e.globals.response?.value || "当前没有配置响应拦截器")
30455
+ createHandler: ({ project: e, config: t }) => async () => (await Te(t.activeDelayMs), e.globals.response?.value || "当前没有配置响应拦截器")
30454
30456
  }, wT = {
30455
30457
  name: "getGlobalBeforeEach",
30456
30458
  description: "查看全局前置路由守卫",
30457
30459
  parameters: [],
30458
- createHandler: ({ project: e, config: t }) => async () => (await Oe(t.activeDelayMs), e.globals.beforeEach?.value || "当前没有全局前置路由守卫")
30460
+ createHandler: ({ project: e, config: t }) => async () => (await Te(t.activeDelayMs), e.globals.beforeEach?.value || "当前没有全局前置路由守卫")
30459
30461
  }, ET = {
30460
30462
  name: "getGlobalAfterEach",
30461
30463
  description: "查看全局后置路由守卫",
30462
30464
  parameters: [],
30463
- createHandler: ({ project: e, config: t }) => async () => (await Oe(t.activeDelayMs), e.globals.afterEach?.value || "当前没有全局后置路由守卫")
30465
+ createHandler: ({ project: e, config: t }) => async () => (await Te(t.activeDelayMs), e.globals.afterEach?.value || "当前没有全局后置路由守卫")
30464
30466
  }, kT = {
30465
30467
  name: "setGlobalBeforeEach",
30466
30468
  description: `设置全局前置路由守卫, 代码样例:
@@ -30491,7 +30493,7 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30491
30493
  createHandler: ({ project: e, config: t }) => async (n) => (e.setGloblas("beforeEach", {
30492
30494
  type: "JSFunction",
30493
30495
  value: n
30494
- }), await Oe(t.activeDelayMs), !0)
30496
+ }), await Te(t.activeDelayMs), !0)
30495
30497
  }, ST = {
30496
30498
  name: "setGlobalAfterEach",
30497
30499
  description: `设置全局后置路由守卫, 代码样例:
@@ -30522,7 +30524,7 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30522
30524
  createHandler: ({ project: e, config: t }) => async (n) => (e.setGloblas("afterEach", {
30523
30525
  type: "JSFunction",
30524
30526
  value: n
30525
- }), await Oe(t.activeDelayMs), !0)
30527
+ }), await Te(t.activeDelayMs), !0)
30526
30528
  }, xT = {
30527
30529
  name: "getNodeSelected",
30528
30530
  description: "获取当前页面选中的节点路径,用于定位当前选中的页面元素,路径最后一个是选中的元素名称",
@@ -31406,7 +31408,7 @@ class BT {
31406
31408
  this.setSelected(null), this.setHover(null), this.setDragging(null), this.setDropping(null);
31407
31409
  }
31408
31410
  async updateRect() {
31409
- await Oe(100);
31411
+ await Te(100);
31410
31412
  const t = i(this.selected), n = i(this.hover);
31411
31413
  if (t) {
31412
31414
  const o = t.el.getBoundingClientRect();
@@ -31428,7 +31430,7 @@ class BT {
31428
31430
  this.lines.value = [];
31429
31431
  return;
31430
31432
  }
31431
- await Oe(100);
31433
+ await Te(100);
31432
31434
  const t = this.engine.simulator.renderer?.context?.__refs || {}, n = [], o = Object.keys(Vo.nodes);
31433
31435
  for (const s of o) {
31434
31436
  const r = t[s];
@@ -32694,11 +32696,11 @@ class KO extends rc {
32694
32696
  if (r || (r = a[0]?.id), !o || !s || !r) return;
32695
32697
  const l = o.getPage(r);
32696
32698
  l && !l.raw && (s.regionRef?.setActive("Pages"), this.simulator.ready(async () => {
32697
- o.active(l), await Oe(1e3), this.simulator.designer.value?.setSelected(this.current.value);
32699
+ o.active(l), await Te(1e3), this.simulator.designer.value?.setSelected(this.current.value);
32698
32700
  }));
32699
32701
  const c = o.getBlock(r);
32700
32702
  c && (s.regionRef?.setActive("Blocks"), this.simulator?.ready(async () => {
32701
- o.active(c), await Oe(1e3), this.simulator.designer.value?.setSelected(this.current.value);
32703
+ o.active(c), await Te(1e3), this.simulator.designer.value?.setSelected(this.current.value);
32702
32704
  }));
32703
32705
  }
32704
32706
  }
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as e, a as E, b as r, c as t, d as n, C as i, D as S, e as _, E as o, f as I, g as T, h as O, G as l, H as d, i as p, j as g, K as V, M as R, k as A, l as D, N, m as P, O as L, P as M, n as c, R as u, o as K, p as m, q as Y, S as b, r as B, s as G, t as U, u as W, v as y, w as F, x as f, y as k, z as w, T as x, B as C, F as H, V as X, I as J, J as Z, L as h, Q as j, U as v, W as z, X as q, Y as Q, Z as $, $ as aa, a0 as sa, a1 as ea, a2 as Ea, a3 as ra, a4 as ta, a5 as na, a6 as ia, a7 as Sa, a8 as _a, a9 as oa, aa as Ia, ab as Ta, ac as Oa, ad as la, ae as da, af as pa, ag as ga, ah as Va, ai as Ra, aj as Aa, ak as Da, al as Na, am as Pa, an as La, ao as Ma } from "./index-DG8u25C9.js";
1
+ import { A as e, a as E, b as r, c as t, d as n, C as i, D as S, e as _, E as o, f as I, g as T, h as O, G as l, H as d, i as p, j as g, K as V, M as R, k as A, l as D, N, m as P, O as L, P as M, n as c, R as u, o as K, p as m, q as Y, S as b, r as B, s as G, t as U, u as W, v as y, w as F, x as f, y as k, z as w, T as x, B as C, F as H, V as X, I as J, J as Z, L as h, Q as j, U as v, W as z, X as q, Y as Q, Z as $, $ as aa, a0 as sa, a1 as ea, a2 as Ea, a3 as ra, a4 as ta, a5 as na, a6 as ia, a7 as Sa, a8 as _a, a9 as oa, aa as Ia, ab as Ta, ac as Oa, ad as la, ae as da, af as pa, ag as ga, ah as Va, ai as Ra, aj as Aa, ak as Da, al as Na, am as Pa, an as La, ao as Ma } from "./index-CXlJx_CB.js";
2
2
  export {
3
3
  e as API_METHOD_TYPES,
4
4
  E as ActionMenu,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/designer",
3
3
  "private": false,
4
- "version": "0.16.23",
4
+ "version": "0.16.25",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "低代码引擎",
@@ -29,12 +29,12 @@
29
29
  "marked": "~17.0.1",
30
30
  "mockjs": "~1.1.0",
31
31
  "monaco-editor": "~0.55.0",
32
- "@vtj/icons": "~0.16.23",
33
- "@vtj/core": "~0.16.23",
34
- "@vtj/uni": "~0.16.23",
35
- "@vtj/utils": "~0.16.23",
36
- "@vtj/renderer": "~0.16.23",
37
- "@vtj/ui": "~0.16.23"
32
+ "@vtj/core": "~0.16.25",
33
+ "@vtj/icons": "~0.16.25",
34
+ "@vtj/utils": "~0.16.25",
35
+ "@vtj/ui": "~0.16.25",
36
+ "@vtj/renderer": "~0.16.25",
37
+ "@vtj/uni": "~0.16.25"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/mockjs": "~1.0.10",
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/designer
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.16.22
5
+ * @version 0.16.24
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.16.22";
8
+ export declare const version = "0.16.24";
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./index-DG8u25C9.js";
2
- export {
3
- f as default
4
- };