@bigbinary/neeto-image-uploader-frontend 2.2.0 → 2.2.1

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.
@@ -20,7 +20,7 @@ import { withEventTargetValue, getQueryParams, buildUrl, showThumbsUpToastr, hyp
20
20
  import Input from '@bigbinary/neetoui/Input';
21
21
  import Switch from '@bigbinary/neetoui/Switch';
22
22
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
23
- import { Delete as Delete$1 } from '@bigbinary/neeto-icons/index';
23
+ import MenuHorizontal from '@bigbinary/neeto-icons/MenuHorizontal';
24
24
  import { taxonomies, globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
25
25
  import Container from '@bigbinary/neeto-molecules/Container';
26
26
  import NeetoHeader from '@bigbinary/neeto-molecules/Header';
@@ -7511,8 +7511,8 @@ var RolesDropdown = function RolesDropdown(_ref) {
7511
7511
 
7512
7512
  function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7513
7513
  function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7514
- var Menu = Dropdown.Menu,
7515
- MenuItem = Dropdown.MenuItem;
7514
+ var Menu$2 = Dropdown.Menu,
7515
+ MenuItem$3 = Dropdown.MenuItem;
7516
7516
  var Left = function Left(_ref) {
7517
7517
  var _ref2, _selectedRows$keys, _selectedRows$active, _config$hiddenBulkAct, _config$otherBulkActi;
7518
7518
  var config = _ref.config,
@@ -7627,8 +7627,8 @@ var Left = function Left(_ref) {
7627
7627
  "data-cy": "ntm-members-take-action-dropdown-button",
7628
7628
  disabled: !isUpdatePermissionGranted,
7629
7629
  label: t("neetoTeamMembers.common.takeAction"),
7630
- children: /*#__PURE__*/jsxs(Menu, {
7631
- children: [getDeactivatedButtonVisible(selectedRows, config) && /*#__PURE__*/jsx(MenuItem.Button, {
7630
+ children: /*#__PURE__*/jsxs(Menu$2, {
7631
+ children: [getDeactivatedButtonVisible(selectedRows, config) && /*#__PURE__*/jsx(MenuItem$3.Button, {
7632
7632
  "data-cy": "ntm-deactivate-members-button",
7633
7633
  disabled: !isUpdatePermissionGranted,
7634
7634
  onClick: function onClick() {
@@ -9659,6 +9659,8 @@ _default = lib.default = MasonryInfiniteScroller;
9659
9659
  var css = ".niu-unsplash-container {\n height: calc(75vh - 220px) !important;\n max-height: 355px;\n}\n.niu-unsplash-container img {\n height: 100%;\n width: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n animation: fade-in 1.2s 1s cubic-bezier(0.39, 0.575, 0.565, 1) both;\n border-radius: var(--neeto-ui-rounded);\n position: relative;\n cursor: pointer;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3N0eWxlc2hlZXRzL2NvbXBvbmVudHMvX2ltYWdlLWxpYnJhcnkuc2NzcyIsImFwcC9qYXZhc2NyaXB0L3N0eWxlc2hlZXRzL2Fic3RyYWN0cy9fdmFyaWFibGVzLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBR0E7RUFDRSxxQ0FBQTtFQUNBLGlCQ0NrQztBREhwQztBQUlFO0VBQ0UsWUFBQTtFQUNBLFdBQUE7RUFDQSxvQkFBQTtLQUFBLGlCQUFBO0VBQ0EsbUVBQUE7RUFDQSxzQ0FBQTtFQUNBLGtCQUFBO0VBQ0EsZUFBQTtBQUZKIiwic291cmNlc0NvbnRlbnQiOlsiLy9BYnN0cmFjdHNcbkBpbXBvcnQgXCIuLi9hYnN0cmFjdHMvdmFyaWFibGVzXCI7XG5cbi5uaXUtdW5zcGxhc2gtY29udGFpbmVyIHtcbiAgaGVpZ2h0OiBjYWxjKCN7JG5pdS1tb2RhbC1oZWlnaHR9IC0gI3skbml1LW1vZGFsLWhlYWRlci1oZWlnaHR9KSAhaW1wb3J0YW50O1xuICBtYXgtaGVpZ2h0OiAkbml1LXVuc3BsYXNoLWNvbnRhaW5lci1tYXgtaGVpZ2h0O1xuXG4gIGltZyB7XG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIG9iamVjdC1maXQ6IGNvdmVyO1xuICAgIGFuaW1hdGlvbjogZmFkZS1pbiAxLjJzIDFzIGN1YmljLWJlemllcigwLjM5LCAwLjU3NSwgMC41NjUsIDEpIGJvdGg7XG4gICAgYm9yZGVyLXJhZGl1czogdmFyKC0tbmVldG8tdWktcm91bmRlZCk7XG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgfVxufVxuIiwiJG5pdS1tb2RhbC13aWR0aDogOTV2dztcbiRuaXUtbW9kYWwtaGVpZ2h0OiA3NXZoO1xuJG5pdS1tb2RhbC1tYXgtd2lkdGg6IDExNTJweDtcbiRuaXUtbW9kYWwtbWF4LWhlaWdodDogNTc2cHg7XG4kbml1LW1vZGFsLWhlYWRlci1oZWlnaHQ6IDIyMHB4O1xuXG4kbml1LXVuc3BsYXNoLWNvbnRhaW5lci1tYXgtaGVpZ2h0OiAzNTVweDtcbiJdfQ== */";
9660
9660
  n$1(css,{});
9661
9661
 
9662
+ var Menu = Dropdown.Menu,
9663
+ MenuItem = Dropdown.MenuItem;
9662
9664
  var InfiniteScroller = function InfiniteScroller(_ref) {
9663
9665
  var _ref$hasMore = _ref.hasMore,
9664
9666
  hasMore = _ref$hasMore === void 0 ? false : _ref$hasMore,
@@ -9736,17 +9738,28 @@ var InfiniteScroller = function InfiniteScroller(_ref) {
9736
9738
  children: [image === null || image === void 0 || (_image$user2 = image.user) === null || _image$user2 === void 0 ? void 0 : _image$user2.name, " | ", " ", t("neetoImageUploader.labels.unsplash")]
9737
9739
  })]
9738
9740
  }), tab === TABS[0].key && /*#__PURE__*/jsxs(Fragment, {
9739
- children: [hasPermissioToDeleteImage && /*#__PURE__*/jsx(Button, {
9740
- className: "absolute right-2 top-2 z-[1]",
9741
- icon: Delete$1,
9742
- size: "small",
9743
- style: "danger",
9744
- onClick: function onClick() {
9745
- return setDeleteConfirmation({
9746
- isOpen: true,
9747
- imageIds: [(image === null || image === void 0 ? void 0 : image.fileId) || image.id]
9748
- });
9749
- }
9741
+ children: [hasPermissioToDeleteImage && /*#__PURE__*/jsx(Dropdown, {
9742
+ buttonSize: "small",
9743
+ buttonStyle: "tertiary",
9744
+ "data-cy": "image-library-image-options-".concat(index),
9745
+ icon: MenuHorizontal,
9746
+ buttonProps: {
9747
+ className:
9748
+ // eslint-disable-next-line @bigbinary/neeto/use-neetoui-classes
9749
+ "absolute right-2 top-2 z-[1] rounded-full"
9750
+ },
9751
+ children: /*#__PURE__*/jsx(Menu, {
9752
+ children: /*#__PURE__*/jsx(MenuItem.Button, {
9753
+ "data-cy": "image-library-image-delete",
9754
+ onClick: function onClick() {
9755
+ return setDeleteConfirmation({
9756
+ isOpen: true,
9757
+ imageIds: [(image === null || image === void 0 ? void 0 : image.fileId) || image.id]
9758
+ });
9759
+ },
9760
+ children: t("neetoImageUploader.deleteConfirmation.delete")
9761
+ })
9762
+ })
9750
9763
  }), /*#__PURE__*/jsx("img", {
9751
9764
  "data-cy": "niu-library-image-".concat(index),
9752
9765
  src: image === null || image === void 0 ? void 0 : image.url,