@opentiny/tiny-engine-plugin-bridge 1.0.3 → 2.0.0-alpha.1

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/dist/index.js CHANGED
@@ -1,19 +1,17 @@
1
1
  import "./style.css";
2
- import { reactive as j, ref as V, watchEffect as $, resolveComponent as l, openBlock as h, createElementBlock as x, createElementVNode as v, createVNode as s, Fragment as ce, renderList as le, normalizeClass as ie, withModifiers as Q, toDisplayString as w, createCommentVNode as T, pushScopeId as ee, popScopeId as te, computed as C, watch as de, onMounted as pe, createBlock as R, withCtx as r, withDirectives as ue, vShow as me, createTextVNode as k, nextTick as _e } from "vue";
3
- import { Search as ge, Form as ye, Input as fe, Button as ve, FormItem as he, Checkbox as be, Switch as Ee, Tooltip as Re, RadioGroup as Ce, Radio as Te, Tabs as Ve, TabItem as Se } from "@opentiny/vue";
4
- import { PluginSetting as Ue, VueMonaco as ke, SvgButton as ne, PluginPanel as Ie, LinkButton as xe } from "@opentiny/tiny-engine-common";
5
- import { useApp as S, useResource as N, useNotify as B, useModal as we, getGlobalConfig as Ne, useHelp as Be } from "@opentiny/tiny-engine-controller";
6
- import { isVsCodeEnv as oe } from "@opentiny/tiny-engine-common/js/environments";
7
- import { updateUtils as X, deleteUtils as Oe } from "@opentiny/tiny-engine-canvas";
8
- import { useHttp as Pe } from "@opentiny/tiny-engine-http";
9
- import { generateBridge as Le, generateUtil as Fe } from "@opentiny/tiny-engine-common/js/vscodeGenerateFile";
10
- import { iconUnknow as Ae } from "@opentiny/vue-icon";
11
- import { theme as De } from "@opentiny/tiny-engine-controller/adapter";
12
- const P = Pe(), Ye = (t, n) => P.get(`/app-center/api/apps/extension/list?app=${t}&category=${n}`), Ge = (t) => P.post("/app-center/api/apps/extension/create", t), Me = (t) => P.post("/app-center/api/apps/extension/update", t), qe = (t) => P.get(`/app-center/api/apps/extension/delete?${t}`), ze = (t) => {
13
- P.get(`/app-center/api/apps/schema/${t}`).then((n) => {
14
- Le(n.bridge), Fe(n.utils);
2
+ import { reactive as j, ref as T, watchEffect as X, resolveComponent as i, openBlock as h, createElementBlock as L, createElementVNode as f, createVNode as s, withCtx as l, Fragment as ae, renderList as se, normalizeClass as re, withModifiers as K, toDisplayString as w, computed as C, watch as le, onMounted as ie, createBlock as R, withDirectives as ce, vShow as de, createTextVNode as S, createCommentVNode as U, nextTick as pe } from "vue";
3
+ import { Search as ue, Form as me, Input as ge, Button as _e, FormItem as ye, Checkbox as fe, Switch as ve, Tooltip as he, RadioGroup as be, Radio as Ee, Tabs as Re, TabItem as Ce } from "@opentiny/vue";
4
+ import { SearchEmpty as Te, PluginSetting as Ve, VueMonaco as Se, SvgButton as Z, PluginPanel as Ue, LinkButton as ke } from "@opentiny/tiny-engine-common";
5
+ import { useApp as x, useCanvas as $, useResource as I, useNotify as N, useModal as xe, getMergeMeta as we, useHelp as Ie } from "@opentiny/tiny-engine-meta-register";
6
+ import { isVsCodeEnv as ee } from "@opentiny/tiny-engine-common/js/environments";
7
+ import { useHttp as Ne } from "@opentiny/tiny-engine-http";
8
+ import { generateBridge as Be, generateUtil as Oe } from "@opentiny/tiny-engine-common/js/vscodeGenerateFile";
9
+ import { iconSearch as Pe, iconUnknow as Le } from "@opentiny/vue-icon";
10
+ const O = Ne(), Ae = (n, t) => O.get(`/app-center/api/apps/extension/list?app=${n}&category=${t}`), Fe = (n) => O.post("/app-center/api/apps/extension/create", n), De = (n) => O.post("/app-center/api/apps/extension/update", n), Me = (n) => O.get(`/app-center/api/apps/extension/delete?${n}`), Ye = (n) => {
11
+ O.get(`/app-center/api/apps/schema/${n}`).then((t) => {
12
+ Be(t.bridge), Oe(t.utils);
15
13
  });
16
- }, i = j({
14
+ }, d = j({
17
15
  actionType: "",
18
16
  type: "",
19
17
  category: "",
@@ -21,8 +19,8 @@ const P = Pe(), Ye = (t, n) => P.get(`/app-center/api/apps/extension/list?app=${
21
19
  resources: [],
22
20
  resourceNames: {},
23
21
  refresh: !1,
24
- id: S().appInfoState.selectedId
25
- }), Z = {
22
+ id: ""
23
+ }), Q = {
26
24
  name: "",
27
25
  type: "npm",
28
26
  content: {
@@ -33,7 +31,7 @@ const P = Pe(), Ye = (t, n) => P.get(`/app-center/api/apps/extension/list?app=${
33
31
  destructuring: !0,
34
32
  main: ""
35
33
  }
36
- }, He = {
34
+ }, qe = {
37
35
  name: "",
38
36
  type: "function",
39
37
  content: {
@@ -43,66 +41,69 @@ const P = Pe(), Ye = (t, n) => P.get(`/app-center/api/apps/extension/list?app=${
43
41
  }, E = {
44
42
  Util: "utils",
45
43
  Bridge: "bridge"
46
- }, F = {
44
+ }, A = {
47
45
  Npm: "npm",
48
46
  Function: "function"
49
- }, je = {
47
+ }, Ge = {
50
48
  [E.Util]: "新建工具类",
51
49
  [E.Bridge]: "新建桥接源"
52
- }, O = {
50
+ }, B = {
53
51
  Read: "read",
54
52
  Edit: "edit"
55
- }, Je = (t) => i.resourceNames[t], We = (t, n) => {
56
- i.resourceNames[t] = n;
57
- }, Ke = (t) => {
58
- const n = S().appInfoState.selectedId;
59
- return Ye(n, t);
60
- }, M = () => i.actionType, D = (t) => {
61
- i.actionType = t;
62
- }, Qe = () => i.resource, Y = (t = Z) => {
63
- t || (t = i.category === F.Function ? He : Z), i.resource = t;
64
- }, A = () => i.type, q = (t) => {
65
- i.type = t;
66
- }, z = (t) => {
67
- i.category = t;
68
- }, G = () => i.category, H = (...t) => {
69
- oe && ze(...t);
70
- }, Xe = (t, n, d) => {
71
- M() === O.Edit ? (t.id = i.resource.id, Me(t).then((e) => {
72
- if (e) {
73
- const o = N().resState[t.category].findIndex((g) => g.name === e.name);
74
- N().resState[t.category][o] = e, X([e]), H(S().appInfoState.selectedId), B({
53
+ }, ze = (n) => d.resourceNames[n], He = (n, t) => {
54
+ d.resourceNames[n] = t;
55
+ }, je = (n) => {
56
+ const t = x().appInfoState.selectedId;
57
+ return Ae(t, n);
58
+ }, q = () => d.actionType, D = (n) => {
59
+ d.actionType = n;
60
+ }, Je = () => d.resource, M = (n = Q) => {
61
+ n || (n = d.category === A.Function ? qe : Q), d.resource = n;
62
+ }, F = () => d.type, G = (n) => {
63
+ d.type = n;
64
+ }, z = (n) => {
65
+ d.category = n;
66
+ }, Y = () => d.category, H = (...n) => {
67
+ ee && Ye(...n);
68
+ }, We = (n, t, p) => {
69
+ const { updateUtils: e } = $().canvasApi.value;
70
+ q() === B.Edit ? (n.id = d.resource.id, De(n).then((o) => {
71
+ if (o) {
72
+ const _ = I().resState[n.category].findIndex((m) => m.name === o.name);
73
+ I().resState[n.category][_] = o, e([o]), H(x().appInfoState.selectedId), N({
75
74
  type: "success",
76
75
  message: "修改成功"
77
- }), d("refresh", i.type), i.refresh = !0, n();
76
+ }), p("refresh", d.type), d.refresh = !0, t();
78
77
  }
79
- })) : Ge(t).then((e) => {
80
- e && (N().resState[t.category].push(e), X([e]), H(S().appInfoState.selectedId), B({
78
+ })) : Fe(n).then((o) => {
79
+ o && (I().resState[n.category].push(o), e([o]), H(x().appInfoState.selectedId), N({
81
80
  type: "success",
82
81
  message: "创建成功"
83
- }), d("refresh", i.type), i.refresh = !0, n());
82
+ }), p("refresh", d.type), d.refresh = !0, t());
84
83
  });
85
- }, Ze = (t, n, d) => {
86
- var o;
87
- const e = `app=${S().appInfoState.selectedId}&id=${(o = i.resource) == null ? void 0 : o.id}`;
88
- qe(e).then((g) => {
89
- if (g) {
90
- const y = N().resState[i.type].findIndex((f) => f.name === g.name);
91
- N().resState[i.type].splice(y, 1), Oe([g]), H(S().appInfoState.selectedId), B({
84
+ }, Ke = (n, t, p) => {
85
+ var _;
86
+ const e = `app=${x().appInfoState.selectedId}&id=${(_ = d.resource) == null ? void 0 : _.id}`, { deleteUtils: o } = $().canvasApi.value;
87
+ Me(e).then((m) => {
88
+ if (m) {
89
+ const v = I().resState[d.type].findIndex((y) => y.name === m.name);
90
+ I().resState[d.type].splice(v, 1), o([m]), H(x().appInfoState.selectedId), N({
92
91
  type: "success",
93
92
  message: "删除成功"
94
- }), d("refresh", i.type), i.refresh = !0, n();
93
+ }), p("refresh", d.type), d.refresh = !0, t();
95
94
  }
96
95
  });
97
96
  };
98
- const J = (t, n) => {
99
- const d = t.__vccOpts || t;
100
- for (const [e, o] of n)
101
- d[e] = o;
102
- return d;
103
- }, $e = {
97
+ const J = (n, t) => {
98
+ const p = n.__vccOpts || n;
99
+ for (const [e, o] of t)
100
+ p[e] = o;
101
+ return p;
102
+ }, Qe = {
104
103
  components: {
105
- TinySearch: ge
104
+ TinySearch: ue,
105
+ TinyIconSearch: Pe(),
106
+ SearchEmpty: Te
106
107
  },
107
108
  props: {
108
109
  name: {
@@ -111,158 +112,151 @@ const J = (t, n) => {
111
112
  }
112
113
  },
113
114
  emits: ["open"],
114
- setup(t, { emit: n }) {
115
- const d = V([]), e = j({
115
+ setup(n, { emit: t }) {
116
+ const p = T([]), e = j({
116
117
  resourceList: [],
117
118
  activeIndex: -1,
118
119
  searchValue: ""
119
- }), o = (a = e.resourceList, u = e.searchValue) => a.filter((c) => c.name.toLowerCase().indexOf(u.toLowerCase()) > -1), g = async (a) => {
120
- e.resourceList = await Ke(a), We(
120
+ }), o = (a = e.resourceList, c = e.searchValue) => a.filter((r) => r.name.toLowerCase().indexOf(c.toLowerCase()) > -1), _ = async (a) => {
121
+ e.resourceList = await je(a), He(
121
122
  a,
122
- Array.isArray(e.resourceList) ? e.resourceList.map((u) => u.name) : []
123
- ), d.value = o(e.resourceList);
123
+ Array.isArray(e.resourceList) ? e.resourceList.map((c) => c.name) : []
124
+ ), p.value = o(e.resourceList);
124
125
  };
125
- return $(async () => {
126
- g(t.name);
126
+ return X(async () => {
127
+ _(n.name);
127
128
  }), {
128
129
  state: e,
129
- list: d,
130
+ list: p,
130
131
  add: (a) => {
131
- D(""), q(t.name), Y(""), z(a), n("open");
132
+ D(""), G(n.name), M(""), z(a), t("open");
132
133
  },
133
- openRead: (a, u) => {
134
- e.activeIndex = u, Y(a), D(O.Edit), n("open");
134
+ openRead: (a, c) => {
135
+ e.activeIndex = c, M(a), D(B.Edit), t("open");
135
136
  },
136
- openEdit: (a, u) => {
137
- e.activeIndex = u, Y(a), D(O.Edit), q(t.name), z(a.type), n("open");
137
+ openEdit: (a, c) => {
138
+ e.activeIndex = c, M(a), D(B.Edit), G(n.name), z(a.type), t("open");
138
139
  },
139
- refresh: g,
140
- getType: A,
140
+ refresh: _,
141
+ getType: F,
141
142
  RESOURCE_TYPE: E,
142
143
  searchBridgeData: (a) => {
143
- d.value = o(e.resourceList, a);
144
+ p.value = o(e.resourceList, a);
144
145
  }
145
146
  };
146
147
  }
147
- }, et = (t) => (ee("data-v-70da6acf"), t = t(), te(), t), tt = { class: "manage-panel" }, nt = { class: "manage-panel-search" }, ot = { class: "list" }, at = ["onClick"], st = { class: "item-label" }, rt = {
148
- key: 0,
149
- class: "empty-wrap"
150
- }, ct = /* @__PURE__ */ et(() => /* @__PURE__ */ v("p", { class: "empty-text" }, "暂无数据", -1));
151
- function lt(t, n, d, e, o, g) {
152
- const y = l("tiny-search"), f = l("svg-icon");
153
- return h(), x("div", tt, [
154
- v("div", nt, [
155
- s(y, {
148
+ }, Xe = { class: "manage-panel" }, Ze = { class: "manage-panel-search" }, $e = { class: "list" }, et = ["onClick"], tt = { class: "item-label" };
149
+ function nt(n, t, p, e, o, _) {
150
+ const m = i("tiny-icon-search"), v = i("tiny-search"), y = i("svg-icon"), b = i("search-empty");
151
+ return h(), L("div", Xe, [
152
+ f("div", Ze, [
153
+ s(v, {
156
154
  modelValue: e.state.searchValue,
157
155
  "onUpdate:modelValue": [
158
- n[0] || (n[0] = (_) => e.state.searchValue = _),
156
+ t[0] || (t[0] = (a) => e.state.searchValue = a),
159
157
  e.searchBridgeData
160
158
  ],
161
159
  clearable: "",
162
160
  placeholder: "请输入关键字搜索"
163
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
161
+ }, {
162
+ prefix: l(() => [
163
+ s(m)
164
+ ]),
165
+ _: 1
166
+ }, 8, ["modelValue", "onUpdate:modelValue"])
164
167
  ]),
165
- v("div", ot, [
166
- (h(!0), x(ce, null, le(e.list, (_, b) => (h(), x("div", {
167
- key: _.name,
168
- class: ie(["list-item", b === e.state.activeIndex ? "active" : ""]),
169
- onClick: Q((a) => e.openEdit(_, b), ["stop"])
168
+ f("div", $e, [
169
+ (h(!0), L(ae, null, se(e.list, (a, c) => (h(), L("div", {
170
+ key: a.name,
171
+ class: re(["list-item", c === e.state.activeIndex ? "active" : ""]),
172
+ onClick: K((r) => e.openEdit(a, c), ["stop"])
170
173
  }, [
171
- s(f, { name: "resources" }),
172
- v("div", st, w(_.name), 1),
173
- s(f, {
174
+ s(y, { name: "resources" }),
175
+ f("div", tt, w(a.name), 1),
176
+ s(y, {
174
177
  class: "setting-icon",
175
178
  name: "setting",
176
- onClick: Q((a) => e.openEdit(_, b), ["stop"])
179
+ onClick: K((r) => e.openEdit(a, c), ["stop"])
177
180
  }, null, 8, ["onClick"])
178
- ], 10, at))), 128)),
179
- e.list.length ? T("", !0) : (h(), x("div", rt, [
180
- s(f, {
181
- class: "empty-icon",
182
- name: "empty"
183
- }),
184
- ct
185
- ]))
181
+ ], 10, et))), 128)),
182
+ s(b, {
183
+ isShow: !e.list.length
184
+ }, null, 8, ["isShow"])
186
185
  ])
187
186
  ]);
188
187
  }
189
- const it = /* @__PURE__ */ J($e, [["render", lt], ["__scopeId", "data-v-70da6acf"]]);
190
- const W = V(!1), dt = () => {
191
- W.value = !0, _e(() => window.dispatchEvent(new Event("resize")));
192
- }, I = () => {
188
+ const ot = /* @__PURE__ */ J(Qe, [["render", nt], ["__scopeId", "data-v-ddac9b90"]]);
189
+ const W = T(!1), at = () => {
190
+ W.value = !0, pe(() => window.dispatchEvent(new Event("resize")));
191
+ }, k = () => {
193
192
  W.value = !1;
194
- }, pt = {
193
+ }, st = {
195
194
  components: {
196
- TinyForm: ye,
197
- TinyInput: fe,
198
- TinyButton: ve,
199
- TinyFormItem: he,
200
- TinyCheckbox: be,
201
- PluginSetting: Ue,
202
- TinySwitch: Ee,
203
- MonacoEditor: ke,
204
- IconUnknow: Ae(),
205
- TinyTooltip: Re,
206
- TinyRadioGroup: Ce,
207
- TinyRadio: Te,
208
- SvgButton: ne
195
+ TinyForm: me,
196
+ TinyInput: ge,
197
+ TinyButton: _e,
198
+ TinyFormItem: ye,
199
+ TinyCheckbox: fe,
200
+ PluginSetting: Ve,
201
+ TinySwitch: ve,
202
+ MonacoEditor: Se,
203
+ IconUnknow: Le(),
204
+ TinyTooltip: he,
205
+ TinyRadioGroup: be,
206
+ TinyRadio: Ee,
207
+ SvgButton: Z
209
208
  },
210
- setup(t, { emit: n }) {
211
- const d = {
212
- theme: De(),
213
- roundedSelection: !0,
214
- automaticLayout: !0,
215
- autoIndent: !0,
216
- formatOnPaste: !0,
209
+ setup(n, { emit: t }) {
210
+ const p = {
217
211
  language: "javascript",
218
212
  mouseStyle: "default",
219
213
  minimap: { enabled: !1 },
220
214
  // 禁用滚动条边边一直显示的边框
221
215
  overviewRulerBorder: !1,
222
216
  renderLineHighlightOnlyWhenFocus: !0
223
- }, { confirm: e } = we(), o = j({
224
- resource: C(() => Qe()),
217
+ }, { confirm: e } = xe(), o = j({
218
+ resource: C(() => Je()),
225
219
  name: "",
226
220
  value: "",
227
221
  content: {},
228
- status: C(() => M() === O.Edit),
229
- category: C(() => G() === F.Npm),
222
+ status: C(() => q() === B.Edit),
223
+ category: C(() => Y() === A.Npm),
230
224
  mode: C(() => {
231
- var c;
232
- return ((c = Ne()) == null ? void 0 : c.dslMode) !== "Vue";
225
+ var r;
226
+ return ((r = we("engine.config")) == null ? void 0 : r.dslMode) !== "Vue";
233
227
  }),
234
228
  isInstance: !1,
235
229
  title: C(() => {
236
- const c = M() === O.Edit ? "编辑" : "添加", m = A() === E.Bridge ? "桥接源" : "工具类";
237
- return c + m;
230
+ const r = q() === B.Edit ? "编辑" : "添加", g = F() === E.Bridge ? "桥接源" : "工具类";
231
+ return r + g;
238
232
  }),
239
- type: F.Npm
240
- }), g = C(() => {
241
- const c = o.name || "name";
242
- let m = c;
243
- o.content.destructuring && (o.name && o.name === o.content.exportName ? m = `{ ${o.content.exportName || "exportName"} }` : m = `{ ${o.content.exportName || "exportName"} as ${c} }`);
244
- const U = `${o.content.package || "package"}${o.content.main || ""}`;
245
- return `import ${m} from '${U}'
246
- export { ${c} }`;
233
+ type: A.Npm
234
+ }), _ = C(() => {
235
+ const r = o.name || "name";
236
+ let g = r;
237
+ o.content.destructuring && (o.name && o.name === o.content.exportName ? g = `{ ${o.content.exportName || "exportName"} }` : g = `{ ${o.content.exportName || "exportName"} as ${r} }`);
238
+ const V = `${o.content.package || "package"}${o.content.main || ""}`;
239
+ return `import ${g} from '${V}'
240
+ export { ${r} }`;
247
241
  });
248
- $(() => {
249
- var c, m;
250
- o.name = o.resource.name, o.content = o.resource.content || {}, o.value = ((m = (c = o.resource) == null ? void 0 : c.content) == null ? void 0 : m.value) || "", o.type = G();
251
- }), de(
242
+ X(() => {
243
+ var r, g;
244
+ o.name = o.resource.name, o.content = o.resource.content || {}, o.value = ((g = (r = o.resource) == null ? void 0 : r.content) == null ? void 0 : g.value) || "", o.type = Y();
245
+ }), le(
252
246
  () => o.isInstance,
253
- (c) => {
254
- c || (o.content.instance = "");
247
+ (r) => {
248
+ r || (o.content.instance = "");
255
249
  }
256
250
  );
257
- const y = V(null), f = V(null);
258
- return pe(() => window.dispatchEvent(new Event("resize"))), {
251
+ const m = T(null), v = T(null);
252
+ return ie(() => window.dispatchEvent(new Event("resize"))), {
259
253
  rules: {
260
254
  name: [
261
255
  { required: !0, message: "必填", trigger: "change" },
262
256
  {
263
- validator: (c, m, U) => {
264
- const L = Je(A());
265
- Array.isArray(L) && L.includes(m) ? U(new Error("资源名称已存在")) : U();
257
+ validator: (r, g, V) => {
258
+ const P = ze(F());
259
+ Array.isArray(P) && P.includes(g) ? V(new Error("资源名称已存在")) : V();
266
260
  },
267
261
  trigger: "change"
268
262
  }
@@ -271,39 +265,39 @@ export { ${c} }`;
271
265
  "content.exportName": [{ required: !0, message: "必填", trigger: "change" }],
272
266
  "content.instanceName": { required: !0, message: "必填", trigger: "change" }
273
267
  },
274
- resourceForm: f,
275
- editor: y,
268
+ resourceForm: v,
269
+ editor: m,
276
270
  state: o,
277
- codePreview: g,
271
+ codePreview: _,
278
272
  isOpen: W,
279
- closePanel: I,
273
+ closePanel: k,
280
274
  save: () => {
281
- const c = {
282
- category: A(),
283
- type: G(),
275
+ const r = {
276
+ category: F(),
277
+ type: Y(),
284
278
  name: o.name,
285
- app: S().appInfoState.selectedId,
279
+ app: x().appInfoState.selectedId,
286
280
  content: o.category ? o.content : {
287
281
  type: "JSFunction",
288
- value: y.value.getEditor().getValue()
282
+ value: m.value.getEditor().getValue()
289
283
  }
290
284
  };
291
- f.value.validate((m) => {
292
- if (!m) {
293
- B({
285
+ v.value.validate((g) => {
286
+ if (!g) {
287
+ N({
294
288
  type: "error",
295
289
  message: "请检查必填项"
296
290
  });
297
291
  return;
298
292
  }
299
- if (!o.category && !y.value.getEditor().getValue()) {
300
- B({
293
+ if (!o.category && !m.value.getEditor().getValue()) {
294
+ N({
301
295
  type: "error",
302
296
  message: "function 内容必填"
303
297
  });
304
298
  return;
305
299
  }
306
- Xe(c, I, n);
300
+ We(r, k, t);
307
301
  });
308
302
  },
309
303
  deleteReSource: () => {
@@ -311,54 +305,54 @@ export { ${c} }`;
311
305
  title: "删除资源",
312
306
  message: "如果删除正在使用的资源,将无法正常预览页面,确认要删除吗?",
313
307
  exec: () => {
314
- Ze(o.name, I, n);
308
+ Ke(o.name, k, t);
315
309
  }
316
310
  });
317
311
  },
318
- options: d,
319
- handleChangeType: (c) => {
320
- z(c);
312
+ options: p,
313
+ handleChangeType: (r) => {
314
+ z(r);
321
315
  },
322
- RESOURCE_CATEGORY: F
316
+ RESOURCE_CATEGORY: A
323
317
  };
324
318
  }
325
- }, K = (t) => (ee("data-v-46796b24"), t = t(), te(), t), ut = { class: "title-wrap" }, mt = { class: "header-wrap" }, _t = { class: "right-item" }, gt = { key: 2 }, yt = { class: "cdn-label-wrap" }, ft = /* @__PURE__ */ K(() => /* @__PURE__ */ v("span", null, "CDN", -1)), vt = { class: "code-preview" }, ht = /* @__PURE__ */ K(() => /* @__PURE__ */ v("span", { class: "pre-title" }, "生成的", -1)), bt = /* @__PURE__ */ K(() => /* @__PURE__ */ v("span", { class: "pre-title" }, "代码预览", -1));
326
- function Et(t, n, d, e, o, g) {
327
- const y = l("svg-button"), f = l("tiny-button"), _ = l("tiny-radio"), b = l("tiny-radio-group"), a = l("tiny-form-item"), u = l("tiny-input"), c = l("tiny-switch"), m = l("tiny-checkbox"), U = l("icon-unknow"), L = l("tiny-tooltip"), ae = l("monaco-editor"), se = l("tiny-form"), re = l("plugin-setting");
328
- return e.isOpen ? (h(), R(re, { key: 0 }, {
329
- title: r(() => [
330
- v("div", ut, [
331
- v("span", null, w(e.state.title), 1)
319
+ }, rt = { class: "title-wrap" }, lt = { class: "header-wrap" }, it = { class: "right-item" }, ct = { key: 2 }, dt = { class: "cdn-label-wrap" }, pt = { class: "code-preview" };
320
+ function ut(n, t, p, e, o, _) {
321
+ const m = i("svg-button"), v = i("tiny-button"), y = i("tiny-radio"), b = i("tiny-radio-group"), a = i("tiny-form-item"), c = i("tiny-input"), r = i("tiny-switch"), g = i("tiny-checkbox"), V = i("icon-unknow"), P = i("tiny-tooltip"), te = i("monaco-editor"), ne = i("tiny-form"), oe = i("plugin-setting");
322
+ return e.isOpen ? (h(), R(oe, { key: 0 }, {
323
+ title: l(() => [
324
+ f("div", rt, [
325
+ f("span", null, w(e.state.title), 1)
332
326
  ])
333
327
  ]),
334
- header: r(() => [
335
- v("div", mt, [
336
- ue(s(y, {
328
+ header: l(() => [
329
+ f("div", lt, [
330
+ ce(s(m, {
337
331
  class: "delete-btn",
338
332
  name: "delete",
339
333
  onClick: e.deleteReSource
340
334
  }, null, 8, ["onClick"]), [
341
- [me, e.state.status]
335
+ [de, e.state.status]
342
336
  ]),
343
- s(f, {
337
+ s(v, {
344
338
  class: "save-btn",
345
339
  type: "primary",
346
340
  onClick: e.save
347
341
  }, {
348
- default: r(() => [
349
- k("保存")
350
- ]),
342
+ default: l(() => t[10] || (t[10] = [
343
+ S("保存")
344
+ ])),
351
345
  _: 1
352
346
  }, 8, ["onClick"]),
353
- s(y, {
347
+ s(m, {
354
348
  class: "close-btn",
355
349
  name: "close",
356
350
  onClick: e.closePanel
357
351
  }, null, 8, ["onClick"])
358
352
  ])
359
353
  ]),
360
- content: r(() => [
361
- s(se, {
354
+ content: l(() => [
355
+ s(ne, {
362
356
  ref: "resourceForm",
363
357
  class: "resource-form",
364
358
  rules: e.rules,
@@ -368,34 +362,34 @@ function Et(t, n, d, e, o, g) {
368
362
  "label-position": "left",
369
363
  "label-align": !0
370
364
  }, {
371
- default: r(() => [
372
- v("div", _t, [
373
- e.state.status ? T("", !0) : (h(), R(a, {
365
+ default: l(() => [
366
+ f("div", it, [
367
+ e.state.status ? U("", !0) : (h(), R(a, {
374
368
  key: 0,
375
369
  label: "工具类型",
376
370
  prop: "type"
377
371
  }, {
378
- default: r(() => [
372
+ default: l(() => [
379
373
  s(b, {
380
374
  modelValue: e.state.type,
381
- "onUpdate:modelValue": n[0] || (n[0] = (p) => e.state.type = p),
375
+ "onUpdate:modelValue": t[0] || (t[0] = (u) => e.state.type = u),
382
376
  class: "resource-type-radio-group",
383
377
  onChange: e.handleChangeType
384
378
  }, {
385
- default: r(() => [
386
- s(_, {
379
+ default: l(() => [
380
+ s(y, {
387
381
  label: e.RESOURCE_CATEGORY.Npm
388
382
  }, {
389
- default: r(() => [
390
- k(w(e.RESOURCE_CATEGORY.Npm), 1)
383
+ default: l(() => [
384
+ S(w(e.RESOURCE_CATEGORY.Npm), 1)
391
385
  ]),
392
386
  _: 1
393
387
  }, 8, ["label"]),
394
- s(_, {
388
+ s(y, {
395
389
  label: e.RESOURCE_CATEGORY.Function
396
390
  }, {
397
- default: r(() => [
398
- k(w(e.RESOURCE_CATEGORY.Function), 1)
391
+ default: l(() => [
392
+ S(w(e.RESOURCE_CATEGORY.Function), 1)
399
393
  ]),
400
394
  _: 1
401
395
  }, 8, ["label"])
@@ -405,29 +399,29 @@ function Et(t, n, d, e, o, g) {
405
399
  ]),
406
400
  _: 1
407
401
  })),
408
- e.state.status ? T("", !0) : (h(), R(a, {
402
+ e.state.status ? U("", !0) : (h(), R(a, {
409
403
  key: 1,
410
404
  label: "名称",
411
405
  prop: "name"
412
406
  }, {
413
- default: r(() => [
414
- s(u, {
407
+ default: l(() => [
408
+ s(c, {
415
409
  modelValue: e.state.name,
416
- "onUpdate:modelValue": n[1] || (n[1] = (p) => e.state.name = p),
410
+ "onUpdate:modelValue": t[1] || (t[1] = (u) => e.state.name = u),
417
411
  placeholder: "请输入工具类名称"
418
412
  }, null, 8, ["modelValue"])
419
413
  ]),
420
414
  _: 1
421
415
  })),
422
- e.state.category ? (h(), x("div", gt, [
416
+ e.state.category ? (h(), L("div", ct, [
423
417
  s(a, {
424
418
  label: "包名",
425
419
  prop: "content.package"
426
420
  }, {
427
- default: r(() => [
428
- s(u, {
421
+ default: l(() => [
422
+ s(c, {
429
423
  modelValue: e.state.content.package,
430
- "onUpdate:modelValue": n[2] || (n[2] = (p) => e.state.content.package = p),
424
+ "onUpdate:modelValue": t[2] || (t[2] = (u) => e.state.content.package = u),
431
425
  placeholder: "请输入npm包名称"
432
426
  }, null, 8, ["modelValue"])
433
427
  ]),
@@ -437,20 +431,20 @@ function Et(t, n, d, e, o, g) {
437
431
  label: "导出名称",
438
432
  prop: "content.exportName"
439
433
  }, {
440
- default: r(() => [
441
- s(u, {
434
+ default: l(() => [
435
+ s(c, {
442
436
  modelValue: e.state.content.exportName,
443
- "onUpdate:modelValue": n[3] || (n[3] = (p) => e.state.content.exportName = p),
437
+ "onUpdate:modelValue": t[3] || (t[3] = (u) => e.state.content.exportName = u),
444
438
  placeholder: "请输入npm包的导出名称"
445
439
  }, null, 8, ["modelValue"])
446
440
  ]),
447
441
  _: 1
448
442
  }),
449
443
  s(a, { label: "是否解构" }, {
450
- default: r(() => [
451
- s(c, {
444
+ default: l(() => [
445
+ s(r, {
452
446
  modelValue: e.state.content.destructuring,
453
- "onUpdate:modelValue": n[4] || (n[4] = (p) => e.state.content.destructuring = p)
447
+ "onUpdate:modelValue": t[4] || (t[4] = (u) => e.state.content.destructuring = u)
454
448
  }, null, 8, ["modelValue"])
455
449
  ]),
456
450
  _: 1
@@ -459,83 +453,83 @@ function Et(t, n, d, e, o, g) {
459
453
  key: 0,
460
454
  label: "是否作为实例"
461
455
  }, {
462
- default: r(() => [
463
- s(m, {
456
+ default: l(() => [
457
+ s(g, {
464
458
  modelValue: e.state.isInstance,
465
- "onUpdate:modelValue": n[5] || (n[5] = (p) => e.state.isInstance = p)
459
+ "onUpdate:modelValue": t[5] || (t[5] = (u) => e.state.isInstance = u)
466
460
  }, null, 8, ["modelValue"])
467
461
  ]),
468
462
  _: 1
469
- })) : T("", !0),
463
+ })) : U("", !0),
470
464
  e.state.isInstance ? (h(), R(a, {
471
465
  key: 1,
472
466
  label: "实例名称",
473
467
  prop: "content.instanceName"
474
468
  }, {
475
- default: r(() => [
476
- s(u, {
469
+ default: l(() => [
470
+ s(c, {
477
471
  modelValue: e.state.content.instance,
478
- "onUpdate:modelValue": n[6] || (n[6] = (p) => e.state.content.instance = p)
472
+ "onUpdate:modelValue": t[6] || (t[6] = (u) => e.state.content.instance = u)
479
473
  }, null, 8, ["modelValue"])
480
474
  ]),
481
475
  _: 1
482
- })) : T("", !0),
476
+ })) : U("", !0),
483
477
  s(a, { label: "入口路径" }, {
484
- default: r(() => [
485
- s(u, {
478
+ default: l(() => [
479
+ s(c, {
486
480
  modelValue: e.state.content.main,
487
- "onUpdate:modelValue": n[7] || (n[7] = (p) => e.state.content.main = p),
481
+ "onUpdate:modelValue": t[7] || (t[7] = (u) => e.state.content.main = u),
488
482
  placeholder: "main"
489
483
  }, null, 8, ["modelValue"])
490
484
  ]),
491
485
  _: 1
492
486
  }),
493
487
  s(a, { label: "版本号" }, {
494
- default: r(() => [
495
- s(u, {
488
+ default: l(() => [
489
+ s(c, {
496
490
  modelValue: e.state.content.version,
497
- "onUpdate:modelValue": n[8] || (n[8] = (p) => e.state.content.version = p),
491
+ "onUpdate:modelValue": t[8] || (t[8] = (u) => e.state.content.version = u),
498
492
  placeholder: "latest"
499
493
  }, null, 8, ["modelValue"])
500
494
  ]),
501
495
  _: 1
502
496
  }),
503
497
  s(a, null, {
504
- label: r(() => [
505
- v("div", yt, [
506
- ft,
507
- s(L, {
498
+ label: l(() => [
499
+ f("div", dt, [
500
+ t[11] || (t[11] = f("span", null, "CDN", -1)),
501
+ s(P, {
508
502
  effect: "dark",
509
503
  content: "浏览器直接可用的生产包链接,请确保可用,否则可能会造成页面预览失败",
510
504
  placement: "top"
511
505
  }, {
512
- default: r(() => [
513
- s(U, { class: "cdn-tips-icon" })
506
+ default: l(() => [
507
+ s(V, { class: "cdn-tips-icon" })
514
508
  ]),
515
509
  _: 1
516
510
  })
517
511
  ])
518
512
  ]),
519
- default: r(() => [
520
- s(u, {
513
+ default: l(() => [
514
+ s(c, {
521
515
  modelValue: e.state.content.cdnLink,
522
- "onUpdate:modelValue": n[9] || (n[9] = (p) => e.state.content.cdnLink = p),
516
+ "onUpdate:modelValue": t[9] || (t[9] = (u) => e.state.content.cdnLink = u),
523
517
  placeholder: "浏览器直接可用的生产包链接,请确保可用,否则可能会造成页面预览失败"
524
518
  }, null, 8, ["modelValue"])
525
519
  ]),
526
520
  _: 1
527
521
  }),
528
- v("div", vt, [
529
- v("pre", null, [
530
- k("// "),
531
- ht,
532
- k(" utils.js "),
533
- bt,
534
- k(`
522
+ f("div", pt, [
523
+ f("pre", null, [
524
+ t[12] || (t[12] = S("// ")),
525
+ t[13] || (t[13] = f("span", { class: "pre-title" }, "生成的", -1)),
526
+ t[14] || (t[14] = S(" utils.js ")),
527
+ t[15] || (t[15] = f("span", { class: "pre-title" }, "代码预览", -1)),
528
+ S(`
535
529
  ` + w(e.codePreview), 1)
536
530
  ])
537
531
  ])
538
- ])) : (h(), R(ae, {
532
+ ])) : (h(), R(te, {
539
533
  key: 3,
540
534
  ref: "editor",
541
535
  value: e.state.value,
@@ -548,79 +542,79 @@ function Et(t, n, d, e, o, g) {
548
542
  }, 8, ["rules", "model"])
549
543
  ]),
550
544
  _: 1
551
- })) : T("", !0);
545
+ })) : U("", !0);
552
546
  }
553
- const Rt = /* @__PURE__ */ J(pt, [["render", Et], ["__scopeId", "data-v-46796b24"]]);
554
- const Ct = {
547
+ const mt = /* @__PURE__ */ J(st, [["render", ut], ["__scopeId", "data-v-b13edd83"]]);
548
+ const gt = {
555
549
  components: {
556
- TinyTabs: Ve,
557
- TinyTabItem: Se,
558
- PluginPanel: Ie,
559
- SvgButton: ne,
560
- BridgeManage: it,
561
- BridgeSetting: Rt,
562
- LinkButton: xe
550
+ TinyTabs: Re,
551
+ TinyTabItem: Ce,
552
+ PluginPanel: Ue,
553
+ SvgButton: Z,
554
+ BridgeManage: ot,
555
+ BridgeSetting: mt,
556
+ LinkButton: ke
563
557
  },
564
558
  setup() {
565
- const t = V(E.Util), n = V(null), d = V(null), e = C(() => je[t.value]), o = Be().getDocsUrl("bridge");
559
+ const n = T(E.Util), t = T(null), p = T(null), e = C(() => Ge[n.value]), o = Ie().getDocsUrl("bridge");
566
560
  return {
567
561
  addResource: (a) => {
568
- t.value === E.Util ? d.value.add(a) : n.value.add(a);
562
+ n.value === E.Util ? p.value.add(a) : t.value.add(a);
569
563
  },
570
564
  RESOURCE_TYPE: E,
571
- activedName: t,
565
+ activedName: n,
572
566
  switchTab: (a) => {
573
- I(), q(a.name);
567
+ k(), G(a.name);
574
568
  },
575
569
  openBridgePanel: () => {
576
- dt();
570
+ at();
577
571
  },
578
- closePanel: I,
572
+ closePanel: k,
579
573
  openUtilPanel: () => {
580
- I();
574
+ k();
581
575
  },
582
576
  refreshList: (a) => {
583
- a === E.Util ? d.value.refresh(a) : n.value.refresh(a);
577
+ a === E.Util ? p.value.refresh(a) : t.value.refresh(a);
584
578
  },
585
- bridge: n,
579
+ bridge: t,
586
580
  docsUrl: o,
587
- utilsRef: d,
581
+ utilsRef: p,
588
582
  tips: e,
589
- isVsCodeEnv: oe
583
+ isVsCodeEnv: ee
590
584
  };
591
585
  }
592
586
  };
593
- function Tt(t, n, d, e, o, g) {
594
- const y = l("link-button"), f = l("svg-button"), _ = l("bridge-manage"), b = l("tiny-tab-item"), a = l("tiny-tabs"), u = l("bridge-setting"), c = l("plugin-panel");
595
- return h(), R(c, {
587
+ function _t(n, t, p, e, o, _) {
588
+ const m = i("link-button"), v = i("svg-button"), y = i("bridge-manage"), b = i("tiny-tab-item"), a = i("tiny-tabs"), c = i("bridge-setting"), r = i("plugin-panel");
589
+ return h(), R(r, {
596
590
  title: "资源管理",
597
591
  isCloseLeft: !1,
598
592
  onClose: e.closePanel
599
593
  }, {
600
- header: r(() => [
601
- s(y, { href: e.docsUrl }, null, 8, ["href"]),
602
- s(f, {
594
+ header: l(() => [
595
+ s(m, { href: e.docsUrl }, null, 8, ["href"]),
596
+ s(v, {
603
597
  name: "add-utils",
604
598
  placement: "left",
605
599
  tips: e.tips,
606
- onClick: n[0] || (n[0] = (m) => e.addResource("npm"))
600
+ onClick: t[0] || (t[0] = (g) => e.addResource("npm"))
607
601
  }, null, 8, ["tips"])
608
602
  ]),
609
- content: r(() => [
603
+ content: l(() => [
610
604
  s(a, {
611
605
  modelValue: e.activedName,
612
- "onUpdate:modelValue": n[1] || (n[1] = (m) => e.activedName = m),
606
+ "onUpdate:modelValue": t[1] || (t[1] = (g) => e.activedName = g),
613
607
  class: "tabs full-width-tabs",
614
608
  "tab-style": "button-card",
615
609
  onClick: e.switchTab
616
610
  }, {
617
- default: r(() => [
611
+ default: l(() => [
618
612
  s(b, {
619
613
  name: e.RESOURCE_TYPE.Util,
620
614
  title: "工具类"
621
615
  }, {
622
- default: r(() => [
623
- s(_, {
616
+ default: l(() => [
617
+ s(y, {
624
618
  ref: "utilsRef",
625
619
  name: e.RESOURCE_TYPE.Util,
626
620
  onOpen: e.openBridgePanel
@@ -633,30 +627,33 @@ function Tt(t, n, d, e, o, g) {
633
627
  name: e.RESOURCE_TYPE.Bridge,
634
628
  title: "桥接源"
635
629
  }, {
636
- default: r(() => [
637
- s(_, {
630
+ default: l(() => [
631
+ s(y, {
638
632
  ref: "bridge",
639
633
  name: e.RESOURCE_TYPE.Bridge,
640
634
  onOpen: e.openBridgePanel
641
635
  }, null, 8, ["name", "onOpen"])
642
636
  ]),
643
637
  _: 1
644
- }, 8, ["name"])) : T("", !0)
638
+ }, 8, ["name"])) : U("", !0)
645
639
  ]),
646
640
  _: 1
647
641
  }, 8, ["modelValue", "onClick"]),
648
- s(u, { onRefresh: e.refreshList }, null, 8, ["onRefresh"])
642
+ s(c, { onRefresh: e.refreshList }, null, 8, ["onRefresh"])
649
643
  ]),
650
644
  _: 1
651
645
  }, 8, ["onClose"]);
652
646
  }
653
- const Vt = /* @__PURE__ */ J(Ct, [["render", Tt], ["__scopeId", "data-v-e04eb86e"]]), Ft = {
654
- id: "Bridge",
647
+ const yt = /* @__PURE__ */ J(gt, [["render", _t], ["__scopeId", "data-v-22dde0d1"]]), ft = {
648
+ id: "engine.plugins.bridge",
655
649
  title: "资源管理",
656
- icon: "plugin-icon-sresources",
650
+ type: "plugins",
657
651
  align: "top",
658
- component: Vt
652
+ icon: "plugin-icon-sresources"
653
+ }, Ut = {
654
+ ...ft,
655
+ entry: yt
659
656
  };
660
657
  export {
661
- Ft as default
658
+ Ut as default
662
659
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .manage-panel[data-v-70da6acf]{height:100%;display:flex;flex-direction:column;position:relative}.manage-panel .manage-panel-search[data-v-70da6acf]{padding:8px}.manage-panel .add-button[data-v-70da6acf]{align-self:flex-end;margin:6px}.manage-panel .list[data-v-70da6acf]{flex:1;border-top:1px solid var(--ti-lowcode-tabs-border-color);overflow:auto}.manage-panel .list-item[data-v-70da6acf]{height:28px;display:grid;grid-template-columns:16px 1fr auto;column-gap:8px;align-items:center;padding:0 12px;position:relative;color:var(--ti-lowcode-bridge-list-color);cursor:pointer;font-size:12px}.manage-panel .list-item[data-v-70da6acf]:hover,.manage-panel .list-item.active[data-v-70da6acf]{background:var(--ti-lowcode-bridge-list-bg)}.manage-panel .list-item svg[data-v-70da6acf]{color:var(--ti-lowcode-toolbar-more-hover-color)}.plugin-setting[data-v-46796b24] .icon-wrap{margin-right:8px}.plugin-setting .resource-form[data-v-46796b24] .tiny-form-item__label .cdn-tips-icon{margin-left:4px}.plugin-setting .title-wrap .help-link[data-v-46796b24]{display:inline-block;color:var(--ti-lowcode-common-primary-color);font-size:12px;margin-left:16px}.plugin-setting .title-wrap .help-link[data-v-46796b24]:hover{text-decoration:underline}.plugin-setting .header-wrap[data-v-46796b24]{display:flex;align-items:center;column-gap:16px}.plugin-setting .header-wrap .delete-btn[data-v-46796b24]{color:var(--ti-lowcode-common-text-color-5)}.plugin-setting .header-wrap .delete-btn[data-v-46796b24]:hover{color:var(--ti-lowcode-common-primary-text-color)}.plugin-setting .monaco-editor[data-v-46796b24]{height:500px;margin-top:8px;border:1px solid var(--ti-lowcode-birdge-editor-border-color)}.plugin-setting .resource-form-footer[data-v-46796b24]{padding:12px 0 12px 80px}.plugin-setting .resource-form-footer .tiny-svg[data-v-46796b24]{margin-right:6px}.plugin-setting .resource-form-footer .del[data-v-46796b24]:hover{background-color:var(--ti-lowcode-delete-button-hover-bg)}.plugin-setting .cdn-label-wrap[data-v-46796b24]{display:flex;align-items:center}.code-preview[data-v-46796b24]{font-size:14px;line-height:20px;margin-left:12px;color:var(--ti-lowcode-birdge-code-preview-color);background-color:var(--ti-lowcode-birdge-code-preview-bg-color);border-radius:6px}.code-preview .pre-title[data-v-46796b24]{font-family:Microsoft YaHei}.code-preview>pre[data-v-46796b24]{margin:0;padding:8px 20px;font-family:Consolas,Courier New,monospace}.tabs[data-v-e04eb86e]{height:calc(100% - 46px)}[data-v-e04eb86e] .tiny-tabs__header{padding:8px;border-bottom:1px solid var(--ti-lowcode-tabs-border-color)}[data-v-e04eb86e] .tiny-tabs__content{height:calc(100% - 45px);padding:0}[data-v-e04eb86e] .tiny-tabs__content>div{height:100%}[data-v-e04eb86e] .help-box{position:absolute;left:72px;top:3px}
1
+ .manage-panel[data-v-ddac9b90]{height:100%;display:flex;flex-direction:column;position:relative}.manage-panel .manage-panel-search[data-v-ddac9b90]{padding:8px}.manage-panel .add-button[data-v-ddac9b90]{align-self:flex-end;margin:6px}.manage-panel .list[data-v-ddac9b90]{flex:1;border-top:1px solid var(--ti-lowcode-tabs-border-color);overflow:auto}.manage-panel .list-item[data-v-ddac9b90]{height:28px;display:grid;grid-template-columns:16px 1fr auto;column-gap:8px;align-items:center;padding:0 12px;position:relative;color:var(--ti-lowcode-bridge-list-color);cursor:pointer;font-size:12px}.manage-panel .list-item[data-v-ddac9b90]:hover,.manage-panel .list-item.active[data-v-ddac9b90]{background:var(--ti-lowcode-bridge-list-bg)}.manage-panel .list-item svg[data-v-ddac9b90]{color:var(--ti-lowcode-toolbar-more-hover-color)}.plugin-setting[data-v-b13edd83] .icon-wrap{margin-right:8px}.plugin-setting .resource-form[data-v-b13edd83] .tiny-form-item__label .cdn-tips-icon{margin-left:4px}.plugin-setting .title-wrap .help-link[data-v-b13edd83]{display:inline-block;color:var(--ti-lowcode-common-primary-color);font-size:12px;margin-left:16px}.plugin-setting .title-wrap .help-link[data-v-b13edd83]:hover{text-decoration:underline}.plugin-setting .header-wrap[data-v-b13edd83]{display:flex;align-items:center;column-gap:16px}.plugin-setting .header-wrap .delete-btn[data-v-b13edd83]{color:var(--ti-lowcode-common-text-color-5)}.plugin-setting .header-wrap .delete-btn[data-v-b13edd83]:hover{color:var(--ti-lowcode-common-primary-text-color)}.plugin-setting .monaco-editor[data-v-b13edd83]{height:500px;margin-top:8px;border:1px solid var(--ti-lowcode-birdge-editor-border-color)}.plugin-setting .resource-form-footer[data-v-b13edd83]{padding:12px 0 12px 80px}.plugin-setting .resource-form-footer .tiny-svg[data-v-b13edd83]{margin-right:6px}.plugin-setting .resource-form-footer .del[data-v-b13edd83]:hover{background-color:var(--ti-lowcode-delete-button-hover-bg)}.plugin-setting .cdn-label-wrap[data-v-b13edd83]{display:flex;align-items:center}.code-preview[data-v-b13edd83]{font-size:14px;line-height:20px;margin-left:12px;color:var(--ti-lowcode-birdge-code-preview-color);background-color:var(--ti-lowcode-birdge-code-preview-bg-color);border-radius:6px}.code-preview .pre-title[data-v-b13edd83]{font-family:Microsoft YaHei}.code-preview>pre[data-v-b13edd83]{margin:0;padding:8px 20px;font-family:Consolas,Courier New,monospace}.tabs[data-v-22dde0d1]{height:calc(100% - 46px)}[data-v-22dde0d1] .tiny-tabs__header{padding:8px;border-bottom:1px solid var(--ti-lowcode-tabs-border-color)}[data-v-22dde0d1] .tiny-tabs__content{height:calc(100% - 45px);padding:0;margin:0}[data-v-22dde0d1] .tiny-tabs__content>div{height:100%}[data-v-22dde0d1] .help-box{position:absolute;left:72px;top:3px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-engine-plugin-bridge",
3
- "version": "1.0.3",
3
+ "version": "2.0.0-alpha.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -24,20 +24,20 @@
24
24
  "license": "MIT",
25
25
  "homepage": "https://opentiny.design/tiny-engine",
26
26
  "dependencies": {
27
- "@opentiny/tiny-engine-canvas": "1.0.3",
28
- "@opentiny/tiny-engine-common": "1.0.2",
29
- "@opentiny/tiny-engine-controller": "1.0.3",
30
- "@opentiny/tiny-engine-http": "1.0.2",
31
- "@opentiny/vue": "~3.10.0",
32
- "@opentiny/vue-icon": "~3.10.0"
27
+ "@opentiny/tiny-engine-common": "2.0.0-alpha.1",
28
+ "@opentiny/tiny-engine-http": "2.0.0-alpha.1",
29
+ "@opentiny/tiny-engine-meta-register": "2.0.0-alpha.1"
33
30
  },
34
31
  "devDependencies": {
32
+ "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.0.0-alpha.1",
35
33
  "@vitejs/plugin-vue": "^4.2.3",
36
- "@vitejs/plugin-vue-jsx": "^1.3.10",
34
+ "@vitejs/plugin-vue-jsx": "^3.1.0",
37
35
  "vite": "^4.3.7"
38
36
  },
39
37
  "peerDependencies": {
38
+ "@opentiny/vue": "^3.14.0",
39
+ "@opentiny/vue-icon": "^3.14.0",
40
40
  "vue": "^3.4.15"
41
41
  },
42
- "gitHead": "9a6cce3988accb39c97a9a21169c022c65a8e27f"
42
+ "gitHead": "f15ccc5dde391288bf4297e3ffc35aab52651f3d"
43
43
  }