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
4
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.27.3-alpha.0

11

dist/cjs/resolvers/abilities/utils.js

@@ -86,3 +86,8 @@ "use strict";

var getLinkElementType = function (link) {
return link.type === 'navlink' ? 'navlink' : 'link';
// for now I'm making all dynamic links local.
// Maybe navlinks could have a dynamic reference,
// not just a staic on in the future, but for now
// (for the CMS demo) the navlink was too robust
// to change
return link.type === 'navlink' || link.type === 'dynamic' ? 'navlink' : 'link';
};

@@ -114,2 +119,6 @@ var createLinkAttributes = function (link, options) {

}
case 'dynamic':
return {
transitionTo: link,
};
case 'navlink': {

@@ -116,0 +125,0 @@ return {

@@ -272,2 +272,6 @@ "use strict";

teleport_shared_1.UIDLUtils.traverseRepeats(node, function (repeat) {
var _a;
if (!((_a = repeat.dataSource) === null || _a === void 0 ? void 0 : _a.type)) {
return;
}
if (repeat.dataSource.type === 'static' && !customDataSourceIdentifierExists(repeat)) {

@@ -274,0 +278,0 @@ repeat.meta = repeat.meta || {};

@@ -81,3 +81,8 @@ var __assign = (this && this.__assign) || function () {

var getLinkElementType = function (link) {
return link.type === 'navlink' ? 'navlink' : 'link';
// for now I'm making all dynamic links local.
// Maybe navlinks could have a dynamic reference,
// not just a staic on in the future, but for now
// (for the CMS demo) the navlink was too robust
// to change
return link.type === 'navlink' || link.type === 'dynamic' ? 'navlink' : 'link';
};

@@ -109,2 +114,6 @@ var createLinkAttributes = function (link, options) {

}
case 'dynamic':
return {
transitionTo: link,
};
case 'navlink': {

@@ -111,0 +120,0 @@ return {

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

UIDLUtils.traverseRepeats(node, function (repeat) {
var _a;
if (!((_a = repeat.dataSource) === null || _a === void 0 ? void 0 : _a.type)) {
return;
}
if (repeat.dataSource.type === 'static' && !customDataSourceIdentifierExists(repeat)) {

@@ -260,0 +264,0 @@ repeat.meta = repeat.meta || {};

10

package.json
{
"name": "@teleporthq/teleport-uidl-resolver",
"version": "0.27.2",
"version": "0.27.3-alpha.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.27.2",
"@teleporthq/teleport-types": "^0.27.0",
"@teleporthq/teleport-uidl-builders": "^0.27.0",
"@teleporthq/teleport-shared": "^0.27.3-alpha.0",
"@teleporthq/teleport-types": "^0.27.3-alpha.0",
"@teleporthq/teleport-uidl-builders": "^0.27.3-alpha.0",
"deepmerge": "^4.0.0"
},
"gitHead": "53c7b8a9ffbe8e18341da464580e08f5292c3f00"
"gitHead": "5e89aee4d95121ae24e6909b9b09ccee9918bd2c"
}

@@ -104,3 +104,8 @@ import { StringUtils } from '@teleporthq/teleport-shared'

const getLinkElementType = (link: UIDLLinkNode): string => {
return link.type === 'navlink' ? 'navlink' : 'link'
// for now I'm making all dynamic links local.
// Maybe navlinks could have a dynamic reference,
// not just a staic on in the future, but for now
// (for the CMS demo) the navlink was too robust
// to change
return link.type === 'navlink' || link.type === 'dynamic' ? 'navlink' : 'link'
}

@@ -140,2 +145,7 @@

case 'dynamic':
return {
transitionTo: link,
}
case 'navlink': {

@@ -142,0 +152,0 @@ return {

@@ -58,3 +58,3 @@ import { UIDLUtils, StringUtils } from '@teleporthq/teleport-shared'

Object.keys(tag).forEach((key) => {
tag[key] = UIDLUtils.prefixAssetsPath(tag[key], options.assets)
tag[key] = UIDLUtils.prefixAssetsPath(tag[key] as string, options.assets)
})

@@ -328,3 +328,7 @@ })

UIDLUtils.traverseRepeats(node, (repeat) => {
UIDLUtils.traverseRepeats(node, (repeat: UIDLRepeatContent) => {
if (!repeat.dataSource?.type) {
return
}
if (repeat.dataSource.type === 'static' && !customDataSourceIdentifierExists(repeat)) {

@@ -331,0 +335,0 @@ repeat.meta = repeat.meta || {}

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

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