@knovator/pagecreator 0.9.3 → 0.9.4

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 +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -557,7 +557,7 @@ function TabWidget(_ref) {
557
557
  }, /*#__PURE__*/React.createElement(TabList, null, widgetData.tabs.map(function (tab, index) {
558
558
  return /*#__PURE__*/React.createElement(Tab, {
559
559
  key: index
560
- }, formatTabTitle(tab.name || tab.names, tab.collectionItems, activeTab === index));
560
+ }, formatTabTitle(tab.names || tab.name, tab.collectionItems, activeTab === index));
561
561
  })), widgetData.tabs.map(function (tab, index) {
562
562
  return /*#__PURE__*/React.createElement(TabPanel, {
563
563
  key: index
@@ -624,10 +624,10 @@ function Widget(_ref) {
624
624
  style: {
625
625
  backgroundColor: widgetData.backgroundColor
626
626
  }
627
- }, hideTitle === true ? null : typeof formatHeader === 'function' ? formatHeader(widgetData.widgetTitle, widgetData) : /*#__PURE__*/React.createElement("h2", {
627
+ }, hideTitle === true ? null : typeof formatHeader === 'function' ? formatHeader(widgetData.widgetTitles || widgetData.widgetTitle, widgetData) : /*#__PURE__*/React.createElement("h2", {
628
628
  className: "kpc_widget-title",
629
629
  dangerouslySetInnerHTML: {
630
- __html: widgetData.widgetTitle
630
+ __html: widgetData.widgetTitles ? JSON.stringify(widgetData.widgetTitles) : widgetData.widgetTitle
631
631
  }
632
632
  }), /*#__PURE__*/React.createElement("div", {
633
633
  className: "kpc_widget-body"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knovator/pagecreator",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:knovator/pagecreator.git"