@orion-studios/payload-studio 0.6.0-beta.2 → 0.6.0-beta.3

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.
@@ -2897,7 +2897,7 @@ var buildStudioNavItems = (props, adminBasePath) => {
2897
2897
  const resolvedGlobalsExtraMatchPrefixes = globalsExtraMatchPrefixes.map(
2898
2898
  (prefix) => resolveAdminPath(adminBasePath, prefix)
2899
2899
  );
2900
- const baseItems = [
2900
+ const baseItemsBeforeTools = [
2901
2901
  {
2902
2902
  href: adminBasePath,
2903
2903
  icon: "dashboard",
@@ -2938,15 +2938,15 @@ var buildStudioNavItems = (props, adminBasePath) => {
2938
2938
  icon: "media",
2939
2939
  label: "Media",
2940
2940
  matchPrefixes: [mediaPath, resolveAdminPath(adminBasePath, `/collections/${mediaCollectionSlug}`)]
2941
- },
2942
- {
2943
- href: toolsPath,
2944
- icon: "tools",
2945
- label: "Admin Tools",
2946
- matchPrefixes: [toolsPath, resolveAdminPath(adminBasePath, "/collections/users")],
2947
- roles: ["admin"]
2948
2941
  }
2949
2942
  ];
2943
+ const adminToolsItem = {
2944
+ href: toolsPath,
2945
+ icon: "tools",
2946
+ label: "Admin Tools",
2947
+ matchPrefixes: [toolsPath, resolveAdminPath(adminBasePath, "/collections/users")],
2948
+ roles: ["admin"]
2949
+ };
2950
2950
  const extensionItems = sections.map((section) => ({
2951
2951
  href: resolveAdminPath(adminBasePath, section.href),
2952
2952
  ...section.icon ? { icon: section.icon } : {},
@@ -2954,7 +2954,7 @@ var buildStudioNavItems = (props, adminBasePath) => {
2954
2954
  matchPrefixes: section.matchPrefixes.map((prefix) => resolveAdminPath(adminBasePath, prefix)),
2955
2955
  roles: section.roles
2956
2956
  }));
2957
- return [...baseItems, ...extensionItems];
2957
+ return [...baseItemsBeforeTools, ...extensionItems, adminToolsItem];
2958
2958
  };
2959
2959
  var isStudioShellRoute = (pathname, props, adminBasePath) => {
2960
2960
  const globalsBasePath = getPropString(props, "globalsBasePath", "/globals");
@@ -1530,7 +1530,7 @@ var buildStudioNavItems = (props, adminBasePath) => {
1530
1530
  const resolvedGlobalsExtraMatchPrefixes = globalsExtraMatchPrefixes.map(
1531
1531
  (prefix) => resolveAdminPath(adminBasePath, prefix)
1532
1532
  );
1533
- const baseItems = [
1533
+ const baseItemsBeforeTools = [
1534
1534
  {
1535
1535
  href: adminBasePath,
1536
1536
  icon: "dashboard",
@@ -1571,15 +1571,15 @@ var buildStudioNavItems = (props, adminBasePath) => {
1571
1571
  icon: "media",
1572
1572
  label: "Media",
1573
1573
  matchPrefixes: [mediaPath, resolveAdminPath(adminBasePath, `/collections/${mediaCollectionSlug}`)]
1574
- },
1575
- {
1576
- href: toolsPath,
1577
- icon: "tools",
1578
- label: "Admin Tools",
1579
- matchPrefixes: [toolsPath, resolveAdminPath(adminBasePath, "/collections/users")],
1580
- roles: ["admin"]
1581
1574
  }
1582
1575
  ];
1576
+ const adminToolsItem = {
1577
+ href: toolsPath,
1578
+ icon: "tools",
1579
+ label: "Admin Tools",
1580
+ matchPrefixes: [toolsPath, resolveAdminPath(adminBasePath, "/collections/users")],
1581
+ roles: ["admin"]
1582
+ };
1583
1583
  const extensionItems = sections.map((section) => ({
1584
1584
  href: resolveAdminPath(adminBasePath, section.href),
1585
1585
  ...section.icon ? { icon: section.icon } : {},
@@ -1587,7 +1587,7 @@ var buildStudioNavItems = (props, adminBasePath) => {
1587
1587
  matchPrefixes: section.matchPrefixes.map((prefix) => resolveAdminPath(adminBasePath, prefix)),
1588
1588
  roles: section.roles
1589
1589
  }));
1590
- return [...baseItems, ...extensionItems];
1590
+ return [...baseItemsBeforeTools, ...extensionItems, adminToolsItem];
1591
1591
  };
1592
1592
  var isStudioShellRoute = (pathname, props, adminBasePath) => {
1593
1593
  const globalsBasePath = getPropString(props, "globalsBasePath", "/globals");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-studios/payload-studio",
3
- "version": "0.6.0-beta.2",
3
+ "version": "0.6.0-beta.3",
4
4
  "description": "Base CMS, builder, and custom admin toolkit for Orion Studios websites",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",