@wireapp/core 20.6.2 → 20.7.0
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [20.7.0](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@20.6.2...@wireapp/core@20.7.0) (2022-01-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **core:** Enable link preview asset upload for federated env ([#4209](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/issues/4209)) ([232adaf](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/commit/232adafa7f76a44889c661ee0750f7ea8f31df79))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [20.6.2](https://github.com/wireapp/wire-web-packages/tree/main/packages/core/compare/@wireapp/core@20.6.1...@wireapp/core@20.6.2) (2022-01-11)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @wireapp/core
|
package/package.json
CHANGED
|
@@ -69,6 +69,6 @@
|
|
|
69
69
|
"test:project": "yarn dist && yarn test",
|
|
70
70
|
"test:node": "nyc jasmine --config=jasmine.json"
|
|
71
71
|
},
|
|
72
|
-
"version": "20.
|
|
73
|
-
"gitHead": "
|
|
72
|
+
"version": "20.7.0",
|
|
73
|
+
"gitHead": "1a6fb30acd29c57b1da60c3b0ccc467fdd2b36c7"
|
|
74
74
|
}
|
|
@@ -3,5 +3,5 @@ import { LinkPreviewContent, LinkPreviewUploadedContent } from '../conversation/
|
|
|
3
3
|
export declare class LinkPreviewService {
|
|
4
4
|
private readonly assetService;
|
|
5
5
|
constructor(assetService: AssetService);
|
|
6
|
-
uploadLinkPreviewImage(linkPreview: LinkPreviewContent): Promise<LinkPreviewUploadedContent>;
|
|
6
|
+
uploadLinkPreviewImage(linkPreview: LinkPreviewContent, domain?: string): Promise<LinkPreviewUploadedContent>;
|
|
7
7
|
}
|
|
@@ -34,13 +34,13 @@ class LinkPreviewService {
|
|
|
34
34
|
constructor(assetService) {
|
|
35
35
|
this.assetService = assetService;
|
|
36
36
|
}
|
|
37
|
-
async uploadLinkPreviewImage(linkPreview) {
|
|
37
|
+
async uploadLinkPreviewImage(linkPreview, domain) {
|
|
38
38
|
const { image } = linkPreview, preview = __rest(linkPreview, ["image"]);
|
|
39
39
|
if (!image) {
|
|
40
40
|
return preview;
|
|
41
41
|
}
|
|
42
42
|
const uploadedLinkPreview = preview;
|
|
43
|
-
const asset = await (await this.assetService.uploadAsset(linkPreview.image.data)).response;
|
|
43
|
+
const asset = await (await this.assetService.uploadAsset(linkPreview.image.data, { domain })).response;
|
|
44
44
|
uploadedLinkPreview.imageUploaded = {
|
|
45
45
|
asset,
|
|
46
46
|
image,
|