@opentiny/tiny-engine-toolbar-save 2.3.0-rc.0 → 2.3.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 N, ref as B, resolveComponent as f, createElementBlock as L, openBlock as x, createVNode as v, withCtx as d, createBlock as U, createCommentVNode as I, createTextVNode as S, createElementVNode as k, onMounted as P, onUnmounted as E } from "vue";
3
+ import { ToolbarBase as G, VueMonaco as R } from "@opentiny/tiny-engine-common";
4
+ import { Select as j, Checkbox as Y, DialogBox as q, Popover as z, Button as F } from "@opentiny/vue";
5
+ import { useCanvas as C, getOptions as H, useNotify as A, 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 V } from "@opentiny/tiny-engine-utils";
7
+ import { handlePageUpdate as ee } from "@opentiny/tiny-engine-common/js/http";
8
+ const w = {
9
9
  id: "engine.toolbars.save",
10
10
  type: "toolbars",
11
11
  title: "save",
@@ -15,99 +15,99 @@ 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: D } = V, _ = N({
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 = B(!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 } = C().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, await ee(e.id, { ...e, ...o }, !1, !0), b.value = !1;
32
+ }, O = (a) => {
33
+ const { pageSettingState: e, isTemporaryPage: o } = Q(), { isBlock: t, canvasApi: s, pageState: l, resetBlockCanvasState: r, resetPageCanvasState: i } = C(), n = JSON.parse(a), { selectNode: c } = s.value;
34
+ if (t() ? r({ ...l, pageSchema: n }) : i({ ...l, pageSchema: n }), e != null && e.isAIPage) {
35
35
  o.saved && (o.saved = !1), o.saved = !0;
36
36
  const p = "page_content";
37
- return e.currentPageData[p] = s, Promise.resolve();
37
+ return e.currentPageData[p] = n, Promise.resolve();
38
38
  }
39
- return c(null), t() ? Z(s) : $(s);
40
- }, N = async () => {
39
+ return c(null), t() ? te(n) : oe(n);
40
+ }, M = async () => {
41
41
  var p;
42
- const { isSaved: n, getSchema: e } = S();
43
- if (n() || _.disabled)
42
+ const { isSaved: a, getSchema: e } = C();
43
+ if (a() || _.disabled)
44
44
  return;
45
- const { beforeSave: o, saveMethod: t, saved: i } = z(E.id);
45
+ const { beforeSave: o, saveMethod: t, saved: s } = H(w.id);
46
46
  try {
47
47
  if (typeof o == "function" && await o(), typeof t == "function" && await t())
48
48
  return;
49
- } catch (f) {
50
- C({
49
+ } catch (u) {
50
+ A({
51
51
  type: "error",
52
- message: `Error in saving: ${f}`
52
+ message: `Error in saving: ${u}`
53
53
  });
54
54
  }
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} 锁定,如需编辑请先联系他解锁文件,然后再锁定该页面后编辑!`
55
+ 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 = {
56
+ [g.Release]: "当前页面未锁定,请先锁定再保存",
57
+ [g.Empty]: "当前应用无页面,请先新建页面再保存",
58
+ [g.Guest]: "官网演示应用不能保存页面,如需体验请切换应用",
59
+ [g.Lock]: `当前页面被 ${i == null ? void 0 : i.username} ${i == null ? void 0 : i.resetPasswordToken} 锁定,如需编辑请先联系他解锁文件,然后再锁定该页面后编辑!`
60
60
  };
61
- if ([v.Release, v.Empty, v.Guest, v.Lock].includes(u)) {
62
- C({
61
+ if ([g.Release, g.Empty, g.Guest, g.Lock].includes(r)) {
62
+ A({
63
63
  type: "error",
64
64
  title: "保存失败",
65
- message: s[u]
65
+ message: n[r]
66
66
  });
67
67
  return;
68
68
  }
69
69
  _.disabled = !0;
70
70
  const c = e();
71
- _.code = JSON.stringify(c || {}, null, 2), T(_.code).finally(() => {
72
- if (_.disabled = !1, typeof i == "function")
71
+ _.code = JSON.stringify(c || {}, null, 2), O(_.code).finally(() => {
72
+ if (_.disabled = !1, typeof s == "function")
73
73
  try {
74
- i();
75
- } catch (f) {
76
- C({
74
+ s();
75
+ } catch (u) {
76
+ A({
77
77
  type: "error",
78
- message: `Error in saved: ${f}`
78
+ message: `Error in saved: ${u}`
79
79
  });
80
80
  }
81
81
  });
82
- }, ee = () => {
82
+ }, ae = () => {
83
83
  try {
84
- const n = localStorage.getItem(V);
85
- return JSON.parse(n) ?? !1;
84
+ const a = localStorage.getItem(D);
85
+ return JSON.parse(a) ?? !1;
86
86
  } catch {
87
87
  return !1;
88
88
  }
89
- }, te = (n) => {
89
+ }, ne = (a) => {
90
90
  try {
91
- return localStorage.setItem(V, JSON.stringify(n)), !0;
91
+ return localStorage.setItem(D, JSON.stringify(a)), !0;
92
92
  } catch {
93
93
  return !1;
94
94
  }
95
- }, oe = (n, e) => {
96
- const o = n.__vccOpts || n;
97
- for (const [t, i] of e)
98
- o[t] = i;
95
+ }, se = (a, e) => {
96
+ const o = a.__vccOpts || a;
97
+ for (const [t, s] of e)
98
+ o[t] = s;
99
99
  return o;
100
- }, { OPEN_DELAY: ne } = B, ae = {
101
- saveCommon: T,
102
- openCommon: N
103
- }, se = {
100
+ }, { OPEN_DELAY: ie } = V, le = {
101
+ saveCommon: O,
102
+ openCommon: M
103
+ }, ce = {
104
104
  components: {
105
- VueMonaco: J,
106
- TinyButton: q,
107
- TinyPopover: I,
108
- TinyDialogBox: Y,
109
- TinyCheckbox: j,
110
- TinySelect: R,
105
+ VueMonaco: R,
106
+ TinyButton: F,
107
+ TinyPopover: z,
108
+ TinyDialogBox: q,
109
+ TinyCheckbox: Y,
110
+ TinySelect: j,
111
111
  ToolbarBase: G
112
112
  },
113
113
  props: {
@@ -121,105 +121,134 @@ 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 = N({
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();
135
+ }), o = B(null), { isSaved: t, setSaved: s, getSchema: l } = C(), { subscribe: r, unsubscribe: i } = $(), n = "toolbar-save", c = B(null);
136
+ P(() => {
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
+ }), E(() => {
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 = "";
140
167
  }, u = () => {
141
- T();
142
- }, l = {
168
+ b.value || M();
169
+ }, h = () => {
170
+ O();
171
+ }, T = {
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
+ u(), m();
180
+ }, e.timeValue * 60 * 1e3);
181
+ }, J = () => {
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 P(() => {
185
+ e.checked = ae(), e.checked && m();
186
+ }), E(() => {
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: T,
192
+ isLoading: b,
193
+ isSaved: t,
194
+ close: p,
195
+ openApi: u,
196
+ saveApi: h,
197
+ delayOptions: a,
198
+ saveConfig: J,
199
+ OPEN_DELAY: ie
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
+ }, re = { class: "toolbar-save" }, de = { class: "save-style" }, ue = { class: "save-time" }, me = { class: "save-button-group" };
203
+ function ve(a, e, o, t, s, l) {
204
+ const r = f("svg-icon"), i = f("tiny-checkbox"), n = f("tiny-select"), c = f("tiny-button"), p = f("tiny-popover"), u = f("vue-monaco"), h = f("tiny-dialog-box"), T = f("toolbar-base");
205
+ return x(), L("div", re, [
206
+ v(T, {
178
207
  content: t.isLoading ? "保存中" : "保存",
179
208
  icon: o.options.icon.default || o.options.icon,
180
209
  options: { ...o.options, showDots: !t.isSaved() },
181
210
  onClickApi: t.openApi
182
211
  }, {
183
- button: r(() => [
184
- d(p, {
212
+ button: d(() => [
213
+ v(p, {
185
214
  "visible-arrow": !1,
186
215
  width: "203",
187
216
  trigger: "click",
188
217
  "open-delay": t.OPEN_DELAY.Default
189
218
  }, {
190
- reference: r(() => [
191
- d(u, { name: o.iconExpand }, null, 8, ["name"])
219
+ reference: d(() => [
220
+ v(r, { name: o.iconExpand }, null, 8, ["name"])
192
221
  ]),
193
- default: r(() => [
194
- b("div", le, [
195
- e[6] || (e[6] = b("div", { class: "save-setting" }, "保存设置", -1)),
196
- d(l, {
222
+ default: d(() => [
223
+ k("div", de, [
224
+ e[6] || (e[6] = k("div", { class: "save-setting" }, "保存设置", -1)),
225
+ v(i, {
197
226
  modelValue: t.state.checked,
198
- "onUpdate:modelValue": e[0] || (e[0] = (g) => t.state.checked = g),
227
+ "onUpdate:modelValue": e[0] || (e[0] = (m) => t.state.checked = m),
199
228
  name: "tiny-checkbox"
200
229
  }, {
201
- default: r(() => e[3] || (e[3] = [
202
- k("自动保存")
230
+ default: d(() => e[3] || (e[3] = [
231
+ S("自动保存")
203
232
  ])),
204
233
  _: 1
205
234
  }, 8, ["modelValue"]),
206
- b("div", re, [
207
- e[4] || (e[4] = b("div", { class: "save-time-label" }, "保存间隔", -1)),
208
- d(s, {
235
+ k("div", ue, [
236
+ e[4] || (e[4] = k("div", { class: "save-time-label" }, "保存间隔", -1)),
237
+ v(n, {
209
238
  modelValue: t.state.timeValue,
210
- "onUpdate:modelValue": e[1] || (e[1] = (g) => t.state.timeValue = g),
239
+ "onUpdate:modelValue": e[1] || (e[1] = (m) => t.state.timeValue = m),
211
240
  options: t.delayOptions,
212
241
  disabled: !t.state.checked,
213
242
  autocomplete: ""
214
243
  }, null, 8, ["modelValue", "options", "disabled"])
215
244
  ]),
216
- b("div", ce, [
217
- d(c, {
245
+ k("div", me, [
246
+ v(c, {
218
247
  type: "primary",
219
248
  onClick: t.saveConfig
220
249
  }, {
221
- default: r(() => e[5] || (e[5] = [
222
- k("设置并保存")
250
+ default: d(() => e[5] || (e[5] = [
251
+ S("设置并保存")
223
252
  ])),
224
253
  _: 1
225
254
  }, 8, ["onClick"])
@@ -229,35 +258,35 @@ function de(n, e, o, t, i, a) {
229
258
  _: 1
230
259
  }, 8, ["open-delay"])
231
260
  ]),
232
- default: r(() => [
233
- d(O, {
261
+ default: d(() => [
262
+ v(h, {
234
263
  class: "dialog-box",
235
264
  modal: !1,
236
265
  fullscreen: !0,
237
266
  "append-to-body": !0,
238
267
  visible: t.state.visible,
239
268
  title: "Schema 本地与线上差异",
240
- "onUpdate:visible": e[2] || (e[2] = (g) => t.state.visible = g)
269
+ "onUpdate:visible": e[2] || (e[2] = (m) => t.state.visible = m)
241
270
  }, {
242
- footer: r(() => [
243
- d(c, { onClick: t.close }, {
244
- default: r(() => e[7] || (e[7] = [
245
- k("取 消")
271
+ footer: d(() => [
272
+ v(c, { onClick: t.close }, {
273
+ default: d(() => e[7] || (e[7] = [
274
+ S("取 消")
246
275
  ])),
247
276
  _: 1
248
277
  }, 8, ["onClick"]),
249
- d(c, {
278
+ v(c, {
250
279
  type: "primary",
251
280
  onClick: t.saveApi
252
281
  }, {
253
- default: r(() => e[8] || (e[8] = [
254
- k("保 存")
282
+ default: d(() => e[8] || (e[8] = [
283
+ S("保 存")
255
284
  ])),
256
285
  _: 1
257
286
  }, 8, ["onClick"])
258
287
  ]),
259
- default: r(() => [
260
- t.state.visible ? (A(), D(f, {
288
+ default: d(() => [
289
+ t.state.visible ? (x(), U(u, {
261
290
  key: 0,
262
291
  ref: "editor",
263
292
  class: "monaco-editor",
@@ -265,7 +294,7 @@ function de(n, e, o, t, i, a) {
265
294
  options: t.editorOptions,
266
295
  value: t.state.code,
267
296
  original: t.state.originalCode
268
- }, null, 8, ["options", "value", "original"])) : L("", !0)
297
+ }, null, 8, ["options", "value", "original"])) : I("", !0)
269
298
  ]),
270
299
  _: 1
271
300
  }, 8, ["visible"])
@@ -274,11 +303,11 @@ function de(n, e, o, t, i, a) {
274
303
  }, 8, ["content", "icon", "options", "onClickApi"])
275
304
  ]);
276
305
  }
277
- const ue = /* @__PURE__ */ oe(se, [["render", de], ["__scopeId", "data-v-50f88046"]]), _e = {
278
- ...E,
279
- entry: ue,
280
- apis: ae
306
+ const pe = /* @__PURE__ */ se(ce, [["render", ve], ["__scopeId", "data-v-204025a1"]]), Ce = {
307
+ ...w,
308
+ entry: pe,
309
+ apis: le
281
310
  };
282
311
  export {
283
- _e as default
312
+ Ce as default
284
313
  };
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-204025a1]{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-204025a1]{margin-left:var(--te-base-space-2x);margin-right:var(--te-base-space-0)}.toolbar-save .save-button[data-v-204025a1]{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-204025a1]:not(.disabled):hover{background-color:var(--te-toolbars-save-button-bg-color)}.toolbar-save[data-v-204025a1] .icon-down-arrow:focus{outline:none}.save-style[data-v-204025a1]{padding:8px 4px;font-size:12px}.save-style .save-setting[data-v-204025a1]{font-size:14px;font-weight:600;line-height:20px;height:20px;margin-bottom:16px}.save-style .save-time[data-v-204025a1]{line-height:24px;font-size:12px;margin:12px 0 16px;display:flex}.save-style .save-time .save-time-label[data-v-204025a1]{width:60px;color:var(--te-toolbars-save-text-color)}.save-style .save-time .tiny-select[data-v-204025a1]{width:103px;margin-left:12px}.save-style .save-time .tiny-select[data-v-204025a1] .tiny-input__suffix{width:12px}.save-style .save-time[data-v-204025a1] .tiny-select.is-disabled .tiny-input__suffix{display:flex}.save-style .save-button-group[data-v-204025a1]{text-align:right}#saving[data-v-204025a1]{cursor:not-allowed;color:var(--te-toolbars-save-text-color-disabled)}#saving[data-v-204025a1] svg{color:var(--te-toolbars-save-text-color-disabled)}.dialog-box[data-v-204025a1] .tiny-dialog-box{display:flex;flex-direction:column}.dialog-box[data-v-204025a1] .tiny-dialog-box .tiny-dialog-box__body{flex:1}.dialog-box .monaco-editor[data-v-204025a1]{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.3.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.3.0",
29
+ "@opentiny/tiny-engine-meta-register": "2.3.0",
30
+ "@opentiny/tiny-engine-utils": "2.3.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.3.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": "330c4d2b319d5b5ba6ad64c270c21a7931a2e400"
43
43
  }