@itfin/components 1.3.15 → 1.3.17
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,8 @@ class itfEditor extends Vue {
|
|
|
78
78
|
@Prop(Boolean) readonly;
|
|
79
79
|
@Prop(String) imageEndpoint;
|
|
80
80
|
@Prop(String) fetchEndpoint;
|
|
81
|
+
@Prop(String) bearerToken;
|
|
82
|
+
@Prop({ default: () => ({}) }) tools;
|
|
81
83
|
|
|
82
84
|
editor = null;
|
|
83
85
|
|
|
@@ -167,6 +169,9 @@ class itfEditor extends Vue {
|
|
|
167
169
|
byFile: this.imageEndpoint, // Your backend file uploader endpoint
|
|
168
170
|
byUrl: this.fetchEndpoint, // Your endpoint that provides uploading by Url
|
|
169
171
|
},
|
|
172
|
+
additionalRequestHeaders: {
|
|
173
|
+
Authorization: `Bearer ${this.bearerToken}`
|
|
174
|
+
}
|
|
170
175
|
/* actions: [
|
|
171
176
|
{
|
|
172
177
|
toggle: true,
|
|
@@ -191,7 +196,8 @@ class itfEditor extends Vue {
|
|
|
191
196
|
}
|
|
192
197
|
] */
|
|
193
198
|
}
|
|
194
|
-
}
|
|
199
|
+
},
|
|
200
|
+
...this.tools
|
|
195
201
|
},
|
|
196
202
|
readOnly: this.readonly,
|
|
197
203
|
holder: node,
|