@djangocfg/layouts 2.1.581 → 2.1.582

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.
Files changed (2) hide show
  1. package/README.md +25 -2
  2. package/package.json +12 -12
package/README.md CHANGED
@@ -201,16 +201,39 @@ send analytics directly from a layout.
201
201
 
202
202
  ---
203
203
 
204
+ ## Snippets
205
+
206
+ Small surfaces a host mounts once, exported from `@djangocfg/layouts` and `@djangocfg/layouts/snippets`:
207
+
208
+ | Export | What |
209
+ |---|---|
210
+ | `AuthDialog`, `useAuthDialog` | The global sign-in dialog. `BaseApp` mounts it with `auth` enabled; anything can open it, including a widget that only has `dialogStore`. |
211
+ | `TwoFactorSetup` | Enrol flow for a settings page: QR, confirmation code, backup codes. |
212
+ | `TwoFactorChallengeDialog` | The code prompt that opens over the page when a sign-in step needs 2FA. `AuthLayout` mounts it. |
213
+ | Analytics | Re-exported from `@djangocfg/analytics` for older imports; new code imports that package (see Analytics above). |
214
+ | `Breadcrumbs` | Breadcrumbs from `items`, or from the current path when none are given. |
215
+
216
+ ## Stories and tests
217
+
218
+ `@djangocfg/layouts/testing` is for Storybook and tests only: `MockAuthProvider` and `buildMockUser` give `useAuth()` a fixed session, `MockAuthFormProvider` and the step components mount a sign-in step without the full `AuthLayout`. Do not import it from production code.
219
+
220
+ ---
221
+
204
222
  ## Package exports
205
223
 
206
224
  | Path | Contents |
207
225
  |---|---|
208
226
  | `@djangocfg/layouts` | Barrel. |
209
227
  | `@djangocfg/layouts/layouts` | Layout components. |
228
+ | `@djangocfg/layouts/snippets` | `AuthDialog`, the 2FA surfaces, `Breadcrumbs`, `Devtools`, the analytics re-export. |
210
229
  | `@djangocfg/layouts/components` | Misc + `ErrorLayout`, `RedirectPage`. |
211
- | `@djangocfg/layouts/pages/legal` | Legal page templates. |
212
- | `@djangocfg/layouts/configurator` | JSON Schemas for `<JsonSchemaForm>`-driven configurator UIs (PrivateLayout for now). Pair with `@djangocfg/widget-forms`. |
230
+ | `@djangocfg/layouts/utils` | Path matching and sidebar-navigation helpers, logger. |
231
+ | `@djangocfg/layouts/pages` | Page templates (`legal`). |
232
+ | `@djangocfg/layouts/configurator` | JSON Schemas for `<JsonSchemaForm>`-driven configurator UIs. Pair with `@djangocfg/widget-forms`. |
233
+ | `@djangocfg/layouts/configurator/private` | The `PrivateLayout` configurator schema on its own. |
234
+ | `@djangocfg/layouts/testing` | Storybook and test helpers; not for production code. |
213
235
  | `@djangocfg/layouts/styles` | Base CSS. |
236
+ | `@djangocfg/layouts/styles/dashboard` | Dashboard shell CSS. |
214
237
 
215
238
  Extensions: `@djangocfg/ext-newsletter`, `ext-knowbase`, `ext-leads`, `ext-payments`, `ext-support`, …
216
239
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/layouts",
3
- "version": "2.1.581",
3
+ "version": "2.1.582",
4
4
  "description": "Simple, straightforward layout components for Next.js - import and use with props",
5
5
  "keywords": [
6
6
  "layouts",
@@ -90,11 +90,11 @@
90
90
  "check": "tsc --noEmit"
91
91
  },
92
92
  "peerDependencies": {
93
- "@djangocfg/analytics": "^2.1.581",
94
- "@djangocfg/api": "^2.1.581",
95
- "@djangocfg/devtools": "^2.1.581",
96
- "@djangocfg/i18n": "^2.1.581",
97
- "@djangocfg/ui-core": "^2.1.581",
93
+ "@djangocfg/analytics": "^2.1.582",
94
+ "@djangocfg/api": "^2.1.582",
95
+ "@djangocfg/devtools": "^2.1.582",
96
+ "@djangocfg/i18n": "^2.1.582",
97
+ "@djangocfg/ui-core": "^2.1.582",
98
98
  "@hookform/resolvers": "^5.2.2",
99
99
  "consola": "^3.4.2",
100
100
  "lucide-react": "^0.545.0",
@@ -124,12 +124,12 @@
124
124
  "uuid": "^11.1.1"
125
125
  },
126
126
  "devDependencies": {
127
- "@djangocfg/analytics": "^2.1.581",
128
- "@djangocfg/api": "^2.1.581",
129
- "@djangocfg/devtools": "^2.1.581",
130
- "@djangocfg/i18n": "^2.1.581",
131
- "@djangocfg/typescript-config": "^2.1.581",
132
- "@djangocfg/ui-core": "^2.1.581",
127
+ "@djangocfg/analytics": "^2.1.582",
128
+ "@djangocfg/api": "^2.1.582",
129
+ "@djangocfg/devtools": "^2.1.582",
130
+ "@djangocfg/i18n": "^2.1.582",
131
+ "@djangocfg/typescript-config": "^2.1.582",
132
+ "@djangocfg/ui-core": "^2.1.582",
133
133
  "@storybook/react-vite": "^10.5.0",
134
134
  "@types/node": "^25.9.5",
135
135
  "@types/react": "19.2.15",