appos 0.5.0-0 → 0.6.0-0
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/dist/exports/api/index.d.mts +4 -4
- package/dist/exports/api/index.mjs +29 -4
- package/dist/exports/api/orm.d.mts +1 -1
- package/dist/exports/api/orm.mjs +1 -1
- package/dist/exports/api/workflows/index.d.mts +3 -3
- package/dist/exports/{auth-DVv5fNvd.d.mts → auth-BCOIpGDO.d.mts} +225 -229
- package/dist/exports/{chunk-CHSICr2d.mjs → chunk-DCbLExaX.mjs} +2 -1
- package/dist/exports/cli/index.d.mts +106 -107
- package/dist/exports/cli/index.mjs +3 -3
- package/dist/exports/{index-D3decHVs.d.mts → index-Di4PdhuL.d.mts} +603 -615
- package/dist/exports/{instrumentation-DkoLNAtz.mjs → instrumentation-Dqv_rRlR.mjs} +1 -1
- package/dist/exports/instrumentation.mjs +1 -1
- package/dist/exports/{mock-2jMk5l3y.mjs → mock-DLfalkIV.mjs} +1 -1
- package/dist/exports/{orm-CJrd147z.d.mts → orm-D-7F2n1J.d.mts} +1 -1
- package/dist/exports/{orm-COJ9l6sS.mjs → orm-DbH3_5aw.mjs} +1 -1
- package/dist/exports/{server-CA4aI0U6.mjs → server-cD8Pckgj.mjs} +1 -1
- package/dist/exports/storybook/index.d.ts +1 -4
- package/dist/exports/tests/api.d.mts +3 -3
- package/dist/exports/tests/api.mjs +3 -3
- package/dist/exports/tests/mock.mjs +1 -1
- package/dist/exports/vite/index.d.mts +387 -5
- package/dist/exports/vite/index.mjs +774 -12
- package/dist/exports/web/index.d.ts +2073 -878
- package/dist/exports/web/index.js +1212 -28
- package/dist/exports/web/routes.d.mts +41 -43
- package/dist/exports/web/ssr.d.mts +3 -3
- package/package.json +57 -36
- package/src/storybook/.storybook/main.ts +117 -16
- package/src/storybook/.storybook/preview.tsx +77 -0
- package/src/storybook/index.ts +147 -0
- package/src/storybook/shims/void-elements.js +18 -0
- package/src/web/client/auth-paths.ts +148 -0
- package/src/web/client/auth.ts +218 -0
- package/src/web/client/i18n.d.ts +9 -0
- package/src/web/client/i18n.ts +127 -0
- package/src/web/client/react-router.ts +84 -0
- package/src/web/font/config.test.ts +224 -0
- package/src/web/font/config.ts +119 -0
- package/src/web/font/css.ts +268 -0
- package/src/web/font/index.ts +43 -0
- package/src/web/font/presets.ts +257 -0
- package/src/web/font/virtual.d.ts +25 -0
- package/src/web/font/virtual.js +2 -0
- package/src/web/hooks/index.ts +1 -0
- package/src/web/hooks/use-mobile.ts +19 -0
- package/src/web/index.ts +42 -0
- package/src/web/lib/utils.ts +52 -0
- package/src/web/routes.ts +101 -0
- package/src/web/server/context.ts +14 -0
- package/src/web/server/render.ts +11 -0
- package/src/web/ssr.ts +17 -0
- package/src/web/ui/accordion.stories.tsx +183 -0
- package/src/web/ui/accordion.tsx +134 -0
- package/src/web/ui/alert-dialog.stories.tsx +215 -0
- package/src/web/ui/alert-dialog.tsx +328 -0
- package/src/web/ui/alert.stories.tsx +224 -0
- package/src/web/ui/alert.tsx +136 -0
- package/src/web/ui/animated-check.stories.tsx +200 -0
- package/src/web/ui/animated-check.tsx +98 -0
- package/src/web/ui/aspect-ratio.stories.tsx +204 -0
- package/src/web/ui/aspect-ratio.tsx +36 -0
- package/src/web/ui/auth/__mocks__/auth-context.tsx +273 -0
- package/src/web/ui/auth/auth-card.stories.tsx +295 -0
- package/src/web/ui/auth/auth-card.tsx +124 -0
- package/src/web/ui/auth/auth-layout.stories.tsx +330 -0
- package/src/web/ui/auth/auth-layout.tsx +269 -0
- package/src/web/ui/auth/captcha-widget.stories.tsx +200 -0
- package/src/web/ui/auth/captcha-widget.tsx +197 -0
- package/src/web/ui/auth/context.tsx +87 -0
- package/src/web/ui/auth/email-input.stories.tsx +167 -0
- package/src/web/ui/auth/email-input.tsx +84 -0
- package/src/web/ui/auth/forms/email-otp-form.tsx +377 -0
- package/src/web/ui/auth/forms/forgot-password-form.tsx +240 -0
- package/src/web/ui/auth/forms/index.ts +40 -0
- package/src/web/ui/auth/forms/login-form.tsx +486 -0
- package/src/web/ui/auth/forms/phone-otp-form.tsx +388 -0
- package/src/web/ui/auth/forms/reset-password-form.tsx +331 -0
- package/src/web/ui/auth/forms/signup-form.tsx +499 -0
- package/src/web/ui/auth/forms/two-factor-form.tsx +410 -0
- package/src/web/ui/auth/forms/verify-email-form.tsx +373 -0
- package/src/web/ui/auth/hooks.ts +266 -0
- package/src/web/ui/auth/index.ts +31 -0
- package/src/web/ui/auth/magic-link-form.tsx +191 -0
- package/src/web/ui/auth/otp-input.stories.tsx +199 -0
- package/src/web/ui/auth/otp-input.tsx +157 -0
- package/src/web/ui/auth/passkey-button.stories.tsx +115 -0
- package/src/web/ui/auth/passkey-button.tsx +113 -0
- package/src/web/ui/auth/passkey-register-button.stories.tsx +109 -0
- package/src/web/ui/auth/passkey-register-button.tsx +106 -0
- package/src/web/ui/auth/password-input.stories.tsx +287 -0
- package/src/web/ui/auth/password-input.tsx +306 -0
- package/src/web/ui/auth/phone-input.stories.tsx +160 -0
- package/src/web/ui/auth/phone-input.tsx +89 -0
- package/src/web/ui/auth/social-buttons.stories.tsx +217 -0
- package/src/web/ui/auth/social-buttons.tsx +196 -0
- package/src/web/ui/auth/sso-button.stories.tsx +160 -0
- package/src/web/ui/auth/sso-button.tsx +108 -0
- package/src/web/ui/auth/trust-signals.stories.tsx +208 -0
- package/src/web/ui/auth/trust-signals.tsx +260 -0
- package/src/web/ui/avatar.stories.tsx +302 -0
- package/src/web/ui/avatar.tsx +189 -0
- package/src/web/ui/badge.stories.tsx +225 -0
- package/src/web/ui/badge.tsx +66 -0
- package/src/web/ui/brand.stories.tsx +266 -0
- package/src/web/ui/brand.tsx +162 -0
- package/src/web/ui/breadcrumb.stories.tsx +271 -0
- package/src/web/ui/breadcrumb.tsx +214 -0
- package/src/web/ui/button-group.stories.tsx +251 -0
- package/src/web/ui/button-group.tsx +87 -0
- package/src/web/ui/button.stories.tsx +7 -3
- package/src/web/ui/button.tsx +120 -0
- package/src/web/ui/calendar.stories.tsx +235 -0
- package/src/web/ui/calendar.tsx +221 -0
- package/src/web/ui/card.stories.tsx +262 -0
- package/src/web/ui/card.tsx +199 -0
- package/src/web/ui/carousel.stories.tsx +244 -0
- package/src/web/ui/carousel.tsx +241 -0
- package/src/web/ui/chart.stories.tsx +833 -0
- package/src/web/ui/chart.tsx +390 -0
- package/src/web/ui/checkbox.stories.tsx +208 -0
- package/src/web/ui/checkbox.tsx +39 -0
- package/src/web/ui/collapsible.stories.tsx +239 -0
- package/src/web/ui/collapsible.tsx +21 -0
- package/src/web/ui/command.stories.tsx +291 -0
- package/src/web/ui/command.tsx +189 -0
- package/src/web/ui/context-menu.stories.tsx +255 -0
- package/src/web/ui/context-menu.tsx +263 -0
- package/src/web/ui/dialog.stories.tsx +263 -0
- package/src/web/ui/dialog.tsx +273 -0
- package/src/web/ui/drawer.stories.tsx +299 -0
- package/src/web/ui/drawer.tsx +130 -0
- package/src/web/ui/dropdown-menu.stories.tsx +320 -0
- package/src/web/ui/dropdown-menu.tsx +263 -0
- package/src/web/ui/empty.stories.tsx +204 -0
- package/src/web/ui/empty.tsx +101 -0
- package/src/web/ui/error-page.stories.tsx +181 -0
- package/src/web/ui/error-page.tsx +136 -0
- package/src/web/ui/field.stories.tsx +364 -0
- package/src/web/ui/field.tsx +252 -0
- package/src/web/ui/globals.css +1 -0
- package/src/web/ui/hover-card.stories.tsx +261 -0
- package/src/web/ui/hover-card.tsx +50 -0
- package/src/web/ui/index.ts +55 -0
- package/src/web/ui/input-group.stories.tsx +290 -0
- package/src/web/ui/input-group.tsx +157 -0
- package/src/web/ui/input-otp.stories.tsx +235 -0
- package/src/web/ui/input-otp.tsx +86 -0
- package/src/web/ui/input.stories.tsx +205 -0
- package/src/web/ui/input.tsx +30 -0
- package/src/web/ui/item.stories.tsx +348 -0
- package/src/web/ui/item.tsx +200 -0
- package/src/web/ui/kbd.stories.tsx +236 -0
- package/src/web/ui/kbd.tsx +27 -0
- package/src/web/ui/label.stories.tsx +180 -0
- package/src/web/ui/label.tsx +32 -0
- package/src/web/ui/menubar.stories.tsx +385 -0
- package/src/web/ui/menubar.tsx +273 -0
- package/src/web/ui/navigation-menu.stories.tsx +361 -0
- package/src/web/ui/navigation-menu.tsx +168 -0
- package/src/web/ui/pagination.stories.tsx +312 -0
- package/src/web/ui/pagination.tsx +221 -0
- package/src/web/ui/popover.stories.tsx +315 -0
- package/src/web/ui/popover.tsx +89 -0
- package/src/web/ui/progress.stories.tsx +239 -0
- package/src/web/ui/progress.tsx +128 -0
- package/src/web/ui/radio-group.stories.tsx +315 -0
- package/src/web/ui/radio-group.tsx +38 -0
- package/src/web/ui/resizable.stories.tsx +304 -0
- package/src/web/ui/resizable.tsx +53 -0
- package/src/web/ui/scroll-area.stories.tsx +276 -0
- package/src/web/ui/scroll-area.tsx +53 -0
- package/src/web/ui/select.stories.tsx +314 -0
- package/src/web/ui/select.tsx +312 -0
- package/src/web/ui/separator.stories.tsx +246 -0
- package/src/web/ui/separator.tsx +36 -0
- package/src/web/ui/sheet.stories.tsx +417 -0
- package/src/web/ui/sheet.tsx +133 -0
- package/src/web/ui/sidebar.stories.tsx +402 -0
- package/src/web/ui/sidebar.tsx +723 -0
- package/src/web/ui/skeleton.stories.tsx +235 -0
- package/src/web/ui/skeleton.tsx +26 -0
- package/src/web/ui/slider.stories.tsx +294 -0
- package/src/web/ui/slider.tsx +75 -0
- package/src/web/ui/sonner.stories.tsx +279 -0
- package/src/web/ui/sonner.tsx +46 -0
- package/src/web/ui/spinner.stories.tsx +204 -0
- package/src/web/ui/spinner.tsx +28 -0
- package/src/web/ui/switch.stories.tsx +285 -0
- package/src/web/ui/switch.tsx +43 -0
- package/src/web/ui/table.stories.tsx +362 -0
- package/src/web/ui/table.tsx +115 -0
- package/src/web/ui/tabs.stories.tsx +401 -0
- package/src/web/ui/tabs.tsx +136 -0
- package/src/web/ui/textarea.stories.tsx +272 -0
- package/src/web/ui/textarea.tsx +28 -0
- package/src/web/ui/toggle-group.stories.tsx +334 -0
- package/src/web/ui/toggle-group.tsx +88 -0
- package/src/web/ui/toggle.stories.tsx +264 -0
- package/src/web/ui/toggle.tsx +57 -0
- package/src/web/ui/tooltip.stories.tsx +342 -0
- package/src/web/ui/tooltip.tsx +116 -0
- package/src/storybook/.storybook/preview.ts +0 -37
- package/src/storybook/vite.config.ts +0 -24
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as defineLogger, C as dbChanges, D as migrationsSchema, E as defineTestDatabase, O as DefineLoggerOptions, S as QualifiedTableNames, T as defineMigrationOpts, a as AuthCaptchaConfig, b as DefineTestDatabaseOptions, c as AuthSessionConfig, d as Role, f as auditActionSchema, g as defineEndpointRateLimits, h as defineAuth, i as Auth, k as Logger, l as CaptchaProvider, m as createAccessControl, n as AccessController, o as AuthConfig, p as captchaProviders, r as AuditAction, s as AuthPasskeyConfig, t as AccessControlRoles, u as DefineAuthOptions, v as Database, w as defineDatabase, x as MigrationType, y as DefineDatabaseOptions } from "../auth-
|
|
2
|
-
import { $ as
|
|
3
|
-
import "../orm-
|
|
1
|
+
import { A as defineLogger, C as dbChanges, D as migrationsSchema, E as defineTestDatabase, O as DefineLoggerOptions, S as QualifiedTableNames, T as defineMigrationOpts, a as AuthCaptchaConfig, b as DefineTestDatabaseOptions, c as AuthSessionConfig, d as Role, f as auditActionSchema, g as defineEndpointRateLimits, h as defineAuth, i as Auth, k as Logger, l as CaptchaProvider, m as createAccessControl, n as AccessController, o as AuthConfig, p as captchaProviders, r as AuditAction, s as AuthPasskeyConfig, t as AccessControlRoles, u as DefineAuthOptions, v as Database, w as defineDatabase, x as MigrationType, y as DefineDatabaseOptions } from "../auth-BCOIpGDO.mjs";
|
|
2
|
+
import { $ as NewStorageVariantRecord, A as defaultI18nConfig, At as Event, B as Container, Bt as defineConfig, C as scanAPIRoutes, Ct as WorkflowStartOptions, D as loadMiddleware, Dt as loadWorkflows, E as defineMiddleware, Et as defineWorkflow, F as AppContext, Ft as defineEvent, G as DefineS3DiskOptions, H as WorkerConfig, Ht as DefineCacheOptions, I as DefineAppContextOpts, It as defineEventBus, J as StorageService, K as DefineStorageOptions, L as SessionData, Lt as loadEvents, M as i18n, Mt as EventContext, N as isLocalDev, Nt as dbChangeInputSchema, Ot as DbChangeInput, P as defineAuthSchema, Pt as dbChangesEvent, Q as NewStorageBlob, R as defineAppContext, Rt as Config, S as registerRoutes, St as WorkflowHandle, T as Middleware, Tt as defineScheduledWorkflow, U as defineAppContainer, Ut as defineCache, V as ServerConfig, Vt as Cache, W as DatabaseWithStorage, X as defineStorage, Y as defineS3Disk, Z as NewStorageAttachment, _ as defineOpenAPIConfig, _t as QueueFactory, a as defineRedisClient, at as StorageVariantRecord, b as generateOpenAPIDocument, bt as ScheduledWorkflowContext, c as DefineOpenAPIConfigInput, ct as DefineMailerOptionsWithQueue, d as OpenAPIMethodSpec, dt as MailerPayloadHtml, et as StorageAttachment, f as OpenAPIObjectConfigV31, ft as MailerPayloadReact, g as defineOpenAPI, gt as Queue, h as ValidationErrorResponse, ht as DefineQueueOptions, i as RedisClient, it as StorageTables, j as defineI18n, jt as EventBus, k as I18nInitOptions, kt as DefineEventBusOptions, l as DefineOpenAPIReturn, lt as Mailer, m as RouteModule, mt as defineMailer, nt as StorageRelations, o as withOtelSpan, ot as defineStorageSchema, p as OpenAPIRegistration, pt as MailerWithQueue, q as Storage, r as DefineRedisClientOptions, rt as StorageRelationsConfig, s as DefineOpenAPIConfig, st as DefineMailerOptions, t as CustomTypeOptions, tt as StorageBlob, u as HandlerParams, ut as MailerPayload, v as defineOpenAPIEndpoint, vt as QueueFactoryContext, w as writeOpenAPISpecs, wt as defineQueue, x as loadAndRegisterAPIRoutes, xt as WorkflowContext, y as defineTypedResponses, yt as QueueRateLimit, z as AppContainer, zt as baseSchema } from "../index-Di4PdhuL.mjs";
|
|
3
|
+
import "../orm-D-7F2n1J.mjs";
|
|
4
4
|
import "../instrumentation-CFIspF8-.mjs";
|
|
5
|
-
export { AccessControlRoles, AccessController, AppContainer, AppContext, AuditAction, Auth, AuthCaptchaConfig, AuthConfig, AuthPasskeyConfig, AuthSessionConfig, Cache, CaptchaProvider, Config, Container, CustomTypeOptions, Database, DatabaseWithStorage, DbChangeInput, DefineAppContextOpts, DefineAuthOptions, DefineCacheOptions, DefineDatabaseOptions, DefineEventBusOptions, DefineLoggerOptions, DefineMailerOptions, DefineMailerOptionsWithQueue, DefineOpenAPIConfig, DefineOpenAPIConfigInput, DefineOpenAPIReturn, DefineQueueOptions, DefineRedisClientOptions, DefineS3DiskOptions, DefineStorageOptions, DefineTestDatabaseOptions, Event, EventBus, EventContext, HandlerParams, I18nInitOptions, Logger, Mailer, MailerPayload, MailerPayloadHtml, MailerPayloadReact, MailerWithQueue, Middleware, MigrationType, NewStorageAttachment, NewStorageBlob, NewStorageVariantRecord, OpenAPIMethodSpec, OpenAPIObjectConfigV31, OpenAPIRegistration, QualifiedTableNames, Queue, QueueFactory, QueueFactoryContext, QueueRateLimit, RedisClient, Role, RouteModule, ScheduledWorkflowContext, ServerConfig, SessionData, Storage, StorageAttachment, StorageBlob, StorageRelations, StorageRelationsConfig, StorageService, StorageTables, StorageVariantRecord, ValidationErrorResponse, WorkerConfig, WorkflowContext, WorkflowHandle, WorkflowStartOptions, auditActionSchema, baseSchema, captchaProviders, createAccessControl, dbChangeInputSchema, dbChanges, dbChangesEvent, defaultI18nConfig, defineAppContainer, defineAppContext, defineAuth, defineAuthSchema, defineCache, defineConfig, defineDatabase, defineEndpointRateLimits, defineEvent, defineEventBus, defineI18n, defineLogger, defineMailer, defineMiddleware, defineMigrationOpts, defineOpenAPI, defineOpenAPIConfig, defineOpenAPIEndpoint, defineQueue, defineRedisClient, defineS3Disk, defineScheduledWorkflow, defineStorage, defineStorageSchema, defineTestDatabase, defineTypedResponses, defineWorkflow, generateOpenAPIDocument, i18n, loadAndRegisterAPIRoutes, loadEvents, loadMiddleware, loadWorkflows, migrationsSchema, registerRoutes, scanAPIRoutes, withOtelSpan, writeOpenAPISpecs };
|
|
5
|
+
export { AccessControlRoles, AccessController, AppContainer, AppContext, AuditAction, Auth, AuthCaptchaConfig, AuthConfig, AuthPasskeyConfig, AuthSessionConfig, Cache, CaptchaProvider, Config, Container, CustomTypeOptions, Database, DatabaseWithStorage, DbChangeInput, DefineAppContextOpts, DefineAuthOptions, DefineCacheOptions, DefineDatabaseOptions, DefineEventBusOptions, DefineLoggerOptions, DefineMailerOptions, DefineMailerOptionsWithQueue, DefineOpenAPIConfig, DefineOpenAPIConfigInput, DefineOpenAPIReturn, DefineQueueOptions, DefineRedisClientOptions, DefineS3DiskOptions, DefineStorageOptions, DefineTestDatabaseOptions, Event, EventBus, EventContext, HandlerParams, I18nInitOptions, Logger, Mailer, MailerPayload, MailerPayloadHtml, MailerPayloadReact, MailerWithQueue, Middleware, MigrationType, NewStorageAttachment, NewStorageBlob, NewStorageVariantRecord, OpenAPIMethodSpec, OpenAPIObjectConfigV31, OpenAPIRegistration, QualifiedTableNames, Queue, QueueFactory, QueueFactoryContext, QueueRateLimit, RedisClient, Role, RouteModule, ScheduledWorkflowContext, ServerConfig, SessionData, Storage, StorageAttachment, StorageBlob, StorageRelations, StorageRelationsConfig, StorageService, StorageTables, StorageVariantRecord, ValidationErrorResponse, WorkerConfig, WorkflowContext, WorkflowHandle, WorkflowStartOptions, auditActionSchema, baseSchema, captchaProviders, createAccessControl, dbChangeInputSchema, dbChanges, dbChangesEvent, defaultI18nConfig, defineAppContainer, defineAppContext, defineAuth, defineAuthSchema, defineCache, defineConfig, defineDatabase, defineEndpointRateLimits, defineEvent, defineEventBus, defineI18n, defineLogger, defineMailer, defineMiddleware, defineMigrationOpts, defineOpenAPI, defineOpenAPIConfig, defineOpenAPIEndpoint, defineQueue, defineRedisClient, defineS3Disk, defineScheduledWorkflow, defineStorage, defineStorageSchema, defineTestDatabase, defineTypedResponses, defineWorkflow, generateOpenAPIDocument, i18n, isLocalDev, loadAndRegisterAPIRoutes, loadEvents, loadMiddleware, loadWorkflows, migrationsSchema, registerRoutes, scanAPIRoutes, withOtelSpan, writeOpenAPISpecs };
|
|
@@ -2,8 +2,8 @@ import { t as defineAppContext } from "../app-context-LF4QmPUC.mjs";
|
|
|
2
2
|
import { _ as defineAuthSchema, a as loadWorkflows, c as generatePreview, d as dbChangeInputSchema, f as dbChangesEvent, g as defineRedisClient, h as loadEvents, i as defineWorkflow, l as generateImageVariant, m as defineEventBus, n as defineQueue, o as purgeAttachment, p as defineEvent, r as defineScheduledWorkflow, t as sendEmail, u as extractBlobMetadata } from "../send-email-CXxlkfFL.mjs";
|
|
3
3
|
import { p as PUBLIC_DIR, u as LOCALES_DIR } from "../constants-BicCnEiJ.mjs";
|
|
4
4
|
import { _ as defineMigrationOpts, a as generateOpenAPIDocument, c as scanAPIRoutes, d as loadMiddleware, f as ui_default$2, g as defineDatabase, h as dbChanges, i as defineTypedResponses, l as writeOpenAPISpecs, m as ui_default, n as defineOpenAPIConfig, o as loadAndRegisterAPIRoutes, p as ui_default$1, r as defineOpenAPIEndpoint, s as registerRoutes, t as defineOpenAPI, u as defineMiddleware, v as defineTestDatabase, y as migrationsSchema } from "../openapi-uisUTLq7.mjs";
|
|
5
|
-
import { t as instrumentation_exports } from "../instrumentation-
|
|
6
|
-
import { _ as pgTable, c as orm_exports, t as index, w as unique } from "../orm-
|
|
5
|
+
import { t as instrumentation_exports } from "../instrumentation-Dqv_rRlR.mjs";
|
|
6
|
+
import { _ as pgTable, c as orm_exports, t as index, w as unique } from "../orm-DbH3_5aw.mjs";
|
|
7
7
|
import { passkey } from "@better-auth/passkey";
|
|
8
8
|
import { sso } from "@better-auth/sso";
|
|
9
9
|
import { betterAuth } from "better-auth";
|
|
@@ -464,6 +464,31 @@ function defineAppContainer(container) {
|
|
|
464
464
|
return container;
|
|
465
465
|
}
|
|
466
466
|
|
|
467
|
+
//#endregion
|
|
468
|
+
//#region src/api/env.ts
|
|
469
|
+
/**
|
|
470
|
+
* Returns true if running in local development mode.
|
|
471
|
+
* False in production, CI, or test environments.
|
|
472
|
+
*
|
|
473
|
+
* Use this to enable dev-only features like file watchers that should not
|
|
474
|
+
* run in production, CI pipelines, or test suites.
|
|
475
|
+
*
|
|
476
|
+
* @returns True if in local development mode.
|
|
477
|
+
*
|
|
478
|
+
* @example
|
|
479
|
+
* ```typescript
|
|
480
|
+
* import { isLocalDev } from "appos/api";
|
|
481
|
+
*
|
|
482
|
+
* if (isLocalDev()) {
|
|
483
|
+
* const watcher = watch(filePath, callback);
|
|
484
|
+
* watcher.unref(); // Don't keep process alive
|
|
485
|
+
* }
|
|
486
|
+
* ```
|
|
487
|
+
*/
|
|
488
|
+
function isLocalDev() {
|
|
489
|
+
return process.env.NODE_ENV !== "production" && !process.env.VITEST && !process.env.CI;
|
|
490
|
+
}
|
|
491
|
+
|
|
467
492
|
//#endregion
|
|
468
493
|
//#region src/api/i18n.ts
|
|
469
494
|
const uiTranslations = {
|
|
@@ -501,7 +526,7 @@ async function defineI18n(opts) {
|
|
|
501
526
|
const ns = opts.ns;
|
|
502
527
|
const namespaces = Array.isArray(ns) ? [...ns] : ns ? [ns] : [];
|
|
503
528
|
if (!namespaces.includes("ui")) namespaces.push("ui");
|
|
504
|
-
if (
|
|
529
|
+
if (isLocalDev()) watch(localesDir, { recursive: true }, async (event, fn) => {
|
|
505
530
|
await i18n$1.reloadResources(opts.supportedLngs || []);
|
|
506
531
|
}).unref();
|
|
507
532
|
await i18n$1.use(I18nextFsBackend).use(initReactI18next).init({
|
|
@@ -1540,4 +1565,4 @@ function defineStorageSchema() {
|
|
|
1540
1565
|
}
|
|
1541
1566
|
|
|
1542
1567
|
//#endregion
|
|
1543
|
-
export { StorageService, auditActionSchema, baseSchema, captchaProviders, createAccessControl, dbChangeInputSchema, dbChanges, dbChangesEvent, defaultI18nConfig, defineAppContainer, defineAppContext, defineAuth, defineAuthSchema, defineCache, defineConfig, defineDatabase, defineEndpointRateLimits, defineEvent, defineEventBus, defineI18n, defineLogger, defineMailer, defineMiddleware, defineMigrationOpts, defineOpenAPI, defineOpenAPIConfig, defineOpenAPIEndpoint, defineQueue, defineRedisClient, defineS3Disk, defineScheduledWorkflow, defineStorage, defineStorageSchema, defineTestDatabase, defineTypedResponses, defineWorkflow, generateOpenAPIDocument, loadAndRegisterAPIRoutes, loadEvents, loadMiddleware, loadWorkflows, migrationsSchema, registerRoutes, scanAPIRoutes, withOtelSpan, writeOpenAPISpecs };
|
|
1568
|
+
export { StorageService, auditActionSchema, baseSchema, captchaProviders, createAccessControl, dbChangeInputSchema, dbChanges, dbChangesEvent, defaultI18nConfig, defineAppContainer, defineAppContext, defineAuth, defineAuthSchema, defineCache, defineConfig, defineDatabase, defineEndpointRateLimits, defineEvent, defineEventBus, defineI18n, defineLogger, defineMailer, defineMiddleware, defineMigrationOpts, defineOpenAPI, defineOpenAPIConfig, defineOpenAPIEndpoint, defineQueue, defineRedisClient, defineS3Disk, defineScheduledWorkflow, defineStorage, defineStorageSchema, defineTestDatabase, defineTypedResponses, defineWorkflow, generateOpenAPIDocument, isLocalDev, loadAndRegisterAPIRoutes, loadEvents, loadMiddleware, loadWorkflows, migrationsSchema, registerRoutes, scanAPIRoutes, withOtelSpan, writeOpenAPISpecs };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as sparsevec, E as uniqueKeyName, S as smallserial, T as uniqueIndex, _ as pgTable, a as isPgSequence, b as serial, d as pgEnum, f as pgMaterializedView, g as pgSequence, h as pgSchema, i as isPgSchema, l as parsePgArray, m as pgRole, n as isPgEnum, o as isPgView, p as pgPolicy, r as isPgMaterializedView, s as numeric, t as index, u as parsePgNestedArray, v as pgTableCreator, w as unique, x as smallint, y as pgView } from "../orm-
|
|
1
|
+
import { C as sparsevec, E as uniqueKeyName, S as smallserial, T as uniqueIndex, _ as pgTable, a as isPgSequence, b as serial, d as pgEnum, f as pgMaterializedView, g as pgSequence, h as pgSchema, i as isPgSchema, l as parsePgArray, m as pgRole, n as isPgEnum, o as isPgView, p as pgPolicy, r as isPgMaterializedView, s as numeric, t as index, u as parsePgNestedArray, v as pgTableCreator, w as unique, x as smallint, y as pgView } from "../orm-D-7F2n1J.mjs";
|
|
2
2
|
export * from "drizzle-orm";
|
|
3
3
|
export { index, isPgEnum, isPgMaterializedView, isPgSchema, isPgSequence, isPgView, numeric, parsePgArray, parsePgNestedArray, pgEnum, pgMaterializedView, pgPolicy, pgRole, pgSchema, pgSequence, pgTable, pgTableCreator, pgView, serial, smallint, smallserial, sparsevec, unique, uniqueIndex, uniqueKeyName };
|
package/dist/exports/api/orm.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as sparsevec, E as uniqueKeyName, S as smallserial, T as uniqueIndex, _ as pgTable, a as isPgSequence, b as serial, d as pgEnum, f as pgMaterializedView, g as pgSequence, h as pgSchema, i as isPgSchema, l as parsePgArray, m as pgRole, n as isPgEnum, o as isPgView, p as pgPolicy, r as isPgMaterializedView, s as numeric, t as index, u as parsePgNestedArray, v as pgTableCreator, w as unique, x as smallint, y as pgView } from "../orm-
|
|
1
|
+
import { C as sparsevec, E as uniqueKeyName, S as smallserial, T as uniqueIndex, _ as pgTable, a as isPgSequence, b as serial, d as pgEnum, f as pgMaterializedView, g as pgSequence, h as pgSchema, i as isPgSchema, l as parsePgArray, m as pgRole, n as isPgEnum, o as isPgView, p as pgPolicy, r as isPgMaterializedView, s as numeric, t as index, u as parsePgNestedArray, v as pgTableCreator, w as unique, x as smallint, y as pgView } from "../orm-DbH3_5aw.mjs";
|
|
2
2
|
|
|
3
3
|
export * from "drizzle-orm"
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../auth-
|
|
2
|
-
import {
|
|
3
|
-
import "../../orm-
|
|
1
|
+
import "../../auth-BCOIpGDO.mjs";
|
|
2
|
+
import { B as Container, Ct as WorkflowStartOptions, St as WorkflowHandle } from "../../index-Di4PdhuL.mjs";
|
|
3
|
+
import "../../orm-D-7F2n1J.mjs";
|
|
4
4
|
import "../../instrumentation-CFIspF8-.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import * as _dbos_inc_dbos_sdk0 from "@dbos-inc/dbos-sdk";
|