@contrail/documents
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -6,7 +6,115 @@ import { Document } from '../types/document'; | ||
} | ||
export declare const ITEM_COLOR_VIEW_TEMPLATE: Document; | ||
export declare const ITEM_VIEW_TEMPLATE: { | ||
elements: ({ | ||
type: string; | ||
size: { | ||
width: number; | ||
height: number; | ||
}; | ||
propertyBindings: { | ||
url: string; | ||
text?: undefined; | ||
}; | ||
position?: undefined; | ||
style?: undefined; | ||
} | { | ||
type: string; | ||
position: { | ||
x: number; | ||
y: number; | ||
}; | ||
size: { | ||
height: number; | ||
width: number; | ||
}; | ||
style: { | ||
font: { | ||
size: number; | ||
}; | ||
color?: undefined; | ||
}; | ||
propertyBindings: { | ||
text: string; | ||
url?: undefined; | ||
}; | ||
} | { | ||
type: string; | ||
position: { | ||
x: number; | ||
y: number; | ||
}; | ||
size: { | ||
height: number; | ||
width: number; | ||
}; | ||
style: { | ||
font: { | ||
size: number; | ||
}; | ||
color: string; | ||
}; | ||
propertyBindings: { | ||
text: string; | ||
url?: undefined; | ||
}; | ||
})[]; | ||
}; | ||
export declare const ITEM_COLOR_VIEW_STATIC_THUMBNAIL_TEMPLATE: Document; | ||
export declare const ITEM_COLOR_VIEW: { | ||
export declare const ITEM_VIEW: { | ||
slug: string; | ||
defaultTemplate: Document; | ||
defaultTemplate: { | ||
elements: ({ | ||
type: string; | ||
size: { | ||
width: number; | ||
height: number; | ||
}; | ||
propertyBindings: { | ||
url: string; | ||
text?: undefined; | ||
}; | ||
position?: undefined; | ||
style?: undefined; | ||
} | { | ||
type: string; | ||
position: { | ||
x: number; | ||
y: number; | ||
}; | ||
size: { | ||
height: number; | ||
width: number; | ||
}; | ||
style: { | ||
font: { | ||
size: number; | ||
}; | ||
color?: undefined; | ||
}; | ||
propertyBindings: { | ||
text: string; | ||
url?: undefined; | ||
}; | ||
} | { | ||
type: string; | ||
position: { | ||
x: number; | ||
y: number; | ||
}; | ||
size: { | ||
height: number; | ||
width: number; | ||
}; | ||
style: { | ||
font: { | ||
size: number; | ||
}; | ||
color: string; | ||
}; | ||
propertyBindings: { | ||
text: string; | ||
url?: undefined; | ||
}; | ||
})[]; | ||
}; | ||
}; | ||
@@ -13,0 +121,0 @@ export declare const ITEM_COLOR_STATIC_THUMBNAIL_VIEW: { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ComponentRegistry = exports.ITEM_COLOR_STATIC_THUMBNAIL_VIEW = exports.ITEM_COLOR_VIEW = exports.ITEM_COLOR_VIEW_STATIC_THUMBNAIL_TEMPLATE = exports.ITEM_COLOR_VIEW_TEMPLATE = void 0; | ||
exports.ITEM_COLOR_VIEW_TEMPLATE = { | ||
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.ITEM_VIEW_TEMPLATE = { | ||
elements: [{ | ||
@@ -18,3 +18,3 @@ type: "image", | ||
}, | ||
propertyBindings: { text: 'itemColor.item.name' } | ||
propertyBindings: { text: 'item.name' } | ||
}, { | ||
@@ -30,3 +30,3 @@ type: "text", | ||
}, | ||
propertyBindings: { text: 'itemColor.name' } | ||
propertyBindings: { text: 'item.optionName' } | ||
} | ||
@@ -72,5 +72,5 @@ ] | ||
}; | ||
exports.ITEM_COLOR_VIEW = { | ||
slug: 'item-color-view', | ||
defaultTemplate: exports.ITEM_COLOR_VIEW_TEMPLATE, | ||
exports.ITEM_VIEW = { | ||
slug: 'item-view', | ||
defaultTemplate: exports.ITEM_VIEW_TEMPLATE, | ||
}; | ||
@@ -90,3 +90,3 @@ exports.ITEM_COLOR_STATIC_THUMBNAIL_VIEW = { | ||
this.componentDefinitionMap = new Map(); | ||
this.componentDefinitionMap.set('item-color-view', exports.ITEM_COLOR_VIEW); | ||
this.componentDefinitionMap.set('item-view', exports.ITEM_VIEW); | ||
this.componentDefinitionMap.set('item-color-static-thumbnail-view', exports.ITEM_COLOR_STATIC_THUMBNAIL_VIEW); | ||
@@ -93,0 +93,0 @@ } |
export * from './components'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Action } from '@contrail/actions'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { DocumentElement } from './types/document-element'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { DocumentElement } from './types/document-element'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export * from './types'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export interface TextStyleDefinition { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ export interface DataObject { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ import { DocumentElement } from './document-element'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { PositionDefinition, SizeDefinition } from "./common"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ import { DocumentElement } from './document-element'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ import { LineDefinition, PositionDefinition } from './common'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ import { SizeDefinition, StyleDefinition } from "./common"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ export interface ScaleTransformation { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ export * from './common'; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "@contrail/documents", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "Documents library for contrail platform", | ||
@@ -16,5 +16,2 @@ "main": "lib/index.js", | ||
"license": "ISC", | ||
"files": [ | ||
"lib/**/*" | ||
], | ||
"devDependencies": { | ||
@@ -21,0 +18,0 @@ "@types/jest": "^23.3.14", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
19567
541
0