@abpjs/ui 0.1.0 → 0.2.0-next.10

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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _chakra_ui_react from '@chakra-ui/react';
2
2
  import { SystemConfig, SystemContext, LinkProps, HTMLChakraProps, SystemStyleObject, chakra, ButtonProps as ButtonProps$1, IconButtonProps as IconButtonProps$1, TableRowProps, Checkbox, Field as Field$1, NativeSelect, Switch, Alert, BoxProps as BoxProps$1, InputProps, Tooltip as Tooltip$1 } from '@chakra-ui/react';
3
3
  import * as react from 'react';
4
- import { ElementType, AnchorHTMLAttributes, ReactNode, ComponentProps, ComponentType, RefObject, ReactElement } from 'react';
4
+ import { ComponentType, ReactNode, ElementType, AnchorHTMLAttributes, ComponentProps, RefObject, ReactElement } from 'react';
5
5
  import { ThemeProviderProps } from 'next-themes';
6
6
  import { Announcements } from '@dnd-kit/core';
7
7
  import * as _ark_ui_react from '@ark-ui/react';
@@ -85,6 +85,10 @@ interface AbpLabels {
85
85
  sortAscending: string;
86
86
  sortDescending: string;
87
87
  path: string;
88
+ /** A form's field that's required and empty. */
89
+ formRequired: string;
90
+ /** Above a form with wrong fields, `{count}` of them (ICU plural). */
91
+ formFix: string;
88
92
  queryList: QueryListLabels;
89
93
  }
90
94
  /** Strings of QueryableList. {name} placeholders are filled in by the component. */
@@ -189,6 +193,237 @@ declare const defaultQueryListLabels: QueryListLabels;
189
193
  declare const defaultLabels: AbpLabels;
190
194
  declare function useAbpLabels(): AbpLabels;
191
195
 
196
+ /**
197
+ * An answer the server refused, in ABP's error shape (`{ error: { code, message, details, validationErrors } }`), or
198
+ * a problem's title, or the status. Read as JSON whatever the content type says, as file routes answer refusals so.
199
+ */
200
+ declare class AbpApiError extends Error {
201
+ status: number;
202
+ code: string | null;
203
+ details: string | null;
204
+ validationErrors: {
205
+ message: string;
206
+ members?: string[];
207
+ }[];
208
+ /** The error's data, e.g. { start, end } for a query error. */
209
+ data: Record<string, unknown> | null;
210
+ constructor(status: number, code: string | null, message: string, details?: string | null, validationErrors?: {
211
+ message: string;
212
+ members?: string[];
213
+ }[], data?: Record<string, unknown> | null);
214
+ }
215
+ /** The error for a sensitive action that needs the person to confirm who they are again. */
216
+ declare const STEP_UP_REQUIRED = "step_up_required";
217
+ declare function readAbpError(res: Response): Promise<AbpApiError>;
218
+ /** An error as a person reads it. */
219
+ declare function errorText(e: unknown): string;
220
+ declare const isStepUp: (e: unknown) => boolean;
221
+ /** A strong step-up asked of someone with no strong factor yet (AbpGuard 0.7.0): they set one up, then step up. */
222
+ declare const STRONG_FACTOR_REQUIRED = "strong_factor_required";
223
+ /** A refusal the step-up dialog answers: a step-up, or a strong factor to set up first. */
224
+ declare const needsStepUp: (e: unknown) => e is AbpApiError;
225
+
226
+ /**
227
+ * What the server asked for (AbpGuard 0.7.0, ADR 0110 in the application it came from): a step-up at a level, with the
228
+ * person's ways best first, or a strong factor they don't have yet. Older servers send no level: the password level.
229
+ */
230
+ interface StepUpNeed {
231
+ /** `step_up_required`, or `strong_factor_required` when a strong step-up is asked of someone with no strong factor. */
232
+ code: string;
233
+ /** `password` (the password, with a code of a second factor when the person has one) or `strong` (a passkey, or the password and an authenticator code). */
234
+ level: 'password' | 'strong';
235
+ category: string | null;
236
+ /** The person's ways at that level, best first: `passkey`, `app`, `password`, `email`… Empty when the server doesn't say. */
237
+ methods: string[];
238
+ /** An authenticator code alone passes (the operator's setting, AbpGuard's `appCodeAlone`); else it goes with the password. */
239
+ appCodeAlone: boolean;
240
+ }
241
+ /** What asks the person to confirm who they are: true once confirmed (or a strong factor set up), false if they gave up. */
242
+ type StepUpHandler = (need: StepUpNeed) => Promise<boolean>;
243
+ /** The step-up dialog registers itself here (`StepUpDialog`, drawn by `AbpProvider`); null when it goes. */
244
+ declare function setStepUpHandler(next: StepUpHandler | null): void;
245
+ /** The need an error carries: its code, and the level and methods in its data. */
246
+ declare function stepUpNeedOf(code: string, data: Record<string, unknown> | null | undefined): StepUpNeed;
247
+ /**
248
+ * Asks the person to confirm who they are, once however many calls are waiting for it (ADR 0109 amendment). False when
249
+ * nothing is registered to ask with: the call then fails with the server's refusal, as it would without.
250
+ */
251
+ declare function requestStepUp(need?: StepUpNeed): Promise<boolean>;
252
+
253
+ /** What a call sends: its method, a JSON body (or FormData as is), headers, and a way to stop it. */
254
+ interface HostRequestInit {
255
+ method?: string;
256
+ body?: unknown;
257
+ headers?: Record<string, string>;
258
+ signal?: AbortSignal;
259
+ /** The answer as a file (a Blob and the name Content-Disposition gives) rather than JSON. */
260
+ as?: 'json' | 'file';
261
+ /** False: a refusal that asks for a step-up is thrown, not asked (the step-up dialog's own calls). */
262
+ stepUp?: false;
263
+ }
264
+ /** A file the server answered with. */
265
+ interface HostFile {
266
+ blob: Blob;
267
+ name: string | null;
268
+ }
269
+ /**
270
+ * The host's way to call its server (ADR 0109): same origin, with its own session, anti-forgery header, sign-in
271
+ * redirect and step-up. Throws `AbpApiError` for a refusal. The screens call nothing else.
272
+ */
273
+ type HostRequest = <T = unknown>(path: string, init?: HostRequestInit) => Promise<T>;
274
+ interface HostRequestOptions {
275
+ /** The anti-forgery cookie's name and the header it's sent in on every call that changes something. */
276
+ csrf?: {
277
+ cookie: string;
278
+ header: string;
279
+ };
280
+ /** A 401: the host sends the person to sign in. */
281
+ onUnauthorized?: () => void;
282
+ /**
283
+ * A 403 `step_up_required`: the host confirms the person again; true retries the call once. By default the step-up
284
+ * dialog `AbpProvider` draws asks (`requestStepUp`), and without one the call fails as the server answered.
285
+ */
286
+ stepUp?: (need: StepUpNeed) => Promise<boolean>;
287
+ /** More headers on every call (a development user, a tenant). */
288
+ headers?: () => Record<string, string>;
289
+ fetch?: typeof fetch;
290
+ }
291
+ /** A file's name from Content-Disposition, `filename*=UTF-8''…` first. */
292
+ declare function fileNameOf(disposition: string | null): string | null;
293
+ /**
294
+ * A host request for a host that has none of its own: cookies for the session, the anti-forgery cookie echoed in its
295
+ * header, a 401 handed to the host, and one retry after a step-up (the provider's step-up dialog unless `stepUp` is given). A host with its own request passes that instead.
296
+ */
297
+ declare function createHostRequest(options?: HostRequestOptions): HostRequest;
298
+
299
+ /** One server-sent event: its name (`message` when none), its data as JSON, and its id when it has one. */
300
+ type HostEventHandler = (name: string, data: Record<string, unknown>, id: string | null) => void;
301
+ /**
302
+ * The host's way to read a stream of server-sent events (ADR 0109 amendment): resumed from `lastEventId`, stopped by
303
+ * `signal`. Resolves with the last event's id when the stream ends; throws the host's error (a refusal, a 401, a
304
+ * step-up not confirmed) before it starts. Optional: a screen without it asks again every few seconds.
305
+ */
306
+ type HostEvents = (path: string, onEvent: HostEventHandler, options?: {
307
+ lastEventId?: string | null;
308
+ signal?: AbortSignal;
309
+ }) => Promise<string | null>;
310
+ /** Reads a response's server-sent events to its end. */
311
+ declare function readEvents(res: Response, onEvent: HostEventHandler): Promise<void>;
312
+ /** Server-sent events for a host without its own reader: same origin, its headers, a 401 handed back, a step-up (the dialog's by default). */
313
+ declare function createHostEvents(options?: Pick<HostRequestOptions, 'onUnauthorized' | 'stepUp' | 'headers' | 'fetch'>): HostEvents;
314
+
315
+ /** A scope as a host knows it: a project, an org unit. */
316
+ interface HostScope {
317
+ id: string;
318
+ name: string;
319
+ /** Its short code (a project's key), when the host has one. */
320
+ code?: string;
321
+ parentId?: string | null;
322
+ }
323
+ /** One of the site's languages, for names by language. */
324
+ interface HostLanguage {
325
+ code: string;
326
+ name: string;
327
+ direction?: 'ltr' | 'rtl';
328
+ }
329
+ /**
330
+ * What a host gives the screens (ADR 0109 amendment): how to call its server, where each package's API is, how to
331
+ * move, what the person may do, its scopes and people, its languages, its words for any text, and the slots it fills.
332
+ */
333
+ interface AbpHost {
334
+ /** The host's request: same origin, its session, anti-forgery header, sign-in and step-up (`createHostRequest`). */
335
+ request: HostRequest;
336
+ /** The host's reader for server-sent events (`createHostEvents`); without it, a live screen asks again every few seconds. */
337
+ events?: HostEvents;
338
+ /** The person signed in: their account's id, for "you" and for what's theirs. */
339
+ me?: {
340
+ accountId: string;
341
+ };
342
+ /** Each package's base path on this host: `{ ai: '/api/platform/ai', guard: '/api/guard', agent: '/api/agent' }`. */
343
+ paths: Record<string, string>;
344
+ /** Go to an address in the host's router. */
345
+ navigate?: (href: string) => void;
346
+ /** Whether the person may: a right in the package's own terms (`ai.scope.admin`), for one scope when given. */
347
+ can?: (right: string, scopeId?: string) => boolean;
348
+ /** The host's scopes, for pickers and for naming the ids a screen shows. */
349
+ scopes?: {
350
+ search: (text: string) => Promise<HostScope[]>;
351
+ name?: (ids: string[]) => Promise<Record<string, string>>;
352
+ };
353
+ /** People's names for rows that carry only an id. */
354
+ names?: (accountIds: string[]) => Promise<Record<string, string>>;
355
+ /** The site's languages, the first the default. */
356
+ languages?: HostLanguage[];
357
+ /** The host's words for any area's text, by area then language then key: `{ ai: { en: { 'models.title': 'AI models' } } }`. */
358
+ texts?: Record<string, Record<string, Record<string, string>>>;
359
+ /**
360
+ * Whether `AbpProvider` draws the step-up dialog (on `paths.guard`), which `createHostRequest` asks by default. On
361
+ * when the host gives `paths.guard`; false for a host that has its own dialog.
362
+ */
363
+ stepUpDialog?: boolean;
364
+ /** What the host draws in a screen's named places (`guard.account.panels`, `guard.directory.panel`). */
365
+ slots?: Record<string, ComponentType<Record<string, unknown>>>;
366
+ }
367
+ declare function HostProvider({ value, children }: {
368
+ value?: AbpHost;
369
+ children: ReactNode;
370
+ }): react.JSX.Element;
371
+ /** The host, for a screen that needs it; a screen rendered without one says so. */
372
+ declare function useHost(): AbpHost;
373
+ /** The host when there is one: for parts that also work without (a slot that draws nothing). */
374
+ declare function useOptionalHost(): AbpHost | null;
375
+ /**
376
+ * A package's calls on this host: its base path in front of each path. The same function while the area's path stays
377
+ * the same, whatever the host object is; each call goes through the host's current `request`.
378
+ */
379
+ declare function useAreaRequest(area: string): HostRequest;
380
+ interface ApiQuery<T> {
381
+ data: T | undefined;
382
+ error: string | null;
383
+ loading: boolean;
384
+ reload: () => Promise<void>;
385
+ setData: (value: T) => void;
386
+ }
387
+ /** GET a package's path on this host, again when the path changes; null waits. The answer to the latest call wins. */
388
+ declare function useApiQuery<T>(area: string, path: string | null): ApiQuery<T>;
389
+ /** An action's busy state and error: `run` gives what the action returns, or undefined when it failed. */
390
+ declare function useApiAction(): {
391
+ busy: boolean;
392
+ error: string | null;
393
+ setError: react.Dispatch<react.SetStateAction<string | null>>;
394
+ run: <R>(fn: () => Promise<R>) => Promise<R | undefined>;
395
+ };
396
+ /** A file a package's path answers with, saved in the browser under the name the server gives (or the fallback). */
397
+ declare function useApiDownload(area: string): (path: string, init?: HostRequestInit, fallbackName?: string) => Promise<HostFile>;
398
+ /**
399
+ * A package's stream of server-sent events on this host, or null when the host reads none (the screen then asks again
400
+ * every few seconds). Resolves with the last event's id, for resuming.
401
+ */
402
+ declare function useAreaEvents(area: string): ((path: string, onEvent: HostEventHandler, options?: {
403
+ lastEventId?: string | null;
404
+ signal?: AbortSignal;
405
+ }) => Promise<string | null>) | null;
406
+ /** The person signed in, when the host says. */
407
+ declare function useMe(): {
408
+ accountId: string;
409
+ } | null;
410
+ /** Go somewhere in the host's router (a link is `AppLink`). */
411
+ declare function useNavigate(): (href: string) => void;
412
+ /** Whether the person may: false when the host says nothing (the server decides anyway). */
413
+ declare function useCan(): (right: string, scopeId?: string) => boolean;
414
+ /** The site's languages, or none. */
415
+ declare function useHostLanguages(): HostLanguage[];
416
+ /**
417
+ * Names for ids a screen shows (people, scopes): those the server named already stay; the host names the rest, once
418
+ * per set of ids.
419
+ */
420
+ declare function useNames(kind: 'people' | 'scopes', ids: readonly string[]): Record<string, string>;
421
+ /** What the host draws in a screen's named place, given the screen's context; nothing when the host fills none. */
422
+ declare function HostSlot({ name, context }: {
423
+ name: string;
424
+ context?: Record<string, unknown>;
425
+ }): react.JSX.Element | null;
426
+
192
427
  /**
193
428
  * The host's router link (next/link in the shell). Components that render links use it so
194
429
  * navigation stays client-side, without the package importing a router.
@@ -208,6 +443,8 @@ interface AbpProviderProps {
208
443
  children: ReactNode;
209
444
  /** The host's Chakra system (`createAbpSystem` with its prefix and brand); the package's own when not given. */
210
445
  system?: SystemContext;
446
+ /** What the host gives the screens (`@abpjs/ui/ai` and the other areas): its requests, paths, rights and words. */
447
+ host?: AbpHost;
211
448
  /** BCP 47 locale ("en", "ar"). Sets direction for every component, portals included. */
212
449
  locale?: string;
213
450
  /** Translated strings for the components' own text (close, cancel, sort ...). */
@@ -232,7 +469,7 @@ interface AbpProviderProps {
232
469
  *
233
470
  * The host must also set `<html lang dir>` and `suppressHydrationWarning` on <html>.
234
471
  */
235
- declare function AbpProvider({ children, system, locale, labels, linkComponent, defaultColorMode, pluginTexts, productName, timeZone, motion }: AbpProviderProps): react.JSX.Element;
472
+ declare function AbpProvider({ children, system, host, locale, labels, linkComponent, defaultColorMode, pluginTexts, productName, timeZone, motion }: AbpProviderProps): react.JSX.Element;
236
473
 
237
474
  type ColorMode = 'light' | 'dark';
238
475
  /** next-themes, configured the way Chakra v3 expects: a `light`/`dark` class on <html>. */
@@ -273,6 +510,8 @@ declare function PluginTextsProvider({ value, product, children }: {
273
510
  product?: string;
274
511
  children: ReactNode;
275
512
  }): react.JSX.Element;
513
+ /** The product's name in the current language, as the host gives it (`AbpProvider`'s `productName`). */
514
+ declare function useProductName(): string;
276
515
  /**
277
516
  * A plugin's translate function (ADR 0026). The plugin ships its texts as `messages/{language}.json` in its package
278
517
  * and passes the same files here as `bundled`; the shell supplies the site's version (an admin may have translated
@@ -1299,6 +1538,96 @@ declare function findSettingsPage<P extends {
1299
1538
  href: string;
1300
1539
  }>(pages: P[], pathname: string): P | undefined;
1301
1540
 
1541
+ /** A slot's own save, run when the dialog or form holding it saves. */
1542
+ type SlotSave = () => Promise<void> | void;
1543
+ /** What a slot inside a dialog receives to join its Save: it registers its save, and gets a way to take it back. */
1544
+ type RegisterSlotSave = (save: SlotSave) => () => void;
1545
+ /**
1546
+ * One Save for a dialog with slots in it (ADR 0109 amendment): the host's fields inside an area's dialog (a slot) add
1547
+ * their own save through `register`, which the slot gets in its context; when the person saves, the area saves its own
1548
+ * part first, then `run()` runs every slot's save in order. A slot that throws stops the rest, and the dialog shows
1549
+ * the error as it shows its own.
1550
+ */
1551
+ declare function useSlotSaves(): {
1552
+ register: RegisterSlotSave;
1553
+ run: () => Promise<void>;
1554
+ };
1555
+
1556
+ /** Whether what was typed can be a code yet: six digits (spaces between are fine), or a recovery code's ten characters. */
1557
+ declare function looksLikeCode(value: string, recovery: boolean): boolean;
1558
+ /**
1559
+ * Confirms the person before a sensitive action (ADR 0109 amendment, on AbpGuard's step-up): the server answers 403
1560
+ * `step_up_required`, the host's request asks here, and the call is tried again once confirmed.
1561
+ *
1562
+ * - At the password level: the password, and a code of their second factor when they have one (their app, a recovery
1563
+ * code, or one the site sends).
1564
+ * - At the strong level (AbpGuard 0.7.0): a passkey first when they have one, or an authenticator code: alone where the
1565
+ * server says one passes alone (`appCodeAlone`, the operator's setting), else with the password. Where a code passes
1566
+ * alone it's offered at the password level too.
1567
+ * - Asked for a strong step-up with no strong factor (`strong_factor_required`): the password, then setting up a passkey
1568
+ * or the app here (with recovery codes, shown once, for a first factor); the call then asks again, and they confirm
1569
+ * with what they set up.
1570
+ *
1571
+ * Too many wrong passwords end the session (401), which the host's request hands to the host. `AbpProvider` draws it
1572
+ * when the host gives `paths.guard`; a host with its own dialog sets `stepUpDialog: false`.
1573
+ */
1574
+ declare function StepUpDialog(): react.JSX.Element;
1575
+
1576
+ /**
1577
+ * Passkeys in the browser (WebAuthn), in the browser's own JSON both ways, as AbpGuard 0.7.0 speaks it: the options come
1578
+ * as `PublicKeyCredentialCreationOptionsJSON` / `PublicKeyCredentialRequestOptionsJSON`, and the answer goes back as the
1579
+ * credential's `toJSON()`. Browsers without the JSON methods get the same through base64url here.
1580
+ */
1581
+ type Json = Record<string, unknown>;
1582
+ /** Whether this browser can use passkeys at all (a secure page with WebAuthn). */
1583
+ declare function passkeysSupported(): boolean;
1584
+ /** Makes a passkey on this device from the server's creation options; null when the person cancelled. */
1585
+ declare function createPasskey(options: Json, signal?: AbortSignal): Promise<Json | null>;
1586
+ /** Proves a passkey from the server's request options; null when the person cancelled or had none here. */
1587
+ declare function getPasskey(options: Json, signal?: AbortSignal): Promise<Json | null>;
1588
+
1589
+ /**
1590
+ * A text with its values filled, in the subset of ICU message syntax the screens' texts use: `{name}`, plurals
1591
+ * (`{count, plural, =0 {none} one {# item} other {# items}}`, with Arabic's zero, two, few and many) and choices
1592
+ * (`{kind, select, a {…} other {…}}`), nested. No React and no i18n library; a value that's missing stays as `{name}`.
1593
+ */
1594
+ declare function formatMessage(locale: string, pattern: string, values?: Record<string, string | number>): string;
1595
+
1596
+ /** An area's texts in one language: flat keys (`models.title`) to texts in the subset of ICU `formatMessage` reads. */
1597
+ type AreaTexts = Record<string, string>;
1598
+ /**
1599
+ * An area's words (ADR 0109 amendment): its own English and Arabic (and any other language), which a host overrides
1600
+ * key by key through `AbpHost.texts[area]`. The language is the provider's; a key missing in it falls back to its base
1601
+ * language (ar for ar-SA), then English, then the key itself. `{product}` is the host's product name unless `values`
1602
+ * gives one.
1603
+ */
1604
+ declare function createAreaTexts(area: string, bundled: {
1605
+ en: AreaTexts;
1606
+ } & Record<string, AreaTexts>): () => (key: string, values?: Record<string, string | number>) => string;
1607
+
1608
+ interface FormDialogProps {
1609
+ open: boolean;
1610
+ onOpenChange: (open: boolean) => void;
1611
+ title: ReactNode;
1612
+ description?: ReactNode;
1613
+ submitLabel: ReactNode;
1614
+ onSubmit: () => void | Promise<void>;
1615
+ busy?: boolean;
1616
+ error?: string | null;
1617
+ size?: 'sm' | 'md' | 'lg' | 'xl';
1618
+ /** No submit button (the form inside has its own, e.g. a plugin's create view). */
1619
+ hideSubmit?: boolean;
1620
+ /** The submit button is off until what the form needs is filled in. */
1621
+ submitDisabled?: boolean;
1622
+ children: ReactNode;
1623
+ }
1624
+ /**
1625
+ * A dialog holding a form: title, fields, the server's error message, and Cancel / submit. A field left wrong (required
1626
+ * and empty, or not in its shape) is marked when the person leaves it, not while they type; submitting with any wrong
1627
+ * lists them at the top, each a link to its field, and sends nothing.
1628
+ */
1629
+ declare function FormDialog({ open, onOpenChange, title, description, submitLabel, onSubmit, busy, error, size, hideSubmit, submitDisabled, children }: FormDialogProps): react.JSX.Element;
1630
+
1302
1631
  /** A section of a settings area (Administration, a project's settings): the host's own, or one a package or plugin adds. */
1303
1632
  interface SettingsSection {
1304
1633
  key: string;
@@ -2479,4 +2808,4 @@ interface TooltipProps extends Omit<Tooltip$1.RootProps, 'children'> {
2479
2808
  */
2480
2809
  declare const Tooltip: react.ForwardRefExoticComponent<TooltipProps & react.RefAttributes<HTMLDivElement>>;
2481
2810
 
2482
- export { ABP_UI_VERSION, type AbpBrand, type AbpLabels, AbpProvider, type AbpProviderProps, type AbpSystemOptions, AppLink, type AppLinkProps, AppShell, type AppShellBrand, type AppShellNavItem, type AppShellNavSection, type AppShellPlace, type AppShellProps, type AppShellSidebar, type Arrival, ArriveOnChange, type ArriveOnChangeProps, AttentionChip, type AttentionChipProps, type AvatarPerson, AvatarStack, type AvatarStackProps, Bone, type BoneProps, type BreadcrumbItem, Breadcrumbs, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CalendarGrid, type CalendarGridProps, type CalendarItem, type CardDates, CategoryProgress, type CategoryProgressProps, type CelebrateTarget, Chart, type ChartProps, type ChartSeries, CheckboxField, type CheckboxFieldProps, Collapse, type CollapseProps, type ColorMode, ColorModeProvider, ColorModeToggle, type CommandGroup, type CommandItem, CommandPalette, type CommandPaletteProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmOptions, ConfirmProvider, CountBadge, type CountBadgeProps, Counter, type CounterProps, DashboardGrid, type DashboardGridProps, DataTable, type DataTableColumn, type DataTableProps, type DataTableSelection, type DataTableSort, type Direction, DirectionalIcon, DropHint, type DropHintProps, type DropZoneOptions, type DropZoneState, type DroppedFile, EMPTY_VALUE, EmptyState, type EmptyStateProps, FadeIn, type FadeInProps, Field, type FieldProps, FileDropArea, type FileDropAreaProps, FormField, type GridItem, HighlightText, IconButton, type IconButtonProps, IconTile, type IconTileProps, Indicator, type IndicatorProps, InlineAlert, type InlineAlertProps, KanbanBoard, type KanbanBoardProps, type KanbanColumn, type KanbanItem, type KanbanLane, type KanbanMove, type LinkComponent, Loading, type LoadingProps, LoadingState, MotionProvider, type MotionSetting, type MotionState, Nudge, type NudgeProps, PageHeader, type PageHeaderProps, PageTitleProvider, Pagination, type PaginationProps, Panel, type PanelProps, PanelTone, type Particle, PathChips, type PathChipsProps, PersonChip, type PersonChipProps, type PlacedCard, PluginTextsProvider, type Pose, Presence, PresenceItem, type PresenceItemProps, PresenceList, type PresenceListProps, type PresenceProps, Pressable, type PressableProps, PriorityMark, type PriorityMarkProps, type PropertyItem, PropertyList, type PropertyListProps, type QueryConditionJson, type QueryExportFormat, type QueryField, type QueryGroup, type QueryJson, type QueryListLabels, type QueryNodeJson, type QueryRow, type QuerySuggestion, type QuerySuggestions, type QueryValueEditor, QueryableList, type QueryableListError, type QueryableListExport, type QueryableListProps, type QueryableListState, type QueryableListView, type QueueProgress, RecordKey, type RecordKeyProps, Reveal, RevealItem, type RevealItemProps, type RevealProps, SHOWN, type Scale, SearchInput, type SearchInputProps, type SectionMove, SegmentedControl, type SegmentedControlProps, type SegmentedItem, SelectField, type SelectFieldProps, type SelectOption, type SettingsArea, SettingsLayout, type SettingsLayoutProps, type SettingsPage, type SettingsSection, SlideItem, type SlideItemProps, SlideList, type SlideListProps, type SortDirection, type SortableSection, SortableSections, type SortableSectionsProps, type StatusCategory, StatusPill, type StatusPillProps, type StatusTone, Swap, type SwapProps, SwitchField, type SwitchFieldProps, TITLE_SEPARATOR, TextBone, type TextBoneProps, TextSlot, type TextSlotProps, type TimelineCardItem, TimelineCards, type TimelineCardsProps, TimelineChart, type TimelineChartProps, type TimelineItem, type TimelineRow, type TimelineScale, type TitleParts, Toaster, Tooltip, type TooltipProps, UPLOADS_AT_ONCE, type UploadJob, UploadList, type UploadListProps, type UploadRow, type UploadState, abpConfig, arriveCss, asMotionSetting, avatarPalette, basicConditions, boneWidth, burst, compactLayout, compareOrdinal, composeTitle, covers, createAbpSystem, curves, defaultBrand, defaultLabels, defaultQueryListLabels, directionOf, droppedFiles, findSettingsPage, folderOf, foldersFor, formatDateTime, formatNumber, ghostCss, groupKey, heavierFirst, hiddenPose, inSections, durations as motionDurations, notify, pageList, partsOf, pastedName, placeCards, placeItem, priorityLevel, progressOf, refusal, settingsArea, shineCss, springs, staggerDelay, targetOf, toStart, toaster, useAbpLabels, useAbpLocale, useAbpTimeZone, useArriving, useCelebrate, useColorMode, useConfirm, useDropZone, useFilesOverPage, useFormatters, useLinkComponent, useLoading, useMotionSetting, usePageDrop, usePageTitle, usePageTitleParts, usePageTitleSite, usePastedFiles, usePluginTexts, useTokenVar };
2811
+ export { ABP_UI_VERSION, AbpApiError, type AbpBrand, type AbpHost, type AbpLabels, AbpProvider, type AbpProviderProps, type AbpSystemOptions, type ApiQuery, AppLink, type AppLinkProps, AppShell, type AppShellBrand, type AppShellNavItem, type AppShellNavSection, type AppShellPlace, type AppShellProps, type AppShellSidebar, type AreaTexts, type Arrival, ArriveOnChange, type ArriveOnChangeProps, AttentionChip, type AttentionChipProps, type AvatarPerson, AvatarStack, type AvatarStackProps, Bone, type BoneProps, type BreadcrumbItem, Breadcrumbs, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CalendarGrid, type CalendarGridProps, type CalendarItem, type CardDates, CategoryProgress, type CategoryProgressProps, type CelebrateTarget, Chart, type ChartProps, type ChartSeries, CheckboxField, type CheckboxFieldProps, Collapse, type CollapseProps, type ColorMode, ColorModeProvider, ColorModeToggle, type CommandGroup, type CommandItem, CommandPalette, type CommandPaletteProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmOptions, ConfirmProvider, CountBadge, type CountBadgeProps, Counter, type CounterProps, DashboardGrid, type DashboardGridProps, DataTable, type DataTableColumn, type DataTableProps, type DataTableSelection, type DataTableSort, type Direction, DirectionalIcon, DropHint, type DropHintProps, type DropZoneOptions, type DropZoneState, type DroppedFile, EMPTY_VALUE, EmptyState, type EmptyStateProps, FadeIn, type FadeInProps, Field, type FieldProps, FileDropArea, type FileDropAreaProps, FormDialog, type FormDialogProps, FormField, type GridItem, HighlightText, type HostEventHandler, type HostEvents, type HostFile, type HostLanguage, HostProvider, type HostRequest, type HostRequestInit, type HostRequestOptions, type HostScope, HostSlot, IconButton, type IconButtonProps, IconTile, type IconTileProps, Indicator, type IndicatorProps, InlineAlert, type InlineAlertProps, KanbanBoard, type KanbanBoardProps, type KanbanColumn, type KanbanItem, type KanbanLane, type KanbanMove, type LinkComponent, Loading, type LoadingProps, LoadingState, MotionProvider, type MotionSetting, type MotionState, Nudge, type NudgeProps, PageHeader, type PageHeaderProps, PageTitleProvider, Pagination, type PaginationProps, Panel, type PanelProps, PanelTone, type Particle, PathChips, type PathChipsProps, PersonChip, type PersonChipProps, type PlacedCard, PluginTextsProvider, type Pose, Presence, PresenceItem, type PresenceItemProps, PresenceList, type PresenceListProps, type PresenceProps, Pressable, type PressableProps, PriorityMark, type PriorityMarkProps, type PropertyItem, PropertyList, type PropertyListProps, type QueryConditionJson, type QueryExportFormat, type QueryField, type QueryGroup, type QueryJson, type QueryListLabels, type QueryNodeJson, type QueryRow, type QuerySuggestion, type QuerySuggestions, type QueryValueEditor, QueryableList, type QueryableListError, type QueryableListExport, type QueryableListProps, type QueryableListState, type QueryableListView, type QueueProgress, RecordKey, type RecordKeyProps, type RegisterSlotSave, Reveal, RevealItem, type RevealItemProps, type RevealProps, SHOWN, STEP_UP_REQUIRED, STRONG_FACTOR_REQUIRED, type Scale, SearchInput, type SearchInputProps, type SectionMove, SegmentedControl, type SegmentedControlProps, type SegmentedItem, SelectField, type SelectFieldProps, type SelectOption, type SettingsArea, SettingsLayout, type SettingsLayoutProps, type SettingsPage, type SettingsSection, SlideItem, type SlideItemProps, SlideList, type SlideListProps, type SlotSave, type SortDirection, type SortableSection, SortableSections, type SortableSectionsProps, type StatusCategory, StatusPill, type StatusPillProps, type StatusTone, StepUpDialog, type StepUpHandler, type StepUpNeed, Swap, type SwapProps, SwitchField, type SwitchFieldProps, TITLE_SEPARATOR, TextBone, type TextBoneProps, TextSlot, type TextSlotProps, type TimelineCardItem, TimelineCards, type TimelineCardsProps, TimelineChart, type TimelineChartProps, type TimelineItem, type TimelineRow, type TimelineScale, type TitleParts, Toaster, Tooltip, type TooltipProps, UPLOADS_AT_ONCE, type UploadJob, UploadList, type UploadListProps, type UploadRow, type UploadState, abpConfig, arriveCss, asMotionSetting, avatarPalette, basicConditions, boneWidth, burst, compactLayout, compareOrdinal, composeTitle, covers, createAbpSystem, createAreaTexts, createHostEvents, createHostRequest, createPasskey, curves, defaultBrand, defaultLabels, defaultQueryListLabels, directionOf, droppedFiles, errorText, fileNameOf, findSettingsPage, folderOf, foldersFor, formatDateTime, formatMessage, formatNumber, getPasskey, ghostCss, groupKey, heavierFirst, hiddenPose, inSections, isStepUp, looksLikeCode, durations as motionDurations, needsStepUp, notify, pageList, partsOf, passkeysSupported, pastedName, placeCards, placeItem, priorityLevel, progressOf, readAbpError, readEvents, refusal, requestStepUp, setStepUpHandler, settingsArea, shineCss, springs, staggerDelay, stepUpNeedOf, targetOf, toStart, toaster, useAbpLabels, useAbpLocale, useAbpTimeZone, useApiAction, useApiDownload, useApiQuery, useAreaEvents, useAreaRequest, useArriving, useCan, useCelebrate, useColorMode, useConfirm, useDropZone, useFilesOverPage, useFormatters, useHost, useHostLanguages, useLinkComponent, useLoading, useMe, useMotionSetting, useNames, useNavigate, useOptionalHost, usePageDrop, usePageTitle, usePageTitleParts, usePageTitleSite, usePastedFiles, usePluginTexts, useProductName, useSlotSaves, useTokenVar };