@opentiny/tiny-engine-toolbar-save 2.3.0-rc.0 → 2.4.0-rc.0

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