classcard-ui 0.2.365 → 0.2.368

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,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.365",
3
+ "version": "0.2.368",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -5,7 +5,7 @@
5
5
  type="button"
6
6
  class="focus:outline-none relative -ml-px inline-flex items-center rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:z-10 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500"
7
7
  >
8
- <img class="h-full w-12" :src="image" />
8
+ <img class="h-10 w-10" :src="image" />
9
9
  </button>
10
10
  <button
11
11
  type="button"
@@ -68,13 +68,13 @@ export default {
68
68
  type: Number,
69
69
  default: null,
70
70
  },
71
+ onUploadOpen: {
72
+ type: Function,
73
+ },
71
74
  displayMode: {
72
75
  type: String,
73
76
  default: "inline",
74
77
  },
75
- onUploadOpen: {
76
- type: Function,
77
- },
78
78
  },
79
79
  data() {
80
80
  return {};
@@ -87,6 +87,8 @@ export default {
87
87
  container: "#filestack-uploader",
88
88
  uploadInBackground: false,
89
89
  maxFiles: this.maxFiles,
90
+ onOpen: (param) => this.$emit("onUploadOpen", param),
91
+ onClose: (param) => this.$emit("onUploadOpen", param),
90
92
  onUploadDone: (res) => this.$emit("filestack-uploaded", res),
91
93
  fromSources: ["local_file_system", "unsplash"],
92
94
  transformations: {
@@ -98,7 +100,6 @@ export default {
98
100
  };
99
101
  const picker = client.picker(options);
100
102
  picker.open();
101
- this.$emit("onUploadOpen");
102
103
  },
103
104
  },
104
105
  computed: {