classcard-ui 0.2.319 → 0.2.320

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.319",
3
+ "version": "0.2.320",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,6 +1,14 @@
1
1
  <template>
2
2
  <div>
3
- <div v-if="type === 'filestack'" :class="filestackClasses" id="filestack-uploader"></div>
3
+ <button
4
+ type="button"
5
+ class="inline-flex items-center px-3 py-2 border border-gray-300 shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"
6
+ @click="initFilestack()"
7
+ v-if="displayMode == 'overlay'"
8
+ >
9
+ Upload
10
+ </button>
11
+ <div :class="filestackClasses" id="filestack-uploader"></div>
4
12
  <p v-if="!isValidate" class="mt-2 text-sm text-red-600">
5
13
  {{ errorMessage }}
6
14
  </p>
@@ -27,10 +35,6 @@ export default {
27
35
  errorMessage: {
28
36
  type: String,
29
37
  },
30
- type: {
31
- type: String,
32
- default: "default",
33
- },
34
38
  filestackApiKey: {
35
39
  type: String,
36
40
  default: "",
@@ -60,7 +64,6 @@ export default {
60
64
  },
61
65
  data() {
62
66
  return {
63
- uploader: null,
64
67
  };
65
68
  },
66
69
  methods: {
@@ -97,7 +100,7 @@ export default {
97
100
  },
98
101
  },
99
102
  mounted() {
100
- if (this.type === "filestack") {
103
+ if (this.displayMode == "inline") {
101
104
  this.initFilestack();
102
105
  }
103
106
  },