@knovator/pagecreator 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +7 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -142,9 +142,13 @@ function CarouselWidget(_ref) {
142
142
  if (!widgetData) return null;
143
143
  return jsx(Slider, Object.assign({}, settings ? settings : defaultSettings, {
144
144
  children: widgetData.widgetType === 'Image' ? widgetData.tiles.map(function (tile) {
145
- return formatItem(tile);
145
+ return jsx("div", {
146
+ children: formatItem(tile)
147
+ });
146
148
  }) : widgetData.collectionItems.map(function (item) {
147
- return formatItem(item);
149
+ return jsx("div", {
150
+ children: formatItem(item)
151
+ });
148
152
  })
149
153
  }));
150
154
  }
@@ -179,7 +183,7 @@ function CollectionItem(_ref) {
179
183
  children: jsx("p", Object.assign({
180
184
  className: "kpc_item-text"
181
185
  }, {
182
- children: name
186
+ children: name || 'Laurem Ipsum'
183
187
  }))
184
188
  }));
185
189
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knovator/pagecreator",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:knovator/pagecreator.git"