@plasmicpkgs/plasmic-rich-components 1.0.108 → 1.0.110

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 = `
@@ -1031,6 +1033,7 @@ function RichLayout(_a) {
1031
1033
  return /* @__PURE__ */ React.createElement("div", { className, style: { display: "flex" } }, /* @__PURE__ */ React.createElement("style", null, baseStyles), /* @__PURE__ */ React.createElement(
1032
1034
  ProLayout,
1033
1035
  __spreadProps$3(__spreadValues$5({}, layoutProps), {
1036
+ pageTitleRender: () => "",
1034
1037
  logo: logo != null ? logo : logoElement,
1035
1038
  headerRender: (_props, defaultDom) => /* @__PURE__ */ React.createElement(
1036
1039
  ConfigProvider,
@@ -1060,7 +1063,7 @@ function RichLayout(_a) {
1060
1063
  splitMenus: layoutProps.layout === "mix",
1061
1064
  route: {
1062
1065
  path: rootUrl,
1063
- routes: navMenuItems ? filterNavMenuItemsByConditions(navMenuItems) : void 0
1066
+ routes: navMenuItems ? processNavItems(navMenuItems) : void 0
1064
1067
  },
1065
1068
  location: {
1066
1069
  pathname