@bigbinary/neeto-themes-frontend 2.0.2 → 2.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.
package/dist/index.cjs.js CHANGED
@@ -722,9 +722,9 @@ var ImageBlock = function ImageBlock(_ref) {
722
722
  label: buildLabel("".concat(name, "Position"), "image"),
723
723
  options: options || POSITION_OPTIONS,
724
724
  placeholder: t("neetoThemes.common.left"),
725
- value: neetoCist.toLabelAndValue((_findBy = neetoCist.findBy({
725
+ value: neetoCist.toLabelAndValue(((_findBy = neetoCist.findBy({
726
726
  key: "".concat(name, "_position")
727
- }, values.properties)) === null || _findBy === void 0 ? void 0 : _findBy.value),
727
+ }, values.properties)) === null || _findBy === void 0 ? void 0 : _findBy.value) || (positionKeyInSchema === null || positionKeyInSchema === void 0 ? void 0 : positionKeyInSchema.defaultValue)),
728
728
  onChange: function onChange(option) {
729
729
  return setFieldValue("properties[".concat(positionKeyIndex, "].value"), option.value);
730
730
  }
@@ -1523,7 +1523,10 @@ var Card = function Card(_ref) {
1523
1523
  "data-cy": "delete-theme-menu-item",
1524
1524
  label: t("neetoThemes.build.leftSideBar.themes.themeOptions.delete"),
1525
1525
  isVisible: isFunction(onDeleteTheme),
1526
- onClick: handleDeleteTheme
1526
+ onClick: function onClick(e) {
1527
+ e.stopPropagation();
1528
+ handleDeleteTheme();
1529
+ }
1527
1530
  }]
1528
1531
  })]
1529
1532
  })]