@opentiny/tiny-engine-toolbar-media 2.4.0 → 2.5.0-alpha.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,15 +1,25 @@
1
1
  import "./style.css";
2
- import { ref as _, computed as B, reactive as X, toRaw as Y, watch as M, watchEffect as Z, onMounted as $, onUnmounted as ee, resolveComponent as f, createBlock as T, openBlock as v, withCtx as c, createElementVNode as t, createCommentVNode as W, createElementBlock as I, Fragment as te, renderList as ne, normalizeClass as ie, createVNode as g, createTextVNode as D, toDisplayString as r } from "vue";
3
- import { Switch as oe, Input as ae, Popover as le } from "@opentiny/vue";
4
- import { IconWebPlus as N } from "@opentiny/vue-icon";
5
- import { useLayout as V, useCanvas as A } from "@opentiny/tiny-engine-meta-register";
6
- import { ToolbarBase as se } from "@opentiny/tiny-engine-common";
7
- const de = {
2
+ import { useLayout as h, useCanvas as V, callEntry as C, useCompile as Q } from "@opentiny/tiny-engine-meta-register";
3
+ import { ref as q, computed as X, reactive as ee, toRaw as te, watch as Y, watchEffect as ae, onMounted as ne, onUnmounted as ie, resolveComponent as $, createBlock as z, openBlock as O, withCtx as L, createElementVNode as o, createCommentVNode as R, createElementBlock as G, Fragment as oe, renderList as le, normalizeClass as se, createVNode as j, createTextVNode as H, toDisplayString as U } from "vue";
4
+ import { Switch as de, Input as ce, Popover as re } from "@opentiny/vue";
5
+ import { IconWebPlus as y } from "@opentiny/vue-icon";
6
+ import { ToolbarBase as B } from "@opentiny/tiny-engine-common";
7
+ const f = {
8
+ id: "engine.toolbars.media",
9
+ type: "toolbars",
10
+ title: "media",
11
+ options: {
12
+ icon: {
13
+ default: ""
14
+ },
15
+ renderType: "slot"
16
+ }
17
+ }, ue = {
8
18
  components: {
9
- TinyPopover: le,
10
- TinyInput: ae,
11
- TinySwitch: oe,
12
- ToolbarBase: se
19
+ TinyPopover: re,
20
+ TinyInput: ce,
21
+ TinySwitch: de,
22
+ ToolbarBase: B
13
23
  },
14
24
  props: {
15
25
  data: {
@@ -25,9 +35,15 @@ const de = {
25
35
  default: () => ({})
26
36
  }
27
37
  },
28
- setup(h, { emit: n }) {
29
- let d = null, i = "", p = "";
30
- const { layoutState: w } = V(), u = _(!1), b = _(!1), m = _(!1), { getCanvasType: y } = A().canvasApi.value, C = _((y == null ? void 0 : y()) === "absolute"), o = B(() => V().getDimension()), x = B(() => o.value.scale * 100), a = X({
38
+ setup(u, {
39
+ emit: e
40
+ }) {
41
+ let l = null, t = "", s = "";
42
+ const {
43
+ layoutState: p
44
+ } = h(), d = q(!1), m = q(!1), c = q(!1), {
45
+ getCanvasType: x
46
+ } = V().canvasApi.value, b = q((x == null ? void 0 : x()) === "absolute"), a = X(() => h().getDimension()), r = X(() => a.value.scale * 100), n = ee({
31
47
  activeIndex: 0,
32
48
  guideValue: "",
33
49
  width: "",
@@ -36,345 +52,909 @@ const de = {
36
52
  viewWidth: null,
37
53
  moreData: {
38
54
  title: "添加大断点",
39
- list: [
40
- {
41
- icon: N(),
42
- text: "1280px"
43
- },
44
- {
45
- icon: N(),
46
- text: "1440px"
47
- },
48
- {
49
- icon: N(),
50
- text: "1920px"
51
- }
52
- ],
55
+ list: [{
56
+ icon: y(),
57
+ text: "1280px"
58
+ }, {
59
+ icon: y(),
60
+ text: "1440px"
61
+ }, {
62
+ icon: y(),
63
+ text: "1920px"
64
+ }],
53
65
  tips: "将鼠标悬停在断点上以了解更多信息"
54
66
  },
55
67
  textData: {
56
68
  title: "画布设置",
57
69
  width: "宽度",
58
70
  scale: "缩放",
59
- list: [
60
- {
61
- text: "自由布局"
62
- }
63
- ],
71
+ list: [{
72
+ text: "自由布局"
73
+ }],
64
74
  vision: "视觉预览"
65
75
  },
66
- guideOptions: [
67
- {
68
- value: "选项1",
69
- label: "No guide"
70
- },
71
- {
72
- value: "选项2",
73
- label: "Line guide(960px)"
74
- },
75
- {
76
- value: "选项3",
77
- label: "Filled guide(960px)"
78
- }
79
- ],
80
- media: [
81
- {
82
- idx: 0,
83
- view: "mdx",
84
- icon: "IconDesktopView",
85
- liked: "desktop-large",
86
- width: "1920px",
87
- minWidth: "1200px",
88
- maxWidth: "1920px",
89
- title: "大屏",
90
- subTitle: "1200px 及以上",
91
- content: "此处添加的样式将适用于 1200 像素及以上,除非它们在更大的断点处进行编辑。",
92
- enContent: "Style added here will apply at 1200px and up,unless they′re edited at a larger breakpoint."
93
- },
94
- {
95
- idx: 1,
96
- view: "desktop",
97
- icon: "IconDesktopView",
98
- liked: "laptop-cut-corner",
99
- width: "1200px",
100
- minWidth: "992px",
101
- maxWidth: "1200px",
102
- title: "PC 端",
103
- subTitle: "基本断点",
104
- content: "桌面端样式适用于所有断点,除非它们在更大或更小的断点处进行编辑,在这里开始你的布局。",
105
- enContent: "Desktop styles apply at all breakpoints,unless they′re edited at a larger or smaller breakpoints. Start your stying here."
106
- },
107
- {
108
- idx: 2,
109
- view: "tablet",
110
- icon: "IconTabletView",
111
- liked: "tablet-portrait",
112
- width: "992px",
113
- minWidth: "768px",
114
- maxWidth: "992px",
115
- title: "平板",
116
- subTitle: "992px 及以下",
117
- content: "此处添加的样式将适用于 992 像素及以下,除非它们在较小的断点处进行编辑。",
118
- enContent: "styles added here will apply at 992px and down,unless they′re edited at smaller breakpoints."
119
- },
120
- {
121
- idx: 3,
122
- view: "lanMobile",
123
- icon: "IconMobileView",
124
- liked: "mobile-landscape",
125
- width: "768px",
126
- minWidth: "480px",
127
- maxWidth: "768px",
128
- title: "手机横屏",
129
- subTitle: "768px 及以下",
130
- content: "此处添加的样式将适用于 768 像素及以下,除非它们在较小的断点处进行编辑。",
131
- enContent: "styles added here will apply at 768px and down,unless they′re edited at smaller breakpoints."
132
- },
133
- {
134
- idx: 4,
135
- view: "mobile",
136
- icon: "IconMobileView",
137
- liked: "mobile-portrai",
138
- width: "480px",
139
- minWidth: "240px",
140
- maxWidth: "480px",
141
- title: "手机竖屏",
142
- subTitle: "480px 及以下",
143
- content: "此处添加的样式将适用于 480 像素及以下。",
144
- enContent: "styles added here will apply at 480px and down."
145
- }
146
- ]
147
- }), L = () => {
148
- b.value = !1;
149
- }, O = () => {
150
- d = setTimeout(() => {
151
- u.value = !0;
76
+ guideOptions: [{
77
+ value: "选项1",
78
+ label: "No guide"
79
+ }, {
80
+ value: "选项2",
81
+ label: "Line guide(960px)"
82
+ }, {
83
+ value: "选项3",
84
+ label: "Filled guide(960px)"
85
+ }],
86
+ media: [{
87
+ idx: 0,
88
+ view: "mdx",
89
+ icon: "IconDesktopView",
90
+ liked: "desktop-large",
91
+ width: "1920px",
92
+ minWidth: "1200px",
93
+ maxWidth: "1920px",
94
+ title: "大屏",
95
+ subTitle: "1200px 及以上",
96
+ content: "此处添加的样式将适用于 1200 像素及以上,除非它们在更大的断点处进行编辑。",
97
+ enContent: "Style added here will apply at 1200px and up,unless they′re edited at a larger breakpoint."
98
+ }, {
99
+ idx: 1,
100
+ view: "desktop",
101
+ icon: "IconDesktopView",
102
+ liked: "laptop-cut-corner",
103
+ width: "1200px",
104
+ minWidth: "992px",
105
+ maxWidth: "1200px",
106
+ title: "PC 端",
107
+ subTitle: "基本断点",
108
+ content: "桌面端样式适用于所有断点,除非它们在更大或更小的断点处进行编辑,在这里开始你的布局。",
109
+ enContent: "Desktop styles apply at all breakpoints,unless they′re edited at a larger or smaller breakpoints. Start your stying here."
110
+ }, {
111
+ idx: 2,
112
+ view: "tablet",
113
+ icon: "IconTabletView",
114
+ liked: "tablet-portrait",
115
+ width: "992px",
116
+ minWidth: "768px",
117
+ maxWidth: "992px",
118
+ title: "平板",
119
+ subTitle: "992px 及以下",
120
+ content: "此处添加的样式将适用于 992 像素及以下,除非它们在较小的断点处进行编辑。",
121
+ enContent: "styles added here will apply at 992px and down,unless they′re edited at smaller breakpoints."
122
+ }, {
123
+ idx: 3,
124
+ view: "lanMobile",
125
+ icon: "IconMobileView",
126
+ liked: "mobile-landscape",
127
+ width: "768px",
128
+ minWidth: "480px",
129
+ maxWidth: "768px",
130
+ title: "手机横屏",
131
+ subTitle: "768px 及以下",
132
+ content: "此处添加的样式将适用于 768 像素及以下,除非它们在较小的断点处进行编辑。",
133
+ enContent: "styles added here will apply at 768px and down,unless they′re edited at smaller breakpoints."
134
+ }, {
135
+ idx: 4,
136
+ view: "mobile",
137
+ icon: "IconMobileView",
138
+ liked: "mobile-portrai",
139
+ width: "480px",
140
+ minWidth: "240px",
141
+ maxWidth: "480px",
142
+ title: "手机竖屏",
143
+ subTitle: "480px 及以下",
144
+ content: "此处添加的样式将适用于 480 像素及以下。",
145
+ enContent: "styles added here will apply at 480px and down."
146
+ }]
147
+ }), k = C(() => {
148
+ m.value = !1;
149
+ }, {
150
+ metaData: {
151
+ id: `${f.id}.hide`
152
+ },
153
+ ctx: () => ({
154
+ props: u,
155
+ emit: e,
156
+ timer: l,
157
+ prevWidthVal: t,
158
+ prevScaleVal: s,
159
+ layoutState: p,
160
+ visible: d,
161
+ active: m,
162
+ flag: c,
163
+ getCanvasType: x,
164
+ isAbsolute: b,
165
+ dimension: a,
166
+ scale: r,
167
+ state: n,
168
+ hide: k,
169
+ showTips: D,
170
+ hideTips: T,
171
+ showPopover: W,
172
+ hidePopover: I,
173
+ closePopover: g,
174
+ mediaMap: v,
175
+ setViewPort: _,
176
+ activeView: P,
177
+ breakpoints: E,
178
+ widthChange: N,
179
+ scaleChange: F,
180
+ changeCanvasType: S,
181
+ mode: M,
182
+ IconWebPlus: y,
183
+ useLayout: h,
184
+ useCanvas: V,
185
+ ToolbarBase: B
186
+ })
187
+ }), D = C(() => {
188
+ l = setTimeout(() => {
189
+ d.value = !0;
152
190
  }, 1e3);
153
- }, U = () => {
154
- u.value = !1, clearTimeout(d);
155
- }, j = () => {
156
- w.toolbars.visiblePopover = !0, m.value = !0;
157
- }, q = () => {
158
- w.toolbars.visiblePopover = !1, m.value = !1;
159
- }, P = (e) => {
160
- const l = document.querySelector(".reference-text"), s = l == null ? void 0 : l.contains(e.target);
161
- l !== e.target && !s && (w.toolbars.visiblePopover = !1);
162
- }, k = a.media.reduce((e, l, s) => (e[l.view] = { ...Y(l), index: s }, e), {}), E = (e) => {
163
- h.isCanvas ? V().setDimension({
164
- deviceType: e.view,
165
- width: e.width,
166
- minWidth: e.minWidth,
167
- maxWidth: e.maxWidth
168
- }) : (a.activeIndex = e.idx, n("setViewPort", e.width));
169
- }, z = (e, l) => {
170
- const s = k[l];
171
- V().setDimension({
172
- deviceType: s.view,
173
- width: e ? `${e}px` : s.width,
174
- minWidth: s.minWidth,
175
- maxWidth: s.maxWidth
191
+ }, {
192
+ metaData: {
193
+ id: `${f.id}.showTips`
194
+ },
195
+ ctx: () => ({
196
+ props: u,
197
+ emit: e,
198
+ timer: l,
199
+ prevWidthVal: t,
200
+ prevScaleVal: s,
201
+ layoutState: p,
202
+ visible: d,
203
+ active: m,
204
+ flag: c,
205
+ getCanvasType: x,
206
+ isAbsolute: b,
207
+ dimension: a,
208
+ scale: r,
209
+ state: n,
210
+ hide: k,
211
+ showTips: D,
212
+ hideTips: T,
213
+ showPopover: W,
214
+ hidePopover: I,
215
+ closePopover: g,
216
+ mediaMap: v,
217
+ setViewPort: _,
218
+ activeView: P,
219
+ breakpoints: E,
220
+ widthChange: N,
221
+ scaleChange: F,
222
+ changeCanvasType: S,
223
+ mode: M,
224
+ IconWebPlus: y,
225
+ useLayout: h,
226
+ useCanvas: V,
227
+ ToolbarBase: B
228
+ })
229
+ }), T = C(() => {
230
+ d.value = !1, clearTimeout(l);
231
+ }, {
232
+ metaData: {
233
+ id: `${f.id}.hideTips`
234
+ },
235
+ ctx: () => ({
236
+ props: u,
237
+ emit: e,
238
+ timer: l,
239
+ prevWidthVal: t,
240
+ prevScaleVal: s,
241
+ layoutState: p,
242
+ visible: d,
243
+ active: m,
244
+ flag: c,
245
+ getCanvasType: x,
246
+ isAbsolute: b,
247
+ dimension: a,
248
+ scale: r,
249
+ state: n,
250
+ hide: k,
251
+ showTips: D,
252
+ hideTips: T,
253
+ showPopover: W,
254
+ hidePopover: I,
255
+ closePopover: g,
256
+ mediaMap: v,
257
+ setViewPort: _,
258
+ activeView: P,
259
+ breakpoints: E,
260
+ widthChange: N,
261
+ scaleChange: F,
262
+ changeCanvasType: S,
263
+ mode: M,
264
+ IconWebPlus: y,
265
+ useLayout: h,
266
+ useCanvas: V,
267
+ ToolbarBase: B
268
+ })
269
+ }), W = C(() => {
270
+ p.toolbars.visiblePopover = !0, c.value = !0;
271
+ }, {
272
+ metaData: {
273
+ id: `${f.id}.showPopover`
274
+ },
275
+ ctx: () => ({
276
+ props: u,
277
+ emit: e,
278
+ timer: l,
279
+ prevWidthVal: t,
280
+ prevScaleVal: s,
281
+ layoutState: p,
282
+ visible: d,
283
+ active: m,
284
+ flag: c,
285
+ getCanvasType: x,
286
+ isAbsolute: b,
287
+ dimension: a,
288
+ scale: r,
289
+ state: n,
290
+ hide: k,
291
+ showTips: D,
292
+ hideTips: T,
293
+ showPopover: W,
294
+ hidePopover: I,
295
+ closePopover: g,
296
+ mediaMap: v,
297
+ setViewPort: _,
298
+ activeView: P,
299
+ breakpoints: E,
300
+ widthChange: N,
301
+ scaleChange: F,
302
+ changeCanvasType: S,
303
+ mode: M,
304
+ IconWebPlus: y,
305
+ useLayout: h,
306
+ useCanvas: V,
307
+ ToolbarBase: B
308
+ })
309
+ }), I = C(() => {
310
+ p.toolbars.visiblePopover = !1, c.value = !1;
311
+ }, {
312
+ metaData: {
313
+ id: `${f.id}.hidePopover`
314
+ },
315
+ ctx: () => ({
316
+ props: u,
317
+ emit: e,
318
+ timer: l,
319
+ prevWidthVal: t,
320
+ prevScaleVal: s,
321
+ layoutState: p,
322
+ visible: d,
323
+ active: m,
324
+ flag: c,
325
+ getCanvasType: x,
326
+ isAbsolute: b,
327
+ dimension: a,
328
+ scale: r,
329
+ state: n,
330
+ hide: k,
331
+ showTips: D,
332
+ hideTips: T,
333
+ showPopover: W,
334
+ hidePopover: I,
335
+ closePopover: g,
336
+ mediaMap: v,
337
+ setViewPort: _,
338
+ activeView: P,
339
+ breakpoints: E,
340
+ widthChange: N,
341
+ scaleChange: F,
342
+ changeCanvasType: S,
343
+ mode: M,
344
+ IconWebPlus: y,
345
+ useLayout: h,
346
+ useCanvas: V,
347
+ ToolbarBase: B
348
+ })
349
+ }), g = C((i) => {
350
+ const w = document.querySelector(".reference-text"), A = w == null ? void 0 : w.contains(i.target);
351
+ w !== i.target && !A && (p.toolbars.visiblePopover = !1);
352
+ }, {
353
+ metaData: {
354
+ id: `${f.id}.closePopover`
355
+ },
356
+ ctx: () => ({
357
+ props: u,
358
+ emit: e,
359
+ timer: l,
360
+ prevWidthVal: t,
361
+ prevScaleVal: s,
362
+ layoutState: p,
363
+ visible: d,
364
+ active: m,
365
+ flag: c,
366
+ getCanvasType: x,
367
+ isAbsolute: b,
368
+ dimension: a,
369
+ scale: r,
370
+ state: n,
371
+ hide: k,
372
+ showTips: D,
373
+ hideTips: T,
374
+ showPopover: W,
375
+ hidePopover: I,
376
+ closePopover: g,
377
+ mediaMap: v,
378
+ setViewPort: _,
379
+ activeView: P,
380
+ breakpoints: E,
381
+ widthChange: N,
382
+ scaleChange: F,
383
+ changeCanvasType: S,
384
+ mode: M,
385
+ IconWebPlus: y,
386
+ useLayout: h,
387
+ useCanvas: V,
388
+ ToolbarBase: B
389
+ })
390
+ }), v = n.media.reduce((i, w, A) => (i[w.view] = {
391
+ ...te(w),
392
+ index: A
393
+ }, i), {}), _ = C((i) => {
394
+ u.isCanvas ? h().setDimension({
395
+ deviceType: i.view,
396
+ width: i.width,
397
+ minWidth: i.minWidth,
398
+ maxWidth: i.maxWidth
399
+ }) : (n.activeIndex = i.idx, e("setViewPort", i.width));
400
+ }, {
401
+ metaData: {
402
+ id: `${f.id}.setViewPort`
403
+ },
404
+ ctx: () => ({
405
+ props: u,
406
+ emit: e,
407
+ timer: l,
408
+ prevWidthVal: t,
409
+ prevScaleVal: s,
410
+ layoutState: p,
411
+ visible: d,
412
+ active: m,
413
+ flag: c,
414
+ getCanvasType: x,
415
+ isAbsolute: b,
416
+ dimension: a,
417
+ scale: r,
418
+ state: n,
419
+ hide: k,
420
+ showTips: D,
421
+ hideTips: T,
422
+ showPopover: W,
423
+ hidePopover: I,
424
+ closePopover: g,
425
+ mediaMap: v,
426
+ setViewPort: _,
427
+ activeView: P,
428
+ breakpoints: E,
429
+ widthChange: N,
430
+ scaleChange: F,
431
+ changeCanvasType: S,
432
+ mode: M,
433
+ IconWebPlus: y,
434
+ useLayout: h,
435
+ useCanvas: V,
436
+ ToolbarBase: B
437
+ })
438
+ }), P = C((i, w) => {
439
+ const A = v[w];
440
+ h().setDimension({
441
+ deviceType: A.view,
442
+ width: i ? `${i}px` : A.width,
443
+ minWidth: A.minWidth,
444
+ maxWidth: A.maxWidth
176
445
  });
177
- }, R = [
178
- { type: "mobile", min: 240, max: 480 },
179
- { type: "lanMobile", min: 480, max: 768 },
180
- { type: "tablet", min: 768, max: 992 },
181
- { type: "desktop", min: 992, max: 1200 },
182
- { type: "mdx", min: 1200, max: 1920 }
183
- ], G = (e) => {
184
- var F;
185
- const l = /^\d+$/;
186
- String(e).match(l) ? Number(e) < 240 ? a.width = 240 : Number(e) > 1920 ? a.width = 1920 : a.width = e : a.width = i || parseInt(o.value.width, 10);
187
- const s = Number(a.width), Q = ((F = R.find((S) => S.min <= s && s <= S.max)) == null ? void 0 : F.type) || "desktop";
188
- z(s, Q);
189
- }, H = (e) => {
190
- const l = k.mdx, s = /^\d+(\.\d+)?$/;
191
- String(e).match(s) ? Number(e) > 100 ? a.scaleValue = 100 : Number(e) < 20 ? a.scaleValue = 20 : a.scaleValue = e : a.scaleValue = p || parseInt(l.scale), a.scaleValue = Number(a.scaleValue).toFixed(2), V().setDimension({
192
- scale: Number(a.scaleValue) / 100
446
+ }, {
447
+ metaData: {
448
+ id: `${f.id}.activeView`
449
+ },
450
+ ctx: () => ({
451
+ props: u,
452
+ emit: e,
453
+ timer: l,
454
+ prevWidthVal: t,
455
+ prevScaleVal: s,
456
+ layoutState: p,
457
+ visible: d,
458
+ active: m,
459
+ flag: c,
460
+ getCanvasType: x,
461
+ isAbsolute: b,
462
+ dimension: a,
463
+ scale: r,
464
+ state: n,
465
+ hide: k,
466
+ showTips: D,
467
+ hideTips: T,
468
+ showPopover: W,
469
+ hidePopover: I,
470
+ closePopover: g,
471
+ mediaMap: v,
472
+ setViewPort: _,
473
+ activeView: P,
474
+ breakpoints: E,
475
+ widthChange: N,
476
+ scaleChange: F,
477
+ changeCanvasType: S,
478
+ mode: M,
479
+ IconWebPlus: y,
480
+ useLayout: h,
481
+ useCanvas: V,
482
+ ToolbarBase: B
483
+ })
484
+ }), E = [{
485
+ type: "mobile",
486
+ min: 240,
487
+ max: 480
488
+ }, {
489
+ type: "lanMobile",
490
+ min: 480,
491
+ max: 768
492
+ }, {
493
+ type: "tablet",
494
+ min: 768,
495
+ max: 992
496
+ }, {
497
+ type: "desktop",
498
+ min: 992,
499
+ max: 1200
500
+ }, {
501
+ type: "mdx",
502
+ min: 1200,
503
+ max: 1920
504
+ }], N = C((i) => {
505
+ var J;
506
+ const w = /^\d+$/;
507
+ String(i).match(w) ? Number(i) < 240 ? n.width = 240 : Number(i) > 1920 ? n.width = 1920 : n.width = i : n.width = t || parseInt(a.value.width, 10);
508
+ const A = Number(n.width), Z = ((J = E.find((K) => K.min <= A && A <= K.max)) == null ? void 0 : J.type) || "desktop";
509
+ P(A, Z);
510
+ }, {
511
+ metaData: {
512
+ id: `${f.id}.widthChange`
513
+ },
514
+ ctx: () => ({
515
+ props: u,
516
+ emit: e,
517
+ timer: l,
518
+ prevWidthVal: t,
519
+ prevScaleVal: s,
520
+ layoutState: p,
521
+ visible: d,
522
+ active: m,
523
+ flag: c,
524
+ getCanvasType: x,
525
+ isAbsolute: b,
526
+ dimension: a,
527
+ scale: r,
528
+ state: n,
529
+ hide: k,
530
+ showTips: D,
531
+ hideTips: T,
532
+ showPopover: W,
533
+ hidePopover: I,
534
+ closePopover: g,
535
+ mediaMap: v,
536
+ setViewPort: _,
537
+ activeView: P,
538
+ breakpoints: E,
539
+ widthChange: N,
540
+ scaleChange: F,
541
+ changeCanvasType: S,
542
+ mode: M,
543
+ IconWebPlus: y,
544
+ useLayout: h,
545
+ useCanvas: V,
546
+ ToolbarBase: B
547
+ })
548
+ }), F = C((i) => {
549
+ const w = v.mdx, A = /^\d+(\.\d+)?$/;
550
+ String(i).match(A) ? Number(i) > 100 ? n.scaleValue = 100 : Number(i) < 20 ? n.scaleValue = 20 : n.scaleValue = i : n.scaleValue = s || parseInt(w.scale), n.scaleValue = Number(n.scaleValue).toFixed(2), h().setDimension({
551
+ scale: Number(n.scaleValue) / 100
193
552
  });
194
- }, J = (e) => {
195
- const { setCanvasType: l } = A().canvasApi.value;
196
- l(e ? "absolute" : "normal");
197
- };
198
- M(
199
- () => o.value.deviceType,
200
- (e) => {
201
- a.activeIndex = k[e].index, a.readonly = e !== "mdx";
553
+ }, {
554
+ metaData: {
555
+ id: `${f.id}.scaleChange`
202
556
  },
203
- { immediate: !0 }
204
- ), Z(() => {
205
- a.scaleValue = x.value.toFixed(2), p = x.value;
206
- }), M(
207
- () => o.value.width,
208
- (e) => {
209
- const l = parseInt(e, 10);
210
- Number.isInteger(l) && (a.width = l, i = l);
211
- }
212
- ), $(() => {
213
- document.addEventListener("click", P);
214
- }), ee(() => {
215
- document.removeEventListener("click", P);
557
+ ctx: () => ({
558
+ props: u,
559
+ emit: e,
560
+ timer: l,
561
+ prevWidthVal: t,
562
+ prevScaleVal: s,
563
+ layoutState: p,
564
+ visible: d,
565
+ active: m,
566
+ flag: c,
567
+ getCanvasType: x,
568
+ isAbsolute: b,
569
+ dimension: a,
570
+ scale: r,
571
+ state: n,
572
+ hide: k,
573
+ showTips: D,
574
+ hideTips: T,
575
+ showPopover: W,
576
+ hidePopover: I,
577
+ closePopover: g,
578
+ mediaMap: v,
579
+ setViewPort: _,
580
+ activeView: P,
581
+ breakpoints: E,
582
+ widthChange: N,
583
+ scaleChange: F,
584
+ changeCanvasType: S,
585
+ mode: M,
586
+ IconWebPlus: y,
587
+ useLayout: h,
588
+ useCanvas: V,
589
+ ToolbarBase: B
590
+ })
591
+ }), S = C((i) => {
592
+ const {
593
+ setCanvasType: w
594
+ } = V().canvasApi.value;
595
+ w(i ? "absolute" : "normal");
596
+ }, {
597
+ metaData: {
598
+ id: `${f.id}.changeCanvasType`
599
+ },
600
+ ctx: () => ({
601
+ props: u,
602
+ emit: e,
603
+ timer: l,
604
+ prevWidthVal: t,
605
+ prevScaleVal: s,
606
+ layoutState: p,
607
+ visible: d,
608
+ active: m,
609
+ flag: c,
610
+ getCanvasType: x,
611
+ isAbsolute: b,
612
+ dimension: a,
613
+ scale: r,
614
+ state: n,
615
+ hide: k,
616
+ showTips: D,
617
+ hideTips: T,
618
+ showPopover: W,
619
+ hidePopover: I,
620
+ closePopover: g,
621
+ mediaMap: v,
622
+ setViewPort: _,
623
+ activeView: P,
624
+ breakpoints: E,
625
+ widthChange: N,
626
+ scaleChange: F,
627
+ changeCanvasType: S,
628
+ mode: M,
629
+ IconWebPlus: y,
630
+ useLayout: h,
631
+ useCanvas: V,
632
+ ToolbarBase: B
633
+ })
216
634
  });
217
- const K = o.value.deviceType || "desktop";
218
- return E(k[K]), {
219
- scale: x,
220
- state: a,
221
- active: b,
222
- flag: m,
223
- hide: L,
224
- layoutState: w,
225
- visible: u,
226
- showTips: O,
227
- hideTips: U,
228
- timer: d,
229
- dimension: o,
230
- setViewPort: E,
231
- showPopover: j,
232
- hidePopover: q,
233
- widthChange: G,
234
- scaleChange: H,
235
- isAbsolute: C,
236
- changeCanvasType: J
635
+ Y(() => a.value.deviceType, (i) => {
636
+ n.activeIndex = v[i].index, n.readonly = i !== "mdx";
637
+ }, {
638
+ immediate: !0
639
+ }), ae(() => {
640
+ n.scaleValue = r.value.toFixed(2), s = r.value;
641
+ }), Y(() => a.value.width, (i) => {
642
+ const w = parseInt(i, 10);
643
+ Number.isInteger(w) && (n.width = w, t = w);
644
+ }), ne(C(C(() => {
645
+ document.addEventListener("click", g);
646
+ }, {
647
+ metaData: {
648
+ id: `${f.id}.onMounted[0]`
649
+ },
650
+ ctx: () => ({
651
+ props: u,
652
+ emit: e,
653
+ timer: l,
654
+ prevWidthVal: t,
655
+ prevScaleVal: s,
656
+ layoutState: p,
657
+ visible: d,
658
+ active: m,
659
+ flag: c,
660
+ getCanvasType: x,
661
+ isAbsolute: b,
662
+ dimension: a,
663
+ scale: r,
664
+ state: n,
665
+ hide: k,
666
+ showTips: D,
667
+ hideTips: T,
668
+ showPopover: W,
669
+ hidePopover: I,
670
+ closePopover: g,
671
+ mediaMap: v,
672
+ setViewPort: _,
673
+ activeView: P,
674
+ breakpoints: E,
675
+ widthChange: N,
676
+ scaleChange: F,
677
+ changeCanvasType: S,
678
+ mode: M,
679
+ IconWebPlus: y,
680
+ useLayout: h,
681
+ useCanvas: V,
682
+ ToolbarBase: B
683
+ })
684
+ }), {
685
+ metaData: {
686
+ id: `${f.id}.onMounted[0]`
687
+ },
688
+ ctx: () => ({
689
+ props: u,
690
+ emit: e,
691
+ timer: l,
692
+ prevWidthVal: t,
693
+ prevScaleVal: s,
694
+ layoutState: p,
695
+ visible: d,
696
+ active: m,
697
+ flag: c,
698
+ getCanvasType: x,
699
+ isAbsolute: b,
700
+ dimension: a,
701
+ scale: r,
702
+ state: n,
703
+ hide: k,
704
+ showTips: D,
705
+ hideTips: T,
706
+ showPopover: W,
707
+ hidePopover: I,
708
+ closePopover: g,
709
+ mediaMap: v,
710
+ setViewPort: _,
711
+ activeView: P,
712
+ breakpoints: E,
713
+ widthChange: N,
714
+ scaleChange: F,
715
+ changeCanvasType: S,
716
+ mode: M,
717
+ _callEntry: C,
718
+ _useCompile: Q,
719
+ _metaData: f,
720
+ IconWebPlus: y,
721
+ useLayout: h,
722
+ useCanvas: V,
723
+ ToolbarBase: B
724
+ })
725
+ })), ie(C(C(() => {
726
+ document.removeEventListener("click", g);
727
+ }, {
728
+ metaData: {
729
+ id: `${f.id}.onUnmounted[0]`
730
+ },
731
+ ctx: () => ({
732
+ props: u,
733
+ emit: e,
734
+ timer: l,
735
+ prevWidthVal: t,
736
+ prevScaleVal: s,
737
+ layoutState: p,
738
+ visible: d,
739
+ active: m,
740
+ flag: c,
741
+ getCanvasType: x,
742
+ isAbsolute: b,
743
+ dimension: a,
744
+ scale: r,
745
+ state: n,
746
+ hide: k,
747
+ showTips: D,
748
+ hideTips: T,
749
+ showPopover: W,
750
+ hidePopover: I,
751
+ closePopover: g,
752
+ mediaMap: v,
753
+ setViewPort: _,
754
+ activeView: P,
755
+ breakpoints: E,
756
+ widthChange: N,
757
+ scaleChange: F,
758
+ changeCanvasType: S,
759
+ mode: M,
760
+ IconWebPlus: y,
761
+ useLayout: h,
762
+ useCanvas: V,
763
+ ToolbarBase: B
764
+ })
765
+ }), {
766
+ metaData: {
767
+ id: `${f.id}.onUnmounted[0]`
768
+ },
769
+ ctx: () => ({
770
+ props: u,
771
+ emit: e,
772
+ timer: l,
773
+ prevWidthVal: t,
774
+ prevScaleVal: s,
775
+ layoutState: p,
776
+ visible: d,
777
+ active: m,
778
+ flag: c,
779
+ getCanvasType: x,
780
+ isAbsolute: b,
781
+ dimension: a,
782
+ scale: r,
783
+ state: n,
784
+ hide: k,
785
+ showTips: D,
786
+ hideTips: T,
787
+ showPopover: W,
788
+ hidePopover: I,
789
+ closePopover: g,
790
+ mediaMap: v,
791
+ setViewPort: _,
792
+ activeView: P,
793
+ breakpoints: E,
794
+ widthChange: N,
795
+ scaleChange: F,
796
+ changeCanvasType: S,
797
+ mode: M,
798
+ _callEntry: C,
799
+ _useCompile: Q,
800
+ _metaData: f,
801
+ IconWebPlus: y,
802
+ useLayout: h,
803
+ useCanvas: V,
804
+ ToolbarBase: B
805
+ })
806
+ }));
807
+ const M = a.value.deviceType || "desktop";
808
+ return _(v[M]), {
809
+ scale: r,
810
+ state: n,
811
+ active: m,
812
+ flag: c,
813
+ hide: k,
814
+ layoutState: p,
815
+ visible: d,
816
+ showTips: D,
817
+ hideTips: T,
818
+ timer: l,
819
+ dimension: a,
820
+ setViewPort: _,
821
+ showPopover: W,
822
+ hidePopover: I,
823
+ widthChange: N,
824
+ scaleChange: F,
825
+ isAbsolute: b,
826
+ changeCanvasType: S
237
827
  };
238
828
  }
239
- }, re = (h, n) => {
240
- const d = h.__vccOpts || h;
241
- for (const [i, p] of n)
242
- d[i] = p;
243
- return d;
244
- }, ce = { class: "toolbar-wrap" }, pe = { class: "toolbar-icon-wrap" }, ue = ["onClick"], me = { class: "media-content" }, xe = { class: "media-title" }, ve = {
829
+ }, pe = (u, e) => {
830
+ const l = u.__vccOpts || u;
831
+ for (const [t, s] of e)
832
+ l[t] = s;
833
+ return l;
834
+ }, me = { class: "toolbar-wrap" }, xe = { class: "toolbar-icon-wrap" }, he = ["onClick"], ve = { class: "media-content" }, we = { class: "media-title" }, be = {
245
835
  key: 0,
246
836
  class: "sub-title"
247
- }, he = { class: "content" }, we = {
837
+ }, ye = { class: "content" }, fe = {
248
838
  class: "reference-text",
249
839
  title: "画布设置"
250
- }, be = { class: "content-wrap text-content" }, ye = { class: "title text-title" }, fe = { class: "setting" };
251
- function ge(h, n, d, i, p, w) {
252
- const u = f("svg-icon"), b = f("tiny-popover"), m = f("tiny-input"), y = f("tiny-switch"), C = f("toolbar-base");
253
- return v(), T(C, { options: d.options }, {
254
- default: c(() => [
255
- t("div", ce, [
256
- t("div", pe, [
257
- (v(!0), I(te, null, ne(i.state.media, (o, x) => (v(), I("span", {
258
- key: x,
259
- class: ie(["icon", { active: i.state.activeIndex === x, "is-rotate": o.view === "lanMobile" }]),
260
- onClick: (a) => i.setViewPort(o)
840
+ }, ge = { class: "content-wrap text-content" }, _e = { class: "title text-title" }, Ve = { class: "setting" };
841
+ function Ce(u, e, l, t, s, p) {
842
+ const d = $("svg-icon"), m = $("tiny-popover"), c = $("tiny-input"), x = $("tiny-switch"), b = $("toolbar-base");
843
+ return O(), z(b, { options: l.options }, {
844
+ default: L(() => [
845
+ o("div", me, [
846
+ o("div", xe, [
847
+ (O(!0), G(oe, null, le(t.state.media, (a, r) => (O(), G("span", {
848
+ key: r,
849
+ class: se(["icon", { active: t.state.activeIndex === r, "is-rotate": a.view === "lanMobile" }]),
850
+ onClick: (n) => t.setViewPort(a)
261
851
  }, [
262
- g(b, {
852
+ j(m, {
263
853
  trigger: "hover",
264
854
  width: "260",
265
855
  "append-to-body": "",
266
856
  "open-delay": 1e3,
267
857
  "popper-class": "media-icon-popover"
268
858
  }, {
269
- reference: c(() => [
270
- g(u, {
271
- name: o.liked,
859
+ reference: L(() => [
860
+ j(d, {
861
+ name: a.liked,
272
862
  class: "media-icon"
273
863
  }, null, 8, ["name"])
274
864
  ]),
275
- default: c(() => [
276
- t("div", me, [
277
- t("div", xe, [
278
- t("div", null, [
279
- D(r(o.title) + " ", 1),
280
- o.subTitle ? (v(), I("span", ve, [
281
- n[3] || (n[3] = D(" (")),
282
- o.view === "desktop" ? (v(), T(u, {
865
+ default: L(() => [
866
+ o("div", ve, [
867
+ o("div", we, [
868
+ o("div", null, [
869
+ H(U(a.title) + " ", 1),
870
+ a.subTitle ? (O(), G("span", be, [
871
+ e[3] || (e[3] = H(" (")),
872
+ a.view === "desktop" ? (O(), z(d, {
283
873
  key: 0,
284
874
  name: "stars"
285
- })) : W("", !0),
286
- t("span", null, r(o.subTitle), 1),
287
- n[4] || (n[4] = D(") "))
288
- ])) : W("", !0)
875
+ })) : R("", !0),
876
+ o("span", null, U(a.subTitle), 1),
877
+ e[4] || (e[4] = H(") "))
878
+ ])) : R("", !0)
289
879
  ])
290
880
  ]),
291
- t("div", he, r(o.content), 1)
881
+ o("div", ye, U(a.content), 1)
292
882
  ])
293
883
  ]),
294
884
  _: 2
295
885
  }, 1024)
296
- ], 10, ue))), 128))
886
+ ], 10, he))), 128))
297
887
  ]),
298
- d.isCanvas ? (v(), T(b, {
888
+ l.isCanvas ? (O(), z(m, {
299
889
  key: 0,
300
890
  width: "200",
301
891
  trigger: "click",
302
892
  "popper-class": "toolbar-media-popper"
303
893
  }, {
304
- reference: c(() => [
305
- t("span", we, [
306
- t("span", null, [
307
- t("span", null, r(parseInt(i.state.width)), 1),
308
- n[5] || (n[5] = t("span", { class: "symbol" }, "px", -1))
894
+ reference: L(() => [
895
+ o("span", fe, [
896
+ o("span", null, [
897
+ o("span", null, U(parseInt(t.state.width)), 1),
898
+ e[5] || (e[5] = o("span", { class: "symbol" }, "px", -1))
309
899
  ]),
310
- t("span", null, [
311
- t("span", null, r(i.scale.toFixed(2)), 1),
312
- n[6] || (n[6] = t("span", { class: "symbol" }, "%", -1))
900
+ o("span", null, [
901
+ o("span", null, U(t.scale.toFixed(2)), 1),
902
+ e[6] || (e[6] = o("span", { class: "symbol" }, "%", -1))
313
903
  ])
314
904
  ])
315
905
  ]),
316
- default: c(() => [
317
- t("div", be, [
318
- t("div", ye, r(i.state.textData.title), 1),
319
- t("div", fe, [
320
- t("div", null, [
321
- t("label", null, r(i.state.textData.width), 1),
322
- g(m, {
323
- modelValue: i.state.width,
324
- "onUpdate:modelValue": n[0] || (n[0] = (o) => i.state.width = o),
325
- onChange: i.widthChange
906
+ default: L(() => [
907
+ o("div", ge, [
908
+ o("div", _e, U(t.state.textData.title), 1),
909
+ o("div", Ve, [
910
+ o("div", null, [
911
+ o("label", null, U(t.state.textData.width), 1),
912
+ j(c, {
913
+ modelValue: t.state.width,
914
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => t.state.width = a),
915
+ onChange: t.widthChange
326
916
  }, {
327
- suffix: c(() => n[7] || (n[7] = [
328
- t("span", null, "px", -1)
917
+ suffix: L(() => e[7] || (e[7] = [
918
+ o("span", null, "px", -1)
329
919
  ])),
330
920
  _: 1
331
921
  }, 8, ["modelValue", "onChange"])
332
922
  ]),
333
- t("div", null, [
334
- t("label", null, r(i.state.textData.scale), 1),
335
- g(m, {
336
- modelValue: i.state.scaleValue,
337
- "onUpdate:modelValue": n[1] || (n[1] = (o) => i.state.scaleValue = o),
338
- readonly: i.state.readonly,
339
- onChange: i.scaleChange
923
+ o("div", null, [
924
+ o("label", null, U(t.state.textData.scale), 1),
925
+ j(c, {
926
+ modelValue: t.state.scaleValue,
927
+ "onUpdate:modelValue": e[1] || (e[1] = (a) => t.state.scaleValue = a),
928
+ readonly: t.state.readonly,
929
+ onChange: t.scaleChange
340
930
  }, {
341
- suffix: c(() => n[8] || (n[8] = [
342
- t("span", null, "%", -1)
931
+ suffix: L(() => e[8] || (e[8] = [
932
+ o("span", null, "%", -1)
343
933
  ])),
344
934
  _: 1
345
935
  }, 8, ["modelValue", "readonly", "onChange"])
346
936
  ]),
347
- t("div", null, [
348
- n[9] || (n[9] = t("label", null, r("自由布局"), -1)),
349
- g(y, {
350
- modelValue: i.isAbsolute,
351
- "onUpdate:modelValue": n[2] || (n[2] = (o) => i.isAbsolute = o),
352
- onChange: i.changeCanvasType
937
+ o("div", null, [
938
+ e[9] || (e[9] = o("label", null, U("自由布局"), -1)),
939
+ j(x, {
940
+ modelValue: t.isAbsolute,
941
+ "onUpdate:modelValue": e[2] || (e[2] = (a) => t.isAbsolute = a),
942
+ onChange: t.changeCanvasType
353
943
  }, null, 8, ["modelValue", "onChange"])
354
944
  ])
355
945
  ])
356
946
  ])
357
947
  ]),
358
948
  _: 1
359
- })) : W("", !0)
949
+ })) : R("", !0)
360
950
  ])
361
951
  ]),
362
952
  _: 1
363
953
  }, 8, ["options"]);
364
954
  }
365
- const Ve = /* @__PURE__ */ re(de, [["render", ge], ["__scopeId", "data-v-9173161d"]]), ke = {
366
- id: "engine.toolbars.media",
367
- type: "toolbars",
368
- title: "media",
369
- options: {
370
- icon: {
371
- default: ""
372
- },
373
- renderType: "slot"
374
- }
375
- }, Ne = {
376
- ...ke,
377
- entry: Ve
955
+ const ke = /* @__PURE__ */ pe(ue, [["render", Ce], ["__scopeId", "data-v-eb53b829"]]), Ne = {
956
+ ...f,
957
+ entry: ke
378
958
  };
379
959
  export {
380
960
  Ne as default
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .toolbar-wrap[data-v-9173161d]{display:flex;align-items:center}.toolbar-wrap .reference-text[data-v-9173161d]{cursor:pointer;height:var(--base-top-panel-height);line-height:var(--base-top-panel-height);padding:0 7px;color:var(--te-toolbars-media-text-color-secondary);display:inline-block}.toolbar-wrap .reference-text>span[data-v-9173161d]:last-child{margin-left:8px}.toolbar-wrap .toolbar-icon-wrap[data-v-9173161d]{display:flex;flex-wrap:nowrap;align-items:center;gap:6px}.toolbar-wrap .toolbar-icon-wrap .icon[data-v-9173161d]{width:24px;height:24px;display:inline-flex;justify-content:center;align-items:center;border-radius:4px}.toolbar-wrap .toolbar-icon-wrap .icon svg[data-v-9173161d]{cursor:pointer;color:var(--te-toolbars-media-text-color-primary);outline:none;width:18px;height:18px;margin-top:-.5px}.toolbar-wrap .toolbar-icon-wrap .icon.active[data-v-9173161d],.toolbar-wrap .toolbar-icon-wrap .icon[data-v-9173161d]:hover{background:var(--te-toolbars-media-bg-color-active)}.toolbar-wrap .toolbar-icon-wrap .icon.active svg[data-v-9173161d]{color:var(--te-toolbars-media-text-color-checked)}.toolbar-wrap .more-setting .setting-item[data-v-9173161d]{display:flex;justify-content:space-between;padding:12px}.media-content[data-v-9173161d]{line-height:18px}.media-content .media-title[data-v-9173161d]{font-weight:600}.media-content .content[data-v-9173161d]{color:var(--te-toolbars-media-text-color-secondary)}.setting-content[data-v-9173161d]{padding:12px 8px}.content-wrap .title[data-v-9173161d]{font-weight:600;margin-bottom:16px}.content-wrap .setting[data-v-9173161d]{display:flex;flex-direction:column;gap:12px}.content-wrap .setting div[data-v-9173161d]{display:flex;align-items:center;justify-content:space-between}.content-wrap .setting div label[data-v-9173161d]{color:var(--te-toolbars-media-text-color-secondary);min-width:64px}.content-wrap .setting div[data-v-9173161d]:last-child{justify-content:flex-start}:root{--te-toolbars-media-text-color-secondary: var(--te-common-text-secondary);--te-toolbars-media-text-color-primary: var(--te-common-text-primary);--te-toolbars-media-text-color-checked: var(--te-common-text-checked);--te-toolbars-media-bg-color-active: var(--te-common-bg-prompt)}
1
+ .toolbar-wrap[data-v-eb53b829]{display:flex;align-items:center}.toolbar-wrap .reference-text[data-v-eb53b829]{cursor:pointer;height:var(--base-top-panel-height);line-height:var(--base-top-panel-height);padding:0 7px;color:var(--te-toolbars-media-text-color-secondary);display:inline-block}.toolbar-wrap .reference-text>span[data-v-eb53b829]:last-child{margin-left:8px}.toolbar-wrap .toolbar-icon-wrap[data-v-eb53b829]{display:flex;flex-wrap:nowrap;align-items:center;gap:6px}.toolbar-wrap .toolbar-icon-wrap .icon[data-v-eb53b829]{width:24px;height:24px;display:inline-flex;justify-content:center;align-items:center;border-radius:4px}.toolbar-wrap .toolbar-icon-wrap .icon svg[data-v-eb53b829]{cursor:pointer;color:var(--te-toolbars-media-text-color-primary);outline:none;width:18px;height:18px;margin-top:-.5px}.toolbar-wrap .toolbar-icon-wrap .icon.active[data-v-eb53b829],.toolbar-wrap .toolbar-icon-wrap .icon[data-v-eb53b829]:hover{background:var(--te-toolbars-media-bg-color-active)}.toolbar-wrap .toolbar-icon-wrap .icon.active svg[data-v-eb53b829]{color:var(--te-toolbars-media-text-color-checked)}.toolbar-wrap .more-setting .setting-item[data-v-eb53b829]{display:flex;justify-content:space-between;padding:12px}.media-content[data-v-eb53b829]{line-height:18px}.media-content .media-title[data-v-eb53b829]{font-weight:600}.media-content .content[data-v-eb53b829]{color:var(--te-toolbars-media-text-color-secondary)}.setting-content[data-v-eb53b829]{padding:12px 8px}.content-wrap .title[data-v-eb53b829]{font-weight:600;margin-bottom:16px}.content-wrap .setting[data-v-eb53b829]{display:flex;flex-direction:column;gap:12px}.content-wrap .setting div[data-v-eb53b829]{display:flex;align-items:center;justify-content:space-between}.content-wrap .setting div label[data-v-eb53b829]{color:var(--te-toolbars-media-text-color-secondary);min-width:64px}.content-wrap .setting div[data-v-eb53b829]:last-child{justify-content:flex-start}:root{--te-toolbars-media-text-color-secondary: var(--te-common-text-secondary);--te-toolbars-media-text-color-primary: var(--te-common-text-primary);--te-toolbars-media-text-color-checked: var(--te-common-text-checked);--te-toolbars-media-bg-color-active: var(--te-common-bg-prompt)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-engine-toolbar-media",
3
- "version": "2.4.0",
3
+ "version": "2.5.0-alpha.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -25,11 +25,11 @@
25
25
  "license": "MIT",
26
26
  "homepage": "https://opentiny.design/tiny-engine",
27
27
  "dependencies": {
28
- "@opentiny/tiny-engine-common": "2.4.0",
29
- "@opentiny/tiny-engine-meta-register": "2.4.0"
28
+ "@opentiny/tiny-engine-common": "2.5.0-alpha.0",
29
+ "@opentiny/tiny-engine-meta-register": "2.5.0-alpha.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.4.0",
32
+ "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.5.0-alpha.0",
33
33
  "@vitejs/plugin-vue": "^5.1.2",
34
34
  "@vitejs/plugin-vue-jsx": "^4.0.1",
35
35
  "vite": "^5.4.2"
@@ -39,5 +39,5 @@
39
39
  "@opentiny/vue-icon": "^3.20.0",
40
40
  "vue": "^3.4.15"
41
41
  },
42
- "gitHead": "477aa411da11a4f95712e3e5c251d97cae23f4ad"
42
+ "gitHead": "ae59c82734d79f650c9221cb9702714814b099c8"
43
43
  }