@bigbinary/neeto-tags-frontend 0.0.24 → 0.0.26

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
@@ -6820,6 +6820,10 @@ var useMergeTags = function useMergeTags() {
6820
6820
  });
6821
6821
  };
6822
6822
 
6823
+ var refetchTags = function refetchTags() {
6824
+ return queryClient.invalidateQueries([TAG_KEY]);
6825
+ };
6826
+
6823
6827
  var useTagsForm = function useTagsForm(_ref) {
6824
6828
  var isEdit = _ref.isEdit,
6825
6829
  tagType = _ref.tagType,
@@ -7044,6 +7048,7 @@ var Dashboard = function Dashboard(_ref) {
7044
7048
  handleMenuToggle = _ref.handleMenuToggle,
7045
7049
  tagsPath = _ref.tagsPath,
7046
7050
  kbArticleUrl = _ref.kbArticleUrl,
7051
+ onTagRowClick = _ref.onTagRowClick,
7047
7052
  _ref$tagsMergable = _ref.tagsMergable,
7048
7053
  tagsMergable = _ref$tagsMergable === void 0 ? false : _ref$tagsMergable;
7049
7054
 
@@ -7211,7 +7216,14 @@ var Dashboard = function Dashboard(_ref) {
7211
7216
  currentPageNumber: pageIndex,
7212
7217
  handlePageChange: setPageIndex,
7213
7218
  totalCount: data === null || data === void 0 ? void 0 : (_data$tags4 = data.tags) === null || _data$tags4 === void 0 ? void 0 : _data$tags4.length,
7214
- allowRowClick: false,
7219
+ allowRowClick: onTagRowClick,
7220
+ onRowClick: function onRowClick(event, record, rowIndex) {
7221
+ return onTagRowClick({
7222
+ event: event,
7223
+ tag: record,
7224
+ rowIndex: rowIndex
7225
+ });
7226
+ },
7215
7227
  rowSelection: false,
7216
7228
  paginationProps: {
7217
7229
  showSizeChanger: false
@@ -7661,5 +7673,5 @@ var App = function App(_ref) {
7661
7673
  });
7662
7674
  };
7663
7675
 
7664
- export { App as NeetoTags };
7676
+ export { App as NeetoTags, refetchTags };
7665
7677
  //# sourceMappingURL=index.js.map