@plasmicpkgs/plasmic-rich-components 1.0.107 → 1.0.109

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.
@@ -930,9 +930,11 @@ function omitUndefined(x) {
930
930
  Object.entries(x).filter(([k, v]) => v !== void 0)
931
931
  );
932
932
  }
933
- function filterNavMenuItemsByConditions(navMenuItems) {
933
+ function processNavItems(navMenuItems) {
934
934
  return navMenuItems.filter((item) => item.condition === void 0 || item.condition).map((item) => __spreadProps$3(__spreadValues$5({}, item), {
935
- routes: item.routes ? filterNavMenuItemsByConditions(item.routes) : void 0
935
+ // We fill a default path because otherwise the item doesn't appear at all.
936
+ path: item.path || "/",
937
+ routes: item.routes ? processNavItems(item.routes) : void 0
936
938
  }));
937
939
  }
938
940
  const baseStyles = `
@@ -1060,7 +1062,7 @@ function RichLayout(_a) {
1060
1062
  splitMenus: layoutProps.layout === "mix",
1061
1063
  route: {
1062
1064
  path: rootUrl,
1063
- routes: navMenuItems ? filterNavMenuItemsByConditions(navMenuItems) : void 0
1065
+ routes: navMenuItems ? processNavItems(navMenuItems) : void 0
1064
1066
  },
1065
1067
  location: {
1066
1068
  pathname
@@ -1311,7 +1313,7 @@ function useSortedFilteredData(data, columns) {
1311
1313
  const finalData = React.useMemo(() => {
1312
1314
  var _a;
1313
1315
  const filtered = (_a = data == null ? void 0 : data.data) == null ? void 0 : _a.filter(
1314
- (row) => fastStringify(Object.values(row)).toLowerCase().includes(search)
1316
+ (row) => fastStringify(Object.values(row)).toLowerCase().includes(search.toLowerCase())
1315
1317
  );
1316
1318
  const sorted = (sortState == null ? void 0 : sortState.sorter.column) ? (
1317
1319
  // We use .sort() rather than sortBy to use localeCompare