@teleporthq/teleport-plugin-common
Advanced tools
Comparing version 0.42.0-alpha.0 to 0.43.0-alpha.0
@@ -269,4 +269,5 @@ "use strict"; | ||
var generateCMSListRepeaterNode = function (node, params, options) { | ||
var _a; | ||
var repeaterNode = __1.ASTBuilders.createJSXTag('Repeater', [], true); | ||
repeaterNode.openingElement.attributes.push(types.jsxAttribute(types.jsxIdentifier('items'), types.jsxExpressionContainer(types.identifier('params')))); | ||
repeaterNode.openingElement.attributes.push(types.jsxAttribute(types.jsxIdentifier('items'), types.jsxExpressionContainer(types.identifier((_a = node.content.source) !== null && _a !== void 0 ? _a : 'params')))); | ||
repeaterNode.openingElement.attributes.push(types.jsxAttribute(types.jSXIdentifier('renderItem'), types.jsxExpressionContainer(types.arrowFunctionExpression([types.identifier(node.content.renderPropIdentifier)], generateNode(node.content.nodes.list, params, options)[0])))); | ||
@@ -273,0 +274,0 @@ if ('empty' in node.content.nodes) { |
@@ -244,4 +244,5 @@ var __assign = (this && this.__assign) || function () { | ||
var generateCMSListRepeaterNode = function (node, params, options) { | ||
var _a; | ||
var repeaterNode = ASTBuilders.createJSXTag('Repeater', [], true); | ||
repeaterNode.openingElement.attributes.push(types.jsxAttribute(types.jsxIdentifier('items'), types.jsxExpressionContainer(types.identifier('params')))); | ||
repeaterNode.openingElement.attributes.push(types.jsxAttribute(types.jsxIdentifier('items'), types.jsxExpressionContainer(types.identifier((_a = node.content.source) !== null && _a !== void 0 ? _a : 'params')))); | ||
repeaterNode.openingElement.attributes.push(types.jsxAttribute(types.jSXIdentifier('renderItem'), types.jsxExpressionContainer(types.arrowFunctionExpression([types.identifier(node.content.renderPropIdentifier)], generateNode(node.content.nodes.list, params, options)[0])))); | ||
@@ -248,0 +249,0 @@ if ('empty' in node.content.nodes) { |
{ | ||
"name": "@teleporthq/teleport-plugin-common", | ||
"version": "0.42.0-alpha.0", | ||
"version": "0.43.0-alpha.0", | ||
"description": "Common building and modelating functions for ASTs and HASTs", | ||
@@ -30,8 +30,8 @@ "author": "teleportHQ", | ||
"@babel/types": "^7.5.5", | ||
"@teleporthq/teleport-shared": "^0.42.0-alpha.0", | ||
"@teleporthq/teleport-types": "^0.42.0-alpha.0", | ||
"@teleporthq/teleport-shared": "^0.43.0-alpha.0", | ||
"@teleporthq/teleport-types": "^0.43.0-alpha.0", | ||
"jss": "^10.0.0", | ||
"jss-preset-default": "^10.0.0" | ||
}, | ||
"gitHead": "4ce1d02f5329c1ca017be933b5dafc4dd167fbcb" | ||
"gitHead": "b3c9ae8e66be2e9621e83706b15305be9d51dd01" | ||
} |
@@ -459,3 +459,3 @@ import * as types from '@babel/types' | ||
types.jsxIdentifier('items'), | ||
types.jsxExpressionContainer(types.identifier('params')) | ||
types.jsxExpressionContainer(types.identifier(node.content.source ?? 'params')) | ||
) | ||
@@ -462,0 +462,0 @@ ) |
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
594819
7957
+ Added@teleporthq/teleport-shared@0.43.0-alpha.0(transitive)
+ Added@teleporthq/teleport-types@0.43.0-alpha.0(transitive)
- Removed@teleporthq/teleport-shared@0.42.0-alpha.0(transitive)
- Removed@teleporthq/teleport-types@0.42.0-alpha.0(transitive)