@orion-studios/payload-studio 0.6.0-beta.32 → 0.6.0-beta.33

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.
@@ -3059,7 +3059,13 @@ function AdminShellClient({
3059
3059
  onLogout,
3060
3060
  storageKey = "orion-admin-shell-collapsed"
3061
3061
  }) {
3062
- const [collapsed, setCollapsed] = (0, import_react14.useState)(false);
3062
+ const [collapsed, setCollapsed] = (0, import_react14.useState)(() => {
3063
+ try {
3064
+ return typeof window !== "undefined" && window.localStorage.getItem(storageKey) === "1";
3065
+ } catch {
3066
+ return false;
3067
+ }
3068
+ });
3063
3069
  const [loggingOut, setLoggingOut] = (0, import_react14.useState)(false);
3064
3070
  (0, import_react14.useEffect)(() => {
3065
3071
  try {
@@ -9,7 +9,7 @@ import {
9
9
  SiteFooterPreview,
10
10
  adminNavIcons,
11
11
  buildAdminPageLinkOptions
12
- } from "../chunk-KPIX7OSV.mjs";
12
+ } from "../chunk-KHFD24JL.mjs";
13
13
  import "../chunk-ROTPP5CU.mjs";
14
14
  import {
15
15
  BlockPicker,
@@ -122,7 +122,13 @@ function AdminShellClient({
122
122
  onLogout,
123
123
  storageKey = "orion-admin-shell-collapsed"
124
124
  }) {
125
- const [collapsed, setCollapsed] = (0, import_react.useState)(false);
125
+ const [collapsed, setCollapsed] = (0, import_react.useState)(() => {
126
+ try {
127
+ return typeof window !== "undefined" && window.localStorage.getItem(storageKey) === "1";
128
+ } catch {
129
+ return false;
130
+ }
131
+ });
126
132
  const [loggingOut, setLoggingOut] = (0, import_react.useState)(false);
127
133
  (0, import_react.useEffect)(() => {
128
134
  try {
@@ -8,7 +8,7 @@ import {
8
8
  MediaUploadForm,
9
9
  SiteFooterPreview,
10
10
  SiteHeaderPreview
11
- } from "../chunk-KPIX7OSV.mjs";
11
+ } from "../chunk-KHFD24JL.mjs";
12
12
  import "../chunk-ROTPP5CU.mjs";
13
13
 
14
14
  // src/admin-app/components/PageEditorFrame.tsx
@@ -103,7 +103,13 @@ function AdminShellClient({
103
103
  onLogout,
104
104
  storageKey = "orion-admin-shell-collapsed"
105
105
  }) {
106
- const [collapsed, setCollapsed] = useState(false);
106
+ const [collapsed, setCollapsed] = useState(() => {
107
+ try {
108
+ return typeof window !== "undefined" && window.localStorage.getItem(storageKey) === "1";
109
+ } catch {
110
+ return false;
111
+ }
112
+ });
107
113
  const [loggingOut, setLoggingOut] = useState(false);
108
114
  useEffect(() => {
109
115
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-studios/payload-studio",
3
- "version": "0.6.0-beta.32",
3
+ "version": "0.6.0-beta.33",
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",