@tailor-cms/ce-image-edit 2.0.0 → 2.0.1

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 CHANGED
@@ -133,7 +133,7 @@ var TopToolbar_default = /* @__PURE__ */ (0, vue.defineComponent)({
133
133
  ];
134
134
  const props = __props;
135
135
  const emit = __emit;
136
- const onUpload = ({ url, publicUrl }) => {
136
+ const save = ({ url, publicUrl }) => {
137
137
  const assets = { url };
138
138
  emit("save", {
139
139
  ...props.element.data,
@@ -141,13 +141,6 @@ var TopToolbar_default = /* @__PURE__ */ (0, vue.defineComponent)({
141
141
  assets
142
142
  });
143
143
  };
144
- const onInput = (payload) => {
145
- if (!payload) return;
146
- emit("save", {
147
- ...props.element.data,
148
- url: payload.publicUrl
149
- });
150
- };
151
144
  const onDelete = () => {
152
145
  emit("save", {
153
146
  ...props.element.data,
@@ -163,8 +156,8 @@ var TopToolbar_default = /* @__PURE__ */ (0, vue.defineComponent)({
163
156
  class: "mx-auto",
164
157
  "allow-url-source": "",
165
158
  onDelete,
166
- onInput,
167
- onUpload
159
+ onInput: save,
160
+ onUpload: save
168
161
  }, null, 8, ["file-key"])]);
169
162
  };
170
163
  }
package/dist/index.js CHANGED
@@ -129,7 +129,7 @@ var TopToolbar_default = /* @__PURE__ */ defineComponent({
129
129
  ];
130
130
  const props = __props;
131
131
  const emit = __emit;
132
- const onUpload = ({ url, publicUrl }) => {
132
+ const save = ({ url, publicUrl }) => {
133
133
  const assets = { url };
134
134
  emit("save", {
135
135
  ...props.element.data,
@@ -137,13 +137,6 @@ var TopToolbar_default = /* @__PURE__ */ defineComponent({
137
137
  assets
138
138
  });
139
139
  };
140
- const onInput = (payload) => {
141
- if (!payload) return;
142
- emit("save", {
143
- ...props.element.data,
144
- url: payload.publicUrl
145
- });
146
- };
147
140
  const onDelete = () => {
148
141
  emit("save", {
149
142
  ...props.element.data,
@@ -159,8 +152,8 @@ var TopToolbar_default = /* @__PURE__ */ defineComponent({
159
152
  class: "mx-auto",
160
153
  "allow-url-source": "",
161
154
  onDelete,
162
- onInput,
163
- onUpload
155
+ onInput: save,
156
+ onUpload: save
164
157
  }, null, 8, ["file-key"])]);
165
158
  };
166
159
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Tailor CMS image element authoring component",
4
4
  "author": "Studion <info@gostudion.com> (https://github.com/tailor-cms)",
5
5
  "type": "module",
6
- "version": "2.0.0",
6
+ "version": "2.0.1",
7
7
  "exports": {
8
8
  ".": {
9
9
  "import": "./dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "vite-plugin-lib-inject-css": "^2.2.2",
27
27
  "vue-tsc": "^3.2.7",
28
28
  "vuetify": "^4.0.6",
29
- "@tailor-cms/ce-image-manifest": "2.0.0"
29
+ "@tailor-cms/ce-image-manifest": "2.0.1"
30
30
  },
31
31
  "dependencies": {
32
32
  "@tailor-cms/cek-common": "^2.0.1"