@stacksjs/defaults 0.75.245 → 0.75.246

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.
@@ -645,7 +645,7 @@ Declared runtime exports: `isCursorPaginator`, `isPaginator`, `isSimplePaginator
645
645
 
646
646
  Guidance: [`stacks-path`](../stacks-path/SKILL.md). Source: [storage/framework/core/path/src/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/path/src/index.ts).
647
647
 
648
- Declared runtime exports: `DEFAULTS_SYNC_MARKER`, `actionRunnerPath`, `actionsPath`, `aiPath`, `aliasPath`, `analyticsPath`, `appPath`, `applyRuntimeDirectoryEnv`, `arraysPath`, `assetsPath`, `authPath`, `basename`, `browserPath`, `buddyPath`, `buildEnginePath`, `buildPath`, `builtUserActionsPath`, `cachePath`, `chartsPath`, `chatPath`, `cliPath`, `cloudPath`, `cloudStatePath`, `collectionsPath`, `commandsPath`, `componentsPath`, `configPath`, `coreApiPath`, `coreEnvPath`, `corePath`, `coreStoragePath`, `customElementsDataPath`, `databasePath`, `datetimePath`, `defaultsAppPath`, `defaultsPackagePath`, `defaultsResourcesPath`, `delimiter`, `desktopPath`, `developmentPath`, `dirname`, `dnsPath`, `docsPath`, `emailPath`, `ensureRuntimeDirectories`, `enumsPath`, `errorHandlingPath`, `eslintPluginPath`, `eventsPath`, `examplesPath`, `extname`, `fakerPath`, `featureFlagsPath`, `featuresPath`, `findProjectPath`, `frameworkCloudPath`, `frameworkDefaultsRoot`, `frameworkPath`, `frameworkRuntimePath`, `functionsPath`, `gitPath`, `healthPath`, `homeDir`, `inspectDefaultsProvenance`, `installedDefaultsVersion`, `isAbsolute`, `isCompiledBinary`, `jobsPath`, `join`, `langPath`, `layoutsPath`, `libraryPackagePath`, `libsEntriesPath`, `libsPath`, `linkPackagedDefaults`, `lintPath`, `listenersPath`, `loggingPath`, `logsPath`, `mergeDirectoryInto`, `modelMetaPath`, `modelsPath`, `modulesPath`, `newsletterPath`, `normalize`, `notificationsPath`, `objectsPath`, `onboardingPath`, `ormPath`, `packagedDefaultsRoot`, `paginationPath`, `path`, `pathPath`, `paymentsPath`, `projectConfigPath`, `projectPath`, `publicPath`, `pushPath`, `queryBuilderPath`, `queuePath`, `realtimePath`, `relative`, `relativeActionsPath`, `replPath`, `resolve`, `resolveModulePath`, `resolveUserLibBase`, `resourcesPath`, `routerPath`, `routesPath`, `runtimeDirectoryEnv`, `runtimePath`, `schedulerPath`, `scriptsPath`, `searchEnginePath`, `securityPath`, `sep`, `serverPath`, `serverlessPath`, `settingsPath`, `shellPath`, `siteConfigPath`, `skillsPath`, `slugPath`, `smsPath`, `socialsPath`, `stacksBackupPath`, `stacksLockPath`, `stacksPath`, `storagePath`, `storesPath`, `stringsPath`, `stxPath`, `testingPath`, `testsPath`, `tinkerPath`, `toNamespacedPath`, `typesPath`, `uiPath`, `userActionsPath`, `userComponentsPath`, `userControllersPath`, `userDatabasePath`, `userEmailsPath`, `userEventsPath`, `userFunctionsPath`, `userJobsPath`, `userLibsPath`, `userListenersPath`, `userMailPath`, `userMiddlewarePath`, `userMigrationsPath`, `userModelsPath`, `userNotificationsPath`, `userServerPath`, `userViewsPath`, `usesVendoredDefaults`, `utilsPath`, `validationPath`, `viewsPath`.
648
+ Declared runtime exports: `DEFAULTS_SYNC_MARKER`, `actionRunnerPath`, `actionsPath`, `aiPath`, `aliasPath`, `analyticsPath`, `appPath`, `applyRuntimeDirectoryEnv`, `arraysPath`, `assetsPath`, `authPath`, `basename`, `browserPath`, `buddyPath`, `buildEnginePath`, `buildPath`, `builtUserActionsPath`, `cachePath`, `chartsPath`, `chatPath`, `cliPath`, `cloudPath`, `cloudStatePath`, `collectionsPath`, `commandsPath`, `componentsPath`, `configPath`, `coreApiPath`, `coreEnvPath`, `corePath`, `coreStoragePath`, `customElementsDataPath`, `databasePath`, `datetimePath`, `defaultsAppPath`, `defaultsPackagePath`, `defaultsResourcesPath`, `delimiter`, `desktopPath`, `developmentPath`, `dirname`, `dnsPath`, `docsPath`, `emailPath`, `ensureRuntimeDirectories`, `enumsPath`, `errorHandlingPath`, `eslintPluginPath`, `eventsPath`, `examplesPath`, `extname`, `fakerPath`, `featureFlagsPath`, `featuresPath`, `findProjectPath`, `frameworkCloudPath`, `frameworkDefaultsRoot`, `frameworkPath`, `frameworkRuntimePath`, `functionsPath`, `gitPath`, `healthPath`, `homeDir`, `inspectDefaultsProvenance`, `installedDefaultsVersion`, `isAbsolute`, `isCompiledBinary`, `isInstalledDefaultsRoot`, `jobsPath`, `join`, `langPath`, `layoutsPath`, `libraryPackagePath`, `libsEntriesPath`, `libsPath`, `linkPackagedDefaults`, `lintPath`, `listenersPath`, `loggingPath`, `logsPath`, `mergeDirectoryInto`, `modelMetaPath`, `modelsPath`, `modulesPath`, `newsletterPath`, `normalize`, `notificationsPath`, `objectsPath`, `onboardingPath`, `ormPath`, `packagedDefaultsRoot`, `paginationPath`, `path`, `pathPath`, `paymentsPath`, `projectConfigPath`, `projectPath`, `publicPath`, `pushPath`, `queryBuilderPath`, `queuePath`, `realtimePath`, `relative`, `relativeActionsPath`, `replPath`, `resolve`, `resolveModulePath`, `resolveUserLibBase`, `resourcesPath`, `routerPath`, `routesPath`, `runtimeDirectoryEnv`, `runtimePath`, `schedulerPath`, `scriptsPath`, `searchEnginePath`, `securityPath`, `sep`, `serverPath`, `serverlessPath`, `settingsPath`, `shellPath`, `siteConfigPath`, `skillsPath`, `slugPath`, `smsPath`, `socialsPath`, `stacksBackupPath`, `stacksLockPath`, `stacksPath`, `storagePath`, `storesPath`, `stringsPath`, `stxPath`, `testingPath`, `testsPath`, `tinkerPath`, `toNamespacedPath`, `typesPath`, `uiPath`, `userActionsPath`, `userComponentsPath`, `userControllersPath`, `userDatabasePath`, `userEmailsPath`, `userEventsPath`, `userFunctionsPath`, `userJobsPath`, `userLibsPath`, `userListenersPath`, `userMailPath`, `userMiddlewarePath`, `userMigrationsPath`, `userModelsPath`, `userNotificationsPath`, `userServerPath`, `userViewsPath`, `usesVendoredDefaults`, `utilsPath`, `validationPath`, `viewsPath`.
649
649
 
650
650
  Local source modules: [src/module-resolution.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/path/src/module-resolution.ts), [src/project.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/path/src/project.ts).
651
651
 
@@ -108,8 +108,9 @@ directory (the framework checkout, an app made with `--vendor-defaults` or
108
108
  framework code resolves the package itself: a module loaded through a link
109
109
  created after the process started fails in Bun.
110
110
 
111
- In code and templates, import a default by package name,
112
- `@stacksjs/defaults/<path>.ts`. `storage/framework/tsconfig.app.json` maps that
111
+ In code and templates, import a default by package name:
112
+ `@stacksjs/defaults/<path>.ts` in TypeScript, `@stacksjs/defaults/<path>` with
113
+ no extension in a `.stx` script (`stx typecheck` rejects `.ts` there). `storage/framework/tsconfig.app.json` maps that
113
114
  onto a vendored tree when there is one and falls back to the package, so it
114
115
  resolves in every layout; `~/storage/framework/defaults/...` does not.
115
116
 
@@ -2,7 +2,7 @@
2
2
  "publisher": "Stacks",
3
3
  "name": "vscode-stacks",
4
4
  "displayName": "Stacks",
5
- "version": "0.75.245",
5
+ "version": "0.75.246",
6
6
  "description": "Stacks, built into VS Code: stx templates, pickier linting and formatting, encrypted env files, the dev server preview and every buddy command. No other extensions required.",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/defaults",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.245",
5
+ "version": "0.75.246",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/stacksjs/stacks.git",
@@ -44,7 +44,7 @@
44
44
  "dependencies": {
45
45
  "@iconify-json/f7": "^1.2.2",
46
46
  "@iconify-json/hugeicons": "^1.2.35",
47
- "@stacksjs/mobile": "0.75.245",
47
+ "@stacksjs/mobile": "0.75.246",
48
48
  "@stacksjs/sanitizer": "^0.2.534",
49
49
  "@xterm/addon-fit": "^0.11.0",
50
50
  "@xterm/xterm": "^6.0.0",
@@ -208,11 +208,11 @@ import type {
208
208
  PageData,
209
209
  ReferrerData,
210
210
  TrafficDataPoint,
211
- } from '@stacksjs/defaults/functions/analytics.ts'
212
- import { fetchWebAnalytics } from '@stacksjs/defaults/functions/analytics.ts'
213
- import { pushToast } from '@stacksjs/defaults/functions/toasts.ts'
214
- import type { ChartCtor, ChartLike } from '@stacksjs/defaults/views/dashboard/composables/useChart.ts'
215
- import { useChart } from '@stacksjs/defaults/views/dashboard/composables/useChart.ts'
211
+ } from '@stacksjs/defaults/functions/analytics'
212
+ import { fetchWebAnalytics } from '@stacksjs/defaults/functions/analytics'
213
+ import { pushToast } from '@stacksjs/defaults/functions/toasts'
214
+ import type { ChartCtor, ChartLike } from '@stacksjs/defaults/views/dashboard/composables/useChart'
215
+ import { useChart } from '@stacksjs/defaults/views/dashboard/composables/useChart'
216
216
 
217
217
  const analyticsOverview = state<AnalyticsOverview>({
218
218
  realtimeVisitors: 0,
@@ -7,8 +7,8 @@
7
7
  //
8
8
  // No <script server>, no window./document. reads - per #1838 the page
9
9
  // is pure presentation against the store.
10
- import { useRole } from '@stacksjs/defaults/views/dashboard/composables/useRole.ts'
11
- import { ciStore } from '@stacksjs/defaults/views/dashboard/stores/ci.ts'
10
+ import { useRole } from '@stacksjs/defaults/views/dashboard/composables/useRole'
11
+ import { ciStore } from '@stacksjs/defaults/views/dashboard/stores/ci'
12
12
 
13
13
  // Import the store definition directly so its typed setup and persistence
14
14
  // are part of this page's client bundle. A name-only useStore('ci') lookup
@@ -1,5 +1,5 @@
1
1
  <script client>
2
- import { ciStore } from '@stacksjs/defaults/views/dashboard/stores/ci.ts'
2
+ import { ciStore } from '@stacksjs/defaults/views/dashboard/stores/ci'
3
3
 
4
4
  const ci = ciStore
5
5
  const target = derived(() => ci.drilldown())
@@ -202,8 +202,8 @@ defineClientPayload({ blogUrl })
202
202
  <script client>
203
203
  // Plain async transport for /api/dashboard/blog, which reads and writes the
204
204
  // markdown files in content/blog. It owns no state; the signals below do.
205
- import type { BlogPost, BlogPostDraft } from '@stacksjs/defaults/functions/blog.ts'
206
- import { deleteBlogPost, fetchBlogPost, fetchBlogPosts, saveBlogPost } from '@stacksjs/defaults/functions/blog.ts'
205
+ import type { BlogPost, BlogPostDraft } from '@stacksjs/defaults/functions/blog'
206
+ import { deleteBlogPost, fetchBlogPost, fetchBlogPosts, saveBlogPost } from '@stacksjs/defaults/functions/blog'
207
207
 
208
208
  const publicBlogBaseUrl = {{ blogUrl }}
209
209
 
@@ -1,8 +1,8 @@
1
1
  <script client>
2
2
  import { dashboardApi } from '../../../../functions/dashboard-api'
3
3
  import { pushToast } from '../../../../functions/toasts'
4
- import type { ChartCtor, ChartDataset, ChartLike, ChartOptions } from '@stacksjs/defaults/views/dashboard/composables/useChart.ts'
5
- import { useChart } from '@stacksjs/defaults/views/dashboard/composables/useChart.ts'
4
+ import type { ChartCtor, ChartDataset, ChartLike, ChartOptions } from '@stacksjs/defaults/views/dashboard/composables/useChart'
5
+ import { useChart } from '@stacksjs/defaults/views/dashboard/composables/useChart'
6
6
 
7
7
  interface ContentPostSummary {
8
8
  id: number
@@ -1,8 +1,8 @@
1
1
  @import('../UI/Table')
2
2
 
3
3
  <script client>
4
- import { dashboardApi } from '@stacksjs/defaults/functions/dashboard-api.ts'
5
- import { pushToast } from '@stacksjs/defaults/functions/toasts.ts'
4
+ import { dashboardApi } from '@stacksjs/defaults/functions/dashboard-api'
5
+ import { pushToast } from '@stacksjs/defaults/functions/toasts'
6
6
 
7
7
  interface PostRow {
8
8
  id: number
@@ -262,9 +262,9 @@ import type {
262
262
  MailTheme,
263
263
  NotificationSound,
264
264
  ReplyBehavior,
265
- } from '@stacksjs/defaults/functions/mail-preferences.ts'
266
- import { fetchInboxActivity } from '@stacksjs/defaults/functions/inbox.ts'
267
- import { fetchMailPreference, saveMailPreference } from '@stacksjs/defaults/functions/mail-preferences.ts'
265
+ } from '@stacksjs/defaults/functions/mail-preferences'
266
+ import { fetchInboxActivity } from '@stacksjs/defaults/functions/inbox'
267
+ import { fetchMailPreference, saveMailPreference } from '@stacksjs/defaults/functions/mail-preferences'
268
268
 
269
269
  interface SettingsSection {
270
270
  id: string
@@ -1,5 +1,5 @@
1
1
  <script client>
2
- import { DashboardApiError, dashboardApi } from '@stacksjs/defaults/functions/dashboard-api.ts'
2
+ import { DashboardApiError, dashboardApi } from '@stacksjs/defaults/functions/dashboard-api'
3
3
 
4
4
  interface EnvironmentFileIssue {
5
5
  line: number
@@ -12,9 +12,9 @@
12
12
  // Both column reorder (drag the column header) and card reorder
13
13
  // (drag the card body) share the same /cards/reorder + /columns/reorder
14
14
  // mutations on the store.
15
- import { useNavigation } from '@stacksjs/defaults/views/dashboard/composables/useNavigation.ts'
16
- import { useRole } from '@stacksjs/defaults/views/dashboard/composables/useRole.ts'
17
- import { kanbanStore } from '@stacksjs/defaults/views/dashboard/stores/kanban.ts'
15
+ import { useNavigation } from '@stacksjs/defaults/views/dashboard/composables/useNavigation'
16
+ import { useRole } from '@stacksjs/defaults/views/dashboard/composables/useRole'
17
+ import { kanbanStore } from '@stacksjs/defaults/views/dashboard/stores/kanban'
18
18
 
19
19
  // The component owns its store dependency. Importing the definition creates
20
20
  // and registers the singleton before this component controller executes,
@@ -5,8 +5,8 @@
5
5
  // Follows #1838 conventions: no <script server>, no vanilla DOM
6
6
  // reads, all state via the store. Role gate via useRole() - the
7
7
  // surface is dev-mode-only (admins + devs see it, clients don't).
8
- import { useRole } from '@stacksjs/defaults/views/dashboard/composables/useRole.ts'
9
- import { kanbanStore } from '@stacksjs/defaults/views/dashboard/stores/kanban.ts'
8
+ import { useRole } from '@stacksjs/defaults/views/dashboard/composables/useRole'
9
+ import { kanbanStore } from '@stacksjs/defaults/views/dashboard/stores/kanban'
10
10
 
11
11
  // Keep the page component self-contained: the imported store definition is
12
12
  // registered before this controller runs on both direct and SPA navigation.
@@ -1,5 +1,5 @@
1
1
  <script client>
2
- import { kanbanStore } from '@stacksjs/defaults/views/dashboard/stores/kanban.ts'
2
+ import { kanbanStore } from '@stacksjs/defaults/views/dashboard/stores/kanban'
3
3
  import { useTimeoutFn } from '@stacksjs/composables'
4
4
 
5
5
  const kanban = kanbanStore
@@ -13,8 +13,8 @@
13
13
  // - All state in the rbacStore; the page is pure presentation.
14
14
  // - Mutations are optimistic with rollback on failure (store handles
15
15
  // the snapshot/rollback dance).
16
- import { useRole } from '@stacksjs/defaults/views/dashboard/composables/useRole.ts'
17
- import { rbacStore } from '@stacksjs/defaults/views/dashboard/stores/rbac.ts'
16
+ import { useRole } from '@stacksjs/defaults/views/dashboard/composables/useRole'
17
+ import { rbacStore } from '@stacksjs/defaults/views/dashboard/stores/rbac'
18
18
 
19
19
  const rbac = rbacStore
20
20
  // Admin-only surface. Per `useRole.ts`, `isAdmin()` returns true for
@@ -6,9 +6,9 @@
6
6
  // All querying is server-side (`GET /api/dashboard/models/{slug}`), so this
7
7
  // works the same on a table with 10 rows and one with a million. Rows and
8
8
  // writes go through the model, so scopes, casts and observers apply.
9
- import { useNavigation } from '@stacksjs/defaults/views/dashboard/composables/useNavigation.ts'
10
- import { DashboardApiError, dashboardApi } from '@stacksjs/defaults/functions/dashboard-api.ts'
11
- import { pushToast } from '@stacksjs/defaults/functions/toasts.ts'
9
+ import { useNavigation } from '@stacksjs/defaults/views/dashboard/composables/useNavigation'
10
+ import { DashboardApiError, dashboardApi } from '@stacksjs/defaults/functions/dashboard-api'
11
+ import { pushToast } from '@stacksjs/defaults/functions/toasts'
12
12
 
13
13
  interface ColumnMeta {
14
14
  name: string
@@ -3,7 +3,7 @@
3
3
  // layout uses, so the list can never drift from what the sidebar renders -
4
4
  // including sections a project has switched off in config/dashboard.ts, which
5
5
  // simply are not here to toggle.
6
- import { buildWebSidebarSections } from '@stacksjs/defaults/resources/functions/dashboard/sidebar.ts'
6
+ import { buildWebSidebarSections } from '@stacksjs/defaults/resources/functions/dashboard/sidebar'
7
7
 
8
8
  export const navSections = buildWebSidebarSections()
9
9
  .filter(section => section.label && section.items.length > 0)
@@ -19,12 +19,12 @@ defineClientPayload({ navSections })
19
19
  </script>
20
20
 
21
21
  <script client>
22
- import type { ColorMode, SidebarStyle } from '@stacksjs/defaults/views/dashboard/composables/useAppearance.ts'
22
+ import type { ColorMode, SidebarStyle } from '@stacksjs/defaults/views/dashboard/composables/useAppearance'
23
23
  import {
24
24
  COLOR_MODE_OPTIONS,
25
25
  SIDEBAR_STYLE_OPTIONS,
26
26
  useAppearance,
27
- } from '@stacksjs/defaults/views/dashboard/composables/useAppearance.ts'
27
+ } from '@stacksjs/defaults/views/dashboard/composables/useAppearance'
28
28
 
29
29
  const appearance = useAppearance()
30
30
 
@@ -1,5 +1,5 @@
1
1
  <script client>
2
- import { dashboardApi } from '@stacksjs/defaults/functions/dashboard-api.ts'
2
+ import { dashboardApi } from '@stacksjs/defaults/functions/dashboard-api'
3
3
 
4
4
  interface ConfigFile {
5
5
  name: string
@@ -1,6 +1,6 @@
1
1
  <script client>
2
- import { dashboardApi } from '@stacksjs/defaults/functions/dashboard-api.ts'
3
- import { useAuth } from '@stacksjs/defaults/functions/auth.ts'
2
+ import { dashboardApi } from '@stacksjs/defaults/functions/dashboard-api'
3
+ import { useAuth } from '@stacksjs/defaults/functions/auth'
4
4
 
5
5
  interface Invitation {
6
6
  teamId: number
@@ -16,7 +16,7 @@
16
16
  // vendored or linked. `@stacksjs/defaults/*` is mapped onto the vendored tree in
17
17
  // `storage/framework/tsconfig.app.json` and falls back to the installed
18
18
  // package when there is none, so it resolves in both layouts.
19
- import { buildWebSidebarSections } from '@stacksjs/defaults/resources/functions/dashboard/sidebar.ts'
19
+ import { buildWebSidebarSections } from '@stacksjs/defaults/resources/functions/dashboard/sidebar'
20
20
 
21
21
  export const sidebarSections = buildWebSidebarSections()
22
22
 
@@ -403,14 +403,14 @@ html[data-appearance="arc"] [data-sidebar-section] > div:first-child {
403
403
  // fixed-position container below the <main> slot. Mounted in the
404
404
  // layout so every dashboard page picks it up without opting in.
405
405
  // A package specifier for the same reason as the sidebar import above.
406
- import type { ToastType } from '@stacksjs/defaults/functions/toasts.ts'
407
- import type { CraftSidebarSelectEvent } from '@stacksjs/defaults/functions/craft.ts'
408
- import { useToasts, dismissToast } from '@stacksjs/defaults/functions/toasts.ts'
409
- import { ensureCraftNativeSidebarMarker, useCraftSidebarSelection } from '@stacksjs/defaults/functions/craft.ts'
410
- import { readStoredAppearance, useAppearance } from '@stacksjs/defaults/views/dashboard/composables/useAppearance.ts'
411
- import { authStore } from '@stacksjs/defaults/views/dashboard/stores/auth.ts'
412
- import { kanbanStore } from '@stacksjs/defaults/views/dashboard/stores/kanban.ts'
413
- import { rbacStore } from '@stacksjs/defaults/views/dashboard/stores/rbac.ts'
406
+ import type { ToastType } from '@stacksjs/defaults/functions/toasts'
407
+ import type { CraftSidebarSelectEvent } from '@stacksjs/defaults/functions/craft'
408
+ import { useToasts, dismissToast } from '@stacksjs/defaults/functions/toasts'
409
+ import { ensureCraftNativeSidebarMarker, useCraftSidebarSelection } from '@stacksjs/defaults/functions/craft'
410
+ import { readStoredAppearance, useAppearance } from '@stacksjs/defaults/views/dashboard/composables/useAppearance'
411
+ import { authStore } from '@stacksjs/defaults/views/dashboard/stores/auth'
412
+ import { kanbanStore } from '@stacksjs/defaults/views/dashboard/stores/kanban'
413
+ import { rbacStore } from '@stacksjs/defaults/views/dashboard/stores/rbac'
414
414
  const { toasts } = useToasts()
415
415
  registerStoresClient({ authStore, kanbanStore, rbacStore })
416
416
 
@@ -1,5 +1,5 @@
1
1
  <script client>
2
- import { installTrayMenu } from '@stacksjs/defaults/resources/functions/system-tray.ts'
2
+ import { installTrayMenu } from '@stacksjs/defaults/resources/functions/system-tray'
3
3
 
4
4
  const projects = state<string[]>([])
5
5
  const selected = state('')