@alepha/ui 0.13.1 → 0.13.2

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,11 +1,11 @@
1
1
  import * as alepha59 from "alepha";
2
- import { Alepha, AlephaError, Async, Descriptor, FileLike, InstantiableClass, LogLevel, LoggerInterface, Page, PageMetadata, Static, StreamLike, TArray, TFile, TObject, TProperties, TRecord, TSchema, TStream, TString, TVoid, TypeBoxError } from "alepha";
2
+ import { Alepha, AlephaError, Async, FileLike, InstantiableClass, LogLevel, LoggerInterface, Page, PageMetadata, Primitive, Static, StreamLike, TArray, TFile, TObject, TProperties, TRecord, TSchema, TStream, TString, TVoid, TypeBoxError } from "alepha";
3
3
  import { AnchorProps, AppShellFooterProps, AppShellHeaderProps, AppShellMainProps, AppShellNavbarProps, AppShellProps, AutocompleteProps, BurgerProps, ButtonProps, ColorInputProps, ColorSchemeScriptProps, FileInputProps, Flex, FlexProps, MantineBreakpoint, MantineProviderProps, MantineSize, MenuProps, MenuTargetProps, ModalProps, MultiSelectProps, NumberInputProps, PasswordInputProps, SegmentedControlProps, SelectProps, SliderProps, SwitchProps, TableProps, TableTrProps, TagsInputProps, Text, TextInputProps, TextareaProps, ThemeIconProps, TooltipProps } from "@mantine/core";
4
4
  import { ModalsProviderProps } from "@mantine/modals";
5
5
  import * as _mantine_notifications0 from "@mantine/notifications";
6
6
  import { NotificationData, NotificationsProps } from "@mantine/notifications";
7
7
  import { NavigationProgressProps } from "@mantine/nprogress";
8
- import * as react_jsx_runtime13 from "react/jsx-runtime";
8
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
9
9
  import { ComponentType, FC, InputHTMLAttributes, ReactElement, ReactNode } from "react";
10
10
  import { DateInputProps, DateTimePickerProps, TimeInputProps } from "@mantine/dates";
11
11
  import "dayjs/plugin/relativeTime.js";
@@ -44,8 +44,8 @@ declare class DateTimeProvider {
44
44
  protected readonly timeouts: Timeout[];
45
45
  protected readonly intervals: Interval[];
46
46
  constructor();
47
- protected readonly onStart: alepha59.HookDescriptor<"start">;
48
- protected readonly onStop: alepha59.HookDescriptor<"stop">;
47
+ protected readonly onStart: alepha59.HookPrimitive<"start">;
48
+ protected readonly onStop: alepha59.HookPrimitive<"stop">;
49
49
  setLocale(locale: string): void;
50
50
  isDateTime(value: unknown): value is DateTime;
51
51
  /**
@@ -412,7 +412,7 @@ interface ControlSelectProps extends GenericControlProps {
412
412
  *
413
413
  * Automatically detects enum values and array types from schema.
414
414
  */
415
- declare const ControlSelect: (props: ControlSelectProps) => react_jsx_runtime13.JSX.Element | null;
415
+ declare const ControlSelect: (props: ControlSelectProps) => react_jsx_runtime11.JSX.Element | null;
416
416
  //#endregion
417
417
  //#region src/core/components/form/Control.d.ts
418
418
  interface ControlProps extends GenericControlProps {
@@ -452,15 +452,44 @@ interface ControlProps extends GenericControlProps {
452
452
  *
453
453
  * Automatically handles labels, descriptions, error messages, required state, and default icons.
454
454
  */
455
- declare const Control: (_props: ControlProps) => react_jsx_runtime13.JSX.Element | null;
455
+ declare const Control: (_props: ControlProps) => react_jsx_runtime11.JSX.Element | null;
456
456
  type CustomControlProps = {
457
457
  defaultValue: any;
458
458
  onChange: (value: any) => void;
459
459
  };
460
460
  //#endregion
461
- //#region ../alepha/src/server/constants/routeMethods.d.ts
462
- declare const routeMethods: readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS", "CONNECT", "TRACE"];
463
- type RouteMethod = (typeof routeMethods)[number];
461
+ //#region ../alepha/src/server/schemas/errorSchema.d.ts
462
+ declare const errorSchema: alepha59.TObject<{
463
+ error: alepha59.TString;
464
+ status: alepha59.TInteger;
465
+ message: alepha59.TString;
466
+ details: alepha59.TOptional<alepha59.TString>;
467
+ requestId: alepha59.TOptional<alepha59.TString>;
468
+ cause: alepha59.TOptional<alepha59.TObject<{
469
+ name: alepha59.TString;
470
+ message: alepha59.TString;
471
+ }>>;
472
+ }>;
473
+ type ErrorSchema = Static<typeof errorSchema>;
474
+ //#endregion
475
+ //#region ../alepha/src/server/errors/HttpError.d.ts
476
+ declare class HttpError extends AlephaError {
477
+ name: string;
478
+ static is: (error: unknown, status?: number) => error is HttpErrorLike;
479
+ static toJSON(error: HttpError): ErrorSchema;
480
+ readonly error: string;
481
+ readonly status: number;
482
+ readonly requestId?: string;
483
+ readonly details?: string;
484
+ readonly reason?: {
485
+ name: string;
486
+ message: string;
487
+ };
488
+ constructor(options: Partial<ErrorSchema>, cause?: unknown);
489
+ }
490
+ interface HttpErrorLike extends Error {
491
+ status: number;
492
+ }
464
493
  //#endregion
465
494
  //#region ../alepha/src/router/providers/RouterProvider.d.ts
466
495
  declare abstract class RouterProvider<T$1 extends Route = Route> {
@@ -506,6 +535,10 @@ interface Tree<T$1 extends Route> {
506
535
  };
507
536
  }
508
537
  //#endregion
538
+ //#region ../alepha/src/server/constants/routeMethods.d.ts
539
+ declare const routeMethods: readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS", "CONNECT", "TRACE"];
540
+ type RouteMethod = (typeof routeMethods)[number];
541
+ //#endregion
509
542
  //#region ../alepha/src/server/helpers/ServerReply.d.ts
510
543
  /**
511
544
  * Helper for building server replies.
@@ -691,8 +724,8 @@ declare class ServerTimingProvider {
691
724
  prefix: string;
692
725
  disabled: boolean;
693
726
  };
694
- readonly onRequest: alepha59.HookDescriptor<"server:onRequest">;
695
- readonly onResponse: alepha59.HookDescriptor<"server:onResponse">;
727
+ readonly onRequest: alepha59.HookPrimitive<"server:onRequest">;
728
+ readonly onResponse: alepha59.HookPrimitive<"server:onResponse">;
696
729
  protected get handlerName(): string;
697
730
  beginTiming(name: string): void;
698
731
  endTiming(name: string): void;
@@ -756,11 +789,11 @@ declare class ServerProvider {
756
789
  /**
757
790
  * When a Node.js HTTP request is received from outside. (Vercel, AWS Lambda, etc.)
758
791
  */
759
- protected readonly onNodeRequest: alepha59.HookDescriptor<"node:request">;
792
+ protected readonly onNodeRequest: alepha59.HookPrimitive<"node:request">;
760
793
  /**
761
794
  * When a Web (Fetch API) request is received from outside. (Netlify, Cloudflare Workers, etc.)
762
795
  */
763
- protected readonly onWebRequest: alepha59.HookDescriptor<"web:request">;
796
+ protected readonly onWebRequest: alepha59.HookPrimitive<"web:request">;
764
797
  /**
765
798
  * Handle Node.js HTTP request event.
766
799
  *
@@ -820,8 +853,8 @@ declare abstract class CacheProvider {
820
853
  abstract clear(): Promise<void>;
821
854
  }
822
855
  //#endregion
823
- //#region ../alepha/src/cache/descriptors/$cache.d.ts
824
- interface CacheDescriptorOptions<TReturn = any, TParameter extends any[] = any[]> {
856
+ //#region ../alepha/src/cache/primitives/$cache.d.ts
857
+ interface CachePrimitiveOptions<TReturn = any, TParameter extends any[] = any[]> {
825
858
  /**
826
859
  * The cache name. This is useful for invalidating multiple caches at once.
827
860
  *
@@ -856,7 +889,7 @@ interface CacheDescriptorOptions<TReturn = any, TParameter extends any[] = any[]
856
889
  */
857
890
  disabled?: boolean;
858
891
  }
859
- declare class CacheDescriptor<TReturn = any, TParameter extends any[] = any[]> extends Descriptor<CacheDescriptorOptions<TReturn, TParameter>> {
892
+ declare class CachePrimitive<TReturn = any, TParameter extends any[] = any[]> extends Primitive<CachePrimitiveOptions<TReturn, TParameter>> {
860
893
  protected readonly env: {
861
894
  CACHE_ENABLED: boolean;
862
895
  CACHE_DEFAULT_TTL: number;
@@ -880,9 +913,9 @@ declare class CacheDescriptor<TReturn = any, TParameter extends any[] = any[]> e
880
913
  protected deserialize<TReturn>(uint8Array: Uint8Array): Promise<TReturn>;
881
914
  protected $provider(): CacheProvider;
882
915
  }
883
- interface CacheDescriptorFn<TReturn = any, TParameter extends any[] = any[]> extends CacheDescriptor<TReturn, TParameter> {
916
+ interface CachePrimitiveFn<TReturn = any, TParameter extends any[] = any[]> extends CachePrimitive<TReturn, TParameter> {
884
917
  /**
885
- * Run the cache descriptor with the provided arguments.
918
+ * Run the cache primitive with the provided arguments.
886
919
  */
887
920
  (...args: TParameter): Promise<TReturn>;
888
921
  }
@@ -891,7 +924,7 @@ interface CacheDescriptorFn<TReturn = any, TParameter extends any[] = any[]> ext
891
924
  declare class HttpClient {
892
925
  protected readonly log: Logger;
893
926
  protected readonly alepha: Alepha;
894
- readonly cache: CacheDescriptorFn<HttpClientCache, any[]>;
927
+ readonly cache: CachePrimitiveFn<HttpClientCache, any[]>;
895
928
  protected readonly pendingRequests: HttpClientPendingRequests;
896
929
  fetchAction(args: FetchActionArgs): Promise<FetchResponse>;
897
930
  fetch<T$1 extends TSchema>(url: string, request?: RequestInitWithOptions<T$1>): Promise<FetchResponse<Static<T$1>>>;
@@ -959,8 +992,8 @@ interface HttpAction {
959
992
  };
960
993
  }
961
994
  //#endregion
962
- //#region ../alepha/src/server/descriptors/$action.d.ts
963
- interface ActionDescriptorOptions<TConfig extends RequestConfigSchema> extends Omit<ServerRoute, "handler" | "path" | "schema" | "mapParams"> {
995
+ //#region ../alepha/src/server/primitives/$action.d.ts
996
+ interface ActionPrimitiveOptions<TConfig extends RequestConfigSchema> extends Omit<ServerRoute, "handler" | "path" | "schema" | "mapParams"> {
964
997
  /**
965
998
  * Name of the action.
966
999
  *
@@ -1026,7 +1059,7 @@ interface ActionDescriptorOptions<TConfig extends RequestConfigSchema> extends O
1026
1059
  */
1027
1060
  handler: ServerActionHandler<TConfig>;
1028
1061
  }
1029
- declare class ActionDescriptor<TConfig extends RequestConfigSchema> extends Descriptor<ActionDescriptorOptions<TConfig>> {
1062
+ declare class ActionPrimitive<TConfig extends RequestConfigSchema> extends Primitive<ActionPrimitiveOptions<TConfig>> {
1030
1063
  protected readonly log: Logger;
1031
1064
  protected readonly env: {
1032
1065
  SERVER_API_PREFIX: string;
@@ -1094,39 +1127,6 @@ type ServerActionHandler<TConfig extends RequestConfigSchema = RequestConfigSche
1094
1127
  */
1095
1128
  interface ServerActionRequest<TConfig extends RequestConfigSchema> extends ServerRequest<TConfig> {}
1096
1129
  //#endregion
1097
- //#region ../alepha/src/server/schemas/errorSchema.d.ts
1098
- declare const errorSchema: alepha59.TObject<{
1099
- error: alepha59.TString;
1100
- status: alepha59.TInteger;
1101
- message: alepha59.TString;
1102
- details: alepha59.TOptional<alepha59.TString>;
1103
- requestId: alepha59.TOptional<alepha59.TString>;
1104
- cause: alepha59.TOptional<alepha59.TObject<{
1105
- name: alepha59.TString;
1106
- message: alepha59.TString;
1107
- }>>;
1108
- }>;
1109
- type ErrorSchema = Static<typeof errorSchema>;
1110
- //#endregion
1111
- //#region ../alepha/src/server/errors/HttpError.d.ts
1112
- declare class HttpError extends AlephaError {
1113
- name: string;
1114
- static is: (error: unknown, status?: number) => error is HttpErrorLike;
1115
- static toJSON(error: HttpError): ErrorSchema;
1116
- readonly error: string;
1117
- readonly status: number;
1118
- readonly requestId?: string;
1119
- readonly details?: string;
1120
- readonly reason?: {
1121
- name: string;
1122
- message: string;
1123
- };
1124
- constructor(options: Partial<ErrorSchema>, cause?: unknown);
1125
- }
1126
- interface HttpErrorLike extends Error {
1127
- status: number;
1128
- }
1129
- //#endregion
1130
1130
  //#region ../alepha/src/server/providers/BunHttpServerProvider.d.ts
1131
1131
  declare const envSchema$5: alepha59.TObject<{
1132
1132
  SERVER_PORT: alepha59.TInteger;
@@ -1152,12 +1152,12 @@ declare module "alepha" {
1152
1152
  }
1153
1153
  interface Hooks {
1154
1154
  "action:onRequest": {
1155
- action: ActionDescriptor<RequestConfigSchema>;
1155
+ action: ActionPrimitive<RequestConfigSchema>;
1156
1156
  request: ServerRequest;
1157
1157
  options: ClientRequestOptions;
1158
1158
  };
1159
1159
  "action:onResponse": {
1160
- action: ActionDescriptor<RequestConfigSchema>;
1160
+ action: ActionPrimitive<RequestConfigSchema>;
1161
1161
  request: ServerRequest;
1162
1162
  options: ClientRequestOptions;
1163
1163
  response: any;
@@ -1213,7 +1213,7 @@ declare module "alepha/server" {
1213
1213
  */
1214
1214
  cache?: ServerRouteCache;
1215
1215
  }
1216
- interface ActionDescriptor<TConfig extends RequestConfigSchema> {
1216
+ interface ActionPrimitive<TConfig extends RequestConfigSchema> {
1217
1217
  invalidate: () => Promise<void>;
1218
1218
  }
1219
1219
  }
@@ -1232,11 +1232,11 @@ boolean
1232
1232
  /**
1233
1233
  * If true, enables storing cached responses. (in-memory, Redis, @see alepha/cache for other providers)
1234
1234
  * If a DurationLike is provided, it will be used as the TTL for the cache.
1235
- * If CacheDescriptorOptions is provided, it will be used to configure the cache storage.
1235
+ * If CachePrimitiveOptions is provided, it will be used to configure the cache storage.
1236
1236
  *
1237
1237
  * @default false
1238
1238
  */
1239
- store?: true | DurationLike | CacheDescriptorOptions;
1239
+ store?: true | DurationLike | CachePrimitiveOptions;
1240
1240
  /**
1241
1241
  * If true, enables ETag support for the cached responses.
1242
1242
  */
@@ -1322,7 +1322,7 @@ declare const envSchema$3: alepha59.TObject<{
1322
1322
  declare module "alepha" {
1323
1323
  interface Env extends Partial<Static<typeof envSchema$3>> {}
1324
1324
  }
1325
- interface PageRouteEntry extends Omit<PageDescriptorOptions, "children" | "parent"> {
1325
+ interface PageRouteEntry extends Omit<PagePrimitiveOptions, "children" | "parent"> {
1326
1326
  children?: PageRouteEntry[];
1327
1327
  }
1328
1328
  interface PageRoute extends PageRouteEntry {
@@ -1380,19 +1380,19 @@ interface TransitionOptions {
1380
1380
  //#endregion
1381
1381
  //#region ../react/src/core/services/ReactPageService.d.ts
1382
1382
  declare class ReactPageService {
1383
- fetch(pathname: string, options?: PageDescriptorRenderOptions): Promise<{
1383
+ fetch(pathname: string, options?: PagePrimitiveRenderOptions): Promise<{
1384
1384
  html: string;
1385
1385
  response: Response;
1386
1386
  }>;
1387
- render(name: string, options?: PageDescriptorRenderOptions): Promise<PageDescriptorRenderResult>;
1387
+ render(name: string, options?: PagePrimitiveRenderOptions): Promise<PagePrimitiveRenderResult>;
1388
1388
  }
1389
1389
  //#endregion
1390
- //#region ../react/src/core/descriptors/$page.d.ts
1391
- interface PageDescriptorOptions<TConfig extends PageConfigSchema = PageConfigSchema, TProps extends object = TPropsDefault, TPropsParent extends object = TPropsParentDefault> {
1390
+ //#region ../react/src/core/primitives/$page.d.ts
1391
+ interface PagePrimitiveOptions<TConfig extends PageConfigSchema = PageConfigSchema, TProps extends object = TPropsDefault, TPropsParent extends object = TPropsParentDefault> {
1392
1392
  /**
1393
1393
  * Identifier name for the page. Must be unique.
1394
1394
  *
1395
- * @default Descriptor key
1395
+ * @default Primitive key
1396
1396
  */
1397
1397
  name?: string;
1398
1398
  /**
@@ -1444,11 +1444,11 @@ interface PageDescriptorOptions<TConfig extends PageConfigSchema = PageConfigSch
1444
1444
  * Attach child pages to create nested routes.
1445
1445
  * This will make the page a parent route.
1446
1446
  */
1447
- children?: Array<PageDescriptor> | (() => Array<PageDescriptor>);
1447
+ children?: Array<PagePrimitive> | (() => Array<PagePrimitive>);
1448
1448
  /**
1449
1449
  * Define a parent page for nested routing.
1450
1450
  */
1451
- parent?: PageDescriptor<PageConfigSchema, TPropsParent, any>;
1451
+ parent?: PagePrimitive<PageConfigSchema, TPropsParent, any>;
1452
1452
  can?: () => boolean;
1453
1453
  /**
1454
1454
  * Catch any error from the `resolve` function or during `rendering`.
@@ -1558,7 +1558,7 @@ interface PageDescriptorOptions<TConfig extends PageConfigSchema = PageConfigSch
1558
1558
  animation?: PageAnimation;
1559
1559
  }
1560
1560
  type ErrorHandler = (error: Error, state: ReactRouterState) => ReactNode | Redirection | undefined;
1561
- declare class PageDescriptor<TConfig extends PageConfigSchema = PageConfigSchema, TProps extends object = TPropsDefault, TPropsParent extends object = TPropsParentDefault> extends Descriptor<PageDescriptorOptions<TConfig, TProps, TPropsParent>> {
1561
+ declare class PagePrimitive<TConfig extends PageConfigSchema = PageConfigSchema, TProps extends object = TPropsDefault, TPropsParent extends object = TPropsParentDefault> extends Primitive<PagePrimitiveOptions<TConfig, TProps, TPropsParent>> {
1562
1562
  protected readonly reactPageService: ReactPageService;
1563
1563
  protected onInit(): void;
1564
1564
  get name(): string;
@@ -1568,8 +1568,8 @@ declare class PageDescriptor<TConfig extends PageConfigSchema = PageConfigSchema
1568
1568
  * This will render the page (HTML layout included or not) and return the HTML + context.
1569
1569
  * Only valid for server-side rendering, it will throw an error if called on the client-side.
1570
1570
  */
1571
- render(options?: PageDescriptorRenderOptions): Promise<PageDescriptorRenderResult>;
1572
- fetch(options?: PageDescriptorRenderOptions): Promise<{
1571
+ render(options?: PagePrimitiveRenderOptions): Promise<PagePrimitiveRenderResult>;
1572
+ fetch(options?: PagePrimitiveRenderOptions): Promise<{
1573
1573
  html: string;
1574
1574
  response: Response;
1575
1575
  }>;
@@ -1582,7 +1582,7 @@ interface PageConfigSchema {
1582
1582
  }
1583
1583
  type TPropsDefault = any;
1584
1584
  type TPropsParentDefault = {};
1585
- interface PageDescriptorRenderOptions {
1585
+ interface PagePrimitiveRenderOptions {
1586
1586
  params?: Record<string, string>;
1587
1587
  query?: Record<string, string>;
1588
1588
  /**
@@ -1594,7 +1594,7 @@ interface PageDescriptorRenderOptions {
1594
1594
  html?: boolean;
1595
1595
  hydration?: boolean;
1596
1596
  }
1597
- interface PageDescriptorRenderResult {
1597
+ interface PagePrimitiveRenderResult {
1598
1598
  html: string;
1599
1599
  state: ReactRouterState;
1600
1600
  redirect?: string;
@@ -1670,7 +1670,7 @@ declare module "alepha" {
1670
1670
  /**
1671
1671
  * Provides comprehensive authentication and authorization capabilities with JWT tokens, role-based access control, and user management.
1672
1672
  *
1673
- * The security module enables building secure applications using descriptors like `$realm`, `$role`, and `$permission`
1673
+ * The security module enables building secure applications using primitives like `$realm`, `$role`, and `$permission`
1674
1674
  * on class properties. It offers JWT-based authentication, fine-grained permissions, service accounts, and seamless
1675
1675
  * integration with various authentication providers and user management systems.
1676
1676
  *
@@ -1773,7 +1773,7 @@ declare module "alepha" {
1773
1773
  /**
1774
1774
  * Provides server-side link management and remote capabilities for client-server interactions.
1775
1775
  *
1776
- * The server-links module enables declarative link definitions using `$remote` and `$client` descriptors,
1776
+ * The server-links module enables declarative link definitions using `$remote` and `$client` primitives,
1777
1777
  * facilitating seamless API endpoint management and client-server communication. It integrates with server
1778
1778
  * security features to ensure safe and controlled access to resources.
1779
1779
  *
@@ -1983,7 +1983,7 @@ declare module "alepha" {
1983
1983
  /**
1984
1984
  * Provides full-stack React development with declarative routing, server-side rendering, and client-side hydration.
1985
1985
  *
1986
- * The React module enables building modern React applications using the `$page` descriptor on class properties.
1986
+ * The React module enables building modern React applications using the `$page` primitive on class properties.
1987
1987
  * It delivers seamless server-side rendering, automatic code splitting, and client-side navigation with full
1988
1988
  * type safety and schema validation for route parameters and data.
1989
1989
  *
@@ -2080,7 +2080,7 @@ interface ActionCommonProps extends ButtonProps {
2080
2080
  themeIconProps?: ThemeIconProps;
2081
2081
  }
2082
2082
  type ActionProps = ActionCommonProps & (ActionNavigationButtonProps | ActionClickButtonProps | ActionSubmitButtonProps | ActionHookButtonProps | {});
2083
- declare const ActionButton: (_props: ActionProps) => react_jsx_runtime13.JSX.Element;
2083
+ declare const ActionButton: (_props: ActionProps) => react_jsx_runtime11.JSX.Element;
2084
2084
  interface ActionSubmitButtonProps extends ButtonProps {
2085
2085
  form: FormModel<any>;
2086
2086
  type?: "submit" | "reset";
@@ -2103,7 +2103,7 @@ interface ActionNavigationButtonProps extends ButtonProps {
2103
2103
  //#endregion
2104
2104
  //#region src/core/components/buttons/BurgerButton.d.ts
2105
2105
  interface BurgerButtonProps extends BurgerProps {}
2106
- declare const BurgerButton: (props: BurgerButtonProps) => react_jsx_runtime13.JSX.Element;
2106
+ declare const BurgerButton: (props: BurgerButtonProps) => react_jsx_runtime11.JSX.Element;
2107
2107
  //#endregion
2108
2108
  //#region src/core/components/buttons/ClipboardButton.d.ts
2109
2109
  interface ClipboardButtonProps extends Omit<ActionCommonProps, "onClick" | "icon"> {
@@ -2124,7 +2124,7 @@ interface ClipboardButtonProps extends Omit<ActionCommonProps, "onClick" | "icon
2124
2124
  */
2125
2125
  copiedLabel?: string;
2126
2126
  }
2127
- declare const ClipboardButton: (props: ClipboardButtonProps) => react_jsx_runtime13.JSX.Element;
2127
+ declare const ClipboardButton: (props: ClipboardButtonProps) => react_jsx_runtime11.JSX.Element;
2128
2128
  //#endregion
2129
2129
  //#region src/core/components/buttons/DarkModeButton.d.ts
2130
2130
  interface DarkModeButtonProps {
@@ -2135,21 +2135,21 @@ interface DarkModeButtonProps {
2135
2135
  segmentedProps?: Partial<SegmentedControlProps>;
2136
2136
  actionProps?: Partial<ActionProps>;
2137
2137
  }
2138
- declare const DarkModeButton: (props: DarkModeButtonProps) => react_jsx_runtime13.JSX.Element;
2138
+ declare const DarkModeButton: (props: DarkModeButtonProps) => react_jsx_runtime11.JSX.Element;
2139
2139
  //#endregion
2140
2140
  //#region src/core/components/buttons/LanguageButton.d.ts
2141
2141
  interface LanguageButtonProps {
2142
2142
  languages?: string[];
2143
2143
  actionProps?: ActionProps;
2144
2144
  }
2145
- declare const LanguageButton: (props: LanguageButtonProps) => react_jsx_runtime13.JSX.Element;
2145
+ declare const LanguageButton: (props: LanguageButtonProps) => react_jsx_runtime11.JSX.Element;
2146
2146
  //#endregion
2147
2147
  //#region src/core/components/buttons/OmnibarButton.d.ts
2148
2148
  interface OmnibarButtonProps {
2149
2149
  actionProps?: ActionProps;
2150
2150
  collapsed?: boolean;
2151
2151
  }
2152
- declare const OmnibarButton: (props: OmnibarButtonProps) => react_jsx_runtime13.JSX.Element;
2152
+ declare const OmnibarButton: (props: OmnibarButtonProps) => react_jsx_runtime11.JSX.Element;
2153
2153
  //#endregion
2154
2154
  //#region src/core/components/data/JsonViewer.d.ts
2155
2155
  interface JsonViewerProps {
@@ -2165,7 +2165,7 @@ declare const JsonViewer: ({
2165
2165
  maxDepth,
2166
2166
  copyable,
2167
2167
  size
2168
- }: JsonViewerProps) => react_jsx_runtime13.JSX.Element;
2168
+ }: JsonViewerProps) => react_jsx_runtime11.JSX.Element;
2169
2169
  //#endregion
2170
2170
  //#region src/core/services/DialogService.d.ts
2171
2171
  interface BaseDialogOptions extends Partial<ModalProps> {
@@ -2250,19 +2250,19 @@ declare class DialogService {
2250
2250
  declare const AlertDialog: ({
2251
2251
  options,
2252
2252
  onClose
2253
- }: AlertDialogProps) => react_jsx_runtime13.JSX.Element;
2253
+ }: AlertDialogProps) => react_jsx_runtime11.JSX.Element;
2254
2254
  //#endregion
2255
2255
  //#region src/core/components/dialogs/ConfirmDialog.d.ts
2256
2256
  declare const ConfirmDialog: ({
2257
2257
  options,
2258
2258
  onConfirm
2259
- }: ConfirmDialogProps) => react_jsx_runtime13.JSX.Element;
2259
+ }: ConfirmDialogProps) => react_jsx_runtime11.JSX.Element;
2260
2260
  //#endregion
2261
2261
  //#region src/core/components/dialogs/PromptDialog.d.ts
2262
2262
  declare const PromptDialog: ({
2263
2263
  options,
2264
2264
  onSubmit
2265
- }: PromptDialogProps) => react_jsx_runtime13.JSX.Element;
2265
+ }: PromptDialogProps) => react_jsx_runtime11.JSX.Element;
2266
2266
  //#endregion
2267
2267
  //#region src/core/components/form/ControlDate.d.ts
2268
2268
  interface ControlDateProps extends GenericControlProps {
@@ -2280,7 +2280,7 @@ interface ControlDateProps extends GenericControlProps {
2280
2280
  *
2281
2281
  * Automatically detects date formats from schema and renders appropriate picker.
2282
2282
  */
2283
- declare const ControlDate: (props: ControlDateProps) => react_jsx_runtime13.JSX.Element | null;
2283
+ declare const ControlDate: (props: ControlDateProps) => react_jsx_runtime11.JSX.Element | null;
2284
2284
  //#endregion
2285
2285
  //#region src/core/components/form/ControlQueryBuilder.d.ts
2286
2286
  interface ControlQueryBuilderProps extends Omit<TextInputProps, "value" | "onChange"> {
@@ -2299,7 +2299,7 @@ declare const ControlQueryBuilder: ({
2299
2299
  onChange,
2300
2300
  placeholder,
2301
2301
  ...textInputProps
2302
- }: ControlQueryBuilderProps) => react_jsx_runtime13.JSX.Element;
2302
+ }: ControlQueryBuilderProps) => react_jsx_runtime11.JSX.Element;
2303
2303
  //#endregion
2304
2304
  //#region src/core/components/form/TypeForm.d.ts
2305
2305
  interface TypeFormProps<T$1 extends TObject> {
@@ -2345,7 +2345,7 @@ interface TypeFormProps<T$1 extends TObject> {
2345
2345
  * return <TypeForm form={form} columns={2} />;
2346
2346
  * ```
2347
2347
  */
2348
- declare const TypeForm: <T$1 extends TObject>(props: TypeFormProps<T$1>) => react_jsx_runtime13.JSX.Element | null;
2348
+ declare const TypeForm: <T$1 extends TObject>(props: TypeFormProps<T$1>) => react_jsx_runtime11.JSX.Element | null;
2349
2349
  //#endregion
2350
2350
  //#region src/core/components/layout/AppBar.d.ts
2351
2351
  type AppBarItem = AppBarElement | AppBarBurger | AppBarDark | AppBarSearch | AppBarLang | AppBarSpacer | AppBarDivider;
@@ -2384,7 +2384,7 @@ interface AppBarProps {
2384
2384
  flexProps?: FlexProps;
2385
2385
  items?: AppBarItem[];
2386
2386
  }
2387
- declare const AppBar: (props: AppBarProps) => react_jsx_runtime13.JSX.Element;
2387
+ declare const AppBar: (props: AppBarProps) => react_jsx_runtime11.JSX.Element;
2388
2388
  //#endregion
2389
2389
  //#region src/core/components/layout/Sidebar.d.ts
2390
2390
  interface SidebarProps {
@@ -2401,7 +2401,7 @@ interface SidebarProps {
2401
2401
  paths?: string[];
2402
2402
  };
2403
2403
  }
2404
- declare const Sidebar: (props: SidebarProps) => react_jsx_runtime13.JSX.Element;
2404
+ declare const Sidebar: (props: SidebarProps) => react_jsx_runtime11.JSX.Element;
2405
2405
  interface SidebarItemProps {
2406
2406
  item: SidebarMenuItem;
2407
2407
  level: number;
@@ -2488,7 +2488,7 @@ declare module "alepha" {
2488
2488
  "alepha.ui.sidebar.collapsed"?: boolean;
2489
2489
  }
2490
2490
  }
2491
- declare const AdminShell: (props: AdminShellProps) => react_jsx_runtime13.JSX.Element;
2491
+ declare const AdminShell: (props: AdminShellProps) => react_jsx_runtime11.JSX.Element;
2492
2492
  //#endregion
2493
2493
  //#region src/core/components/layout/Omnibar.d.ts
2494
2494
  interface OmnibarProps {
@@ -2496,7 +2496,7 @@ interface OmnibarProps {
2496
2496
  searchPlaceholder?: string;
2497
2497
  nothingFound?: ReactNode;
2498
2498
  }
2499
- declare const Omnibar: (props: OmnibarProps) => react_jsx_runtime13.JSX.Element;
2499
+ declare const Omnibar: (props: OmnibarProps) => react_jsx_runtime11.JSX.Element;
2500
2500
  //#endregion
2501
2501
  //#region src/core/components/layout/AlephaMantineProvider.d.ts
2502
2502
  interface AlephaMantineProviderProps {
@@ -2508,7 +2508,7 @@ interface AlephaMantineProviderProps {
2508
2508
  modals?: ModalsProviderProps;
2509
2509
  omnibar?: OmnibarProps;
2510
2510
  }
2511
- declare const AlephaMantineProvider: (props: AlephaMantineProviderProps) => react_jsx_runtime13.JSX.Element;
2511
+ declare const AlephaMantineProvider: (props: AlephaMantineProviderProps) => react_jsx_runtime11.JSX.Element;
2512
2512
  //#endregion
2513
2513
  //#region src/core/components/table/DataTable.d.ts
2514
2514
  interface DataTableColumnContext<Filters extends TObject> {
@@ -2570,7 +2570,7 @@ interface DataTableProps<T$1 extends object, Filters extends TObject> {
2570
2570
  */
2571
2571
  tableTrProps?: (item: T$1) => TableTrProps;
2572
2572
  }
2573
- declare const DataTable: <T$1 extends object, Filters extends TObject>(props: DataTableProps<T$1, Filters>) => react_jsx_runtime13.JSX.Element;
2573
+ declare const DataTable: <T$1 extends object, Filters extends TObject>(props: DataTableProps<T$1, Filters>) => react_jsx_runtime11.JSX.Element;
2574
2574
  //#endregion
2575
2575
  //#region src/core/constants/ui.d.ts
2576
2576
  declare const ui: {
@@ -2642,7 +2642,7 @@ declare const useToast: () => ToastService;
2642
2642
  //#endregion
2643
2643
  //#region src/core/RootRouter.d.ts
2644
2644
  declare class RootRouter {
2645
- readonly root: PageDescriptor<PageConfigSchema, any, TPropsParentDefault>;
2645
+ readonly root: PagePrimitive<PageConfigSchema, any, TPropsParentDefault>;
2646
2646
  }
2647
2647
  //#endregion
2648
2648
  //#region src/core/utils/extractSchemaFields.d.ts
@@ -2712,7 +2712,7 @@ declare module "typebox" {
2712
2712
  }
2713
2713
  }
2714
2714
  declare module "@alepha/react" {
2715
- interface PageDescriptorOptions {
2715
+ interface PagePrimitiveOptions {
2716
2716
  /**
2717
2717
  * Human-readable title for the page.
2718
2718
  * - for Sidebar navigation
@@ -102,7 +102,10 @@ const Omnibar = (props) => {
102
102
  id: page.name,
103
103
  label: page.label ?? page.name,
104
104
  description: page.description,
105
- onClick: () => router.go(page.name),
105
+ onClick: () => {
106
+ if (page.staticName) return router.go(page.staticName, { params: page.params });
107
+ return router.go(page.name);
108
+ },
106
109
  leftSection: page.icon
107
110
  })), []),
108
111
  shortcut,
@@ -1064,10 +1067,10 @@ var LanguageButton_default = LanguageButton;
1064
1067
  const OmnibarButton = (props) => {
1065
1068
  return /* @__PURE__ */ jsx(ActionButton_default, {
1066
1069
  variant: "default",
1067
- miw: 256,
1068
1070
  onClick: spotlight.open,
1069
1071
  justify: "space-between",
1070
1072
  rightSection: /* @__PURE__ */ jsx(Kbd, {
1073
+ visibleFrom: "sm",
1071
1074
  size: "sm",
1072
1075
  children: "⌘+K"
1073
1076
  }),
@@ -1079,10 +1082,14 @@ const OmnibarButton = (props) => {
1079
1082
  children: [/* @__PURE__ */ jsx(IconSearch, {
1080
1083
  size: 16,
1081
1084
  color: "gray"
1082
- }), /* @__PURE__ */ jsx(Text$1, {
1083
- size: "xs",
1084
- c: "dimmed",
1085
- children: "Search..."
1085
+ }), /* @__PURE__ */ jsx(Flex$1, {
1086
+ visibleFrom: "sm",
1087
+ miw: 192,
1088
+ children: /* @__PURE__ */ jsx(Text$1, {
1089
+ size: "xs",
1090
+ c: "dimmed",
1091
+ children: "Search..."
1092
+ })
1086
1093
  })]
1087
1094
  })
1088
1095
  });