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

@teleporthq/teleport-uidl-resolver

Package Overview
Dependencies
Maintainers
3
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teleporthq/teleport-uidl-resolver - npm Package Compare versions

Comparing version

to
0.20.0

10

dist/cjs/resolvers/abilities/utils.js

@@ -17,6 +17,6 @@ "use strict";

var insertLinks = function (node, options, linkInParent, parentNode) {
var _a, _b;
var _a, _b, _c, _d;
if (linkInParent === void 0) { linkInParent = false; }
// TODO_NOW
var _c = node.content, abilities = _c.abilities, children = _c.children, elementType = _c.elementType, semanticType = _c.semanticType;
var _e = node.content, abilities = _e.abilities, children = _e.children, elementType = _e.elementType, semanticType = _e.semanticType;
var linkInNode = linkInParent || !!(abilities === null || abilities === void 0 ? void 0 : abilities.link);

@@ -45,2 +45,6 @@ // TODO: think of a way to reuse the traversal that modifies the tree

}
/* type attribute is not valid for `anchor` tags */
if ((_b = (_a = node.content) === null || _a === void 0 ? void 0 : _a.attrs) === null || _b === void 0 ? void 0 : _b.type) {
delete node.content.attrs.type;
}
/* We repalce buttons with link to use <a> tag's, to make the generated

@@ -64,3 +68,3 @@ code to be semantically correct. */

linkNode.content.children.push(node);
if (((_b = (_a = parentNode === null || parentNode === void 0 ? void 0 : parentNode.content.style) === null || _a === void 0 ? void 0 : _a.display) === null || _b === void 0 ? void 0 : _b.content) === 'flex') {
if (((_d = (_c = parentNode === null || parentNode === void 0 ? void 0 : parentNode.content.style) === null || _c === void 0 ? void 0 : _c.display) === null || _d === void 0 ? void 0 : _d.content) === 'flex') {
linkNode.content.style = __assign(__assign({}, linkNode.content.style), { display: { type: 'static', content: 'contents' } });

@@ -67,0 +71,0 @@ }

@@ -14,6 +14,6 @@ var __assign = (this && this.__assign) || function () {

export var insertLinks = function (node, options, linkInParent, parentNode) {
var _a, _b;
var _a, _b, _c, _d;
if (linkInParent === void 0) { linkInParent = false; }
// TODO_NOW
var _c = node.content, abilities = _c.abilities, children = _c.children, elementType = _c.elementType, semanticType = _c.semanticType;
var _e = node.content, abilities = _e.abilities, children = _e.children, elementType = _e.elementType, semanticType = _e.semanticType;
var linkInNode = linkInParent || !!(abilities === null || abilities === void 0 ? void 0 : abilities.link);

@@ -42,2 +42,6 @@ // TODO: think of a way to reuse the traversal that modifies the tree

}
/* type attribute is not valid for `anchor` tags */
if ((_b = (_a = node.content) === null || _a === void 0 ? void 0 : _a.attrs) === null || _b === void 0 ? void 0 : _b.type) {
delete node.content.attrs.type;
}
/* We repalce buttons with link to use <a> tag's, to make the generated

@@ -61,3 +65,3 @@ code to be semantically correct. */

linkNode.content.children.push(node);
if (((_b = (_a = parentNode === null || parentNode === void 0 ? void 0 : parentNode.content.style) === null || _a === void 0 ? void 0 : _a.display) === null || _b === void 0 ? void 0 : _b.content) === 'flex') {
if (((_d = (_c = parentNode === null || parentNode === void 0 ? void 0 : parentNode.content.style) === null || _c === void 0 ? void 0 : _c.display) === null || _d === void 0 ? void 0 : _d.content) === 'flex') {
linkNode.content.style = __assign(__assign({}, linkNode.content.style), { display: { type: 'static', content: 'contents' } });

@@ -64,0 +68,0 @@ }

{
"name": "@teleporthq/teleport-uidl-resolver",
"version": "0.19.22",
"version": "0.20.0",
"description": "A small package that handles the transition from UIDL to HTML elements and has support for custom mappings.",

@@ -27,8 +27,8 @@ "author": "teleportHQ",

"dependencies": {
"@teleporthq/teleport-shared": "^0.19.22",
"@teleporthq/teleport-types": "^0.19.22",
"@teleporthq/teleport-uidl-builders": "^0.19.22",
"@teleporthq/teleport-shared": "^0.20.0",
"@teleporthq/teleport-types": "^0.20.0",
"@teleporthq/teleport-uidl-builders": "^0.20.0",
"deepmerge": "^4.0.0"
},
"gitHead": "2acf6c44f41be50e04b29cdbab8fc222546022ef"
"gitHead": "5af5121b8341165b79f3ebd8111811dfb8540397"
}

@@ -46,2 +46,7 @@ import { StringUtils } from '@teleporthq/teleport-shared'

/* type attribute is not valid for `anchor` tags */
if (node.content?.attrs?.type) {
delete node.content.attrs.type
}
/* We repalce buttons with link to use <a> tag's, to make the generated

@@ -48,0 +53,0 @@ code to be semantically correct. */

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet