@contrail/documents 1.0.17 → 1.0.18

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.
@@ -58,7 +58,6 @@ export declare const ITEM_VIEW_TEMPLATE: {
58
58
  };
59
59
  })[];
60
60
  };
61
- export declare const ITEM_COLOR_VIEW_STATIC_THUMBNAIL_TEMPLATE: Document;
62
61
  export declare const ITEM_VIEW: {
63
62
  slug: string;
64
63
  defaultTemplate: {
@@ -117,10 +116,6 @@ export declare const ITEM_VIEW: {
117
116
  })[];
118
117
  };
119
118
  };
120
- export declare const ITEM_COLOR_STATIC_THUMBNAIL_VIEW: {
121
- slug: string;
122
- defaultTemplate: Document;
123
- };
124
119
  export declare class ComponentRegistry {
125
120
  private static componentDefinitionMap;
126
121
  static getComponentDefinition(slug: string): ComponentDefinition;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ComponentRegistry = exports.ITEM_COLOR_STATIC_THUMBNAIL_VIEW = exports.ITEM_VIEW = exports.ITEM_COLOR_VIEW_STATIC_THUMBNAIL_TEMPLATE = exports.ITEM_VIEW_TEMPLATE = void 0;
3
+ exports.ComponentRegistry = exports.ITEM_VIEW = exports.ITEM_VIEW_TEMPLATE = void 0;
4
4
  exports.ITEM_VIEW_TEMPLATE = {
5
5
  elements: [{
6
6
  type: "image",
@@ -30,51 +30,10 @@ exports.ITEM_VIEW_TEMPLATE = {
30
30
  }
31
31
  ]
32
32
  };
33
- exports.ITEM_COLOR_VIEW_STATIC_THUMBNAIL_TEMPLATE = {
34
- elements: [{
35
- type: "image",
36
- size: { width: 125, height: 125 },
37
- propertyBindings: { url: 'itemColor.thumbnail' }
38
- }, {
39
- type: "text",
40
- position: { x: 0, y: 126 },
41
- style: {
42
- font: {
43
- size: 8,
44
- }
45
- },
46
- propertyBindings: { text: 'itemColor.item.name' }
47
- }, {
48
- type: "text",
49
- position: { x: 0, y: 137 },
50
- style: {
51
- font: {
52
- size: 8,
53
- }
54
- },
55
- propertyBindings: { text: 'itemColor.item.styleNumber' }
56
- }, {
57
- type: "text",
58
- position: { x: 0, y: 148 },
59
- size: { height: 25, width: 125 },
60
- style: {
61
- font: {
62
- size: 8,
63
- },
64
- color: 'rgba(0,0,0,.5)',
65
- },
66
- propertyBindings: { text: 'itemColor.name' }
67
- }
68
- ]
69
- };
70
33
  exports.ITEM_VIEW = {
71
34
  slug: 'item-view',
72
35
  defaultTemplate: exports.ITEM_VIEW_TEMPLATE,
73
36
  };
74
- exports.ITEM_COLOR_STATIC_THUMBNAIL_VIEW = {
75
- slug: 'item-color-static-thumbnail-view',
76
- defaultTemplate: exports.ITEM_COLOR_VIEW_STATIC_THUMBNAIL_TEMPLATE,
77
- };
78
37
  class ComponentRegistry {
79
38
  static getComponentDefinition(slug) {
80
39
  if (!this.componentDefinitionMap) {
@@ -85,7 +44,6 @@ class ComponentRegistry {
85
44
  static initMap() {
86
45
  this.componentDefinitionMap = new Map();
87
46
  this.componentDefinitionMap.set('item-view', exports.ITEM_VIEW);
88
- this.componentDefinitionMap.set('item-color-static-thumbnail-view', exports.ITEM_COLOR_STATIC_THUMBNAIL_VIEW);
89
47
  }
90
48
  }
91
49
  exports.ComponentRegistry = ComponentRegistry;
@@ -9,4 +9,5 @@ export interface DocumentElement extends Document {
9
9
  propertyBindings?: any;
10
10
  lineDefinition?: LineDefinition;
11
11
  label?: string;
12
+ annotations?: any;
12
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/documents",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "Documents library for contrail platform",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",