@stacksjs/defaults 0.70.161 → 0.70.162

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.
@@ -1,5 +1,8 @@
1
- import { createTwoFactorChallenge, getTwoFactorState } from '@stacksjs/auth'
1
+ import { Action } from '@stacksjs/actions'
2
+ import { Auth, createTwoFactorChallenge, getTwoFactorState } from '@stacksjs/auth'
2
3
  import { User } from '@stacksjs/orm'
4
+ import { response } from '@stacksjs/router'
5
+ import { schema } from '@stacksjs/validation'
3
6
 
4
7
  export default new Action({
5
8
  name: 'LoginAction',
@@ -1,4 +1,8 @@
1
- // No imports needed - everything is auto-imported!
1
+ import { Action } from '@stacksjs/actions'
2
+ import { Auth, register } from '@stacksjs/auth'
3
+ import { dispatch } from '@stacksjs/events'
4
+ import { response } from '@stacksjs/router'
5
+ import { schema } from '@stacksjs/validation'
2
6
 
3
7
  export default new Action({
4
8
  name: 'RegisterAction',
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/defaults",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.70.161",
5
+ "version": "0.70.162",
6
6
  "description": "Default Stacks scaffold resources (views, layouts, components, preloader) — shipped so apps consuming the framework from node_modules get the same fallback resources a vendored checkout provides. Source of truth: storage/framework/defaults.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  ```html
2
- <script setup>
2
+ <script client>
3
3
  import { ref, computed } from '@stacksjs/stx'
4
4
  import { Stepper } from '@stacksjs/stepper'
5
5
 
@@ -4,5 +4,10 @@
4
4
  * Complete dashboard components for building modern admin interfaces.
5
5
  */
6
6
 
7
- // UI Components (re-export from UI folder)
8
- export * from './UI'
7
+ // Layout components
8
+ export { default as DashboardLayout } from './Dashboard/DashboardLayout.stx'
9
+ export { default as NavbarModern } from './Dashboard/NavbarModern.stx'
10
+ export { default as SidebarModern } from './Dashboard/SidebarModern.stx'
11
+
12
+ // Dashboard and UI components
13
+ export * from './Dashboard'
@@ -71,24 +71,30 @@ if (!skipPreloader) {
71
71
  process.env.APP_ENV = 'production'
72
72
  process.env.NODE_ENV = 'production'
73
73
  }
74
+ }
74
75
 
75
- // Load .env files with encryption support using the vendored source first.
76
- // The preloader runs before Bun has necessarily linked workspace packages
77
- // (fresh installs and minimal Linux/Docker checkouts are the important
78
- // cases), so resolving @stacksjs/env here creates a bootstrap cycle. The
79
- // source plugin is self-contained; retain the package fallback for contexts
80
- // where defaults is consumed outside the standard framework layout.
76
+ // Decrypt and load .env files for real command invocations. This is gated on
77
+ // isRepl / isPostinstall ONLY, not on the fast-command `skipPreloader`: fast
78
+ // commands (migrate, build, seed, ...) DO need decrypted config, which the old
79
+ // `skipPreloader` gate wrongly denied them (an encrypted `.env.<env>` never
80
+ // decrypted for those commands even with the key present). See stacksjs/stacks#2048.
81
+ //
82
+ // Postinstall still skips: @stacksjs/env may not be linked yet mid-install, so
83
+ // importing it there can fail (see the isPostinstall note above). The REPL keeps
84
+ // its original skip. The heavy auto-import graph below stays gated separately via
85
+ // `skipAutoImports`.
86
+ if (!isRepl && !isPostinstall) {
87
+ // Resolve the vendored source first; the package fallback covers non-standard
88
+ // layouts where defaults is consumed outside the framework layout.
81
89
  const envPackage = '@stacksjs/' + 'env'
82
90
  const { autoLoadEnv } = await import('../../../core/env/src/plugin.ts')
83
91
  .catch(() => import(envPackage))
84
92
 
85
- // Auto-load .env files based on environment
86
- // Set quiet: true to prevent duplicate logging across multiple processes
87
- //
88
93
  // Pass the resolved env so deploy commands deterministically select their
89
94
  // matching `.env.<env>` file. autoLoadEnv discovers `.env.keys` by default,
90
95
  // replaces ciphertext that Bun preloaded, and preserves genuine shell/CI
91
- // overrides while applying environment-specific file precedence.
96
+ // overrides while applying environment-specific file precedence. quiet: true
97
+ // prevents duplicate logging across multiple processes.
92
98
  autoLoadEnv({ quiet: true, env: process.env.APP_ENV })
93
99
  }
94
100
 
@@ -1642,12 +1642,12 @@ export default {
1642
1642
  <td style="padding: 8px; font-size: 11px; color: #666; text-align: right;">09/29/2025</td>
1643
1643
  </tr>
1644
1644
  <tr style="border-bottom: 1px solid #e0e0e0;">
1645
- <td style="padding: 8px; font-size: 11px;">📖 VitePress</td>
1645
+ <td style="padding: 8px; font-size: 11px;">📖 BunPress</td>
1646
1646
  <td style="padding: 8px; font-size: 11px; color: #666;">Static Site Generator</td>
1647
1647
  <td style="padding: 8px; font-size: 11px; color: #666; text-align: right;">09/28/2025</td>
1648
1648
  </tr>
1649
1649
  <tr style="border-bottom: 1px solid #e0e0e0;">
1650
- <td style="padding: 8px; font-size: 11px;">📚 VuePress</td>
1650
+ <td style="padding: 8px; font-size: 11px;">📚 STX Docs</td>
1651
1651
  <td style="padding: 8px; font-size: 11px; color: #666;">Static Site Generator</td>
1652
1652
  <td style="padding: 8px; font-size: 11px; color: #666; text-align: right;">09/27/2025</td>
1653
1653
  </tr>