@namelivia/vue-components 4.4.1 → 4.4.5

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,14 +1,8 @@
1
1
  {
2
2
  "name": "@namelivia/vue-components",
3
- "version": "4.4.1",
3
+ "version": "4.4.5",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
- "scripts": {
7
- "build": "rollup -c --bundleConfigAsCjs",
8
- "cypress": "cypress open --component testing",
9
- "storybook": "storybook dev -p 6006",
10
- "build-storybook": "storybook build"
11
- },
12
6
  "peerDependencies": {
13
7
  "vue": "^3.5.16"
14
8
  },
@@ -30,5 +24,11 @@
30
24
  },
31
25
  "dependencies": {
32
26
  "image-blob-reduce": "^4.1.0"
27
+ },
28
+ "scripts": {
29
+ "build": "rollup -c --bundleConfigAsCjs",
30
+ "cypress": "cypress open --component testing",
31
+ "storybook": "storybook dev -p 6006",
32
+ "build-storybook": "storybook build"
33
33
  }
34
- }
34
+ }
@@ -1,5 +1,5 @@
1
1
  <template lang="pug">
2
- div(class="image-input-container")
2
+ .image-input-container
3
3
  label(class="image-input-label" :for="id")
4
4
  | {{ label }}
5
5
  input(
@@ -1,20 +1,26 @@
1
1
  <template lang="pug">
2
- image-input(
3
- :id="id"
4
- :name="id"
5
- :required="required"
6
- :placeholder="placeholder"
7
- :drop-placeholder="dropPlaceholder"
8
- :label="label"
9
- @update="onInput"
10
- )
2
+ .image-input-container
3
+ image-input(
4
+ :id="id"
5
+ :name="id"
6
+ :required="required"
7
+ :placeholder="placeholder"
8
+ :drop-placeholder="dropPlaceholder"
9
+ :label="label"
10
+ @update="onInput"
11
+ )
12
+ p(v-if="resizing") Resizing...
11
13
  </template>
12
14
 
13
15
  <script>
14
16
  import ImageBlobReduce from 'image-blob-reduce';
17
+ import ImageInput from '../ImageInput/ImageInput.vue'
15
18
  import { defineComponent } from 'vue';
16
19
  export default defineComponent({
17
20
  name: "ResizeImageUpload",
21
+ components: {
22
+ ImageInput: ImageInput,
23
+ },
18
24
  props: {
19
25
  id: {
20
26
  type: String,