@banyan_cloud/roots 1.0.53 → 1.0.55

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
@@ -7458,6 +7458,7 @@ var Link = /*#__PURE__*/forwardRef(function Link(props, ref) {
7458
7458
  italic: italic,
7459
7459
  className: classes(className, modules_475441e2.root, modules_475441e2["underline-".concat(underline)]),
7460
7460
  attrs: _objectSpread2({
7461
+ to: href,
7461
7462
  href: href,
7462
7463
  target: target
7463
7464
  }, attrs),
@@ -7496,13 +7497,14 @@ var BreadCrumbs = function BreadCrumbs(props) {
7496
7497
  var CrumbsDOM = crumbs.map(function (crumb, index) {
7497
7498
  var title = crumb.title,
7498
7499
  path = crumb.path,
7500
+ search = crumb.search,
7499
7501
  icon = crumb.icon;
7500
7502
  var active = index === crumbs.length - 1;
7501
7503
  var showSeperator = index < crumbs.length - 1;
7502
7504
  href += "/".concat(path);
7503
7505
  return /*#__PURE__*/jsxs(React__default.Fragment, {
7504
7506
  children: [/*#__PURE__*/jsxs(Link, {
7505
- href: !active && href,
7507
+ href: !active && "".concat(href).concat(search !== null && search !== void 0 ? search : ''),
7506
7508
  underline: !active ? 'hover' : 'none',
7507
7509
  className: classes(modules_651f50a9.crumb, active ? modules_651f50a9.active : ''),
7508
7510
  dataAttrs: {
@@ -44163,16 +44165,25 @@ var Pagination = /*#__PURE__*/forwardRef(function (props, ref) {
44163
44165
  total: totalPages
44164
44166
  });
44165
44167
  var jumpPageRef = useRef(null);
44168
+ var mountedRef = useRef(false);
44166
44169
  var _onChange = function onChange(action) {
44167
44170
  paginationDispatch(action);
44168
44171
  };
44169
44172
  useEffect(function () {
44170
- props.onChange({
44171
- currentPage: currentPage,
44172
- step: step,
44173
- totalPages: totalPages
44174
- });
44173
+ if (mountedRef.current) {
44174
+ props.onChange({
44175
+ currentPage: currentPage,
44176
+ step: step,
44177
+ totalPages: totalPages
44178
+ });
44179
+ }
44175
44180
  }, [currentPage, step]);
44181
+ useEffect(function () {
44182
+ mountedRef.current = true;
44183
+ return function () {
44184
+ mountedRef.current = false;
44185
+ };
44186
+ }, []);
44176
44187
  if (loading) {
44177
44188
  return null;
44178
44189
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banyan_cloud/roots",
3
- "version": "1.0.53",
3
+ "version": "1.0.55",
4
4
  "description": "Design System Library which drives the Banyan Cloud products",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",