@orion-studios/payload-studio 0.3.0-beta.11 → 0.3.0-beta.13

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.
@@ -2286,7 +2286,21 @@ var cardStyle = {
2286
2286
  padding: "1rem",
2287
2287
  textDecoration: "none"
2288
2288
  };
2289
- function AdminStudioDashboard() {
2289
+ var getPropString = (props, key, fallback) => {
2290
+ if (!props || typeof props !== "object") return fallback;
2291
+ const direct = props[key];
2292
+ if (typeof direct === "string" && direct.length > 0) return direct;
2293
+ const clientProps = props.clientProps;
2294
+ if (clientProps && typeof clientProps === "object") {
2295
+ const nested = clientProps[key];
2296
+ if (typeof nested === "string" && nested.length > 0) return nested;
2297
+ }
2298
+ return fallback;
2299
+ };
2300
+ function AdminStudioDashboard(props) {
2301
+ const pagesCollectionSlug = getPropString(props, "pagesCollectionSlug", "pages");
2302
+ const mediaCollectionSlug = getPropString(props, "mediaCollectionSlug", "media");
2303
+ const globalsBasePath = getPropString(props, "globalsBasePath", "/admin/globals");
2290
2304
  return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { style: { padding: "1.2rem 1.2rem 2.5rem" }, children: [
2291
2305
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_ui3.SetStepNav, { nav: [{ label: "Dashboard", url: "/admin" }] }),
2292
2306
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h1", { style: { fontSize: "1.6rem", margin: 0 }, children: "Studio" }),
@@ -2301,15 +2315,15 @@ function AdminStudioDashboard() {
2301
2315
  marginTop: "1.1rem"
2302
2316
  },
2303
2317
  children: [
2304
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("a", { href: "/admin/pages", style: cardStyle, children: [
2318
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("a", { href: `/admin/collections/${pagesCollectionSlug}`, style: cardStyle, children: [
2305
2319
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { fontWeight: 900 }, children: "Pages" }),
2306
2320
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { color: "var(--theme-elevation-600)", marginTop: "0.25rem" }, children: "Edit your site pages with the custom editor." })
2307
2321
  ] }),
2308
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("a", { href: "/admin/studio-globals", style: cardStyle, children: [
2322
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("a", { href: globalsBasePath, style: cardStyle, children: [
2309
2323
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { fontWeight: 900 }, children: "Globals" }),
2310
2324
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { color: "var(--theme-elevation-600)", marginTop: "0.25rem" }, children: "Site settings, header, footer." })
2311
2325
  ] }),
2312
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("a", { href: "/admin/media", style: cardStyle, children: [
2326
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("a", { href: `/admin/collections/${mediaCollectionSlug}`, style: cardStyle, children: [
2313
2327
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { fontWeight: 900 }, children: "Media" }),
2314
2328
  /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { style: { color: "var(--theme-elevation-600)", marginTop: "0.25rem" }, children: "Upload and manage images and files." })
2315
2329
  ] })
@@ -2328,7 +2342,7 @@ var isAdmin = (user) => {
2328
2342
  const role = user.role;
2329
2343
  return typeof role === "string" && role === "admin";
2330
2344
  };
2331
- var getPropString = (props, key, fallback) => {
2345
+ var getPropString2 = (props, key, fallback) => {
2332
2346
  if (!props || typeof props !== "object") return fallback;
2333
2347
  const direct = props[key];
2334
2348
  if (typeof direct === "string" && direct.length > 0) return direct;
@@ -2352,9 +2366,11 @@ var getPropBoolean = (props, key, fallback) => {
2352
2366
  };
2353
2367
  function AdminStudioNav(props) {
2354
2368
  const { user } = (0, import_ui4.useAuth)();
2355
- const brandName = getPropString(props, "brandName", "Orion Studio");
2356
- const logoUrl = getPropString(props, "logoUrl", "");
2357
- const globalsBasePath = getPropString(props, "globalsBasePath", "/admin/studio-globals");
2369
+ const brandName = getPropString2(props, "brandName", "Orion Studio");
2370
+ const logoUrl = getPropString2(props, "logoUrl", "");
2371
+ const pagesCollectionSlug = getPropString2(props, "pagesCollectionSlug", "pages");
2372
+ const mediaCollectionSlug = getPropString2(props, "mediaCollectionSlug", "media");
2373
+ const globalsBasePath = getPropString2(props, "globalsBasePath", "/admin/globals");
2358
2374
  const compact = getPropBoolean(props, "compact", false);
2359
2375
  const branding = useSiteBranding(brandName, logoUrl || void 0);
2360
2376
  const resolvedName = branding.siteName || brandName;
@@ -2365,28 +2381,30 @@ function AdminStudioNav(props) {
2365
2381
  window.addEventListener("popstate", update);
2366
2382
  return () => window.removeEventListener("popstate", update);
2367
2383
  }, []);
2384
+ const pagesPath = `/admin/collections/${pagesCollectionSlug}`;
2385
+ const mediaPath = `/admin/collections/${mediaCollectionSlug}`;
2368
2386
  const links = (0, import_react11.useMemo)(
2369
2387
  () => [
2370
2388
  { href: "/admin", label: "Dashboard", matchPrefixes: ["/admin"] },
2371
2389
  {
2372
- href: "/admin/pages",
2390
+ href: pagesPath,
2373
2391
  label: "Pages",
2374
- matchPrefixes: ["/admin/pages", "/admin/collections/pages"]
2392
+ matchPrefixes: [pagesPath]
2375
2393
  },
2376
2394
  { href: globalsBasePath, label: "Globals", matchPrefixes: [globalsBasePath, "/admin/globals"] },
2377
2395
  {
2378
- href: "/admin/media",
2396
+ href: mediaPath,
2379
2397
  label: "Media",
2380
- matchPrefixes: ["/admin/media", "/admin/collections/media"]
2398
+ matchPrefixes: [mediaPath]
2381
2399
  },
2382
2400
  {
2383
- href: "/admin/tools",
2401
+ href: "/admin/collections/users",
2384
2402
  label: "Admin Tools",
2385
- matchPrefixes: ["/admin/tools"],
2403
+ matchPrefixes: ["/admin/collections/users"],
2386
2404
  adminOnly: true
2387
2405
  }
2388
2406
  ],
2389
- [globalsBasePath]
2407
+ [globalsBasePath, mediaPath, pagesPath]
2390
2408
  );
2391
2409
  const linkStyle = (active) => ({
2392
2410
  alignItems: "center",
@@ -2412,7 +2430,7 @@ function AdminStudioNav(props) {
2412
2430
  padding: compact ? "0.8rem 0.5rem" : "1rem 0.85rem"
2413
2431
  },
2414
2432
  children: [
2415
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "admin-studio-brand", style: { padding: compact ? "0" : "0 0.35rem" }, children: [
2433
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "admin-studio-brand", style: { padding: compact ? "0" : "0 0.35rem 0 2.4rem" }, children: [
2416
2434
  branding.logoUrl ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2417
2435
  "div",
2418
2436
  {
@@ -2479,7 +2497,7 @@ var isAdmin2 = (user) => {
2479
2497
  const role = user.role;
2480
2498
  return typeof role === "string" && role === "admin";
2481
2499
  };
2482
- var getPropString2 = (props, key, fallback) => {
2500
+ var getPropString3 = (props, key, fallback) => {
2483
2501
  if (!props || typeof props !== "object") return fallback;
2484
2502
  const direct = props[key];
2485
2503
  if (typeof direct === "string" && direct.length > 0) return direct;
@@ -2492,7 +2510,7 @@ var getPropString2 = (props, key, fallback) => {
2492
2510
  };
2493
2511
  function AdminStudioPagesListView(props) {
2494
2512
  const { user } = (0, import_ui5.useAuth)();
2495
- const pagesCollectionSlug = getPropString2(props, "pagesCollectionSlug", "pages");
2513
+ const pagesCollectionSlug = getPropString3(props, "pagesCollectionSlug", "pages");
2496
2514
  const [loading, setLoading] = (0, import_react12.useState)(true);
2497
2515
  const [error, setError] = (0, import_react12.useState)(null);
2498
2516
  const [docs, setDocs] = (0, import_react12.useState)([]);
@@ -2657,7 +2675,7 @@ var isEditor = (user) => {
2657
2675
  const role = user.role;
2658
2676
  return typeof role === "string" && role === "editor";
2659
2677
  };
2660
- var getPropString3 = (props, key, fallback) => {
2678
+ var getPropString4 = (props, key, fallback) => {
2661
2679
  if (!props || typeof props !== "object") return fallback;
2662
2680
  const direct = props[key];
2663
2681
  if (typeof direct === "string" && direct.length > 0) return direct;
@@ -2684,7 +2702,7 @@ function AdminStudioPageEditView(props) {
2684
2702
  const { user } = (0, import_ui6.useAuth)();
2685
2703
  const iframeRef = (0, import_react13.useRef)(null);
2686
2704
  const [saving, setSaving] = (0, import_react13.useState)(null);
2687
- const builderBasePath = getPropString3(props, "builderBasePath", "/builder");
2705
+ const builderBasePath = getPropString4(props, "builderBasePath", "/builder");
2688
2706
  const pageIDFromParams = (0, import_react13.useMemo)(() => getParam(props.params, "id"), [props.params]);
2689
2707
  const [pageID, setPageID] = (0, import_react13.useState)(pageIDFromParams);
2690
2708
  const [didResolvePathFallback, setDidResolvePathFallback] = (0, import_react13.useState)(false);
@@ -2867,7 +2885,7 @@ var getPropGlobals = (props) => {
2867
2885
  }
2868
2886
  return null;
2869
2887
  };
2870
- var getPropString4 = (props, key, fallback) => {
2888
+ var getPropString5 = (props, key, fallback) => {
2871
2889
  if (!props || typeof props !== "object") return fallback;
2872
2890
  const direct = props[key];
2873
2891
  if (typeof direct === "string" && direct.length > 0) return direct;
@@ -2879,7 +2897,7 @@ var getPropString4 = (props, key, fallback) => {
2879
2897
  return fallback;
2880
2898
  };
2881
2899
  function AdminStudioGlobalsView(props) {
2882
- const globalsBasePath = getPropString4(props, "globalsBasePath", "/admin/studio-globals");
2900
+ const globalsBasePath = getPropString5(props, "globalsBasePath", "/admin/studio-globals");
2883
2901
  const globals = getPropGlobals(props) || [
2884
2902
  { slug: "site-settings", label: "Website Settings" },
2885
2903
  { slug: "header", label: "Header & Navigation" },
@@ -2925,7 +2943,7 @@ function AdminStudioGlobalsView(props) {
2925
2943
  // src/admin/components/studio/AdminStudioMediaView.tsx
2926
2944
  var import_ui8 = require("@payloadcms/ui");
2927
2945
  var import_jsx_runtime19 = require("react/jsx-runtime");
2928
- var getPropString5 = (props, key, fallback) => {
2946
+ var getPropString6 = (props, key, fallback) => {
2929
2947
  if (!props || typeof props !== "object") return fallback;
2930
2948
  const direct = props[key];
2931
2949
  if (typeof direct === "string" && direct.length > 0) return direct;
@@ -2937,7 +2955,7 @@ var getPropString5 = (props, key, fallback) => {
2937
2955
  return fallback;
2938
2956
  };
2939
2957
  function AdminStudioMediaView(props) {
2940
- const mediaCollectionSlug = getPropString5(props, "mediaCollectionSlug", "media");
2958
+ const mediaCollectionSlug = getPropString6(props, "mediaCollectionSlug", "media");
2941
2959
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
2942
2960
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_ui8.SetStepNav, { nav: [{ label: "Media", url: "/admin/media" }] }),
2943
2961
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h1", { style: { margin: 0 }, children: "Media" }),
@@ -2974,7 +2992,7 @@ var isAdmin4 = (user) => {
2974
2992
  const role = user.role;
2975
2993
  return typeof role === "string" && role === "admin";
2976
2994
  };
2977
- var getPropString6 = (props, key, fallback) => {
2995
+ var getPropString7 = (props, key, fallback) => {
2978
2996
  if (!props || typeof props !== "object") return fallback;
2979
2997
  const direct = props[key];
2980
2998
  if (typeof direct === "string" && direct.length > 0) return direct;
@@ -2994,8 +3012,8 @@ function AdminStudioToolsView(props) {
2994
3012
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { style: { color: "var(--theme-elevation-600)" }, children: "You do not have access to this page." })
2995
3013
  ] });
2996
3014
  }
2997
- const pagesCollectionSlug = getPropString6(props, "pagesCollectionSlug", "pages");
2998
- const mediaCollectionSlug = getPropString6(props, "mediaCollectionSlug", "media");
3015
+ const pagesCollectionSlug = getPropString7(props, "pagesCollectionSlug", "pages");
3016
+ const mediaCollectionSlug = getPropString7(props, "mediaCollectionSlug", "media");
2999
3017
  const links = [
3000
3018
  { href: `/admin/collections/${pagesCollectionSlug}`, label: "Raw Pages Collection" },
3001
3019
  { href: `/admin/collections/${mediaCollectionSlug}`, label: "Raw Media Collection" },
@@ -3033,7 +3051,7 @@ function AdminStudioToolsView(props) {
3033
3051
  // src/admin/components/studio/OpenInStudioMenuItem.tsx
3034
3052
  var import_ui10 = require("@payloadcms/ui");
3035
3053
  var import_jsx_runtime21 = require("react/jsx-runtime");
3036
- function OpenInStudioMenuItem({ pagesPathBase = "/admin/pages" }) {
3054
+ function OpenInStudioMenuItem({ pagesPathBase = "/studio/pages" }) {
3037
3055
  const documentInfo = (0, import_ui10.useDocumentInfo)();
3038
3056
  const id = documentInfo?.id;
3039
3057
  if (!id) {
@@ -3061,7 +3079,7 @@ function OpenInStudioMenuItem({ pagesPathBase = "/admin/pages" }) {
3061
3079
  var import_react14 = require("react");
3062
3080
  var import_ui11 = require("@payloadcms/ui");
3063
3081
  var import_jsx_runtime22 = require("react/jsx-runtime");
3064
- function PageEditRedirectToStudio({ pagesPathBase = "/admin/pages" }) {
3082
+ function PageEditRedirectToStudio({ pagesPathBase = "/studio/pages" }) {
3065
3083
  const documentInfo = (0, import_ui11.useDocumentInfo)();
3066
3084
  const id = documentInfo?.id;
3067
3085
  (0, import_react14.useEffect)(() => {
@@ -3106,19 +3124,19 @@ var buildNav = (pathname) => {
3106
3124
  }
3107
3125
  if (pathname.includes("/collections/pages") || pathname.startsWith("/admin/pages/")) {
3108
3126
  return [
3109
- { label: "Pages", url: "/admin/pages" },
3127
+ { label: "Pages", url: "/admin/collections/pages" },
3110
3128
  { label: "Page" }
3111
3129
  ];
3112
3130
  }
3113
3131
  if (pathname.includes("/collections/media")) {
3114
3132
  return [
3115
- { label: "Media", url: "/admin/media" },
3133
+ { label: "Media", url: "/admin/collections/media" },
3116
3134
  { label: "Media Item" }
3117
3135
  ];
3118
3136
  }
3119
- if (pathname.startsWith("/admin/tools")) {
3137
+ if (pathname.startsWith("/admin/tools") || pathname.includes("/collections/users")) {
3120
3138
  return [
3121
- { label: "Admin Tools", url: "/admin/tools" },
3139
+ { label: "Admin Tools", url: "/admin/collections/users" },
3122
3140
  { label: "Tool" }
3123
3141
  ];
3124
3142
  }
@@ -1105,7 +1105,21 @@ var cardStyle = {
1105
1105
  padding: "1rem",
1106
1106
  textDecoration: "none"
1107
1107
  };
1108
- function AdminStudioDashboard() {
1108
+ var getPropString = (props, key, fallback) => {
1109
+ if (!props || typeof props !== "object") return fallback;
1110
+ const direct = props[key];
1111
+ if (typeof direct === "string" && direct.length > 0) return direct;
1112
+ const clientProps = props.clientProps;
1113
+ if (clientProps && typeof clientProps === "object") {
1114
+ const nested = clientProps[key];
1115
+ if (typeof nested === "string" && nested.length > 0) return nested;
1116
+ }
1117
+ return fallback;
1118
+ };
1119
+ function AdminStudioDashboard(props) {
1120
+ const pagesCollectionSlug = getPropString(props, "pagesCollectionSlug", "pages");
1121
+ const mediaCollectionSlug = getPropString(props, "mediaCollectionSlug", "media");
1122
+ const globalsBasePath = getPropString(props, "globalsBasePath", "/admin/globals");
1109
1123
  return /* @__PURE__ */ jsxs9("div", { style: { padding: "1.2rem 1.2rem 2.5rem" }, children: [
1110
1124
  /* @__PURE__ */ jsx10(SetStepNav, { nav: [{ label: "Dashboard", url: "/admin" }] }),
1111
1125
  /* @__PURE__ */ jsx10("h1", { style: { fontSize: "1.6rem", margin: 0 }, children: "Studio" }),
@@ -1120,15 +1134,15 @@ function AdminStudioDashboard() {
1120
1134
  marginTop: "1.1rem"
1121
1135
  },
1122
1136
  children: [
1123
- /* @__PURE__ */ jsxs9("a", { href: "/admin/pages", style: cardStyle, children: [
1137
+ /* @__PURE__ */ jsxs9("a", { href: `/admin/collections/${pagesCollectionSlug}`, style: cardStyle, children: [
1124
1138
  /* @__PURE__ */ jsx10("div", { style: { fontWeight: 900 }, children: "Pages" }),
1125
1139
  /* @__PURE__ */ jsx10("div", { style: { color: "var(--theme-elevation-600)", marginTop: "0.25rem" }, children: "Edit your site pages with the custom editor." })
1126
1140
  ] }),
1127
- /* @__PURE__ */ jsxs9("a", { href: "/admin/studio-globals", style: cardStyle, children: [
1141
+ /* @__PURE__ */ jsxs9("a", { href: globalsBasePath, style: cardStyle, children: [
1128
1142
  /* @__PURE__ */ jsx10("div", { style: { fontWeight: 900 }, children: "Globals" }),
1129
1143
  /* @__PURE__ */ jsx10("div", { style: { color: "var(--theme-elevation-600)", marginTop: "0.25rem" }, children: "Site settings, header, footer." })
1130
1144
  ] }),
1131
- /* @__PURE__ */ jsxs9("a", { href: "/admin/media", style: cardStyle, children: [
1145
+ /* @__PURE__ */ jsxs9("a", { href: `/admin/collections/${mediaCollectionSlug}`, style: cardStyle, children: [
1132
1146
  /* @__PURE__ */ jsx10("div", { style: { fontWeight: 900 }, children: "Media" }),
1133
1147
  /* @__PURE__ */ jsx10("div", { style: { color: "var(--theme-elevation-600)", marginTop: "0.25rem" }, children: "Upload and manage images and files." })
1134
1148
  ] })
@@ -1147,7 +1161,7 @@ var isAdmin = (user) => {
1147
1161
  const role = user.role;
1148
1162
  return typeof role === "string" && role === "admin";
1149
1163
  };
1150
- var getPropString = (props, key, fallback) => {
1164
+ var getPropString2 = (props, key, fallback) => {
1151
1165
  if (!props || typeof props !== "object") return fallback;
1152
1166
  const direct = props[key];
1153
1167
  if (typeof direct === "string" && direct.length > 0) return direct;
@@ -1171,9 +1185,11 @@ var getPropBoolean = (props, key, fallback) => {
1171
1185
  };
1172
1186
  function AdminStudioNav(props) {
1173
1187
  const { user } = useAuth();
1174
- const brandName = getPropString(props, "brandName", "Orion Studio");
1175
- const logoUrl = getPropString(props, "logoUrl", "");
1176
- const globalsBasePath = getPropString(props, "globalsBasePath", "/admin/studio-globals");
1188
+ const brandName = getPropString2(props, "brandName", "Orion Studio");
1189
+ const logoUrl = getPropString2(props, "logoUrl", "");
1190
+ const pagesCollectionSlug = getPropString2(props, "pagesCollectionSlug", "pages");
1191
+ const mediaCollectionSlug = getPropString2(props, "mediaCollectionSlug", "media");
1192
+ const globalsBasePath = getPropString2(props, "globalsBasePath", "/admin/globals");
1177
1193
  const compact = getPropBoolean(props, "compact", false);
1178
1194
  const branding = useSiteBranding(brandName, logoUrl || void 0);
1179
1195
  const resolvedName = branding.siteName || brandName;
@@ -1184,28 +1200,30 @@ function AdminStudioNav(props) {
1184
1200
  window.addEventListener("popstate", update);
1185
1201
  return () => window.removeEventListener("popstate", update);
1186
1202
  }, []);
1203
+ const pagesPath = `/admin/collections/${pagesCollectionSlug}`;
1204
+ const mediaPath = `/admin/collections/${mediaCollectionSlug}`;
1187
1205
  const links = useMemo(
1188
1206
  () => [
1189
1207
  { href: "/admin", label: "Dashboard", matchPrefixes: ["/admin"] },
1190
1208
  {
1191
- href: "/admin/pages",
1209
+ href: pagesPath,
1192
1210
  label: "Pages",
1193
- matchPrefixes: ["/admin/pages", "/admin/collections/pages"]
1211
+ matchPrefixes: [pagesPath]
1194
1212
  },
1195
1213
  { href: globalsBasePath, label: "Globals", matchPrefixes: [globalsBasePath, "/admin/globals"] },
1196
1214
  {
1197
- href: "/admin/media",
1215
+ href: mediaPath,
1198
1216
  label: "Media",
1199
- matchPrefixes: ["/admin/media", "/admin/collections/media"]
1217
+ matchPrefixes: [mediaPath]
1200
1218
  },
1201
1219
  {
1202
- href: "/admin/tools",
1220
+ href: "/admin/collections/users",
1203
1221
  label: "Admin Tools",
1204
- matchPrefixes: ["/admin/tools"],
1222
+ matchPrefixes: ["/admin/collections/users"],
1205
1223
  adminOnly: true
1206
1224
  }
1207
1225
  ],
1208
- [globalsBasePath]
1226
+ [globalsBasePath, mediaPath, pagesPath]
1209
1227
  );
1210
1228
  const linkStyle = (active) => ({
1211
1229
  alignItems: "center",
@@ -1231,7 +1249,7 @@ function AdminStudioNav(props) {
1231
1249
  padding: compact ? "0.8rem 0.5rem" : "1rem 0.85rem"
1232
1250
  },
1233
1251
  children: [
1234
- /* @__PURE__ */ jsxs10("div", { className: "admin-studio-brand", style: { padding: compact ? "0" : "0 0.35rem" }, children: [
1252
+ /* @__PURE__ */ jsxs10("div", { className: "admin-studio-brand", style: { padding: compact ? "0" : "0 0.35rem 0 2.4rem" }, children: [
1235
1253
  branding.logoUrl ? /* @__PURE__ */ jsx11(
1236
1254
  "div",
1237
1255
  {
@@ -1298,7 +1316,7 @@ var isAdmin2 = (user) => {
1298
1316
  const role = user.role;
1299
1317
  return typeof role === "string" && role === "admin";
1300
1318
  };
1301
- var getPropString2 = (props, key, fallback) => {
1319
+ var getPropString3 = (props, key, fallback) => {
1302
1320
  if (!props || typeof props !== "object") return fallback;
1303
1321
  const direct = props[key];
1304
1322
  if (typeof direct === "string" && direct.length > 0) return direct;
@@ -1311,7 +1329,7 @@ var getPropString2 = (props, key, fallback) => {
1311
1329
  };
1312
1330
  function AdminStudioPagesListView(props) {
1313
1331
  const { user } = useAuth2();
1314
- const pagesCollectionSlug = getPropString2(props, "pagesCollectionSlug", "pages");
1332
+ const pagesCollectionSlug = getPropString3(props, "pagesCollectionSlug", "pages");
1315
1333
  const [loading, setLoading] = useState6(true);
1316
1334
  const [error, setError] = useState6(null);
1317
1335
  const [docs, setDocs] = useState6([]);
@@ -1476,7 +1494,7 @@ var isEditor = (user) => {
1476
1494
  const role = user.role;
1477
1495
  return typeof role === "string" && role === "editor";
1478
1496
  };
1479
- var getPropString3 = (props, key, fallback) => {
1497
+ var getPropString4 = (props, key, fallback) => {
1480
1498
  if (!props || typeof props !== "object") return fallback;
1481
1499
  const direct = props[key];
1482
1500
  if (typeof direct === "string" && direct.length > 0) return direct;
@@ -1503,7 +1521,7 @@ function AdminStudioPageEditView(props) {
1503
1521
  const { user } = useAuth3();
1504
1522
  const iframeRef = useRef3(null);
1505
1523
  const [saving, setSaving] = useState7(null);
1506
- const builderBasePath = getPropString3(props, "builderBasePath", "/builder");
1524
+ const builderBasePath = getPropString4(props, "builderBasePath", "/builder");
1507
1525
  const pageIDFromParams = useMemo3(() => getParam(props.params, "id"), [props.params]);
1508
1526
  const [pageID, setPageID] = useState7(pageIDFromParams);
1509
1527
  const [didResolvePathFallback, setDidResolvePathFallback] = useState7(false);
@@ -1686,7 +1704,7 @@ var getPropGlobals = (props) => {
1686
1704
  }
1687
1705
  return null;
1688
1706
  };
1689
- var getPropString4 = (props, key, fallback) => {
1707
+ var getPropString5 = (props, key, fallback) => {
1690
1708
  if (!props || typeof props !== "object") return fallback;
1691
1709
  const direct = props[key];
1692
1710
  if (typeof direct === "string" && direct.length > 0) return direct;
@@ -1698,7 +1716,7 @@ var getPropString4 = (props, key, fallback) => {
1698
1716
  return fallback;
1699
1717
  };
1700
1718
  function AdminStudioGlobalsView(props) {
1701
- const globalsBasePath = getPropString4(props, "globalsBasePath", "/admin/studio-globals");
1719
+ const globalsBasePath = getPropString5(props, "globalsBasePath", "/admin/studio-globals");
1702
1720
  const globals = getPropGlobals(props) || [
1703
1721
  { slug: "site-settings", label: "Website Settings" },
1704
1722
  { slug: "header", label: "Header & Navigation" },
@@ -1744,7 +1762,7 @@ function AdminStudioGlobalsView(props) {
1744
1762
  // src/admin/components/studio/AdminStudioMediaView.tsx
1745
1763
  import { SetStepNav as SetStepNav5 } from "@payloadcms/ui";
1746
1764
  import { Fragment as Fragment6, jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
1747
- var getPropString5 = (props, key, fallback) => {
1765
+ var getPropString6 = (props, key, fallback) => {
1748
1766
  if (!props || typeof props !== "object") return fallback;
1749
1767
  const direct = props[key];
1750
1768
  if (typeof direct === "string" && direct.length > 0) return direct;
@@ -1756,7 +1774,7 @@ var getPropString5 = (props, key, fallback) => {
1756
1774
  return fallback;
1757
1775
  };
1758
1776
  function AdminStudioMediaView(props) {
1759
- const mediaCollectionSlug = getPropString5(props, "mediaCollectionSlug", "media");
1777
+ const mediaCollectionSlug = getPropString6(props, "mediaCollectionSlug", "media");
1760
1778
  return /* @__PURE__ */ jsxs14(Fragment6, { children: [
1761
1779
  /* @__PURE__ */ jsx15(SetStepNav5, { nav: [{ label: "Media", url: "/admin/media" }] }),
1762
1780
  /* @__PURE__ */ jsx15("h1", { style: { margin: 0 }, children: "Media" }),
@@ -1793,7 +1811,7 @@ var isAdmin4 = (user) => {
1793
1811
  const role = user.role;
1794
1812
  return typeof role === "string" && role === "admin";
1795
1813
  };
1796
- var getPropString6 = (props, key, fallback) => {
1814
+ var getPropString7 = (props, key, fallback) => {
1797
1815
  if (!props || typeof props !== "object") return fallback;
1798
1816
  const direct = props[key];
1799
1817
  if (typeof direct === "string" && direct.length > 0) return direct;
@@ -1813,8 +1831,8 @@ function AdminStudioToolsView(props) {
1813
1831
  /* @__PURE__ */ jsx16("p", { style: { color: "var(--theme-elevation-600)" }, children: "You do not have access to this page." })
1814
1832
  ] });
1815
1833
  }
1816
- const pagesCollectionSlug = getPropString6(props, "pagesCollectionSlug", "pages");
1817
- const mediaCollectionSlug = getPropString6(props, "mediaCollectionSlug", "media");
1834
+ const pagesCollectionSlug = getPropString7(props, "pagesCollectionSlug", "pages");
1835
+ const mediaCollectionSlug = getPropString7(props, "mediaCollectionSlug", "media");
1818
1836
  const links = [
1819
1837
  { href: `/admin/collections/${pagesCollectionSlug}`, label: "Raw Pages Collection" },
1820
1838
  { href: `/admin/collections/${mediaCollectionSlug}`, label: "Raw Media Collection" },
@@ -1852,7 +1870,7 @@ function AdminStudioToolsView(props) {
1852
1870
  // src/admin/components/studio/OpenInStudioMenuItem.tsx
1853
1871
  import { useDocumentInfo } from "@payloadcms/ui";
1854
1872
  import { jsx as jsx17 } from "react/jsx-runtime";
1855
- function OpenInStudioMenuItem({ pagesPathBase = "/admin/pages" }) {
1873
+ function OpenInStudioMenuItem({ pagesPathBase = "/studio/pages" }) {
1856
1874
  const documentInfo = useDocumentInfo();
1857
1875
  const id = documentInfo?.id;
1858
1876
  if (!id) {
@@ -1880,7 +1898,7 @@ function OpenInStudioMenuItem({ pagesPathBase = "/admin/pages" }) {
1880
1898
  import { useEffect as useEffect9 } from "react";
1881
1899
  import { useDocumentInfo as useDocumentInfo2 } from "@payloadcms/ui";
1882
1900
  import { jsx as jsx18, jsxs as jsxs16 } from "react/jsx-runtime";
1883
- function PageEditRedirectToStudio({ pagesPathBase = "/admin/pages" }) {
1901
+ function PageEditRedirectToStudio({ pagesPathBase = "/studio/pages" }) {
1884
1902
  const documentInfo = useDocumentInfo2();
1885
1903
  const id = documentInfo?.id;
1886
1904
  useEffect9(() => {
@@ -1925,19 +1943,19 @@ var buildNav = (pathname) => {
1925
1943
  }
1926
1944
  if (pathname.includes("/collections/pages") || pathname.startsWith("/admin/pages/")) {
1927
1945
  return [
1928
- { label: "Pages", url: "/admin/pages" },
1946
+ { label: "Pages", url: "/admin/collections/pages" },
1929
1947
  { label: "Page" }
1930
1948
  ];
1931
1949
  }
1932
1950
  if (pathname.includes("/collections/media")) {
1933
1951
  return [
1934
- { label: "Media", url: "/admin/media" },
1952
+ { label: "Media", url: "/admin/collections/media" },
1935
1953
  { label: "Media Item" }
1936
1954
  ];
1937
1955
  }
1938
- if (pathname.startsWith("/admin/tools")) {
1956
+ if (pathname.startsWith("/admin/tools") || pathname.includes("/collections/users")) {
1939
1957
  return [
1940
- { label: "Admin Tools", url: "/admin/tools" },
1958
+ { label: "Admin Tools", url: "/admin/collections/users" },
1941
1959
  { label: "Tool" }
1942
1960
  ];
1943
1961
  }
@@ -1,2 +1,2 @@
1
- export { A as AdminConfig, c as configureAdmin, a as createThemePreferenceField, t as themePreferenceField, w as withTooltips } from '../index-vTq0Uy37.mjs';
1
+ export { A as AdminConfig, c as configureAdmin, a as createThemePreferenceField, t as themePreferenceField, w as withTooltips } from '../index-DJFhANvJ.mjs';
2
2
  import 'payload';
@@ -1,2 +1,2 @@
1
- export { A as AdminConfig, c as configureAdmin, a as createThemePreferenceField, t as themePreferenceField, w as withTooltips } from '../index-vTq0Uy37.js';
1
+ export { A as AdminConfig, c as configureAdmin, a as createThemePreferenceField, t as themePreferenceField, w as withTooltips } from '../index-DJFhANvJ.js';
2
2
  import 'payload';
@@ -89,7 +89,6 @@ function configureAdmin(config) {
89
89
  } = config;
90
90
  const studioEnabled = Boolean(config.studio?.enabled);
91
91
  const pagesCollectionSlug = config.studio?.pages?.collectionSlug || "pages";
92
- const builderBasePath = config.studio?.pages?.builderBasePath || "/builder";
93
92
  const mediaCollectionSlug = config.studio?.media?.collectionSlug || "media";
94
93
  const globals = config.studio?.globals || [
95
94
  { slug: "site-settings", label: "Website Settings" },
@@ -125,7 +124,9 @@ function configureAdmin(config) {
125
124
  clientProps: {
126
125
  brandName,
127
126
  logoUrl,
128
- globalsBasePath: "/admin/studio-globals"
127
+ globalsBasePath: "/admin/studio-globals",
128
+ mediaCollectionSlug,
129
+ pagesCollectionSlug
129
130
  }
130
131
  }
131
132
  } : {},
@@ -155,37 +156,13 @@ function configureAdmin(config) {
155
156
  clientProps: {
156
157
  brandName,
157
158
  logoUrl,
158
- globalsBasePath: "/admin/studio-globals"
159
+ globalsBasePath: "/admin/studio-globals",
160
+ mediaCollectionSlug,
161
+ pagesCollectionSlug
159
162
  }
160
163
  }
161
164
  },
162
165
  ...studioEnabled ? {
163
- studioPages: {
164
- path: "/pages",
165
- Component: {
166
- exportName: "AdminStudioPagesListView",
167
- path: clientPath,
168
- clientProps: {
169
- pagesCollectionSlug,
170
- brandName,
171
- logoUrl,
172
- globalsBasePath: "/admin/studio-globals"
173
- }
174
- }
175
- },
176
- studioPageEdit: {
177
- path: "/pages/:id",
178
- Component: {
179
- exportName: "AdminStudioPageEditView",
180
- path: clientPath,
181
- clientProps: {
182
- builderBasePath,
183
- brandName,
184
- logoUrl,
185
- globalsBasePath: "/admin/studio-globals"
186
- }
187
- }
188
- },
189
166
  studioGlobals: {
190
167
  path: "/studio-globals",
191
168
  Component: {
@@ -193,35 +170,6 @@ function configureAdmin(config) {
193
170
  path: clientPath,
194
171
  clientProps: {
195
172
  globals,
196
- brandName,
197
- logoUrl,
198
- globalsBasePath: "/admin/studio-globals"
199
- }
200
- }
201
- },
202
- studioMedia: {
203
- path: "/media",
204
- Component: {
205
- exportName: "AdminStudioMediaView",
206
- path: clientPath,
207
- clientProps: {
208
- mediaCollectionSlug,
209
- brandName,
210
- logoUrl,
211
- globalsBasePath: "/admin/studio-globals"
212
- }
213
- }
214
- },
215
- studioTools: {
216
- path: "/tools",
217
- Component: {
218
- exportName: "AdminStudioToolsView",
219
- path: clientPath,
220
- clientProps: {
221
- mediaCollectionSlug,
222
- pagesCollectionSlug,
223
- brandName,
224
- logoUrl,
225
173
  globalsBasePath: "/admin/studio-globals"
226
174
  }
227
175
  }
@@ -3,7 +3,7 @@ import {
3
3
  createThemePreferenceField,
4
4
  themePreferenceField,
5
5
  withTooltips
6
- } from "../chunk-J6HM2LPT.mjs";
6
+ } from "../chunk-J7W5EE3B.mjs";
7
7
  import "../chunk-6BWS3CLP.mjs";
8
8
  export {
9
9
  configureAdmin,
@@ -63,7 +63,6 @@ function configureAdmin(config) {
63
63
  } = config;
64
64
  const studioEnabled = Boolean(config.studio?.enabled);
65
65
  const pagesCollectionSlug = config.studio?.pages?.collectionSlug || "pages";
66
- const builderBasePath = config.studio?.pages?.builderBasePath || "/builder";
67
66
  const mediaCollectionSlug = config.studio?.media?.collectionSlug || "media";
68
67
  const globals = config.studio?.globals || [
69
68
  { slug: "site-settings", label: "Website Settings" },
@@ -99,7 +98,9 @@ function configureAdmin(config) {
99
98
  clientProps: {
100
99
  brandName,
101
100
  logoUrl,
102
- globalsBasePath: "/admin/studio-globals"
101
+ globalsBasePath: "/admin/studio-globals",
102
+ mediaCollectionSlug,
103
+ pagesCollectionSlug
103
104
  }
104
105
  }
105
106
  } : {},
@@ -129,37 +130,13 @@ function configureAdmin(config) {
129
130
  clientProps: {
130
131
  brandName,
131
132
  logoUrl,
132
- globalsBasePath: "/admin/studio-globals"
133
+ globalsBasePath: "/admin/studio-globals",
134
+ mediaCollectionSlug,
135
+ pagesCollectionSlug
133
136
  }
134
137
  }
135
138
  },
136
139
  ...studioEnabled ? {
137
- studioPages: {
138
- path: "/pages",
139
- Component: {
140
- exportName: "AdminStudioPagesListView",
141
- path: clientPath,
142
- clientProps: {
143
- pagesCollectionSlug,
144
- brandName,
145
- logoUrl,
146
- globalsBasePath: "/admin/studio-globals"
147
- }
148
- }
149
- },
150
- studioPageEdit: {
151
- path: "/pages/:id",
152
- Component: {
153
- exportName: "AdminStudioPageEditView",
154
- path: clientPath,
155
- clientProps: {
156
- builderBasePath,
157
- brandName,
158
- logoUrl,
159
- globalsBasePath: "/admin/studio-globals"
160
- }
161
- }
162
- },
163
140
  studioGlobals: {
164
141
  path: "/studio-globals",
165
142
  Component: {
@@ -167,35 +144,6 @@ function configureAdmin(config) {
167
144
  path: clientPath,
168
145
  clientProps: {
169
146
  globals,
170
- brandName,
171
- logoUrl,
172
- globalsBasePath: "/admin/studio-globals"
173
- }
174
- }
175
- },
176
- studioMedia: {
177
- path: "/media",
178
- Component: {
179
- exportName: "AdminStudioMediaView",
180
- path: clientPath,
181
- clientProps: {
182
- mediaCollectionSlug,
183
- brandName,
184
- logoUrl,
185
- globalsBasePath: "/admin/studio-globals"
186
- }
187
- }
188
- },
189
- studioTools: {
190
- path: "/tools",
191
- Component: {
192
- exportName: "AdminStudioToolsView",
193
- path: clientPath,
194
- clientProps: {
195
- mediaCollectionSlug,
196
- pagesCollectionSlug,
197
- brandName,
198
- logoUrl,
199
147
  globalsBasePath: "/admin/studio-globals"
200
148
  }
201
149
  }
@@ -51,32 +51,6 @@ declare function configureAdmin(config: AdminConfig): {
51
51
  };
52
52
  };
53
53
  views: {
54
- studioPages?: {
55
- path: "/pages";
56
- Component: {
57
- exportName: string;
58
- path: string;
59
- clientProps: {
60
- pagesCollectionSlug: string;
61
- brandName: string;
62
- logoUrl: string | undefined;
63
- globalsBasePath: string;
64
- };
65
- };
66
- } | undefined;
67
- studioPageEdit?: {
68
- path: "/pages/:id";
69
- Component: {
70
- exportName: string;
71
- path: string;
72
- clientProps: {
73
- builderBasePath: string;
74
- brandName: string;
75
- logoUrl: string | undefined;
76
- globalsBasePath: string;
77
- };
78
- };
79
- } | undefined;
80
54
  studioGlobals?: {
81
55
  path: "/studio-globals";
82
56
  Component: {
@@ -84,47 +58,20 @@ declare function configureAdmin(config: AdminConfig): {
84
58
  path: string;
85
59
  clientProps: {
86
60
  globals: StudioGlobalLink[];
87
- brandName: string;
88
- logoUrl: string | undefined;
89
61
  globalsBasePath: string;
90
62
  };
91
63
  };
92
64
  } | undefined;
93
- studioMedia?: {
94
- path: "/media";
65
+ dashboard: {
95
66
  Component: {
96
67
  exportName: string;
97
68
  path: string;
98
69
  clientProps: {
99
- mediaCollectionSlug: string;
100
70
  brandName: string;
101
71
  logoUrl: string | undefined;
102
72
  globalsBasePath: string;
103
- };
104
- };
105
- } | undefined;
106
- studioTools?: {
107
- path: "/tools";
108
- Component: {
109
- exportName: string;
110
- path: string;
111
- clientProps: {
112
73
  mediaCollectionSlug: string;
113
74
  pagesCollectionSlug: string;
114
- brandName: string;
115
- logoUrl: string | undefined;
116
- globalsBasePath: string;
117
- };
118
- };
119
- } | undefined;
120
- dashboard: {
121
- Component: {
122
- exportName: string;
123
- path: string;
124
- clientProps: {
125
- brandName: string;
126
- logoUrl: string | undefined;
127
- globalsBasePath: string;
128
75
  };
129
76
  };
130
77
  };
@@ -150,6 +97,8 @@ declare function configureAdmin(config: AdminConfig): {
150
97
  brandName: string;
151
98
  logoUrl: string | undefined;
152
99
  globalsBasePath: string;
100
+ mediaCollectionSlug: string;
101
+ pagesCollectionSlug: string;
153
102
  };
154
103
  } | undefined;
155
104
  };
@@ -51,32 +51,6 @@ declare function configureAdmin(config: AdminConfig): {
51
51
  };
52
52
  };
53
53
  views: {
54
- studioPages?: {
55
- path: "/pages";
56
- Component: {
57
- exportName: string;
58
- path: string;
59
- clientProps: {
60
- pagesCollectionSlug: string;
61
- brandName: string;
62
- logoUrl: string | undefined;
63
- globalsBasePath: string;
64
- };
65
- };
66
- } | undefined;
67
- studioPageEdit?: {
68
- path: "/pages/:id";
69
- Component: {
70
- exportName: string;
71
- path: string;
72
- clientProps: {
73
- builderBasePath: string;
74
- brandName: string;
75
- logoUrl: string | undefined;
76
- globalsBasePath: string;
77
- };
78
- };
79
- } | undefined;
80
54
  studioGlobals?: {
81
55
  path: "/studio-globals";
82
56
  Component: {
@@ -84,47 +58,20 @@ declare function configureAdmin(config: AdminConfig): {
84
58
  path: string;
85
59
  clientProps: {
86
60
  globals: StudioGlobalLink[];
87
- brandName: string;
88
- logoUrl: string | undefined;
89
61
  globalsBasePath: string;
90
62
  };
91
63
  };
92
64
  } | undefined;
93
- studioMedia?: {
94
- path: "/media";
65
+ dashboard: {
95
66
  Component: {
96
67
  exportName: string;
97
68
  path: string;
98
69
  clientProps: {
99
- mediaCollectionSlug: string;
100
70
  brandName: string;
101
71
  logoUrl: string | undefined;
102
72
  globalsBasePath: string;
103
- };
104
- };
105
- } | undefined;
106
- studioTools?: {
107
- path: "/tools";
108
- Component: {
109
- exportName: string;
110
- path: string;
111
- clientProps: {
112
73
  mediaCollectionSlug: string;
113
74
  pagesCollectionSlug: string;
114
- brandName: string;
115
- logoUrl: string | undefined;
116
- globalsBasePath: string;
117
- };
118
- };
119
- } | undefined;
120
- dashboard: {
121
- Component: {
122
- exportName: string;
123
- path: string;
124
- clientProps: {
125
- brandName: string;
126
- logoUrl: string | undefined;
127
- globalsBasePath: string;
128
75
  };
129
76
  };
130
77
  };
@@ -150,6 +97,8 @@ declare function configureAdmin(config: AdminConfig): {
150
97
  brandName: string;
151
98
  logoUrl: string | undefined;
152
99
  globalsBasePath: string;
100
+ mediaCollectionSlug: string;
101
+ pagesCollectionSlug: string;
153
102
  };
154
103
  } | undefined;
155
104
  };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { i as admin } from './index-vTq0Uy37.mjs';
1
+ export { i as admin } from './index-DJFhANvJ.mjs';
2
2
  export { i as blocks } from './index-B-5K41Km.mjs';
3
3
  export { i as nextjs } from './index-DbH0Ljwp.mjs';
4
4
  export { i as studio } from './index-FA2Ep5rj.mjs';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { i as admin } from './index-vTq0Uy37.js';
1
+ export { i as admin } from './index-DJFhANvJ.js';
2
2
  export { i as blocks } from './index-B-5K41Km.js';
3
3
  export { i as nextjs } from './index-DbH0Ljwp.js';
4
4
  export { i as studio } from './index-FA2Ep5rj.js';
package/dist/index.js CHANGED
@@ -99,7 +99,6 @@ function configureAdmin(config) {
99
99
  } = config;
100
100
  const studioEnabled = Boolean(config.studio?.enabled);
101
101
  const pagesCollectionSlug = config.studio?.pages?.collectionSlug || "pages";
102
- const builderBasePath = config.studio?.pages?.builderBasePath || "/builder";
103
102
  const mediaCollectionSlug = config.studio?.media?.collectionSlug || "media";
104
103
  const globals = config.studio?.globals || [
105
104
  { slug: "site-settings", label: "Website Settings" },
@@ -135,7 +134,9 @@ function configureAdmin(config) {
135
134
  clientProps: {
136
135
  brandName,
137
136
  logoUrl,
138
- globalsBasePath: "/admin/studio-globals"
137
+ globalsBasePath: "/admin/studio-globals",
138
+ mediaCollectionSlug,
139
+ pagesCollectionSlug
139
140
  }
140
141
  }
141
142
  } : {},
@@ -165,37 +166,13 @@ function configureAdmin(config) {
165
166
  clientProps: {
166
167
  brandName,
167
168
  logoUrl,
168
- globalsBasePath: "/admin/studio-globals"
169
+ globalsBasePath: "/admin/studio-globals",
170
+ mediaCollectionSlug,
171
+ pagesCollectionSlug
169
172
  }
170
173
  }
171
174
  },
172
175
  ...studioEnabled ? {
173
- studioPages: {
174
- path: "/pages",
175
- Component: {
176
- exportName: "AdminStudioPagesListView",
177
- path: clientPath,
178
- clientProps: {
179
- pagesCollectionSlug,
180
- brandName,
181
- logoUrl,
182
- globalsBasePath: "/admin/studio-globals"
183
- }
184
- }
185
- },
186
- studioPageEdit: {
187
- path: "/pages/:id",
188
- Component: {
189
- exportName: "AdminStudioPageEditView",
190
- path: clientPath,
191
- clientProps: {
192
- builderBasePath,
193
- brandName,
194
- logoUrl,
195
- globalsBasePath: "/admin/studio-globals"
196
- }
197
- }
198
- },
199
176
  studioGlobals: {
200
177
  path: "/studio-globals",
201
178
  Component: {
@@ -203,35 +180,6 @@ function configureAdmin(config) {
203
180
  path: clientPath,
204
181
  clientProps: {
205
182
  globals,
206
- brandName,
207
- logoUrl,
208
- globalsBasePath: "/admin/studio-globals"
209
- }
210
- }
211
- },
212
- studioMedia: {
213
- path: "/media",
214
- Component: {
215
- exportName: "AdminStudioMediaView",
216
- path: clientPath,
217
- clientProps: {
218
- mediaCollectionSlug,
219
- brandName,
220
- logoUrl,
221
- globalsBasePath: "/admin/studio-globals"
222
- }
223
- }
224
- },
225
- studioTools: {
226
- path: "/tools",
227
- Component: {
228
- exportName: "AdminStudioToolsView",
229
- path: clientPath,
230
- clientProps: {
231
- mediaCollectionSlug,
232
- pagesCollectionSlug,
233
- brandName,
234
- logoUrl,
235
183
  globalsBasePath: "/admin/studio-globals"
236
184
  }
237
185
  }
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  admin_exports
3
- } from "./chunk-J6HM2LPT.mjs";
3
+ } from "./chunk-J7W5EE3B.mjs";
4
4
  import {
5
5
  blocks_exports
6
6
  } from "./chunk-L62FYT57.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-studios/payload-studio",
3
- "version": "0.3.0-beta.11",
3
+ "version": "0.3.0-beta.13",
4
4
  "description": "Unified Payload CMS toolkit for Orion Studios",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {