@teleporthq/teleport-uidl-resolver
Advanced tools
Comparing version 0.11.1 to 0.12.0
@@ -24,2 +24,3 @@ "use strict"; | ||
var abilities_1 = require("./resolvers/abilities"); | ||
var referenced_styles_1 = require("./resolvers/referenced-styles"); | ||
/** | ||
@@ -57,2 +58,3 @@ * The resolver takes the input UIDL and converts all the abstract node types into | ||
abilities_1.resolveAbilities(uidl, newOptions); | ||
referenced_styles_1.resolveReferencedStyle(uidl); | ||
// TODO: Rename into apply mappings | ||
@@ -59,0 +61,0 @@ utils.resolveNode(uidl.node, newOptions); |
@@ -301,6 +301,2 @@ "use strict"; | ||
return acc; | ||
case 'nested-style': | ||
acc[styleKey] = styleValue; | ||
acc[styleKey].content = prefixAssetURLs(styleValue.content, assetsPrefix); | ||
return acc; | ||
default: | ||
@@ -307,0 +303,0 @@ throw new Error("Invalid styleValue type '" + styleValue + "'"); |
import * as utils from './utils'; | ||
import { UIDLUtils } from '@teleporthq/teleport-shared'; | ||
import { resolveAbilities } from './resolvers/abilities'; | ||
import { resolveReferencedStyle } from './resolvers/referenced-styles'; | ||
/** | ||
@@ -37,2 +38,3 @@ * The resolver takes the input UIDL and converts all the abstract node types into | ||
resolveAbilities(uidl, newOptions); | ||
resolveReferencedStyle(uidl); | ||
// TODO: Rename into apply mappings | ||
@@ -39,0 +41,0 @@ utils.resolveNode(uidl.node, newOptions); |
@@ -284,6 +284,2 @@ import { UIDLUtils, StringUtils, Constants } from '@teleporthq/teleport-shared'; | ||
return acc; | ||
case 'nested-style': | ||
acc[styleKey] = styleValue; | ||
acc[styleKey].content = prefixAssetURLs(styleValue.content, assetsPrefix); | ||
return acc; | ||
default: | ||
@@ -290,0 +286,0 @@ throw new Error(`Invalid styleValue type '${styleValue}'`); |
{ | ||
"name": "@teleporthq/teleport-uidl-resolver", | ||
"version": "0.11.1", | ||
"version": "0.12.0", | ||
"description": "A small package that handles the transition from UIDL to HTML elements and has support for custom mappings.", | ||
@@ -29,8 +29,8 @@ "author": "teleportHQ", | ||
"dependencies": { | ||
"@teleporthq/teleport-shared": "^0.11.1", | ||
"@teleporthq/teleport-types": "^0.11.0", | ||
"@teleporthq/teleport-uidl-builders": "^0.11.1", | ||
"@teleporthq/teleport-shared": "^0.12.0", | ||
"@teleporthq/teleport-types": "^0.12.0", | ||
"@teleporthq/teleport-uidl-builders": "^0.12.0", | ||
"deepmerge": "^4.0.0" | ||
}, | ||
"gitHead": "f6ed005a4cdb5b1b8050f9368ff436b9c48a4fde" | ||
"gitHead": "f5ef80f8d15eb5da2bce57dee16ded1513d051b9" | ||
} |
@@ -5,2 +5,3 @@ import * as utils from './utils' | ||
import { resolveAbilities } from './resolvers/abilities' | ||
import { resolveReferencedStyle } from './resolvers/referenced-styles' | ||
@@ -47,2 +48,4 @@ /** | ||
resolveReferencedStyle(uidl) | ||
// TODO: Rename into apply mappings | ||
@@ -49,0 +52,0 @@ utils.resolveNode(uidl.node, newOptions) |
@@ -377,6 +377,2 @@ import { UIDLUtils, StringUtils, Constants } from '@teleporthq/teleport-shared' | ||
return acc | ||
case 'nested-style': | ||
acc[styleKey] = styleValue | ||
acc[styleKey].content = prefixAssetURLs(styleValue.content, assetsPrefix) | ||
return acc | ||
default: | ||
@@ -383,0 +379,0 @@ throw new Error(`Invalid styleValue type '${styleValue}'`) |
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
391130
59
3244
+ Added@teleporthq/teleport-shared@0.12.4(transitive)
+ Added@teleporthq/teleport-types@0.12.4(transitive)
+ Added@teleporthq/teleport-uidl-builders@0.12.4(transitive)
- Removed@teleporthq/teleport-shared@0.11.1(transitive)
- Removed@teleporthq/teleport-types@0.11.0(transitive)
- Removed@teleporthq/teleport-uidl-builders@0.11.1(transitive)