@stevederico/skateboard-ui 4.12.0 → 4.12.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ 4.12.1
4
+
5
+ Republish built dist
6
+
3
7
  4.12.0
4
8
 
5
9
  Fix drawer dark-mode text
package/dist/App.js CHANGED
@@ -22,7 +22,7 @@ import AuthOverlay from './components/AuthOverlay.js';
22
22
  * Redirect component for auth routes when authOverlay mode is enabled.
23
23
  *
24
24
  * Dispatches SHOW_AUTH_OVERLAY on mount and redirects to the previous page
25
- * (from location state) or /app/home as fallback.
25
+ * (from location state) or /app as fallback (which routes to the app's defaultRoute).
26
26
  */
27
27
  function AuthRedirect() {
28
28
  const { dispatch } = getState();
@@ -34,7 +34,7 @@ function AuthRedirect() {
34
34
  if (!isAuthenticated()) {
35
35
  dispatch({ type: 'SHOW_AUTH_OVERLAY' });
36
36
  }
37
- const returnTo = location.state?.from || '/app/home';
37
+ const returnTo = location.state?.from || '/app';
38
38
  navigate(returnTo, { replace: true });
39
39
  }, [dispatch, navigate, location.state]);
40
40
  return null;
@@ -6,7 +6,7 @@ import { getCurrentUser, getAppKey } from '../core/Utilities.js';
6
6
  import { Spinner } from '../../shadcn/ui/spinner.js';
7
7
  // Whitelist of allowed redirect paths to prevent open redirect vulnerabilities
8
8
  const ALLOWED_REDIRECT_PREFIXES = ['/app/', '/'];
9
- const DEFAULT_REDIRECT = '/app/home';
9
+ const DEFAULT_REDIRECT = '/app';
10
10
  function isAllowedRedirect(path) {
11
11
  try {
12
12
  // Resolve relative to current origin; reject anything that escapes it.
package/dist/ui/drawer.js CHANGED
@@ -229,7 +229,7 @@ function DrawerContent({ className, children, onPointerDown, onPointerMove, onPo
229
229
  // browser claiming it for native scroll (which would fire pointercancel).
230
230
  // top-auto/m-0/w-full/max-w-none clear the native <dialog> UA inset and
231
231
  // sizing so the drawer pins to the bottom edge at full width.
232
- "fixed inset-x-0 top-auto bottom-0 z-50 m-0 flex max-h-[80vh] w-full max-w-none touch-none flex-col rounded-t-xl border-t border-border bg-background p-0 text-sm outline-none backdrop:bg-black/10 backdrop:transition-opacity backdrop:duration-250 supports-backdrop-filter:backdrop:backdrop-blur-xs", open
232
+ "fixed inset-x-0 top-auto bottom-0 z-50 m-0 flex max-h-[80vh] w-full max-w-none touch-none flex-col rounded-t-xl border-t border-border bg-background p-0 text-sm text-foreground outline-none backdrop:bg-black/10 backdrop:transition-opacity backdrop:duration-250 supports-backdrop-filter:backdrop:backdrop-blur-xs", open
233
233
  ? "animate-in fade-in-0 slide-in-from-bottom-52 duration-300"
234
234
  : dismissingByDrag.current
235
235
  ? ""
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stevederico/skateboard-ui",
3
3
  "private": false,
4
- "version": "4.12.0",
4
+ "version": "4.12.1",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {