@opentiny/tiny-engine-toolbar-save 2.0.0-alpha.2 → 2.0.0-alpha.4

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,90 +1,118 @@
1
1
  import "./style.css";
2
- import { reactive as V, ref as T, onUnmounted as A, resolveComponent as p, openBlock as C, createElementBlock as w, Fragment as E, createElementVNode as v, createVNode as i, withCtx as l, toDisplayString as N, withModifiers as M, createTextVNode as b, createBlock as U, createCommentVNode as D } from "vue";
3
- import { VueMonaco as L } from "@opentiny/tiny-engine-common";
4
- import { Button as O, Popover as G, DialogBox as R, Checkbox as h, Select as J } from "@opentiny/vue";
5
- import { usePage as j, useCanvas as y, useLayout as F, useNotify as q, getMetaApi as z, META_APP as H, useBlock as K } from "@opentiny/tiny-engine-meta-register";
6
- import { constants as Q } from "@opentiny/tiny-engine-utils";
7
- import { handlePageUpdate as W } from "@opentiny/tiny-engine-common/js/http";
8
- const { PAGE_STATUS: u } = Q, g = V({
2
+ import { reactive as B, ref as P, onUnmounted as N, resolveComponent as u, openBlock as x, createElementBlock as O, createVNode as d, withCtx as r, createElementVNode as b, withModifiers as M, createTextVNode as k, createBlock as U, createCommentVNode as h } from "vue";
3
+ import { VueMonaco as D, ToolbarBase as L } from "@opentiny/tiny-engine-common";
4
+ import { Button as G, Popover as R, DialogBox as j, Checkbox as J, Select as q } from "@opentiny/vue";
5
+ import { usePage as z, useCanvas as V, getOptions as F, useNotify as T, useLayout as H, getMetaApi as K, META_APP as Q, useBlock as W } from "@opentiny/tiny-engine-meta-register";
6
+ import { constants as X } from "@opentiny/tiny-engine-utils";
7
+ import { handlePageUpdate as Y } from "@opentiny/tiny-engine-common/js/http";
8
+ const A = {
9
+ id: "engine.toolbars.save",
10
+ type: "toolbars",
11
+ title: "save",
12
+ options: {
13
+ icon: {
14
+ default: "save"
15
+ },
16
+ renderType: "button"
17
+ }
18
+ }, { PAGE_STATUS: p } = X, _ = B({
9
19
  visible: !1,
10
20
  code: "",
11
21
  originalCode: "",
12
22
  disabled: !1
13
- }), _ = T(!1), X = async (a) => {
14
- var n;
15
- const e = z(H.BlockManage), { getCurrentBlock: o } = K(), t = o();
16
- t.label = a.fileName, t.content = a, _.value = !0, t.screenshot = await e.getBlockBase64(), await ((n = e.saveBlock) == null ? void 0 : n.call(e, t)), _.value = !1;
17
- }, Y = async (a) => {
18
- const { currentPage: e } = y().pageState, o = {
19
- page_content: a
23
+ }), y = P(!1), Z = async (n) => {
24
+ var a;
25
+ const e = K(Q.BlockManage), { getCurrentBlock: t } = W(), o = t();
26
+ o.label = n.fileName, o.content = n, y.value = !0, o.screenshot = await e.getBlockBase64(), await ((a = e.saveBlock) == null ? void 0 : a.call(e, o)), y.value = !1;
27
+ }, I = async (n) => {
28
+ const { currentPage: e } = V().pageState, t = {
29
+ page_content: n
20
30
  };
21
- _.value = !0, await W(e.id, { ...e, ...o }), _.value = !1;
22
- }, k = (a) => {
23
- const { pageSettingState: e, isTemporaryPage: o } = j(), { isBlock: t, canvasApi: n, pageState: f } = y(), s = JSON.parse(a), { setSchema: r, selectNode: d } = n.value;
24
- if (f.pageSchema = s, r(s), e != null && e.isAIPage) {
25
- o.saved && (o.saved = !1), o.saved = !0;
31
+ y.value = !0, await Y(e.id, { ...e, ...t }), y.value = !1;
32
+ }, S = (n) => {
33
+ const { pageSettingState: e, isTemporaryPage: t } = z(), { isBlock: o, canvasApi: a, pageState: s } = V(), i = JSON.parse(n), { setSchema: l, selectNode: m } = a.value;
34
+ if (s.pageSchema = i, l(i), e != null && e.isAIPage) {
35
+ t.saved && (t.saved = !1), t.saved = !0;
26
36
  const c = "page_content";
27
- return e.currentPageData[c] = s, Promise.resolve();
37
+ return e.currentPageData[c] = i, Promise.resolve();
28
38
  }
29
- return d(null), t() ? X(s) : Y(s);
30
- }, x = async () => {
31
- var d;
32
- const { isSaved: a, canvasApi: e } = y();
33
- if (a() || g.disabled)
39
+ return m(null), o() ? Z(i) : I(i);
40
+ }, w = async () => {
41
+ var C;
42
+ const { isSaved: n, canvasApi: e } = V();
43
+ if (n() || _.disabled)
34
44
  return;
35
- const o = (d = F().layoutState) == null ? void 0 : d.pageStatus, t = o == null ? void 0 : o.state, n = o == null ? void 0 : o.data, { getSchema: f } = e.value, s = {
36
- [u.Release]: "当前页面未锁定,请先锁定再保存",
37
- [u.Empty]: "当前应用无页面,请先新建页面再保存",
38
- [u.Guest]: "官网演示应用不能保存页面,如需体验请切换应用",
39
- [u.Lock]: `当前页面被 ${n == null ? void 0 : n.username} ${n == null ? void 0 : n.resetPasswordToken} 锁定,如需编辑请先联系他解锁文件,然后再锁定该页面后编辑!`
45
+ const { beforeSave: t, saveMethod: o, saved: a } = F(A.id);
46
+ try {
47
+ if (typeof t == "function" && await t(), typeof o == "function" && await o())
48
+ return;
49
+ } catch (f) {
50
+ T({
51
+ type: "error",
52
+ message: `Error in saving: ${f}`
53
+ });
54
+ }
55
+ const s = (C = H().layoutState) == null ? void 0 : C.pageStatus, i = s == null ? void 0 : s.state, l = s == null ? void 0 : s.data, { getSchema: m } = e.value, c = {
56
+ [p.Release]: "当前页面未锁定,请先锁定再保存",
57
+ [p.Empty]: "当前应用无页面,请先新建页面再保存",
58
+ [p.Guest]: "官网演示应用不能保存页面,如需体验请切换应用",
59
+ [p.Lock]: `当前页面被 ${l == null ? void 0 : l.username} ${l == null ? void 0 : l.resetPasswordToken} 锁定,如需编辑请先联系他解锁文件,然后再锁定该页面后编辑!`
40
60
  };
41
- if ([u.Release, u.Empty, u.Guest, u.Lock].includes(t)) {
42
- q({
61
+ if ([p.Release, p.Empty, p.Guest, p.Lock].includes(i)) {
62
+ T({
43
63
  type: "error",
44
64
  title: "保存失败",
45
- message: s[t]
65
+ message: c[i]
46
66
  });
47
67
  return;
48
68
  }
49
- g.disabled = !0;
50
- const r = f();
51
- g.code = JSON.stringify(r || {}, null, 2), k(g.code).finally(() => {
52
- g.disabled = !1;
69
+ _.disabled = !0;
70
+ const g = m();
71
+ _.code = JSON.stringify(g || {}, null, 2), S(_.code).finally(() => {
72
+ if (_.disabled = !1, typeof a == "function")
73
+ try {
74
+ a();
75
+ } catch (f) {
76
+ T({
77
+ type: "error",
78
+ message: `Error in saved: ${f}`
79
+ });
80
+ }
53
81
  });
54
- };
55
- const Z = (a, e) => {
56
- const o = a.__vccOpts || a;
57
- for (const [t, n] of e)
58
- o[t] = n;
59
- return o;
60
- }, I = {
61
- saveCommon: k,
62
- openCommon: x
63
- }, $ = {
82
+ }, $ = (n, e) => {
83
+ const t = n.__vccOpts || n;
84
+ for (const [o, a] of e)
85
+ t[o] = a;
86
+ return t;
87
+ }, ee = {
88
+ saveCommon: S,
89
+ openCommon: w
90
+ }, oe = {
64
91
  components: {
65
- VueMonaco: L,
66
- TinyButton: O,
67
- TinyPopover: G,
68
- TinyDialogBox: R,
69
- TinyCheckbox: h,
70
- TinySelect: J
92
+ VueMonaco: D,
93
+ TinyButton: G,
94
+ TinyPopover: R,
95
+ TinyDialogBox: j,
96
+ TinyCheckbox: J,
97
+ TinySelect: q,
98
+ ToolbarBase: L
71
99
  },
72
100
  props: {
73
- icon: {
74
- type: String,
75
- default: "save"
76
- },
77
101
  iconExpand: {
78
102
  type: String,
79
103
  default: "down-arrow"
104
+ },
105
+ options: {
106
+ type: Object,
107
+ default: () => ({})
80
108
  }
81
109
  },
82
110
  setup() {
83
- const a = [
111
+ const { isSaved: n } = V(), e = [
84
112
  { value: 5, label: "5分钟" },
85
113
  { value: 10, label: "10分钟" },
86
114
  { value: 15, label: "15分钟" }
87
- ], e = V({
115
+ ], t = B({
88
116
  visible: !1,
89
117
  code: "",
90
118
  originalCode: "",
@@ -93,167 +121,162 @@ const Z = (a, e) => {
93
121
  saveVisible: !1,
94
122
  checked: !1,
95
123
  preservationTime: null
96
- }), o = T(null), t = () => {
97
- e.visible = !1, e.originalCode = "";
98
- }, n = () => {
99
- _.value || x();
100
- }, f = () => {
101
- k();
102
- }, s = {
124
+ }), o = P(null), a = () => {
125
+ t.visible = !1, t.originalCode = "";
126
+ }, s = () => {
127
+ y.value || w();
128
+ }, i = () => {
129
+ S();
130
+ }, l = {
103
131
  language: "json",
104
132
  lineNumbers: !0,
105
133
  minimap: {
106
134
  enabled: !1
107
135
  }
108
- }, r = () => {
109
- clearTimeout(e.preservationTime), e.preservationTime = setTimeout(() => {
110
- n(), r();
111
- }, e.timeValue * 60 * 1e3);
112
- }, d = () => {
113
- e.checked ? r() : clearTimeout(e.preservationTime), e.saveVisible = !1;
136
+ }, m = () => {
137
+ clearTimeout(t.preservationTime), t.preservationTime = setTimeout(() => {
138
+ s(), m();
139
+ }, t.timeValue * 60 * 1e3);
114
140
  }, c = () => {
115
- e.saveVisible = !1;
141
+ t.checked ? m() : clearTimeout(t.preservationTime), t.saveVisible = !1;
142
+ }, g = () => {
143
+ t.saveVisible = !1;
116
144
  };
117
- return A(() => {
118
- clearTimeout(e.preservationTime);
145
+ return N(() => {
146
+ clearTimeout(t.preservationTime);
119
147
  }), {
120
- state: e,
148
+ state: t,
121
149
  editor: o,
122
- editorOptions: s,
123
- isLoading: _,
124
- close: t,
125
- openApi: n,
126
- saveApi: f,
127
- options: a,
128
- cancel: c,
129
- autoSave: d
150
+ editorOptions: l,
151
+ isLoading: y,
152
+ isSaved: n,
153
+ close: a,
154
+ openApi: s,
155
+ saveApi: i,
156
+ delayOptions: e,
157
+ cancel: g,
158
+ autoSave: c
130
159
  };
131
160
  }
132
- }, ee = { class: "toolbar-save" }, te = { class: "save-title" }, oe = { class: "save-style" }, ne = { class: "save-time" }, ae = { class: "save-button-group" };
133
- function se(a, e, o, t, n, f) {
134
- const s = p("svg-icon"), r = p("tiny-checkbox"), d = p("tiny-select"), c = p("tiny-button"), S = p("tiny-popover"), B = p("vue-monaco"), P = p("tiny-dialog-box");
135
- return C(), w(E, null, [
136
- v("div", ee, [
137
- i(c, {
138
- class: "save-button",
139
- onClick: t.openApi
140
- }, {
141
- default: l(() => [
142
- i(s, { name: o.icon }, null, 8, ["name"]),
143
- v("span", te, N(t.isLoading ? "保存中" : "保存"), 1),
144
- v("span", {
145
- onClick: e[3] || (e[3] = M((m) => t.state.saveVisible = !t.state.saveVisible, ["stop"]))
146
- }, [
147
- i(S, {
148
- modelValue: t.state.saveVisible,
149
- "onUpdate:modelValue": e[2] || (e[2] = (m) => t.state.saveVisible = m),
150
- "visible-arrow": !1,
151
- width: "203",
152
- trigger: "manual"
153
- }, {
154
- reference: l(() => [
155
- i(s, { name: o.iconExpand }, null, 8, ["name"])
156
- ]),
157
- default: l(() => [
158
- v("div", oe, [
159
- e[9] || (e[9] = v("div", { class: "save-setting" }, "保存设置", -1)),
160
- i(r, {
161
- modelValue: t.state.checked,
162
- "onUpdate:modelValue": e[0] || (e[0] = (m) => t.state.checked = m),
163
- name: "tiny-checkbox"
161
+ }, te = { class: "toolbar-save" }, ne = { class: "save-style" }, ae = { class: "save-time" }, se = { class: "save-button-group" };
162
+ function ie(n, e, t, o, a, s) {
163
+ const i = u("svg-icon"), l = u("tiny-checkbox"), m = u("tiny-select"), c = u("tiny-button"), g = u("tiny-popover"), C = u("vue-monaco"), f = u("tiny-dialog-box"), E = u("toolbar-base");
164
+ return x(), O("div", te, [
165
+ d(E, {
166
+ content: o.isLoading ? "保存中" : "保存",
167
+ icon: t.options.icon.default || t.options.icon,
168
+ options: { ...t.options, showDots: !o.isSaved() },
169
+ onClickApi: o.openApi
170
+ }, {
171
+ button: r(() => [
172
+ b("span", {
173
+ onClick: e[3] || (e[3] = M((v) => o.state.saveVisible = !o.state.saveVisible, ["stop"]))
174
+ }, [
175
+ d(g, {
176
+ modelValue: o.state.saveVisible,
177
+ "onUpdate:modelValue": e[2] || (e[2] = (v) => o.state.saveVisible = v),
178
+ "visible-arrow": !1,
179
+ width: "203",
180
+ trigger: "manual"
181
+ }, {
182
+ reference: r(() => [
183
+ d(i, { name: t.iconExpand }, null, 8, ["name"])
184
+ ]),
185
+ default: r(() => [
186
+ b("div", ne, [
187
+ e[9] || (e[9] = b("div", { class: "save-setting" }, "保存设置", -1)),
188
+ d(l, {
189
+ modelValue: o.state.checked,
190
+ "onUpdate:modelValue": e[0] || (e[0] = (v) => o.state.checked = v),
191
+ name: "tiny-checkbox"
192
+ }, {
193
+ default: r(() => e[5] || (e[5] = [
194
+ k("自动保存")
195
+ ])),
196
+ _: 1
197
+ }, 8, ["modelValue"]),
198
+ b("div", ae, [
199
+ e[6] || (e[6] = b("div", null, "保存间隔", -1)),
200
+ d(m, {
201
+ modelValue: o.state.timeValue,
202
+ "onUpdate:modelValue": e[1] || (e[1] = (v) => o.state.timeValue = v),
203
+ options: o.delayOptions,
204
+ disabled: !o.state.checked,
205
+ autocomplete: ""
206
+ }, null, 8, ["modelValue", "options", "disabled"])
207
+ ]),
208
+ b("div", se, [
209
+ d(c, { onClick: o.cancel }, {
210
+ default: r(() => e[7] || (e[7] = [
211
+ k("取消")
212
+ ])),
213
+ _: 1
214
+ }, 8, ["onClick"]),
215
+ d(c, {
216
+ type: "primary",
217
+ onClick: o.autoSave
164
218
  }, {
165
- default: l(() => e[5] || (e[5] = [
166
- b("自动保存")
219
+ default: r(() => e[8] || (e[8] = [
220
+ k("设置并保存")
167
221
  ])),
168
222
  _: 1
169
- }, 8, ["modelValue"]),
170
- v("div", ne, [
171
- e[6] || (e[6] = v("div", null, "保存间隔", -1)),
172
- i(d, {
173
- modelValue: t.state.timeValue,
174
- "onUpdate:modelValue": e[1] || (e[1] = (m) => t.state.timeValue = m),
175
- options: t.options,
176
- disabled: !t.state.checked,
177
- autocomplete: ""
178
- }, null, 8, ["modelValue", "options", "disabled"])
179
- ]),
180
- v("div", ae, [
181
- i(c, { onClick: t.cancel }, {
182
- default: l(() => e[7] || (e[7] = [
183
- b("取消")
184
- ])),
185
- _: 1
186
- }, 8, ["onClick"]),
187
- i(c, {
188
- type: "primary",
189
- onClick: t.autoSave
190
- }, {
191
- default: l(() => e[8] || (e[8] = [
192
- b("设置并保存")
193
- ])),
194
- _: 1
195
- }, 8, ["onClick"])
196
- ])
223
+ }, 8, ["onClick"])
197
224
  ])
198
- ]),
199
- _: 1
200
- }, 8, ["modelValue"])
201
- ])
202
- ]),
203
- _: 1
204
- }, 8, ["onClick"])
205
- ]),
206
- i(P, {
207
- class: "dialog-box",
208
- modal: !1,
209
- fullscreen: !0,
210
- "append-to-body": !0,
211
- visible: t.state.visible,
212
- title: "Schema 本地与线上差异",
213
- "onUpdate:visible": e[4] || (e[4] = (m) => t.state.visible = m)
214
- }, {
215
- footer: l(() => [
216
- i(c, { onClick: t.close }, {
217
- default: l(() => e[10] || (e[10] = [
218
- b("取 消")
219
- ])),
220
- _: 1
221
- }, 8, ["onClick"]),
222
- i(c, {
223
- type: "primary",
224
- onClick: t.saveApi
225
+ ])
226
+ ]),
227
+ _: 1
228
+ }, 8, ["modelValue"])
229
+ ])
230
+ ]),
231
+ default: r(() => [
232
+ d(f, {
233
+ class: "dialog-box",
234
+ modal: !1,
235
+ fullscreen: !0,
236
+ "append-to-body": !0,
237
+ visible: o.state.visible,
238
+ title: "Schema 本地与线上差异",
239
+ "onUpdate:visible": e[4] || (e[4] = (v) => o.state.visible = v)
225
240
  }, {
226
- default: l(() => e[11] || (e[11] = [
227
- b("保 存")
228
- ])),
241
+ footer: r(() => [
242
+ d(c, { onClick: o.close }, {
243
+ default: r(() => e[10] || (e[10] = [
244
+ k("取 消")
245
+ ])),
246
+ _: 1
247
+ }, 8, ["onClick"]),
248
+ d(c, {
249
+ type: "primary",
250
+ onClick: o.saveApi
251
+ }, {
252
+ default: r(() => e[11] || (e[11] = [
253
+ k("保 存")
254
+ ])),
255
+ _: 1
256
+ }, 8, ["onClick"])
257
+ ]),
258
+ default: r(() => [
259
+ o.state.visible ? (x(), U(C, {
260
+ key: 0,
261
+ ref: "editor",
262
+ class: "monaco-editor",
263
+ diffEditor: !0,
264
+ options: o.editorOptions,
265
+ value: o.state.code,
266
+ original: o.state.originalCode
267
+ }, null, 8, ["options", "value", "original"])) : h("", !0)
268
+ ]),
229
269
  _: 1
230
- }, 8, ["onClick"])
231
- ]),
232
- default: l(() => [
233
- t.state.visible ? (C(), U(B, {
234
- key: 0,
235
- ref: "editor",
236
- class: "monaco-editor",
237
- diffEditor: !0,
238
- options: t.editorOptions,
239
- value: t.state.code,
240
- original: t.state.originalCode
241
- }, null, 8, ["options", "value", "original"])) : D("", !0)
270
+ }, 8, ["visible"])
242
271
  ]),
243
272
  _: 1
244
- }, 8, ["visible"])
245
- ], 64);
273
+ }, 8, ["content", "icon", "options", "onClickApi"])
274
+ ]);
246
275
  }
247
- const ie = /* @__PURE__ */ Z($, [["render", se], ["__scopeId", "data-v-159e4497"]]), le = {
248
- id: "engine.toolbars.save",
249
- type: "toolbars",
250
- title: "save",
251
- icon: "",
252
- align: "right"
253
- }, fe = {
254
- ...le,
255
- entry: ie,
256
- apis: I
276
+ const le = /* @__PURE__ */ $(oe, [["render", ie], ["__scopeId", "data-v-3b390d29"]]), fe = {
277
+ ...A,
278
+ entry: le,
279
+ apis: ee
257
280
  };
258
281
  export {
259
282
  fe as default
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .dots[data-v-159e4497]{width:6px;height:6px;background:var(--ti-lowcode-toolbar-dot-color);border-radius:50%;display:inline-block;position:absolute;top:4px;right:3px;z-index:100}.toolbar-save .save-button[data-v-159e4497]{background-color:var(--ti-lowcode-toolbar-button-bg);border:none;min-width:70px;height:26px;display:flex;align-items:center;padding:0 8px;border-radius:4px}.toolbar-save .save-button[data-v-159e4497]:not(.disabled):hover{background-color:var(--ti-lowcode-toolbar-button-bg)}.toolbar-save .save-button .save-title[data-v-159e4497]{margin:0 6px}.toolbar-save[data-v-159e4497] .icon-down-arrow:focus{outline:none}.save-style[data-v-159e4497]{padding:14px;font-size:12px}.save-style .save-button-group[data-v-159e4497]{text-align:right}.save-style .save-button-group[data-v-159e4497] .tiny-button{min-width:40px;padding:0 8px;height:26px;line-height:24px;border-radius:4px}.save-time[data-v-159e4497]{line-height:24px;font-size:12px;margin:13px 0 14px;display:flex}.save-time .tiny-select[data-v-159e4497]{width:103px;margin-left:12px}.save-time .tiny-select[data-v-159e4497] .tiny-input__suffix{width:12px;top:12px}#saving[data-v-159e4497]{cursor:not-allowed;color:var(--ti-lowcode-disabled-color)}#saving[data-v-159e4497] svg{color:var(--ti-lowcode-disabled-color)}.dialog-box[data-v-159e4497] .tiny-dialog-box{display:flex;flex-direction:column}.dialog-box[data-v-159e4497] .tiny-dialog-box .tiny-dialog-box__body{flex:1}.dialog-box .monaco-editor[data-v-159e4497]{width:100%;height:100%}.changeRole a{color:var(--ti-lowcode-canvas-handle-hover-bg);padding:0 5px}
1
+ .dots[data-v-3b390d29]{width:6px;height:6px;background:var(--ti-lowcode-toolbar-dot-color);border-radius:50%;display:inline-block;position:absolute;top:4px;right:3px;z-index:100}.toolbar-save .save-button[data-v-3b390d29]{background-color:var(--ti-lowcode-toolbar-button-bg);border:none;min-width:70px;height:26px;display:flex;align-items:center;padding:0 8px;border-radius:4px}.toolbar-save .save-button[data-v-3b390d29]:not(.disabled):hover{background-color:var(--ti-lowcode-toolbar-button-bg)}.toolbar-save .save-button .save-title[data-v-3b390d29]{margin:0 6px}.toolbar-save[data-v-3b390d29] .icon-down-arrow:focus{outline:none}.save-style[data-v-3b390d29]{padding:14px;font-size:12px}.save-style .save-button-group[data-v-3b390d29]{text-align:right}.save-style .save-button-group[data-v-3b390d29] .tiny-button{min-width:40px;padding:0 8px;height:26px;line-height:24px;border-radius:4px}.save-time[data-v-3b390d29]{line-height:24px;font-size:12px;margin:13px 0 14px;display:flex}.save-time .tiny-select[data-v-3b390d29]{width:103px;margin-left:12px}.save-time .tiny-select[data-v-3b390d29] .tiny-input__suffix{width:12px;top:12px}#saving[data-v-3b390d29]{cursor:not-allowed;color:var(--ti-lowcode-disabled-color)}#saving[data-v-3b390d29] svg{color:var(--ti-lowcode-disabled-color)}.dialog-box[data-v-3b390d29] .tiny-dialog-box{display:flex;flex-direction:column}.dialog-box[data-v-3b390d29] .tiny-dialog-box .tiny-dialog-box__body{flex:1}.dialog-box .monaco-editor[data-v-3b390d29]{width:100%;height:100%}.changeRole a{color:var(--ti-lowcode-canvas-handle-hover-bg);padding:0 5px}
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-engine-toolbar-save",
3
- "version": "2.0.0-alpha.2",
3
+ "version": "2.0.0-alpha.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "scripts": {
8
8
  "build": "vite build"
9
9
  },
10
+ "type": "module",
10
11
  "main": "dist/index.js",
11
12
  "module": "dist/index.js",
12
13
  "files": [
@@ -24,19 +25,19 @@
24
25
  "license": "MIT",
25
26
  "homepage": "https://opentiny.design/tiny-engine",
26
27
  "dependencies": {
27
- "@opentiny/tiny-engine-common": "2.0.0-alpha.2",
28
- "@opentiny/tiny-engine-meta-register": "2.0.0-alpha.2",
29
- "@opentiny/tiny-engine-utils": "2.0.0-alpha.2"
28
+ "@opentiny/tiny-engine-common": "2.0.0-alpha.4",
29
+ "@opentiny/tiny-engine-meta-register": "2.0.0-alpha.4",
30
+ "@opentiny/tiny-engine-utils": "2.0.0-alpha.4"
30
31
  },
31
32
  "devDependencies": {
32
- "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.0.0-alpha.2",
33
- "@vitejs/plugin-vue": "^4.2.3",
34
- "@vitejs/plugin-vue-jsx": "^3.1.0",
35
- "vite": "^4.3.7"
33
+ "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.0.0-alpha.4",
34
+ "@vitejs/plugin-vue": "^5.1.2",
35
+ "@vitejs/plugin-vue-jsx": "^4.0.1",
36
+ "vite": "^5.4.2"
36
37
  },
37
38
  "peerDependencies": {
38
39
  "@opentiny/vue": "^3.14.0",
39
40
  "vue": "^3.4.15"
40
41
  },
41
- "gitHead": "695ecd00f21aa39965a9ddb02590ae274f92cd8e"
42
+ "gitHead": "14f9f41f9fa6a1b4962d0fcd3083798d842e8ff9"
42
43
  }