New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@contrail/documents

Package Overview
Dependencies
Maintainers
0
Versions
121
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

to
1.0.120

2

lib/components/components.js

@@ -189,3 +189,3 @@ "use strict";

style: { background: { size: types_1.BackgroundSizeType.CONTAIN } },
propertyBindings: { url: 'color.mediumViewableDownloadUrl' },
propertyBindings: { url: 'viewable.mediumViewableDownloadUrl' },
},

@@ -192,0 +192,0 @@ {

@@ -38,3 +38,3 @@ "use strict";

if (((_a = element === null || element === void 0 ? void 0 : element.elements) === null || _a === void 0 ? void 0 : _a.length) > 0) {
element.elements = element.elements.map(e => {
element.elements = element.elements.map((e) => {
e.id = (0, nanoid_1.nanoid)(16);

@@ -79,3 +79,3 @@ return e;

if (((_a = element === null || element === void 0 ? void 0 : element.elements) === null || _a === void 0 ? void 0 : _a.length) > 0) {
element.elements = element.elements.map(e => {
element.elements = element.elements.map((e) => {
e.id = (0, nanoid_1.nanoid)(16);

@@ -112,3 +112,3 @@ return e;

if (newElement.type === 'table') {
const oldChildElements = elements.filter(e => e.tableId === element.id && ['cell', 'column', 'row'].indexOf(e.type) !== -1);
const oldChildElements = elements.filter((e) => e.tableId === element.id && ['cell', 'column', 'row'].indexOf(e.type) !== -1);
let newTableElement, newChildElements = [];

@@ -124,3 +124,3 @@ try {

newElement = newTableElement;
newChildElements.forEach(newChildElement => {
newChildElements.forEach((newChildElement) => {
var _a;

@@ -137,3 +137,3 @@ let oldChildId;

const oldColumnId = element.columnIds[newTableElement.columnIds.indexOf(newChildElement.columnId)];
oldChildId = (_a = elements.find(e => e.type === 'cell' && e.rowId === oldRowId && e.columnId === oldColumnId)) === null || _a === void 0 ? void 0 : _a.id;
oldChildId = (_a = elements.find((e) => e.type === 'cell' && e.rowId === oldRowId && e.columnId === oldColumnId)) === null || _a === void 0 ? void 0 : _a.id;
}

@@ -171,11 +171,11 @@ if (oldChildId) {

}
groupElements.forEach(groupElement => {
groupElements.forEach((groupElement) => {
groupElement.elementIds = groupElement.elementIds
.map(oldElementId => oldIdToNewId.get(oldElementId))
.filter(id => !!id);
.map((oldElementId) => oldIdToNewId.get(oldElementId))
.filter((id) => !!id);
});
maskElements.forEach(maskElement => {
maskElements.forEach((maskElement) => {
const newElementIds = maskElement.elementIds
.map(oldElementId => oldIdToNewId.get(oldElementId))
.filter(id => !!id);
.map((oldElementId) => oldIdToNewId.get(oldElementId))
.filter((id) => !!id);
maskElement.elementIds = (newElementIds === null || newElementIds === void 0 ? void 0 : newElementIds.length) > 0 ? newElementIds : null;

@@ -182,0 +182,0 @@ });

{
"name": "@contrail/documents",
"version": "1.0.119",
"version": "1.0.120",
"description": "Documents library for contrail platform",

@@ -5,0 +5,0 @@ "main": "lib/index.js",