@fluid-topics/ft-viewer 2.1.15 → 2.1.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.
@@ -43,7 +43,7 @@ export class FtUdViewerAttachments extends toFtUdViewerComponent(withI18n(FtBase
43
43
  }
44
44
  getAttachmentViewerLink(attachment) {
45
45
  var _a, _b;
46
- return (_a = this.service) === null || _a === void 0 ? void 0 : _a.makeAbsolute((_b = attachment.viewerUrl) !== null && _b !== void 0 ? _b : "");
46
+ return attachment.externalLink ? attachment.viewerUrl : (_a = this.service) === null || _a === void 0 ? void 0 : _a.makeAbsolute((_b = attachment.viewerUrl) !== null && _b !== void 0 ? _b : "");
47
47
  }
48
48
  }
49
49
  FtUdViewerAttachments.styles = generateAttachmentsStyles(FtUdViewerAttachmentsCssVariables);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-viewer",
3
- "version": "2.1.15",
3
+ "version": "2.1.17",
4
4
  "description": "File viewer components",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,16 +19,16 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-content-watermark": "2.1.15",
23
- "@fluid-topics/ft-i18n": "2.1.15",
24
- "@fluid-topics/ft-reader-attachments": "2.1.15",
25
- "@fluid-topics/ft-wc-utils": "2.1.15",
26
- "@fluid-topics/public-api": "1.0.129",
22
+ "@fluid-topics/ft-content-watermark": "2.1.17",
23
+ "@fluid-topics/ft-i18n": "2.1.17",
24
+ "@fluid-topics/ft-reader-attachments": "2.1.17",
25
+ "@fluid-topics/ft-wc-utils": "2.1.17",
26
+ "@fluid-topics/public-api": "1.0.131",
27
27
  "@lit/context": "1.1.6",
28
28
  "lit": "3.1.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@fluid-topics/ft-wc-test-utils": "2.1.15"
31
+ "@fluid-topics/ft-wc-test-utils": "2.1.17"
32
32
  },
33
- "gitHead": "d12bf72262e6788631943d88a02756661734c7d9"
33
+ "gitHead": "2ef8ba95ea8d846d66b2e817a97f9c0fe6f3075a"
34
34
  }