@contrail/documents 1.1.21 → 1.1.23

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.
@@ -1,7 +1,15 @@
1
1
  import { DocumentElement } from './types/document-element';
2
+ export interface DocumentElementModel {
3
+ viewable?: any;
4
+ item?: any;
5
+ assortmentItem?: any;
6
+ projectItem?: any;
7
+ content?: any;
8
+ [key: string]: any;
9
+ }
2
10
  export declare class DocumentElementPropertyBindingHandler {
3
11
  static bindPropertiesToElements(elements: Array<DocumentElement>, model: any): void;
4
- static bindPropertiesToElement(element: DocumentElement, model: any): void;
12
+ static bindPropertiesToElement(element: DocumentElement, model: DocumentElementModel): void;
5
13
  static isContentTypeWebViewable(contentType: string): boolean;
6
14
  static adjustPropertyElements(element: DocumentElement, elements: DocumentElement[], model: any): void;
7
15
  }
@@ -54,7 +54,7 @@ class DocumentElementPropertyBindingHandler {
54
54
  if (originalFile) {
55
55
  element.alternateUrls.originalFile = originalFile;
56
56
  }
57
- let lowResUrl = ((_f = model === null || model === void 0 ? void 0 : model.viewable) === null || _f === void 0 ? void 0 : _f.smallViewableDownloadUrl) || ((_g = model === null || model === void 0 ? void 0 : model.viewable) === null || _g === void 0 ? void 0 : _g.smallViewableUrl);
57
+ let lowResUrl = ((_f = model === null || model === void 0 ? void 0 : model.viewable) === null || _f === void 0 ? void 0 : _f.mediumViewableDownloadUrl) || ((_g = model === null || model === void 0 ? void 0 : model.viewable) === null || _g === void 0 ? void 0 : _g.mediumViewableUrl);
58
58
  if (lowResUrl) {
59
59
  element.alternateUrls.lowResolution = lowResUrl;
60
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/documents",
3
- "version": "1.1.21",
3
+ "version": "1.1.23",
4
4
  "description": "Documents library for contrail platform",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",