@plasmicpkgs/plasmic-rich-components 1.0.108 → 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
|
|
933
|
+
function processNavItems(navMenuItems) {
|
|
934
934
|
return navMenuItems.filter((item) => item.condition === void 0 || item.condition).map((item) => __spreadProps$3(__spreadValues$5({}, item), {
|
|
935
|
-
|
|
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 ?
|
|
1065
|
+
routes: navMenuItems ? processNavItems(navMenuItems) : void 0
|
|
1064
1066
|
},
|
|
1065
1067
|
location: {
|
|
1066
1068
|
pathname
|