@contrail/documents
Advanced tools
Comparing version 1.0.17 to 1.0.18
@@ -61,3 +61,2 @@ import { Document } from '../types/document'; | ||
}; | ||
export declare const ITEM_COLOR_VIEW_STATIC_THUMBNAIL_TEMPLATE: Document; | ||
export declare const ITEM_VIEW: { | ||
@@ -121,6 +120,2 @@ slug: string; | ||
}; | ||
export declare const ITEM_COLOR_STATIC_THUMBNAIL_VIEW: { | ||
slug: string; | ||
defaultTemplate: Document; | ||
}; | ||
export declare class ComponentRegistry { | ||
@@ -127,0 +122,0 @@ private static componentDefinitionMap; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ComponentRegistry = exports.ITEM_COLOR_STATIC_THUMBNAIL_VIEW = exports.ITEM_VIEW = exports.ITEM_COLOR_VIEW_STATIC_THUMBNAIL_TEMPLATE = exports.ITEM_VIEW_TEMPLATE = void 0; | ||
exports.ComponentRegistry = exports.ITEM_VIEW = exports.ITEM_VIEW_TEMPLATE = void 0; | ||
exports.ITEM_VIEW_TEMPLATE = { | ||
@@ -33,39 +33,2 @@ elements: [{ | ||
}; | ||
exports.ITEM_COLOR_VIEW_STATIC_THUMBNAIL_TEMPLATE = { | ||
elements: [{ | ||
type: "image", | ||
size: { width: 125, height: 125 }, | ||
propertyBindings: { url: 'itemColor.thumbnail' } | ||
}, { | ||
type: "text", | ||
position: { x: 0, y: 126 }, | ||
style: { | ||
font: { | ||
size: 8, | ||
} | ||
}, | ||
propertyBindings: { text: 'itemColor.item.name' } | ||
}, { | ||
type: "text", | ||
position: { x: 0, y: 137 }, | ||
style: { | ||
font: { | ||
size: 8, | ||
} | ||
}, | ||
propertyBindings: { text: 'itemColor.item.styleNumber' } | ||
}, { | ||
type: "text", | ||
position: { x: 0, y: 148 }, | ||
size: { height: 25, width: 125 }, | ||
style: { | ||
font: { | ||
size: 8, | ||
}, | ||
color: 'rgba(0,0,0,.5)', | ||
}, | ||
propertyBindings: { text: 'itemColor.name' } | ||
} | ||
] | ||
}; | ||
exports.ITEM_VIEW = { | ||
@@ -75,6 +38,2 @@ slug: 'item-view', | ||
}; | ||
exports.ITEM_COLOR_STATIC_THUMBNAIL_VIEW = { | ||
slug: 'item-color-static-thumbnail-view', | ||
defaultTemplate: exports.ITEM_COLOR_VIEW_STATIC_THUMBNAIL_TEMPLATE, | ||
}; | ||
class ComponentRegistry { | ||
@@ -90,5 +49,4 @@ static getComponentDefinition(slug) { | ||
this.componentDefinitionMap.set('item-view', exports.ITEM_VIEW); | ||
this.componentDefinitionMap.set('item-color-static-thumbnail-view', exports.ITEM_COLOR_STATIC_THUMBNAIL_VIEW); | ||
} | ||
} | ||
exports.ComponentRegistry = ComponentRegistry; |
@@ -12,2 +12,3 @@ import { LineDefinition, PositionDefinition } from './common'; | ||
label?: string; | ||
annotations?: any; | ||
} |
{ | ||
"name": "@contrail/documents", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "Documents library for contrail platform", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
17943
496