Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contrail/documents

Package Overview
Dependencies
Maintainers
6
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrail/documents - npm Package Compare versions

Comparing version 1.0.17 to 1.0.18

5

lib/components/components.d.ts

@@ -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;

44

lib/components/components.js
"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;

1

lib/types/document-element.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc