@the-portland-company/shell 0.63.0 → 0.65.0
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.
- package/dist/app-chrome.cjs +302 -264
- package/dist/app-chrome.cjs.map +1 -1
- package/dist/app-chrome.js +3 -3
- package/dist/app-chrome.js.map +1 -1
- package/dist/chrome.css +23 -95
- package/dist/{chunk-U4RZPZET.js → chunk-JHIFJZ73.js} +9 -16
- package/dist/chunk-JHIFJZ73.js.map +1 -0
- package/dist/{chunk-2SF25TVU.js → chunk-XK2LWTHJ.js} +291 -246
- package/dist/chunk-XK2LWTHJ.js.map +1 -0
- package/dist/index.cjs +5 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/native.cjs +301 -263
- package/dist/native.cjs.map +1 -1
- package/dist/native.d.cts +21 -1
- package/dist/native.d.ts +21 -1
- package/dist/native.js +2 -2
- package/dist/theme-preference.cjs +7 -14
- package/dist/theme-preference.cjs.map +1 -1
- package/dist/theme-preference.d.cts +3 -1
- package/dist/theme-preference.d.ts +3 -1
- package/dist/theme-preference.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2SF25TVU.js.map +0 -1
- package/dist/chunk-U4RZPZET.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1194,14 +1194,7 @@ function readThemeCookie() {
|
|
|
1194
1194
|
}
|
|
1195
1195
|
}
|
|
1196
1196
|
function resolveTheme(pref) {
|
|
1197
|
-
|
|
1198
|
-
try {
|
|
1199
|
-
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
1200
|
-
} catch {
|
|
1201
|
-
return "light";
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1204
|
-
return pref;
|
|
1197
|
+
return "light";
|
|
1205
1198
|
}
|
|
1206
1199
|
function readStoredThemePreference() {
|
|
1207
1200
|
const cookie = readThemeCookie();
|
|
@@ -1225,11 +1218,11 @@ var ls=null;try{ls=localStorage.getItem(KEY);}catch(e){}
|
|
|
1225
1218
|
var pref=cookie||ls||"system";
|
|
1226
1219
|
if(VALID.indexOf(pref)===-1)pref="system";
|
|
1227
1220
|
if(cookie&&cookie!==ls){try{localStorage.setItem(KEY,cookie);}catch(e){}}
|
|
1228
|
-
|
|
1229
|
-
|
|
1221
|
+
// Dark Mode retired platform-wide 2026-09-21 \u2014 always light, and strip any
|
|
1222
|
+
// stale dark class a pre-retirement cookie/localStorage value left behind.
|
|
1230
1223
|
var d=document.documentElement;
|
|
1231
|
-
|
|
1232
|
-
try{d.style.colorScheme=
|
|
1224
|
+
d.classList.remove("dark");
|
|
1225
|
+
try{d.style.colorScheme="light";}catch(e){}
|
|
1233
1226
|
}catch(e){}})();`;
|
|
1234
1227
|
|
|
1235
1228
|
// src/theme/colorMode.tsx
|