@bigbinary/neeto-image-uploader-frontend 1.5.9 → 1.5.10

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.js CHANGED
@@ -4639,7 +4639,6 @@ var InfiniteScroller = function InfiniteScroller(_ref) {
4639
4639
  var _image$urls, _image$user, _image$user2;
4640
4640
  return /*#__PURE__*/React.createElement("div", {
4641
4641
  className: "float-left w-1/2 pb-4 pr-4 md:w-1/4",
4642
- "data-cy": "niu-unsplash-image-picker-result-".concat(image.id),
4643
4642
  key: image.id
4644
4643
  }, /*#__PURE__*/React.createElement("div", {
4645
4644
  className: "relative w-full",
@@ -4650,6 +4649,7 @@ var InfiniteScroller = function InfiniteScroller(_ref) {
4650
4649
  className: "neeto-ui-rounded-sm neeto-ui-bg-gray-100 group absolute h-full w-full",
4651
4650
  id: "unsplashImage".concat(image.id)
4652
4651
  }, tab === TABS[1].key && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("img", {
4652
+ "data-cy": "niu-library-image-".concat(image === null || image === void 0 ? void 0 : image.id),
4653
4653
  src: image === null || image === void 0 || (_image$urls = image.urls) === null || _image$urls === void 0 ? void 0 : _image$urls.regular,
4654
4654
  onClick: function onClick() {
4655
4655
  return handleUnsplashImageSelect(image);
@@ -4660,6 +4660,7 @@ var InfiniteScroller = function InfiniteScroller(_ref) {
4660
4660
  rel: "noreferrer",
4661
4661
  target: "_blank"
4662
4662
  }, image === null || image === void 0 || (_image$user2 = image.user) === null || _image$user2 === void 0 ? void 0 : _image$user2.name, " | ", " ", t("neetoImageUploader.labels.unsplash"))), tab === TABS[0].key && /*#__PURE__*/React.createElement("img", {
4663
+ "data-cy": "niu-library-image-".concat(image === null || image === void 0 ? void 0 : image.fileId),
4663
4664
  src: image === null || image === void 0 ? void 0 : image.url,
4664
4665
  onClick: function onClick() {
4665
4666
  return setSelectedImage(image);