@djangocfg/layouts 2.1.334 → 2.1.336

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.
@@ -20,6 +20,11 @@ export type {
20
20
 
21
21
  import type { AuthFormReturn } from '@djangocfg/api/auth';
22
22
 
23
+ import type { AuthBackgroundConfig, AuthShellVariant, AuthShellContextValue } from './shells';
24
+
25
+ // Re-export shell types so consumers can import everything from ./types
26
+ export type { AuthBackgroundConfig, AuthShellVariant, AuthShellContextValue } from './shells';
27
+
23
28
  // ─────────────────────────────────────────────────────────────────────────────
24
29
  // Layout Config — UI-specific configuration for AuthLayout
25
30
  // ─────────────────────────────────────────────────────────────────────────────
@@ -59,6 +64,12 @@ export interface AuthFormContextType extends AuthFormReturn, AuthLayoutConfig {}
59
64
  export interface AuthLayoutProps extends AuthLayoutConfig {
60
65
  children?: React.ReactNode;
61
66
  className?: string;
67
+ /** Shell variant — controls the overall layout shape. @default 'centered' */
68
+ variant?: AuthShellVariant;
69
+ /** Background configuration (image, gradient, overlay, blur). */
70
+ background?: AuthBackgroundConfig;
71
+ /** Slot for the right column in split variant (testimonial, branding, etc.). */
72
+ sidebar?: React.ReactNode;
62
73
  /** Callback when identifier step succeeds */
63
74
  onIdentifierSuccess?: (identifier: string) => void;
64
75
  /** Callback when OTP verification succeeds */
@@ -8,7 +8,6 @@ import type { ReactNode } from 'react';
8
8
  import type { AuthConfig } from '@djangocfg/api/auth';
9
9
 
10
10
  // Import provider configs from their modules
11
- import type { DebugButtonProps } from '@djangocfg/debuger';
12
11
  import type { AnalyticsConfig } from '../../snippets/Analytics/types';
13
12
  import type { PwaInstallConfig } from '@djangocfg/ui-nextjs/pwa';
14
13
  import type { ErrorBoundaryConfig, ErrorTrackingConfig } from '../../components/errors/types';
@@ -81,9 +80,12 @@ export interface BaseLayoutProps {
81
80
  }
82
81
 
83
82
  /** Debug panel config — enabled in development by default, pass enabled: true/false to override */
84
- export interface DebugConfig extends DebugButtonProps {
83
+ export interface DebugConfig {
85
84
  /** Set false to disable, true to force-enable. Default: process.env.NODE_ENV === 'development' */
86
85
  enabled?: boolean;
86
+ className?: string;
87
+ /** Props forwarded to DebugPanel */
88
+ panel?: Record<string, unknown>;
87
89
  }
88
90
 
89
91
  /**