@contrail/documents 1.0.119 → 1.0.121

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.
@@ -186,7 +186,7 @@ exports.PATTERN_VIEW_TEMPLATE = {
186
186
  position: { x: exports.COLOR_PADDING, y: exports.COLOR_PADDING },
187
187
  size: { height: exports.COLOR_WIDTH, width: exports.COLOR_WIDTH },
188
188
  style: { background: { size: types_1.BackgroundSizeType.CONTAIN } },
189
- propertyBindings: { url: 'color.mediumViewableDownloadUrl' },
189
+ propertyBindings: { url: 'viewable.mediumViewableDownloadUrl' },
190
190
  },
191
191
  {
192
192
  type: 'text',
@@ -55,8 +55,10 @@ class DocumentElementFactory {
55
55
  static createColorComponent(model, modelBindings, options) {
56
56
  var _a;
57
57
  return DocumentElementFactory.createComponent(((_a = model === null || model === void 0 ? void 0 : model.color) === null || _a === void 0 ? void 0 : _a.primaryViewableId) ? 'pattern-view' : 'color-view', model, modelBindings, Object.assign({
58
- size: components_1.COLOR_WIDTH + components_1.COLOR_PADDING * 2,
59
- height: components_1.COLOR_WIDTH + components_1.COLOR_FONT_SIZE + components_1.COLOR_PADDING * 4,
58
+ size: {
59
+ width: components_1.COLOR_WIDTH + components_1.COLOR_PADDING * 2,
60
+ height: components_1.COLOR_WIDTH + components_1.COLOR_FONT_SIZE + components_1.COLOR_PADDING * 4,
61
+ },
60
62
  }, options));
61
63
  }
62
64
  static createComponent(componentType, model, modelBindings, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/documents",
3
- "version": "1.0.119",
3
+ "version": "1.0.121",
4
4
  "description": "Documents library for contrail platform",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",