@orion-studios/payload-studio 0.6.0-beta.37 → 0.6.0-beta.38

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.
@@ -4213,6 +4213,42 @@ var getPageIDFromPathname = (pathname) => {
4213
4213
  const pagePart = pathname.slice(markerIndex + marker.length).split("/")[0];
4214
4214
  return pagePart ? decodeURIComponent(pagePart) : null;
4215
4215
  };
4216
+ function PageEditorBreadcrumbs({
4217
+ pageID,
4218
+ pagesPath
4219
+ }) {
4220
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
4221
+ "nav",
4222
+ {
4223
+ "aria-label": "Breadcrumb",
4224
+ style: {
4225
+ alignItems: "center",
4226
+ color: "var(--orion-admin-muted)",
4227
+ display: "flex",
4228
+ flexWrap: "wrap",
4229
+ fontSize: "0.8rem",
4230
+ fontWeight: 800,
4231
+ gap: "0.35rem",
4232
+ marginBottom: "0.25rem"
4233
+ },
4234
+ children: [
4235
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4236
+ "a",
4237
+ {
4238
+ href: pagesPath,
4239
+ style: {
4240
+ color: "var(--orion-admin-accent)",
4241
+ textDecoration: "none"
4242
+ },
4243
+ children: "Pages"
4244
+ }
4245
+ ),
4246
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { "aria-hidden": "true", children: "/" }),
4247
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { children: pageID ? `Page ${pageID}` : "Page Editor" })
4248
+ ]
4249
+ }
4250
+ );
4251
+ }
4216
4252
  function AdminStudioPageEditView(props) {
4217
4253
  const { user } = (0, import_ui6.useAuth)();
4218
4254
  const adminBasePath = useAdminBasePath();
@@ -4389,6 +4425,7 @@ function AdminStudioPageEditView(props) {
4389
4425
  },
4390
4426
  children: [
4391
4427
  /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { style: { minWidth: 0 }, children: [
4428
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(PageEditorBreadcrumbs, { pageID, pagesPath }),
4392
4429
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { style: { color: "var(--orion-admin-text)", fontWeight: 900 }, children: "Page Editor" }),
4393
4430
  /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
4394
4431
  "div",
@@ -2833,6 +2833,42 @@ var getPageIDFromPathname = (pathname) => {
2833
2833
  const pagePart = pathname.slice(markerIndex + marker.length).split("/")[0];
2834
2834
  return pagePart ? decodeURIComponent(pagePart) : null;
2835
2835
  };
2836
+ function PageEditorBreadcrumbs({
2837
+ pageID,
2838
+ pagesPath
2839
+ }) {
2840
+ return /* @__PURE__ */ jsxs16(
2841
+ "nav",
2842
+ {
2843
+ "aria-label": "Breadcrumb",
2844
+ style: {
2845
+ alignItems: "center",
2846
+ color: "var(--orion-admin-muted)",
2847
+ display: "flex",
2848
+ flexWrap: "wrap",
2849
+ fontSize: "0.8rem",
2850
+ fontWeight: 800,
2851
+ gap: "0.35rem",
2852
+ marginBottom: "0.25rem"
2853
+ },
2854
+ children: [
2855
+ /* @__PURE__ */ jsx19(
2856
+ "a",
2857
+ {
2858
+ href: pagesPath,
2859
+ style: {
2860
+ color: "var(--orion-admin-accent)",
2861
+ textDecoration: "none"
2862
+ },
2863
+ children: "Pages"
2864
+ }
2865
+ ),
2866
+ /* @__PURE__ */ jsx19("span", { "aria-hidden": "true", children: "/" }),
2867
+ /* @__PURE__ */ jsx19("span", { children: pageID ? `Page ${pageID}` : "Page Editor" })
2868
+ ]
2869
+ }
2870
+ );
2871
+ }
2836
2872
  function AdminStudioPageEditView(props) {
2837
2873
  const { user } = useAuth4();
2838
2874
  const adminBasePath = useAdminBasePath();
@@ -3009,6 +3045,7 @@ function AdminStudioPageEditView(props) {
3009
3045
  },
3010
3046
  children: [
3011
3047
  /* @__PURE__ */ jsxs16("div", { style: { minWidth: 0 }, children: [
3048
+ /* @__PURE__ */ jsx19(PageEditorBreadcrumbs, { pageID, pagesPath }),
3012
3049
  /* @__PURE__ */ jsx19("div", { style: { color: "var(--orion-admin-text)", fontWeight: 900 }, children: "Page Editor" }),
3013
3050
  /* @__PURE__ */ jsxs16(
3014
3051
  "div",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-studios/payload-studio",
3
- "version": "0.6.0-beta.37",
3
+ "version": "0.6.0-beta.38",
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",