@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.cjs.js +2 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -4650,7 +4650,6 @@ var InfiniteScroller = function InfiniteScroller(_ref) {
|
|
|
4650
4650
|
var _image$urls, _image$user, _image$user2;
|
|
4651
4651
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4652
4652
|
className: "float-left w-1/2 pb-4 pr-4 md:w-1/4",
|
|
4653
|
-
"data-cy": "niu-unsplash-image-picker-result-".concat(image.id),
|
|
4654
4653
|
key: image.id
|
|
4655
4654
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4656
4655
|
className: "relative w-full",
|
|
@@ -4661,6 +4660,7 @@ var InfiniteScroller = function InfiniteScroller(_ref) {
|
|
|
4661
4660
|
className: "neeto-ui-rounded-sm neeto-ui-bg-gray-100 group absolute h-full w-full",
|
|
4662
4661
|
id: "unsplashImage".concat(image.id)
|
|
4663
4662
|
}, tab === TABS[1].key && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
4663
|
+
"data-cy": "niu-library-image-".concat(image === null || image === void 0 ? void 0 : image.id),
|
|
4664
4664
|
src: image === null || image === void 0 || (_image$urls = image.urls) === null || _image$urls === void 0 ? void 0 : _image$urls.regular,
|
|
4665
4665
|
onClick: function onClick() {
|
|
4666
4666
|
return handleUnsplashImageSelect(image);
|
|
@@ -4671,6 +4671,7 @@ var InfiniteScroller = function InfiniteScroller(_ref) {
|
|
|
4671
4671
|
rel: "noreferrer",
|
|
4672
4672
|
target: "_blank"
|
|
4673
4673
|
}, 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__default["default"].createElement("img", {
|
|
4674
|
+
"data-cy": "niu-library-image-".concat(image === null || image === void 0 ? void 0 : image.fileId),
|
|
4674
4675
|
src: image === null || image === void 0 ? void 0 : image.url,
|
|
4675
4676
|
onClick: function onClick() {
|
|
4676
4677
|
return setSelectedImage(image);
|