@tailor-cms/ce-file-edit 2.0.1 → 2.0.2
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.cjs +5 -0
- package/dist/index.js +6 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -104,6 +104,11 @@ var SideToolbar_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
104
104
|
const props = __props;
|
|
105
105
|
const emit = __emit;
|
|
106
106
|
const label = (0, vue.ref)(props.element.data.label || "");
|
|
107
|
+
(0, vue.watch)(() => props.element.data.label, (value) => {
|
|
108
|
+
const next = value || "";
|
|
109
|
+
if (next === label.value) return;
|
|
110
|
+
label.value = next;
|
|
111
|
+
});
|
|
107
112
|
const onFocusChange = (focused) => {
|
|
108
113
|
if (focused) return;
|
|
109
114
|
emit("save", {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createBlock, createElementBlock, createTextVNode, createVNode, defineComponent, openBlock, ref, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
1
|
+
import { createBlock, createElementBlock, createTextVNode, createVNode, defineComponent, openBlock, ref, resolveComponent, toDisplayString, unref, watch, withCtx } from "vue";
|
|
2
2
|
import './index.css';//#region ../manifest/dist/index.mjs
|
|
3
3
|
var type = "FILE";
|
|
4
4
|
var name = "File";
|
|
@@ -100,6 +100,11 @@ var SideToolbar_default = /* @__PURE__ */ defineComponent({
|
|
|
100
100
|
const props = __props;
|
|
101
101
|
const emit = __emit;
|
|
102
102
|
const label = ref(props.element.data.label || "");
|
|
103
|
+
watch(() => props.element.data.label, (value) => {
|
|
104
|
+
const next = value || "";
|
|
105
|
+
if (next === label.value) return;
|
|
106
|
+
label.value = next;
|
|
107
|
+
});
|
|
103
108
|
const onFocusChange = (focused) => {
|
|
104
109
|
if (focused) return;
|
|
105
110
|
emit("save", {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Tailor CMS file authoring component",
|
|
4
4
|
"author": "Studion <info@gostudion.com> (https://github.com/tailor-cms)",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"version": "2.0.
|
|
6
|
+
"version": "2.0.2",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"import": "./dist/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
28
28
|
"vue-tsc": "^3.2.7",
|
|
29
29
|
"vuetify": "^4.0.6",
|
|
30
|
-
"@tailor-cms/ce-file-manifest": "2.0.
|
|
30
|
+
"@tailor-cms/ce-file-manifest": "2.0.2"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@tailor-cms/cek-common": "2.0.1",
|