@rypen-dev/shared-components 8.1.4 → 8.1.6

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rypen-dev/shared-components",
3
3
  "description": "Shared styles and Vuejs ui components for Rypen projects. Starting with version 8, this package is built with Vite 7 and Vue 3.",
4
- "version": "8.1.4",
4
+ "version": "8.1.6",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "scripts": {
@@ -144,10 +144,14 @@
144
144
  }
145
145
 
146
146
  function removeImage() {
147
- internalImage.value = '';
147
+ clearImage();
148
148
  emit('remove');
149
149
  }
150
150
 
151
+ function clearImage() {
152
+ internalImage.value = '';
153
+ }
154
+
151
155
  function readImage(file) {
152
156
  // only read if it's an image
153
157
  if (file && file.type.startsWith('image/')) {
@@ -158,4 +162,8 @@
158
162
  function setImage() {
159
163
  internalImage.value = reader.value.result;
160
164
  }
165
+
166
+ defineExpose({
167
+ clearImage,
168
+ });
161
169
  </script>