@itfin/components 1.3.16 → 1.3.18
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
|
@@ -78,6 +78,7 @@ class itfEditor extends Vue {
|
|
|
78
78
|
@Prop(Boolean) readonly;
|
|
79
79
|
@Prop(String) imageEndpoint;
|
|
80
80
|
@Prop(String) fetchEndpoint;
|
|
81
|
+
@Prop(String) bearerToken;
|
|
81
82
|
@Prop({ default: () => ({}) }) tools;
|
|
82
83
|
|
|
83
84
|
editor = null;
|
|
@@ -168,6 +169,9 @@ class itfEditor extends Vue {
|
|
|
168
169
|
byFile: this.imageEndpoint, // Your backend file uploader endpoint
|
|
169
170
|
byUrl: this.fetchEndpoint, // Your endpoint that provides uploading by Url
|
|
170
171
|
},
|
|
172
|
+
additionalRequestHeaders: {
|
|
173
|
+
Authorization: `Bearer ${this.bearerToken}`
|
|
174
|
+
}
|
|
171
175
|
/* actions: [
|
|
172
176
|
{
|
|
173
177
|
toggle: true,
|