@donotdev/core 0.3.2 → 0.3.4

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.
Files changed (51) hide show
  1. package/functions/index.js +19 -19
  2. package/i18n/locales/eager/dndev_ar.json +2 -1
  3. package/i18n/locales/eager/dndev_da.json +2 -1
  4. package/i18n/locales/eager/dndev_de.json +2 -1
  5. package/i18n/locales/eager/dndev_en.json +2 -1
  6. package/i18n/locales/eager/dndev_es.json +2 -1
  7. package/i18n/locales/eager/dndev_fr.json +2 -1
  8. package/i18n/locales/eager/dndev_it.json +2 -1
  9. package/i18n/locales/eager/dndev_ja.json +2 -1
  10. package/i18n/locales/eager/dndev_ko.json +2 -1
  11. package/i18n/locales/eager/dndev_nl.json +2 -1
  12. package/i18n/locales/eager/dndev_pl.json +2 -1
  13. package/i18n/locales/eager/dndev_pt.json +2 -1
  14. package/i18n/locales/eager/dndev_zh.json +2 -1
  15. package/i18n/locales/lazy/auth_ar.json +25 -2
  16. package/i18n/locales/lazy/auth_da.json +28 -2
  17. package/i18n/locales/lazy/auth_de.json +25 -2
  18. package/i18n/locales/lazy/auth_en.json +25 -2
  19. package/i18n/locales/lazy/auth_es.json +25 -2
  20. package/i18n/locales/lazy/auth_fr.json +25 -2
  21. package/i18n/locales/lazy/auth_it.json +25 -2
  22. package/i18n/locales/lazy/auth_ja.json +25 -2
  23. package/i18n/locales/lazy/auth_ko.json +25 -2
  24. package/i18n/locales/lazy/auth_nl.json +28 -2
  25. package/i18n/locales/lazy/auth_pl.json +25 -2
  26. package/i18n/locales/lazy/auth_pt.json +25 -2
  27. package/i18n/locales/lazy/auth_zh.json +25 -2
  28. package/i18n/locales/lazy/crud_ar.json +3 -1
  29. package/i18n/locales/lazy/crud_da.json +3 -1
  30. package/i18n/locales/lazy/crud_de.json +3 -1
  31. package/i18n/locales/lazy/crud_en.json +3 -1
  32. package/i18n/locales/lazy/crud_es.json +3 -1
  33. package/i18n/locales/lazy/crud_fr.json +3 -1
  34. package/i18n/locales/lazy/crud_it.json +3 -1
  35. package/i18n/locales/lazy/crud_ja.json +3 -1
  36. package/i18n/locales/lazy/crud_ko.json +3 -1
  37. package/i18n/locales/lazy/crud_nl.json +3 -1
  38. package/i18n/locales/lazy/crud_pl.json +3 -1
  39. package/i18n/locales/lazy/crud_pt.json +3 -1
  40. package/i18n/locales/lazy/crud_zh.json +3 -1
  41. package/index.d.ts +455 -49
  42. package/index.js +5 -5
  43. package/next/index.d.ts +80 -10
  44. package/next/index.js +259 -216
  45. package/next/runtime.js +2 -2
  46. package/package.json +2 -2
  47. package/server.d.ts +323 -24
  48. package/shared.js +2 -2
  49. package/symbol-index.json +1 -1
  50. package/vite/index.d.ts +65 -1
  51. package/vite/index.js +113 -107
package/index.d.ts CHANGED
@@ -2,14 +2,14 @@ import * as v from 'valibot';
2
2
  import * as react from 'react';
3
3
  import { ComponentType, ReactNode, SVGProps, ReactElement, CSSProperties } from 'react';
4
4
  import { FieldValues } from 'react-hook-form';
5
- import { InitOptions, TFunction, i18n } from 'i18next';
6
- import { useTranslation as useTranslation$1, TransProps } from 'react-i18next';
5
+ import { TFunction, InitOptions, i18n } from 'i18next';
6
+ import { TransProps, useTranslation as useTranslation$1 } from 'react-i18next';
7
7
  import * as zustand from 'zustand';
8
8
  import { StoreApi, StateCreator, UseBoundStore } from 'zustand';
9
9
  import { PersistOptions } from 'zustand/middleware';
10
- import { QueryClient, UseQueryOptions, UseQueryResult, UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
10
+ import { UseMutationOptions, UseQueryOptions, QueryClient, UseMutationResult, UseQueryResult } from '@tanstack/react-query';
11
11
  export { MutationOptions, QueryClient, QueryClientProvider, QueryClientProviderProps, QueryFunction, QueryKey, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, useQueryClient } from '@tanstack/react-query';
12
- import { DISPLAY, BUTTON_VARIANT } from '@donotdev/components';
12
+ import { GridCols, DISPLAY, BUTTON_VARIANT } from '@donotdev/components';
13
13
 
14
14
  /**
15
15
  * @fileoverview AI Constants
@@ -5020,7 +5020,7 @@ interface SEOConfig {
5020
5020
  speculationRules?: boolean;
5021
5021
  /** Emit hreflang alternate links when i18n has 2+ languages (default: true). No-op for monolingual apps. Set to false to disable. */
5022
5022
  hreflang?: boolean;
5023
- /** Auto-generate BreadcrumbList JSON-LD from URL path segments (default: true). Set to false to disable. */
5023
+ /** Auto-generate BreadcrumbList JSON-LD: the site, the page's ancestors (`routeAncestors`: URL prefixes that are pages, PageMeta `parent`) and the page, by page title (default: true). Set to false to disable. */
5024
5024
  breadcrumbSchema?: boolean;
5025
5025
  /** Auto-generate WebSite JSON-LD with SearchAction for sitelinks search box (default: true). Set to false to disable. */
5026
5026
  websiteSchema?: boolean;
@@ -5073,6 +5073,43 @@ interface HeadersConfig {
5073
5073
  /** Cache-Control overrides per path (last wins) */
5074
5074
  cache?: readonly CacheOverride[];
5075
5075
  }
5076
+ /**
5077
+ * One woff2 file of an app-owned font family ({@link LocalFontConfig}).
5078
+ *
5079
+ * @since 0.3.3
5080
+ */
5081
+ interface LocalFontFace {
5082
+ /** woff2 path relative to the app root, e.g. `'src/assets/fonts/brand.woff2'` */
5083
+ file: string;
5084
+ /** A weight (`400`) or a variable font's range (`'300 600'`) */
5085
+ weight: number | `${number} ${number}`;
5086
+ /** Default `'normal'` */
5087
+ style?: 'normal' | 'italic';
5088
+ /**
5089
+ * The face's `unicode-range` (`'U+AC00-D7A3'`): the browser downloads the file only for
5090
+ * characters in it. Omitted: the family's core file, preloaded for the first paint.
5091
+ */
5092
+ unicodeRange?: string;
5093
+ /**
5094
+ * Subset the face covers, matched against the page language
5095
+ * (`LOCALE_TO_FONT_SUBSETS`, e.g. `'latin-ext'` for `pl`): a face with a `unicodeRange`
5096
+ * is preloaded on the pages whose language needs this subset.
5097
+ */
5098
+ subset?: string;
5099
+ }
5100
+ /**
5101
+ * An app-owned font family: its woff2 files, for a family no fontsource package
5102
+ * provides (a custom subset, a licensed brand font). The family is named in the theme
5103
+ * tokens like any other (`--font-sans: Pretendard, 'Pretendard Fallback', sans-serif;`).
5104
+ *
5105
+ * @since 0.3.3
5106
+ */
5107
+ interface LocalFontConfig {
5108
+ /** Picks the system font of the size-matched fallback face: Arial, or Times New Roman for `serif` */
5109
+ category: 'sans-serif' | 'serif';
5110
+ /** The family's files */
5111
+ faces: readonly LocalFontFace[];
5112
+ }
5076
5113
  /**
5077
5114
  * Favicon and PWA configuration
5078
5115
  *
@@ -5313,6 +5350,31 @@ interface AppConfig {
5313
5350
  * @since 0.3.1
5314
5351
  */
5315
5352
  headers?: HeadersConfig;
5353
+ /**
5354
+ * The app's own font files, per family as the theme tokens name it (`src/themes.css`),
5355
+ * for families no package provides. Every other family is resolved by name:
5356
+ * `@fontsource-variable/<slug>`, then `@fontsource/<slug>` in the app's dependencies,
5357
+ * then the families `@donotdev/ui` bundles (Inter, Playfair Display, Space Grotesk,
5358
+ * Roboto, Press Start 2P). The framework ships every family the theme renders text in
5359
+ * (Next and Vite alike): font preloads and inline `@font-face` in the server HTML,
5360
+ * `font-display: optional`, size-matched `'<Family> Fallback'` face, content-hashed
5361
+ * files under `/fonts/` cached immutable. Read at build; the app writes no
5362
+ * `@font-face`, imports no `@fontsource` CSS and uses no `next/font` (each fails the
5363
+ * build).
5364
+ *
5365
+ * @example
5366
+ * ```typescript
5367
+ * fonts: {
5368
+ * Pretendard: {
5369
+ * category: 'sans-serif',
5370
+ * faces: [{ file: 'src/assets/fonts/pretendard.woff2', weight: '300 700' }],
5371
+ * },
5372
+ * }
5373
+ * ```
5374
+ *
5375
+ * @since 0.3.3
5376
+ */
5377
+ fonts?: Readonly<Record<string, LocalFontConfig>>;
5316
5378
  }
5317
5379
  /**
5318
5380
  * Custom store configuration for app-specific stores
@@ -5964,6 +6026,31 @@ interface PageMeta {
5964
6026
  * @since 0.3.2
5965
6027
  */
5966
6028
  entity?: AnyEntity;
6029
+ /**
6030
+ * App path of this page's parent page, for pages whose URL does not name it: the page
6031
+ * at the URL prefix is the parent when it exists (`/routines/:id` → `/routines`); a page
6032
+ * whose URL prefix is no page (`/produits/:slug`, no `/produits` page) names it here.
6033
+ * One ancestor chain reads it (`routeAncestors` in `@donotdev/core`): the visible
6034
+ * breadcrumbs, the BreadcrumbList JSON-LD (every page, entity record pages included)
6035
+ * and the forms' parent path (cancel / after-save navigation).
6036
+ * @description Read statically at build, like `route`: a literal same-app static route
6037
+ * path (`'/catalogue'`: starts with `/`, no `:param`, `*`, query or hash) of an existing
6038
+ * page, never the page itself, without a cycle. The build fails when it is not, and
6039
+ * when the page's URL prefix is itself a page (that page is the parent: drop `parent`).
6040
+ * `'/'` makes the home page the parent (the trail is the home crumb, then this page).
6041
+ *
6042
+ * @example
6043
+ * ```tsx
6044
+ * // src/pages/ProductPage.tsx: /produits/:slug, the catalogue lists the products
6045
+ * export const meta: PageMeta = {
6046
+ * route: '/produits/:slug',
6047
+ * entity: productEntity,
6048
+ * parent: '/catalogue', // Home > Catalogue > <product name>
6049
+ * };
6050
+ * ```
6051
+ * @since 0.3.4
6052
+ */
6053
+ parent?: string;
5967
6054
  /**
5968
6055
  * User-facing category for sidebar/menu grouping
5969
6056
  * @description Groups routes into collapsible sections in navigation. Unlike
@@ -7087,6 +7174,32 @@ interface RemoveCustomClaimsResponse {
7087
7174
  removedClaims: string[];
7088
7175
  remainingClaims: Record<string, any>;
7089
7176
  }
7177
+ /**
7178
+ * One account of the auth backend, as listed for admins (`AuthProvider.listUsers`).
7179
+ * Read from the auth backend itself (Supabase `auth.admin.listUsers`, Firebase Admin
7180
+ * `listUsers`): no copy in an app table. Dates are ISO 8601 strings.
7181
+ *
7182
+ * @since 0.3.3
7183
+ */
7184
+ interface AuthUserSummary {
7185
+ /** Auth user ID (Supabase `auth.users.id`, Firebase `uid`) */
7186
+ id: string;
7187
+ email: string | null;
7188
+ /** When the address was confirmed; null while unconfirmed */
7189
+ emailConfirmedAt: string | null;
7190
+ createdAt: string;
7191
+ /** Last sign-in; null when the user never signed in */
7192
+ lastSignInAt: string | null;
7193
+ displayName: string | null;
7194
+ }
7195
+ /**
7196
+ * Response of the admin-only `listAuthUsers` server function: every account.
7197
+ *
7198
+ * @since 0.3.3
7199
+ */
7200
+ interface ListAuthUsersResponse {
7201
+ users: AuthUserSummary[];
7202
+ }
7090
7203
  /**
7091
7204
  * Function to unsubscribe from auth state changes
7092
7205
  *
@@ -7201,6 +7314,21 @@ interface AuthProvider {
7201
7314
  * signed-in user ignore it.
7202
7315
  */
7203
7316
  sendEmailVerification(email?: string): Promise<void>;
7317
+ /**
7318
+ * Confirm a sign-up address with the code from the confirmation email (one-time
7319
+ * code), instead of the link. Success signs the user in: the provider keeps the
7320
+ * session and fires the auth state change.
7321
+ * Implemented by providers that send sign-up codes (Supabase: `verifyOtp`, type
7322
+ * `signup`); absent otherwise.
7323
+ *
7324
+ * @param email - The address that signed up
7325
+ * @param code - The code typed by the user
7326
+ * @returns The confirmed, signed-in user
7327
+ * @throws DoNotDevError (via `wrapAuthError`) on a wrong / expired code or a rate
7328
+ * limit; the provider's code stays in `details.originalCode`
7329
+ * @since 0.3.3
7330
+ */
7331
+ verifyEmailCode?(email: string, code: string): Promise<AuthUser>;
7204
7332
  sendSignInLinkToEmail(email: string, actionCodeSettings?: {
7205
7333
  url: string;
7206
7334
  handleCodeInApp: boolean;
@@ -7214,6 +7342,17 @@ interface AuthProvider {
7214
7342
  reauthenticateWithPassword(password: string): Promise<void>;
7215
7343
  reauthenticateWithProvider(partnerId: AuthPartnerId, method?: AuthMethod): Promise<void>;
7216
7344
  deleteAccount(password?: string): Promise<void>;
7345
+ /**
7346
+ * List every account of the auth backend (admin apps). The adapter calls its own
7347
+ * admin-only `listAuthUsers` server function (`@donotdev/functions`: Supabase
7348
+ * `createListAuthUsers`, Firebase `listAuthUsers`), which the app deploys; a
7349
+ * non-admin caller is refused by the server. Absent on providers without it.
7350
+ *
7351
+ * @returns All accounts, every page included
7352
+ * @throws DoNotDevError (via `wrapAuthError`) when the call fails or is refused
7353
+ * @since 0.3.3
7354
+ */
7355
+ listUsers?(): Promise<AuthUserSummary[]>;
7217
7356
  /**
7218
7357
  * Set session persistence (remember me) for the next sign-in.
7219
7358
  * Provider-specific: Firebase uses browserLocal/browserSession persistence,
@@ -7333,6 +7472,12 @@ interface AuthAPI {
7333
7472
  verifyPasswordResetCode: (code: string) => Promise<string | null>;
7334
7473
  confirmPasswordReset: (code: string, newPassword: string) => Promise<void>;
7335
7474
  sendEmailVerification: (email?: string) => Promise<void>;
7475
+ /**
7476
+ * Confirm a sign-up address with the emailed code; signs the user in. Throws when
7477
+ * the provider does not implement `AuthProvider.verifyEmailCode`.
7478
+ * @since 0.3.3
7479
+ */
7480
+ verifyEmailCode: (email: string, code: string) => Promise<AuthUser>;
7336
7481
  getEmailVerificationStatus: () => Promise<{
7337
7482
  status: string;
7338
7483
  }>;
@@ -7344,6 +7489,12 @@ interface AuthAPI {
7344
7489
  reauthenticateWithPassword: (password: string) => Promise<void>;
7345
7490
  reauthenticateWithProvider: (partnerId: AuthPartnerId, method?: AuthMethod) => Promise<void>;
7346
7491
  deleteAccount: (password?: string) => Promise<void>;
7492
+ /**
7493
+ * List every auth account (admin apps; the server refuses non-admins). Throws when
7494
+ * the provider does not implement `AuthProvider.listUsers`.
7495
+ * @since 0.3.3
7496
+ */
7497
+ listUsers: () => Promise<AuthUserSummary[]>;
7347
7498
  /** Choose persistent vs session-only for the next sign-in. Throws when unsupported. */
7348
7499
  setRememberMe: (remember: boolean) => Promise<void>;
7349
7500
  /** Whether the provider can honour `setRememberMe` (render the checkbox only then). */
@@ -8228,7 +8379,7 @@ declare function validateStripeBackConfig(config: unknown): {
8228
8379
  } | {
8229
8380
  mode: "automatic";
8230
8381
  };
8231
- taxIdCollection: "optional" | "required" | "disabled";
8382
+ taxIdCollection: "disabled" | "required" | "optional";
8232
8383
  billingAddressCollection: "auto" | "required";
8233
8384
  shipping?: {
8234
8385
  allowedCountries: string[];
@@ -17889,8 +18040,8 @@ declare function clearPartnerCache(): void;
17889
18040
  declare function getPartnerCacheStatus(): {
17890
18041
  authPartnersCached: boolean;
17891
18042
  oauthPartnersCached: boolean;
17892
- authPartners: ("google" | "apple" | "discord" | "emailLink" | "facebook" | "github" | "linkedin" | "microsoft" | "password" | "reddit" | "spotify" | "twitch" | "twitter" | "yahoo")[] | null;
17893
- oauthPartners: ("google" | "discord" | "github" | "linkedin" | "reddit" | "spotify" | "twitch" | "twitter" | "notion" | "slack" | "medium" | "mastodon" | "youtube" | "supabase" | "vercel")[] | null;
18043
+ authPartners: ("password" | "google" | "apple" | "discord" | "emailLink" | "facebook" | "github" | "linkedin" | "microsoft" | "reddit" | "spotify" | "twitch" | "twitter" | "yahoo")[] | null;
18044
+ oauthPartners: ("medium" | "google" | "discord" | "github" | "linkedin" | "reddit" | "spotify" | "twitch" | "twitter" | "notion" | "slack" | "mastodon" | "youtube" | "supabase" | "vercel")[] | null;
17894
18045
  };
17895
18046
  /**
17896
18047
  * Get AuthPartnerId from Firebase provider ID
@@ -19813,6 +19964,60 @@ declare function shouldShowEmailVerification(): boolean;
19813
19964
  */
19814
19965
  declare function isEmailVerificationRequired(user: any): boolean;
19815
19966
 
19967
+ /** Public env var of the Turnstile site key (platform prefix added by `getPlatformEnvVar`). */
19968
+ declare const TURNSTILE_SITE_KEY_ENV = "TURNSTILE_SITE_KEY";
19969
+ /** Cloudflare's script, loaded from this exact URL. */
19970
+ declare const TURNSTILE_SCRIPT_URL = "https://challenges.cloudflare.com/turnstile/v0/api.js";
19971
+ /** Code of a CAPTCHA failure: GoTrue's code for a refused token. */
19972
+ declare const CAPTCHA_FAILED_CODE = "captcha_failed";
19973
+ /** Longest wait for a token before the call fails (covers a visitor ticking the box). */
19974
+ declare const CAPTCHA_TIMEOUT_MS = 60000;
19975
+ /** A mounted Turnstile widget that hands out its tokens. */
19976
+ interface CaptchaWidget {
19977
+ /** The next single-use token (waits for the widget when none is ready) */
19978
+ take: () => Promise<string>;
19979
+ /** Remove the widget (pending `take` calls move to the next widget) */
19980
+ remove: () => void;
19981
+ }
19982
+ /** Options of {@link mountCaptchaWidget}. */
19983
+ interface CaptchaWidgetOptions {
19984
+ /** Widget language: the app's language (ISO 639-1 or language-region; `auto` = browser) */
19985
+ language: string;
19986
+ }
19987
+ /**
19988
+ * An error coded `captcha_failed`.
19989
+ *
19990
+ * @param reason - What failed (kept in the message, for logs)
19991
+ * @returns The error
19992
+ */
19993
+ declare function captchaError(reason: string): Error;
19994
+ /**
19995
+ * The app's Turnstile site key, or `undefined` (CAPTCHA off).
19996
+ *
19997
+ * @returns The site key
19998
+ */
19999
+ declare function getCaptchaSiteKey(): string | undefined;
20000
+ /**
20001
+ * Mount a Turnstile widget in `container` (framework auth forms, just above the submit
20002
+ * button). While mounted, it is the widget {@link getCaptchaToken} takes tokens from
20003
+ * (the most recently mounted one wins). Call `remove` on unmount.
20004
+ *
20005
+ * @param container - Element the widget renders into (no other children)
20006
+ * @param options - Widget language
20007
+ * @returns The widget
20008
+ * @throws Error when the app sets no `TURNSTILE_SITE_KEY`
20009
+ */
20010
+ declare function mountCaptchaWidget(container: HTMLElement, options: CaptchaWidgetOptions): CaptchaWidget;
20011
+ /**
20012
+ * A fresh single-use Turnstile token for one auth call, or `undefined` when the app sets
20013
+ * no `TURNSTILE_SITE_KEY` (CAPTCHA off). Auth providers call it right before each call
20014
+ * the auth server gates.
20015
+ *
20016
+ * @returns The token, or `undefined` without a site key
20017
+ * @throws Error coded `captcha_failed` when no token could be obtained
20018
+ */
20019
+ declare function getCaptchaToken(): Promise<string | undefined>;
20020
+
19816
20021
  /**
19817
20022
  * @fileoverview Adapter Error Utilities
19818
20023
  * @description Utility functions for wrapping errors in adapter implementations.
@@ -20705,12 +20910,68 @@ declare function generateFirestoreRuleCondition(ownership: EntityOwnershipConfig
20705
20910
  */
20706
20911
  declare function maybeTranslate(t: any, value?: string): string;
20707
20912
 
20913
+ /**
20914
+ * A route as the ancestor chain reads it: its path and PageMeta `parent`.
20915
+ *
20916
+ * @version 0.1.0
20917
+ * @since 0.3.4
20918
+ * @author AMBROISE PARK Consulting
20919
+ */
20920
+ interface AncestorRoute {
20921
+ path: string;
20922
+ meta?: {
20923
+ parent?: string;
20924
+ } | null;
20925
+ }
20926
+ /**
20927
+ * Cumulative prefixes of a pathname: `/a/b/c` → `['/a', '/a/b', '/a/b/c']`.
20928
+ *
20929
+ * @param pathname - App path (no language prefix)
20930
+ * @returns One entry per segment, in order
20931
+ *
20932
+ * @version 0.1.0
20933
+ * @since 0.3.4
20934
+ * @author AMBROISE PARK Consulting
20935
+ */
20936
+ declare function getPathPrefixes(pathname: string): string[];
20937
+ /**
20938
+ * The ancestor pages of a URL path, from the top one down to the nearest (home `/`
20939
+ * excluded: every trail starts with it). The parent of a path is:
20940
+ *
20941
+ * 1. its URL prefix (the path minus its last segment) when that prefix is a static route;
20942
+ * 2. else the PageMeta `parent` of the path's route (`matchRoute`), when declared
20943
+ * (`'/'`: home, no ancestor);
20944
+ * 3. else the nearest shorter URL prefix that is a static route;
20945
+ *
20946
+ * then the parent's own parent by the same rule, up to the top. A URL prefix that is no
20947
+ * route is no ancestor (`/fournisseur/abc/reception` → `/fournisseur`). URL prefixes
20948
+ * holding a param value (`/routines/abc`) are never routes: only static paths are.
20949
+ *
20950
+ * @param pathname - URL path without language prefix (`/produits/serum`) or a route path
20951
+ * @param routes - Manifest routes (`routes.mapping`, or the navigation store's routes)
20952
+ * @returns Ancestor routes, top first; empty for a top-level page
20953
+ * @throws {Error} When a declared `parent` is no static route or the chain loops: the
20954
+ * build rejects both (route discovery), so a built app never throws
20955
+ *
20956
+ * @example
20957
+ * routeAncestors('/produits/serum', [
20958
+ * { path: '/catalogue' },
20959
+ * { path: '/produits/:slug', meta: { parent: '/catalogue' } },
20960
+ * ]); // [{ path: '/catalogue' }]
20961
+ *
20962
+ * @version 0.1.0
20963
+ * @since 0.3.4
20964
+ * @author AMBROISE PARK Consulting
20965
+ */
20966
+ declare function routeAncestors<R extends AncestorRoute>(pathname: string, routes: readonly R[]): R[];
20967
+
20708
20968
  /**
20709
20969
  * @fileoverview SEO head tags shared by AutoMetaTags and the Vite prerender
20710
20970
  * @description One source for the `<head>` of a page: the route identity (PageMeta +
20711
20971
  * i18n, {@link routeSeo} / {@link routeHeadTags}), an entity record's identity
20712
20972
  * ({@link recordHeadTags}), the site tags of every page ({@link siteHeadTags}) and the
20713
- * BreadcrumbList JSON-LD ({@link buildBreadcrumbJsonLd}) and the favicon set
20973
+ * BreadcrumbList JSON-LD ({@link buildBreadcrumbJsonLd}, over the page's ancestor chain
20974
+ * `routeAncestors`) and the favicon set
20714
20975
  * ({@link resolveFaviconFiles} / {@link faviconHeadTags}). AutoMetaTags renders these
20715
20976
  * lists in the browser; the Vite build writes the same lists into each prerendered
20716
20977
  * page and embeds them ({@link PRERENDERED_HEAD_ELEMENT_ID}), so the head
@@ -20814,23 +21075,6 @@ declare const SITE_LOGO_PATH = "/logo.svg";
20814
21075
  * @author AMBROISE PARK Consulting
20815
21076
  */
20816
21077
  declare function jsonScriptText(value: unknown): string;
20817
- /**
20818
- * BreadcrumbList JSON-LD of a page from its URL path: the site home, then one item per
20819
- * path segment named like the visible breadcrumb (`Breadcrumbs`: words title-cased),
20820
- * the last one named `lastName` when given (an entity record's title, the label
20821
- * `useRecordBreadcrumb` shows there).
20822
- *
20823
- * @param pathname - Route path without language prefix (`/produits/serum`)
20824
- * @param siteName - Name of the home item
20825
- * @param pageUrl - Absolute public URL of an app path in the page's language
20826
- * @param lastName - Name of the last item (record title); segment label when omitted
20827
- * @returns BreadcrumbList JSON-LD
20828
- *
20829
- * @version 0.1.0
20830
- * @since 0.3.2
20831
- * @author AMBROISE PARK Consulting
20832
- */
20833
- declare function buildBreadcrumbJsonLd(pathname: string, siteName: string, pageUrl: (path: string) => string, lastName?: string): Record<string, unknown>;
20834
21078
  /**
20835
21079
  * Head tags of a record page identity, in order: `<title>`, description, Open Graph
20836
21080
  * (`og:title`, `og:description`, `og:type`, `og:image`), Twitter card
@@ -20988,6 +21232,81 @@ declare function routeTitle(input: {
20988
21232
  title: string;
20989
21233
  pageTitle?: string;
20990
21234
  };
21235
+ /**
21236
+ * A route as the breadcrumb trail reads it: its path and PageMeta (`namespace`, `seo`
21237
+ * for its label, `parent` for the ancestor chain).
21238
+ *
21239
+ * @version 0.1.0
21240
+ * @since 0.3.4
21241
+ * @author AMBROISE PARK Consulting
21242
+ */
21243
+ interface BreadcrumbRoute extends AncestorRoute {
21244
+ meta?: (RouteSeoMeta & {
21245
+ parent?: string;
21246
+ }) | null;
21247
+ }
21248
+ /**
21249
+ * Label of a route in a breadcrumb trail: its own title by the chain of its `<title>`
21250
+ * ({@link routeTitle}: `seo.title`, else its namespace's `title`), else its full title
21251
+ * (`seo.fullTitle`, the namespace's `meta.fullTitle`), else the site name. The rule of the
21252
+ * page labels in llms.txt. Never empty.
21253
+ *
21254
+ * @param route - The route (`meta.namespace`, `meta.seo`)
21255
+ * @param site - Translation function (resolves `<namespace>:title`), site defaults
21256
+ * namespace (`appConfig.seo.defaultNamespace`), site name
21257
+ * @returns The label
21258
+ *
21259
+ * @version 0.1.0
21260
+ * @since 0.3.4
21261
+ * @author AMBROISE PARK Consulting
21262
+ */
21263
+ declare function routeLabel(route: BreadcrumbRoute, site: {
21264
+ t: TFunction;
21265
+ defaultNs: string | null;
21266
+ siteName: string;
21267
+ }): string;
21268
+ /**
21269
+ * Translation namespaces the labels of a URL's trail read: those of its ancestors
21270
+ * ({@link routeAncestors}) and of its own route. A client passes them to
21271
+ * `useTranslation` so lazy page namespaces load (Next inlines every namespace: the
21272
+ * server render and the browser read the same labels).
21273
+ *
21274
+ * @param pathname - URL path without language prefix
21275
+ * @param routes - Manifest routes
21276
+ * @returns Namespaces, deduplicated, in trail order
21277
+ *
21278
+ * @version 0.1.0
21279
+ * @since 0.3.4
21280
+ * @author AMBROISE PARK Consulting
21281
+ */
21282
+ declare function breadcrumbNamespaces(pathname: string, routes: readonly BreadcrumbRoute[]): string[];
21283
+ /**
21284
+ * BreadcrumbList JSON-LD of a page: the site home, its ancestor pages
21285
+ * ({@link routeAncestors}: URL prefixes that are routes, PageMeta `parent`), each named
21286
+ * by its title ({@link routeLabel}, the label the visible breadcrumb shows) at its URL,
21287
+ * then the page itself named `lastName` (an entity record's title, the label
21288
+ * `useRecordBreadcrumb` shows there), else its route's label. A URL prefix that is no
21289
+ * route is no item.
21290
+ *
21291
+ * @param input - URL path without language prefix (`/produits/serum`), manifest routes,
21292
+ * site name (home item), translation function and site defaults namespace (labels),
21293
+ * absolute public URL of an app path in the page's language, record title
21294
+ * @returns BreadcrumbList JSON-LD
21295
+ * @throws {Error} From {@link routeAncestors} on an invalid `parent` (the build rejects it)
21296
+ *
21297
+ * @version 0.2.0
21298
+ * @since 0.3.2
21299
+ * @author AMBROISE PARK Consulting
21300
+ */
21301
+ declare function buildBreadcrumbJsonLd(input: {
21302
+ pathname: string;
21303
+ routes: readonly BreadcrumbRoute[];
21304
+ siteName: string;
21305
+ t: TFunction;
21306
+ defaultNs: string | null;
21307
+ pageUrl: (path: string) => string;
21308
+ lastName?: string;
21309
+ }): Record<string, unknown>;
20991
21310
  /**
20992
21311
  * Page identity of a route (PageMeta + i18n). Title ({@link routeTitle}) priority: `seo.fullTitle`, the page
20993
21312
  * namespace's `meta.fullTitle`, then `seo.title` or the namespace's `title`
@@ -21103,6 +21422,32 @@ declare function resolveFaviconFiles(exists: (path: string) => boolean): Favicon
21103
21422
  * @author AMBROISE PARK Consulting
21104
21423
  */
21105
21424
  declare function faviconHeadTags(set: FaviconSet, config: FaviconConfig): HeadTag[];
21425
+ /**
21426
+ * Key of the framework's inline `@font-face` style (the app's font plan, built at build
21427
+ * time by `@donotdev/core` config `fonts/buildFontPlan.js`): the `id` of the `<style>` the
21428
+ * Vite build writes into `index.html` and every prerendered page, the `href` / `precedence`
21429
+ * React hoists and dedupes on Next (`FontHead`). One style per document.
21430
+ *
21431
+ * @version 0.1.0
21432
+ * @since 0.3.3
21433
+ * @author AMBROISE PARK Consulting
21434
+ */
21435
+ declare const FONT_STYLE_ID = "dndev-fonts";
21436
+ /**
21437
+ * Preload tags of a page's first-paint font files (the font plan's `preloads` for the
21438
+ * page language), in order: `<link rel="preload" as="font" type="font/woff2" crossorigin>`.
21439
+ * `crossorigin` is required even same-origin: fonts are fetched in CORS mode, a preload
21440
+ * without it is not reused. The Vite build writes them into `<head>` before the
21441
+ * stylesheet; Next renders the same preloads through React's `preload()` (`FontHead`).
21442
+ *
21443
+ * @param hrefs - Font file URLs (`/fonts/inter-latin-400-normal.1a2b3c4d.woff2`)
21444
+ * @returns Tags, one per href
21445
+ *
21446
+ * @version 0.1.0
21447
+ * @since 0.3.3
21448
+ * @author AMBROISE PARK Consulting
21449
+ */
21450
+ declare function fontPreloadHeadTags(hrefs: readonly string[]): HeadTag[];
21106
21451
 
21107
21452
  /**
21108
21453
  * @fileoverview PKCE (Proof Key for Code Exchange) utilities
@@ -22473,6 +22818,41 @@ interface DoNotDevStore extends BaseStoreActions, BaseStoreState {
22473
22818
  initialize(data?: Record<string, unknown>): Promise<boolean>;
22474
22819
  cleanup?(): void;
22475
22820
  }
22821
+ /**
22822
+ * Framework persist options added on top of Zustand's `PersistOptions`.
22823
+ *
22824
+ * @since 0.3.1
22825
+ */
22826
+ interface DoNotDevPersistOptions {
22827
+ /**
22828
+ * Keep every tab's store in step: when another tab writes this store's storage
22829
+ * key (the `storage` event, fired in the other same-origin tabs only), this tab
22830
+ * rehydrates from storage (`persist.rehydrate()`). Events arriving before the
22831
+ * store's first completed hydration are ignored (`skipHydration` is respected).
22832
+ * Lifecycle stores keep `_hasHydrated: true` through the sync, and actions keep
22833
+ * their identity (saved JSON holds no functions; the merge keeps current ones).
22834
+ * A rehydration never writes storage, so tabs cannot echo each other.
22835
+ *
22836
+ * Requires a `localStorage`-backed storage (Zustand's default): `sessionStorage`
22837
+ * is per tab, and custom storages (IndexedDB, cookies) fire no `storage` event.
22838
+ * A removal in another tab (`persist.clearStorage()`) leaves this tab's state as it is.
22839
+ * The listener lives as long as the store singleton (the page), like persist's own.
22840
+ *
22841
+ * @example
22842
+ * ```ts
22843
+ * const useCartStore = createDoNotDevStore<CartState>({
22844
+ * name: 'cart',
22845
+ * createStore: (set) => ({ lines: [], add: (line) => set((s) => ({ lines: [...s.lines, line] })) }),
22846
+ * persistOptions: { name: 'cart', syncAcrossTabs: true },
22847
+ * });
22848
+ * // Tab A: useCartStore.getState().add(line) → tab B's useCartStore((s) => s.lines) re-renders.
22849
+ * ```
22850
+ *
22851
+ * @default false
22852
+ * @since 0.3.1
22853
+ */
22854
+ syncAcrossTabs?: boolean;
22855
+ }
22476
22856
  /**
22477
22857
  * Configuration for creating a DoNotDev store
22478
22858
  *
@@ -22493,7 +22873,7 @@ interface DoNotDevStoreConfig<T> {
22493
22873
  *
22494
22874
  * @since 0.0.1
22495
22875
  */
22496
- persistOptions?: Omit<PersistOptions<T & DoNotDevStore, Partial<T & DoNotDevStore>>, 'name'> & {
22876
+ persistOptions?: Omit<PersistOptions<T & DoNotDevStore, Partial<T & DoNotDevStore>>, 'name'> & DoNotDevPersistOptions & {
22497
22877
  /** Storage key name (required) */
22498
22878
  name: string;
22499
22879
  };
@@ -22506,7 +22886,7 @@ interface DomainStoreConfig<T> {
22506
22886
  name: string;
22507
22887
  lifecycle: false;
22508
22888
  createStore: StateCreator<T, [], []>;
22509
- persistOptions?: PersistOptions<T, Partial<T>>;
22889
+ persistOptions?: PersistOptions<T, Partial<T>> & DoNotDevPersistOptions;
22510
22890
  }
22511
22891
  /**
22512
22892
  * Creates a DoNotDev store with framework conventions
@@ -26308,7 +26688,7 @@ interface UseBreathingTimerProps {
26308
26688
  * @author AMBROISE PARK Consulting
26309
26689
  */
26310
26690
  declare function useBreathingTimer({ duration, onComplete, }: UseBreathingTimerProps): {
26311
- status: "active" | "idle" | "complete" | "paused";
26691
+ status: "paused" | "active" | "idle" | "complete";
26312
26692
  timeRemaining: number;
26313
26693
  start: () => void;
26314
26694
  togglePause: () => void;
@@ -26825,41 +27205,67 @@ interface LanguageToggleGroupProps {
26825
27205
  */
26826
27206
  declare const LanguageToggleGroup: ({ languages, orientation, size, showFlags, showNames, className, showLoading, variant, }: LanguageToggleGroupProps) => react.JSX.Element | null;
26827
27207
 
26828
- /** Props for the FAQ accordion section with i18n support. */
26829
- interface FAQSectionProps {
26830
- /** Translation function from useTranslation hook */
26831
- t: TFunction;
26832
- /** Base key prefix for the FAQ items (e.g., 'faqs.items') */
26833
- keyPrefix: string;
26834
- /** Maximum number of FAQ items to check (exclusive, so 50 means indices 0-49) */
26835
- maxIndex?: number;
27208
+ /** One FAQ entry, already translated and rendered by the caller. */
27209
+ interface FAQItem {
27210
+ /** Accordion trigger content, rendered as given */
27211
+ question: ReactNode;
27212
+ /** Accordion panel content, rendered as given */
27213
+ answer: ReactNode;
27214
+ }
27215
+ interface FAQSectionBaseProps {
26836
27216
  /** CSS class name for the container */
26837
27217
  className?: string;
26838
27218
  /** CSS class name for each accordion item */
26839
27219
  itemClassName?: string;
27220
+ /**
27221
+ * Lay the questions out in a responsive grid; passed to the Accordion.
27222
+ * Same type as `Section`'s `gridCols`. Absent = one column.
27223
+ * @example [1, 1, 2, 2] - 1 column on mobile/tablet, 2 on laptop/desktop
27224
+ */
27225
+ gridCols?: GridCols;
26840
27226
  /** ARIA label for the FAQ section */
26841
27227
  'aria-label'?: string;
26842
27228
  }
27229
+ /** Data-driven FAQ: a ready list built by the app. */
27230
+ interface FAQSectionItemsProps extends FAQSectionBaseProps {
27231
+ /** Ready list of translated questions and answers, rendered in order */
27232
+ items: FAQItem[];
27233
+ t?: never;
27234
+ keyPrefix?: never;
27235
+ maxIndex?: never;
27236
+ }
27237
+ /** Static FAQ: items read from translation keys `${keyPrefix}.N.q` / `.a`. */
27238
+ interface FAQSectionKeysProps extends FAQSectionBaseProps {
27239
+ /** Translation function from useTranslation hook */
27240
+ t: TFunction;
27241
+ /** Base key prefix for the FAQ items (e.g., 'faqs.items') */
27242
+ keyPrefix: string;
27243
+ /** Maximum number of FAQ items to check (exclusive, so 50 means indices 0-49) */
27244
+ maxIndex?: number;
27245
+ items?: never;
27246
+ }
27247
+ /** Props for the FAQ accordion section: either `items`, or `t` + `keyPrefix`. */
27248
+ type FAQSectionProps = FAQSectionItemsProps | FAQSectionKeysProps;
26843
27249
  /**
26844
- * FAQSection component for displaying frequently asked questions
26845
- * Handles translations internally using translateObjectArray
27250
+ * FAQSection component for displaying frequently asked questions.
27251
+ * Keys mode builds its items with translateObjectArray; both modes share one render path.
26846
27252
  *
26847
27253
  * @example
26848
- * // Basic usage
27254
+ * // Static FAQ from translation keys
26849
27255
  * const { t } = useTranslation(['faq']);
26850
27256
  * <FAQSection t={t} keyPrefix="faqs.items" maxIndex={30} />
26851
27257
  *
26852
27258
  * @example
26853
- * // With custom styling
27259
+ * // Data-driven FAQ: items built by the app
26854
27260
  * <FAQSection
26855
- * t={t}
26856
- * keyPrefix="faqs.items"
26857
- * maxIndex={30}
26858
- * className="mx-auto" style={{ maxWidth: '56rem' }}
26859
- * aria-label="Frequently Asked Questions"
27261
+ * gridCols={[1, 1, 2, 2]}
27262
+ * items={faq.map(({ question, answer }) => ({
27263
+ * question: <Text as="span" weight="semibold">{question}</Text>,
27264
+ * answer: <Text variant="muted">{answer}</Text>,
27265
+ * }))}
26860
27266
  * />
26861
27267
  */
26862
- declare function FAQSection({ t, keyPrefix, maxIndex, className, 'aria-label': ariaLabel, }: FAQSectionProps): react.JSX.Element | null;
27268
+ declare function FAQSection(props: FAQSectionProps): react.JSX.Element | null;
26863
27269
 
26864
27270
  interface TranslatedTextProps {
26865
27271
  /** Translation key (e.g., 'dashboard.title') */
@@ -27170,5 +27576,5 @@ declare function Flag({ code, className, style, title, }: {
27170
27576
  declare function getFlagCodes(): string[];
27171
27577
  declare function hasFlag(code: string): boolean;
27172
27578
 
27173
- export { AGGREGATE_FILTER_OPERATORS, AGGREGATE_OPERATIONS, AIChatRequestSchema, AIChatResponseSchema, AIMessageSchema, AIProviderConfigSchema, AIToolCallSchema, AIToolDefinitionSchema, AIUsageSchema, AI_ERROR_CODES, AI_MODELS, AI_PROVIDERS, AI_ROLES, AI_TIERS, AI_TOKEN_PRICING, AUTH_COMPUTED_KEYS, AUTH_EVENTS, AUTH_PARTNERS, AUTH_PARTNER_STATE, AUTH_STORE_KEYS, AppConfigContext, AppConfigProvider, AtomicBulkError, AuthHardening, AuthSessionProvider, AuthUserSchema, BACKEND_GENERATED_FIELD_NAMES, BILLING_EVENTS, BILLING_STORE_KEYS, BREAKPOINT_RANGES, BREAKPOINT_THRESHOLDS, BUILTIN_VALUES, BUILT_IN_STATUSES, BaseStorageStrategy, BulkAcrossCycleError, BulkCollisionError, BulkDeleteIdSchema, BulkInsertSchema, BulkNotImplementedError, BulkOutcomeFailureSchema, BulkOutcomeSchema, BulkRequestSchema, BulkResponseSchema, BulkUpdateSchema, COMMON_TIER_CONFIGS, CONFIDENCE_LEVELS, CONSENT_CATEGORY, CONSENT_LEVELS, CONTEXTS, COUNTRIES, CRUD_OPERATORS, CURRENCY_MAP, CUSTOM_STATUS, CanvasBlockSchema, CanvasEventSchema, CanvasLifetimeSchema, CanvasWidgetMetadataSchema, CheckoutLineItemInputSchema, CheckoutSessionMetadataSchema, ClaimsCache, ConditionBuilder, CreateCheckoutSessionRequestSchema, CreateCheckoutSessionResponseSchema, CustomClaimsSchema, DEFAULT_AI_CONFIG, DEFAULT_AI_MARKUP, DEFAULT_CRUD_TIMEOUT, DEFAULT_ENTITY_ACCESS, DEFAULT_ERROR_MESSAGES, DEFAULT_LAYOUT_PRESET, DEFAULT_OG_IMAGE, DEFAULT_STATUS, DEFAULT_STATUS_OPTIONS, DEFAULT_STATUS_VALUE, DEFAULT_SUBSCRIPTION, DEFAULT_UPLOAD_TIMEOUT, DEGRADED_AI_API, DEGRADED_AUTH_API, DEGRADED_BILLING_API, DEGRADED_CRUD_API, DEGRADED_OAUTH_API, DENSITY, DoNotDevError, EDITABLE, EMAIL_ERROR_CODES, EMAIL_PROVIDERS, EMAIL_VERIFICATION_STATUS, ENTITY_HOOK_ERRORS, ENVIRONMENTS, ERROR_CODES, ERROR_SEVERITY, ERROR_SOURCE, EntityHookError, EventEmitter, FAQSection, FAVICON_DEFAULTS, FEATURES, FEATURE_CONSENT_MATRIX, FEATURE_STATUS, FIELD_TEXT_FORMATTERS, FIELD_TYPES, FIREBASE_ERROR_MAP, FOOTER_MODE, FRAMEWORK_FEATURES, Flag, GITHUB_PERMISSION_LEVELS, HIDDEN_STATUSES, HybridStorageStrategy, LANGUAGES, LANGUAGE_COOKIE, LAYOUT_PRESET, LIST_SCHEMA_TYPE, LanguageFAB, LanguageNavigationProvider, LanguageSelector, LanguageToggleGroup, LocalStorageStrategy, MAX_CHECKOUT_LINE_ITEMS, MAX_SHIPPING_RATE_IDS, OAUTH_EVENTS, OAUTH_PARTNERS, OAUTH_STORE_KEYS, ORDER_DIRECTION, PARTNER_ICONS, PAYLOAD_EVENTS, PERMISSIONS, PLATFORMS, PRERENDERED_HEAD_ELEMENT_ID, PWA_ASSET_TYPES, PWA_DISPLAY_MODES, ProductDeclarationSchema, ProductDeclarationsSchema, ProxiedImageUrlSchema, QueryProviders, REMOVED_STATUS, ROUTE_SOURCES, RequestLanguageProvider, SESSION_RENDER_SEGMENT, SITE_LOGO_PATH, STATUS_MATRIX, STORAGE_SCOPES, STORAGE_TYPES, STRIPE_EVENTS, STRIPE_MODES, SUBSCRIPTION_DURATIONS, SUBSCRIPTION_STATUS, SUBSCRIPTION_TIERS, SendEmailRequestSchema, SendEmailResponseSchema, SingletonManager, StorageManager, StripeBackConfigSchema, StripeFrontConfigSchema, StripeOrderBackSchema, StripeOrderShippingSchema, StripeOrderTaxSchema, StripePaymentSchema, StripeSubscriptionSchema, SubscriptionClaimsSchema, SubscriptionDataSchema, TECHNICAL_FIELD_NAMES, TRANSLATABLE_FIELD_TYPES, TRANS_TAGS, TokenManager, Trans, TranslatedText, USER_ROLES, UserSubscriptionSchema, VISIBILITY, VerifyOrderCheckoutRequestSchema, VerifyOrderCheckoutResultSchema, ViewportHandler, WebhookEventSchema, applyFirstVisitLanguage, applyTheme, areFeaturesAvailable, assertWrite, baseFields, buildBreadcrumbJsonLd, buildProductJsonLd, buildRoutePath, canRedirectExternally, captureError, captureErrorToSentry, captureMessage, checkGitHubAccessSchema, cleanupSentry, clearFeatureCache, clearGlobalSingleton, clearLocalStorage, clearPartnerCache, clearScopeProviders, commonErrorCodeMappings, compactToISOString, configureProviders, cooldown, createAsyncSingleton, createDefaultSubscriptionClaims, createDefaultUserProfile, createDoNotDevStore, createEntitySchema, createErrorHandler, createMetadata, createMethodProxy, createSchemas, createSingleton, createSingletonWithParams, createStatus, createViewportHandler, debounce, debugPlatformDetection, decryptData, defineEntity, delay, deleteCookie, deleteEntitySchema, deriveEntitySeo, describeEntity, describeField, detectBrowser, detectBulkCollisions, detectErrorSource, detectFeatures, detectPlatform, detectPlatformInfo, detectStorageError, disconnectOAuthSchema, encryptData, enhanceSchema, ensureSpreadable, evaluateCondition, evaluateFieldConditions, exchangeTokenSchema, extractRoutePath, faviconHeadTags, filterNavigationRoutes, filterVisibleFields, formatCookieList, formatCurrency, formatDate, formatFieldText, formatRelativeTime, formatTrailingSlash, generateCodeChallenge, generateCodeVerifier, generateCompatibilityReport, generateEncryptionKey, generateFirestoreRuleCondition, generatePKCEPair, generateUUID, getActiveCookies, getAppShortName, getAssetsConfig, getAuthDomain, getAuthMethod, getAuthPartnerConfig, getAuthPartnerIdByFirebaseId, getAvailableFeatures, getAvailableThemeNames, getAvailableThemes, getBreakpointFromWidth, getBreakpointUtils, getBrowserRecommendations, getCollectionName, getConditionDependencies, getConfigSection, getConfigSource, getConnectionsSchema, getCookie, getCookieExamples, getCookiesByCategory, getCountries, getCurrencyLocale, getCurrencySymbol, getCurrentOrigin, getCurrentTimestamp, getDndevConfig, getEnabledAuthPartners, getEnabledOAuthPartners, getEncryptionKey, getEntityByCollection, getEntitySchema, getFeatureSummary, getFlagCodes, getGlobalSingleton, getI18nConfig, getI18nInstance, getLanguageRouting, getListCardFieldNames, getLocalStorageItem, getNextEnvVar, getOAuthClientId, getOAuthPartnerConfig, getOAuthRedirectUri, getOAuthRedirectUrl, getPartnerCacheStatus, getPartnerConfig, getPlatformEnvVar, getProvider, getProviderColor, getQueryClient, getRegisteredScopeProviders, getRequestLanguage, getRoleFromClaims, getRouteManifest, getRouteSource, getRoutes, getRoutesConfig, getSchemaType, getScopeValue, getSmartDefaults, getStorageManager, getSupportedLanguages, getThemeInfo, getThemesConfig, getTokenManager, getTranslatedFieldNames, getUrlLanguage, getValidAuthPartnerConfig, getValidAuthPartnerIds, getValidOAuthPartnerConfig, getValidOAuthPartnerIds, getVisibleFields, getVisibleItems, getViteEnvVar, getWeekFromISOString, getWidget, githubPermissionSchema, githubRepoConfigSchema, globalEmitter, grantGitHubAccessSchema, handleError, hasFlag, hasMetadata, hasOptionalCookies, hasProvider, hasRestrictedVisibility, hasRoleAccess, hasScopeProvider, hasTierAccess, hiddenStatusesFor, i18nFieldName, initSentry, initializeConfig, initializePlatformDetection, isAuthPartnerEnabled, isAuthPartnerId, isBackendGeneratedField, isBreakpoint, isClient, isCompactDateString, isConfigAvailable, isCookieNoticeRequired, isDev, isDoNotDevStore, isElementInViewport, isEmailVerificationRequired, isEmptyFieldValue, isExpo, isFeatureAvailable, isFieldVisible, isFrameworkField, isIntersectionObserverSupported, isLocalStorageAvailable, isMultilingual, isNextJs, isOAuthPartnerEnabled, isOAuthPartnerId, isPKCESupported, isPlatform, isReactNative, isReadableBy, isServer, isTest, isValidTheme, isVite, isoToCompactString, jsonScriptText, languageUrl, languageUrls, lazyImport, listEntitiesSchema, listWidgets, localizePath, mapToDoNotDevError, matchRoute, maybeTranslate, normalizeToISOString, observeElement, onQueryCacheIdentityChange, overrideFeatures, overridePaymentModes, overridePermissions, overrideSubscriptionStatus, overrideSubscriptionTiers, overrideUserRoles, parseAcceptLanguage, parseBlogFrontmatter, parseDate, parseDateToNoonUTC, prepareCreate, prepareRemove, prepareUpdate, publicPathname, rangeOptions, readCookieValue, readI18nSeoMeta, recordHeadTags, redirectToExternalUrl, redirectToExternalUrlWithErrorHandling, refreshTokenSchema, registerScopeProvider, registerUniqueConstraintValidator, registerWidget, removeLocalStorageItem, resetProviders, resolveAppConfig, resolveAuthConfig, resolveFaviconFiles, resolveFieldValue, resolveLanguage, resolveLanguageRoute, resolvePageMeta, resolveSeoField, resolveUserSubscription, revokeGitHubAccessSchema, robotsContent, routeHeadTags, routeSeo, routeTitle, safeLocalStorage, safeSessionStorage, safeValidate, sanitizeHref, setCookie, setLocalStorageItem, shouldShowEmailVerification, showNotification, siteHeadTags, splitLanguagePath, statusCan, statusOf, statusReadableBy, statusesThat, stripHtmlTags, stripTrailingSlash, supportsFeature, syncQueryCacheIdentity, throttle, timestampToISOString, timingUtils, toDateOnly, toISOString, translateArray, translateArrayRange, translateArrayWithIndices, translateEntityLabel, translateObjectArray, translateRow, unregisterScopeProvider, updateCheck, updateEntitySchema, updateMetadata, updateNeedsStored, useAbortControllerStore, useAnalyticsConsent, useAppConfig, useAuthConfig, useAuthSessionSnapshot, useBreakpoint, useBreathingTimer, useClickOutside, useConsent, useConsentReady, useConsentStore, useDebounce, useEventListener, useFaviconConfig, useFeatureConsent, useFeaturesConfig, useFunctionalConsent, useHasConsented, useI18nReady, useIntersectionObserver, useIsClient, useLanguage, useLanguageNavigate, useLanguageReady, useLanguageSelector, useLanguageStore, useLayout, useLocalStorage, useMarketingConsent, useMutation, useNavigationStore, useNetwork, useNetworkConnectionType, useNetworkOnline, useNetworkStatus, useNetworkStore, useOverlay, useOverlayStore, useQuery, useSafeContext, useScriptLoader, useSeoConfig, useStorageManager, useTheme, useThemeReady, useThemeStore, useTranslation, useViewportVisibility, validateAIChatRequest, validateAIChatResponse, validateAuthPartners, validateAuthSchemas, validateAuthUser, validateBillingSchemas, validateBlock, validateBulkOutcome, validateCheckoutSessionMetadata, validateCodeChallenge, validateCodeVerifier, validateCreateCheckoutSessionRequest, validateCreateCheckoutSessionResponse, validateCustomClaims, validateDates, validateDocument, validateEvent, validateOAuthPartners, validateSendEmailRequest, validateSendEmailResponse, validateStripeBackConfig, validateStripeFrontConfig, validateSubscriptionClaims, validateSubscriptionData, validateUniqueFields, validateUserSubscription, validateVerifyOrderCheckoutRequest, validateVerifyOrderCheckoutResult, validateWebhookEvent, validateWithSchema, when, withErrorHandling, withGracefulDegradation, withTimeout, wrapAuthError, wrapCrudError, wrapStorageError };
27174
- export type { AIAPI, AIChatRequest, AIChatResponse, AIConfig, AICostConfig, AICostEvent, AICostRecord, AICostResult, AIErrorCode, AIMessage, AIModelPricing, AIProvider, AIProviderConfig, AIRateLimitConfig, AIRouteConfig, AITierId, AIToolCall, AIToolDefinition, AIToolParameter, AIUsage, AccountLinkResult, AccountLinkingInfo, AdminCheckHookResult, AdminClaims, AggregateConfig, AggregateFilterOperator, AggregateOperation, AggregateRequest, AggregateResponse, AnyEntity, AnyFieldValue, AnyValibotSchema, AnyValueSchema, ApiResponse, AppConfig, AppConfigProviderProps, AppCookieCategories, AppMetadata, AppProvidersProps, AssetsPluginConfig, AtomicBulkExecutionPlan, AtomicBulkOutcome, AttemptRecord, AuditEvent, AuditEventType, AuthAPI, AuthActions, AuthConfig, AuthContextValue, AuthCoreHookResult, AuthError, AuthEventData, AuthEventKey, AuthEventName, AuthHardeningConfig, AuthHardeningContext, AuthMethod, AuthPartner, AuthPartnerHookResult, AuthPartnerId, AuthPartnerResult, AuthPartnerState, AuthProvider, AuthProviderProps, AuthRedirectHookResult, AuthRedirectOperation, AuthRedirectOptions, AuthResult, AuthSessionSnapshot, AuthState, AuthStateStore, AuthStatus, AuthTokenHookResult, AuthUser, AuthUserLike, BackendGeneratedField, BaseActions, BaseCredentials, BaseDocument, BaseEntityFields, BasePartnerState, BaseState, BaseStoreActions, BaseStoreState, BaseUserProfile, BasicUserInfo, BeforeCheckoutHook, BeforeCheckoutOptions, BeforeCheckoutResult, BillingAPI, BillingAdapter, BillingAuthProvider, BillingErrorCode, BillingEvent, BillingEventData, BillingEventKey, BillingEventName, BillingProvider, BillingProviderConfig, BillingRedirectOperation, Breakpoint, BreakpointAPI, BreakpointUtils, BrowserEngine, BrowserInfo, BrowserType, BuiltInFieldType, BuiltInStatus, BuiltinValue, BuiltinValueOf, BulkAcrossBatch, BulkAcrossOptions, BulkAcrossResult, BulkCollisionReport, BulkFailure, BulkOperations, BulkRequest, BulkResponse, BulkResult, BusinessEntity, CacheOverride, CachedError, CanAPI, CanvasBlock, CanvasCallerAccess, CanvasEvent, CanvasLifetime, CanvasSurface, CanvasWidgetMetadata, CanvasWidgetProps, CheckGitHubAccessRequest, CheckoutAddress, CheckoutLineItemInput, CheckoutMode, CheckoutOptions, CheckoutSessionMetadata, CheckoutSessionParams, CheckoutSessionResult, CheckoutSessionSnapshot, Claims, ClaimsCacheOptions, ClaimsCacheResult, CleanupFunction, CollectionSubscriptionCallback, ColumnDef, CommonSubscriptionFeatures, CommonTranslations, CompatibilityReport, ConditionBuilderLike, ConditionExpression, ConditionGroup, ConditionInput, ConditionNode, ConditionOperator, ConditionResult, ConditionalBehavior, ConfidenceLevel, ConnectOptions, ConsentAPI, ConsentActions, ConsentCategory, ConsentLevel, ConsentState, Context, CookieInfo, CookieOptions, CountryData, CreateCheckoutSessionRequest, CreateCheckoutSessionRequestInput, CreateCheckoutSessionResponse, CreateEntityData, CreateEntityRequest, CreateEntityResponse, CreateInput, CreateSchemas, CrudAPI, CrudCardProps, CrudConfig, CrudCreateInput, CrudDocQuery, CrudListQuery, CrudOperationOptions, CrudOperator, CspDirective, CurrencyEntry, CustomClaims, CustomFieldOptionsMap, CustomStoreConfig, DateFormatOptions, DateFormatPreset, DateValue, DefinedEntity, DefinedEntityAccess, DefinedEntityFields, DeleteEntityRequest, DeleteEntityResponse, Density, DescribeEntity, DescribeField, DescribeFields, DnDevOverride, DnDevWrapper, DndevFrameworkConfig, DndevProviders, DndevStoreApi, DoNotDevCookieCategories, DoNotDevStore, DoNotDevStoreConfig, DoNotDevStoreState, DoNotDevTransProps, DocumentSubscriptionCallback, DomainStoreConfig, DraftInput, DynamicFormRule, Editable, EditableForCheck, EditableForOf, EffectiveConnectionType, EmailConfig, EmailErrorCode, EmailProvider, EmailRouteConfig, EmailTemplate, EmailTemplateRegistry, EmailVerificationHookResult, EmailVerificationStatus, Entity, EntityAccessConfig, EntityAccessDefaults, EntityBrowseBaseProps, EntityCardListProps, EntityDescriptor, EntityDisplayRendererProps, EntityExtension, EntityExtensions, EntityField, EntityFieldMapDefault, EntityFormDefaultValues, EntityFormRendererProps, EntityHookErrors, EntityListExtraColumn, EntityListParent, EntityListProps, EntityMetadata, EntityOwnershipConfig, EntityOwnershipPublicCondition, EntityRecommendationsProps, EntityRecord, EntityRowFromFields, EntitySeo, EntitySeoConfig, EntitySeoOptions, EntitySeoRecord, EntityTemplateProps, EntityTranslations, EnvironmentMode, ErrorCode, ErrorHandlerConfig, ErrorHandlerFunction, ErrorSeverity, ErrorSource, EventListener, ExchangeTokenParams, ExchangeTokenRequest, ExchangeTokenResponse, ExtensionFormValues, FAQSectionProps, FaviconConfig, FaviconSet, Feature, FeatureAccessHookResult, FeatureAvailability, FeatureConsentRequirement, FeatureHookResult, FeatureId, FeatureName, FeatureStatus, FeatureSupport, FeaturesConfig, FeaturesPluginConfig, FeaturesRequiringAnyConsent, FeaturesRequiringConsent, FeaturesWithoutConsent, FieldCondition, FieldDescriptor, FieldFilterConfig, FieldInputOf, FieldKindOf, FieldOperation, FieldRequirement, FieldRequirementOf, FieldTextFormatter, FieldTextOptions, FieldTextTranslate, FieldType, FieldTypeToKind, FieldTypeToValue, FieldValue, FieldValueOf, FieldWriteClass, FieldWriteClassOf, FileAsset, FilterVisibleFieldsOptions, FirebaseCallOptions, FirebaseConfig, FirestoreTimestamp, FirestoreUniqueConstraintValidator, FooterConfig, FooterMode, FooterZoneConfig, FormConfig, FormStep, FormValues, FrameworkFeature, FunctionCallConfig, FunctionCallContext, FunctionCallOptions, FunctionCallResult, FunctionClient, FunctionClientFactoryOptions, FunctionDefaults, FunctionEndpoint, FunctionError, FunctionLoader, FunctionMemory, FunctionMeta, FunctionPlatform, FunctionResponse, FunctionSchema, FunctionSchemas, FunctionSystem, FunctionTrigger, FunctionsConfig, GetCustomClaimsResponse, GetEntityData, GetEntityRequest, GetEntityResponse, GetUserAuthStatusResponse, GetVisibleFieldsOptions, GitHubPermission, GitHubRepoConfig, GrantGitHubAccessRequest, GroupByDefinition, HandleErrorOptions, HeadTag, HeaderZoneConfig, HeadersConfig, HiddenStatus, I18nConfig, I18nPluginConfig, I18nProviderProps, I18nSeoMeta, ICallableProvider, ICrudAdapter, ID, INetworkManager, IServerAuthAdapter, IStorageAdapter, IStorageManager, IStorageStrategy, InferEntityRow, IntersectionObserverCallback, IntersectionObserverOptions, Invoice, InvoiceItem, LanguageAPI, LanguageData, LanguageFABFormat, LanguageFABProps, LanguageInfo$1 as LanguageInfo, LanguageNavigate, LanguagePath, LanguageRouteDecision, LanguageRouting, LanguageSelectorProps, LanguageToggleGroupProps, LayoutAPI, LayoutConfig, LayoutPreset, LegalCompanyInfo, LegalConfig, LegalContactInfo, LegalDirectorInfo, LegalHostingInfo, LegalJurisdictionInfo, LegalSectionsConfig, LegalWebsiteInfo, ListCardLayout, ListEntitiesRequest, ListEntitiesResponse, ListEntityData, ListOptions, ListResponse, ListSchemaType, LoadingActions, LoadingState, LockoutResult, MergedBarConfig, MergedEntityFieldMap, MetricDefinition, MobileBehaviorConfig, ModalActions, ModalState, MutableMergedEntityFieldMap, MutationResponse, NavigationRoute, NetworkCheckConfig, NetworkConnectionType, NetworkReconnectCallback, NetworkState$1 as NetworkState, NetworkStatus, NetworkStatusHookResult, OAuthAPI, OAuthApiRequestOptions, OAuthCallbackHookResult, OAuthConnection, OAuthConnectionInfo, OAuthConnectionRequest, OAuthConnectionStatus, OAuthCredentials, OAuthEventData, OAuthEventKey, OAuthEventName, OAuthPartner, OAuthPartnerHookResult, OAuthPartnerId, OAuthPartnerResult, OAuthPartnerState, OAuthPurpose, OAuthRedirectOperation, OAuthRefreshRequest, OAuthRefreshResponse, OAuthResult, OAuthStoreActions, OAuthStoreState, OS, Observable, OperationSchemas, OrderByClause, OrderDirection, OrderHookContext, OverlayAPI, PWAAssetType, PWADisplayMode, PWAPluginConfig, PageAuth, PageMeta, PaginatedQueryResult, PaginationOptions, PaidLineItem, PartnerConnectionState, PartnerIconId, PartnerId, PartnerResult, PartnerType, PayloadCacheEventData, PayloadDocument, PayloadDocumentEventData, PayloadEventKey, PayloadEventName, PayloadGlobalEventData, PayloadMediaEventData, PayloadPageRegenerationEventData, PayloadRequest, PayloadUserEventData, PaymentEventData, PaymentMethod, PaymentMethodType, PaymentMode, Permission, Picture, Platform, PlatformInfo, PreparedAtomicBatch, PreparedWrite, PrerenderedHead, PresetConfig, PresetRegistry, ProcessPaymentSuccessRequest, ProcessPaymentSuccessResponse, ProductDeclaration, ProviderInstances, QueryConfig, QueryOptions, QueryOrderBy, QueryWhereClause, RateLimitBackend, RateLimitConfig, RateLimitManager, RateLimitResult, RateLimitState, RateLimiter, ReadCallback, RecordSeo, RedirectOperation, RedirectOverlayActions, RedirectOverlayConfig, RedirectOverlayPhase, RedirectOverlayState, Reference, RefreshSubscriptionRequest, RefreshSubscriptionResponse, RegisteredWidgetBase, RemoveCustomClaimsResponse, RequireValueShapes, ResolveLineItemsContext, ResolvedLayoutConfig, ResolvedLineItem, ResolvedOrder, ResolvedOrderSession, RevokeGitHubAccessRequest, RouteData, RouteManifest, RouteMatch, RouteMeta, RouteSeo, RouteSeoMeta, RouteSource, RoutesPluginConfig, SEOConfig, SchemaKind, SchemaMetadata, SchemaOrgAvailability, SchemaWithVisibility, ScopeConfig, ScopeProviderFn, SecurityContext, SecurityEntityConfig, SelectOption, SendEmailRequest, SendEmailResponse, SeoMeta, ServerRateLimitConfig, ServerRateLimitResult, ServerUserRecord, SetCustomClaimsResponse, SidebarZoneConfig, SignUpMetadata, SlotContent, StatusCapability, StatusField, StatusesThat, StorageError, StorageErrorType, StorageOptions, StorageScope, StorageType, Store, StoredFileAsset, StripeBackConfig, StripeCheckoutProvider, StripeCheckoutRequest, StripeCheckoutResponse, StripeCheckoutSessionEventData, StripeConfig, StripeCustomer, StripeCustomerEventData, StripeEventData, StripeEventKey, StripeEventName, StripeFrontConfig, StripeInvoice, StripeInvoiceEventData, StripeOrderBackItem, StripePayment, StripePaymentBackItem, StripePaymentIntentEventData, StripePaymentMethod, StripePrice, StripeProduct, StripeProvider, StripeSubscription, StripeSubscriptionBackItem, StripeSubscriptionData, StripeWebhookEvent, StripeWebhookEventData, Subscription, SubscriptionClaims, SubscriptionConfig, SubscriptionData, SubscriptionDuration, SubscriptionEventData, SubscriptionHookResult, SubscriptionInfo, SubscriptionStatus, SubscriptionTier, SubscriptionUpdate, SupportedLanguage, TaxIdHookContext, TaxIdSnapshot, TechnicalField, ThemeAPI, ThemeActions, ThemeInfo, ThemeMode, ThemeState, ThemesPluginConfig, TierAccessHookResult, Timestamp, ToggleOrientation, ToggleSize, TokenInfo, TokenManagerOptions, TokenResponse, TokenState, TokenStatus, TransTag, TranslationOptions, TranslationResource, TypedBaseFields, UIFieldOptions, UniqueConstraintValidator, UniqueKeyDefinition, UnsubscribeFn, UpdateEntityData, UpdateEntityRequest, UpdateEntityResponse, UpdateInput, UpdatePatch, UpdateSchemas, UpdateSubscriptionFn, UploadOptions, UploadProgressCallback, UploadResult, UseClickOutsideOptions, UseClickOutsideReturn, UseDebounceOptions, UseEventListenerOptions, UseEventListenerReturn, UseFunctionsCallResult, UseFunctionsMutationOptions, UseFunctionsMutationResult, UseFunctionsQueryOptions, UseFunctionsQueryResult, UseIntersectionObserverOptions, UseIntersectionObserverReturn, UseLocalStorageOptions, UseLocalStorageReturn, UseMutationOptionsWithErrorHandling, UseQueryOptionsWithErrorHandling, UseScriptLoaderOptions, UseScriptLoaderReturn, UseTranslationOptionsEnhanced, UseViewportVisibilityOptions, UseViewportVisibilityReturn, UserContext, UserProfile, UserProviderData, UserRole, UserSubscription, ValidateBlockOptions, ValidateResult, ValidationRules, ValueKind, ValueSchemaOf, ValueTypeForField, VerifiedToken, VerifyOrderCheckoutRequest, VerifyOrderCheckoutResult, ViewportDetectionOptions, ViewportDetectionResult, Visibility, WebhookEvent, WebhookEventData, WhereClause, WhereOperator, WidgetDef, WithMetadata, WriteIssue, WriteSchema, WriteSchemaKey, WriteSchemas, dndevSchema };
27579
+ export { AGGREGATE_FILTER_OPERATORS, AGGREGATE_OPERATIONS, AIChatRequestSchema, AIChatResponseSchema, AIMessageSchema, AIProviderConfigSchema, AIToolCallSchema, AIToolDefinitionSchema, AIUsageSchema, AI_ERROR_CODES, AI_MODELS, AI_PROVIDERS, AI_ROLES, AI_TIERS, AI_TOKEN_PRICING, AUTH_COMPUTED_KEYS, AUTH_EVENTS, AUTH_PARTNERS, AUTH_PARTNER_STATE, AUTH_STORE_KEYS, AppConfigContext, AppConfigProvider, AtomicBulkError, AuthHardening, AuthSessionProvider, AuthUserSchema, BACKEND_GENERATED_FIELD_NAMES, BILLING_EVENTS, BILLING_STORE_KEYS, BREAKPOINT_RANGES, BREAKPOINT_THRESHOLDS, BUILTIN_VALUES, BUILT_IN_STATUSES, BaseStorageStrategy, BulkAcrossCycleError, BulkCollisionError, BulkDeleteIdSchema, BulkInsertSchema, BulkNotImplementedError, BulkOutcomeFailureSchema, BulkOutcomeSchema, BulkRequestSchema, BulkResponseSchema, BulkUpdateSchema, CAPTCHA_FAILED_CODE, CAPTCHA_TIMEOUT_MS, COMMON_TIER_CONFIGS, CONFIDENCE_LEVELS, CONSENT_CATEGORY, CONSENT_LEVELS, CONTEXTS, COUNTRIES, CRUD_OPERATORS, CURRENCY_MAP, CUSTOM_STATUS, CanvasBlockSchema, CanvasEventSchema, CanvasLifetimeSchema, CanvasWidgetMetadataSchema, CheckoutLineItemInputSchema, CheckoutSessionMetadataSchema, ClaimsCache, ConditionBuilder, CreateCheckoutSessionRequestSchema, CreateCheckoutSessionResponseSchema, CustomClaimsSchema, DEFAULT_AI_CONFIG, DEFAULT_AI_MARKUP, DEFAULT_CRUD_TIMEOUT, DEFAULT_ENTITY_ACCESS, DEFAULT_ERROR_MESSAGES, DEFAULT_LAYOUT_PRESET, DEFAULT_OG_IMAGE, DEFAULT_STATUS, DEFAULT_STATUS_OPTIONS, DEFAULT_STATUS_VALUE, DEFAULT_SUBSCRIPTION, DEFAULT_UPLOAD_TIMEOUT, DEGRADED_AI_API, DEGRADED_AUTH_API, DEGRADED_BILLING_API, DEGRADED_CRUD_API, DEGRADED_OAUTH_API, DENSITY, DoNotDevError, EDITABLE, EMAIL_ERROR_CODES, EMAIL_PROVIDERS, EMAIL_VERIFICATION_STATUS, ENTITY_HOOK_ERRORS, ENVIRONMENTS, ERROR_CODES, ERROR_SEVERITY, ERROR_SOURCE, EntityHookError, EventEmitter, FAQSection, FAVICON_DEFAULTS, FEATURES, FEATURE_CONSENT_MATRIX, FEATURE_STATUS, FIELD_TEXT_FORMATTERS, FIELD_TYPES, FIREBASE_ERROR_MAP, FONT_STYLE_ID, FOOTER_MODE, FRAMEWORK_FEATURES, Flag, GITHUB_PERMISSION_LEVELS, HIDDEN_STATUSES, HybridStorageStrategy, LANGUAGES, LANGUAGE_COOKIE, LAYOUT_PRESET, LIST_SCHEMA_TYPE, LanguageFAB, LanguageNavigationProvider, LanguageSelector, LanguageToggleGroup, LocalStorageStrategy, MAX_CHECKOUT_LINE_ITEMS, MAX_SHIPPING_RATE_IDS, OAUTH_EVENTS, OAUTH_PARTNERS, OAUTH_STORE_KEYS, ORDER_DIRECTION, PARTNER_ICONS, PAYLOAD_EVENTS, PERMISSIONS, PLATFORMS, PRERENDERED_HEAD_ELEMENT_ID, PWA_ASSET_TYPES, PWA_DISPLAY_MODES, ProductDeclarationSchema, ProductDeclarationsSchema, ProxiedImageUrlSchema, QueryProviders, REMOVED_STATUS, ROUTE_SOURCES, RequestLanguageProvider, SESSION_RENDER_SEGMENT, SITE_LOGO_PATH, STATUS_MATRIX, STORAGE_SCOPES, STORAGE_TYPES, STRIPE_EVENTS, STRIPE_MODES, SUBSCRIPTION_DURATIONS, SUBSCRIPTION_STATUS, SUBSCRIPTION_TIERS, SendEmailRequestSchema, SendEmailResponseSchema, SingletonManager, StorageManager, StripeBackConfigSchema, StripeFrontConfigSchema, StripeOrderBackSchema, StripeOrderShippingSchema, StripeOrderTaxSchema, StripePaymentSchema, StripeSubscriptionSchema, SubscriptionClaimsSchema, SubscriptionDataSchema, TECHNICAL_FIELD_NAMES, TRANSLATABLE_FIELD_TYPES, TRANS_TAGS, TURNSTILE_SCRIPT_URL, TURNSTILE_SITE_KEY_ENV, TokenManager, Trans, TranslatedText, USER_ROLES, UserSubscriptionSchema, VISIBILITY, VerifyOrderCheckoutRequestSchema, VerifyOrderCheckoutResultSchema, ViewportHandler, WebhookEventSchema, applyFirstVisitLanguage, applyTheme, areFeaturesAvailable, assertWrite, baseFields, breadcrumbNamespaces, buildBreadcrumbJsonLd, buildProductJsonLd, buildRoutePath, canRedirectExternally, captchaError, captureError, captureErrorToSentry, captureMessage, checkGitHubAccessSchema, cleanupSentry, clearFeatureCache, clearGlobalSingleton, clearLocalStorage, clearPartnerCache, clearScopeProviders, commonErrorCodeMappings, compactToISOString, configureProviders, cooldown, createAsyncSingleton, createDefaultSubscriptionClaims, createDefaultUserProfile, createDoNotDevStore, createEntitySchema, createErrorHandler, createMetadata, createMethodProxy, createSchemas, createSingleton, createSingletonWithParams, createStatus, createViewportHandler, debounce, debugPlatformDetection, decryptData, defineEntity, delay, deleteCookie, deleteEntitySchema, deriveEntitySeo, describeEntity, describeField, detectBrowser, detectBulkCollisions, detectErrorSource, detectFeatures, detectPlatform, detectPlatformInfo, detectStorageError, disconnectOAuthSchema, encryptData, enhanceSchema, ensureSpreadable, evaluateCondition, evaluateFieldConditions, exchangeTokenSchema, extractRoutePath, faviconHeadTags, filterNavigationRoutes, filterVisibleFields, fontPreloadHeadTags, formatCookieList, formatCurrency, formatDate, formatFieldText, formatRelativeTime, formatTrailingSlash, generateCodeChallenge, generateCodeVerifier, generateCompatibilityReport, generateEncryptionKey, generateFirestoreRuleCondition, generatePKCEPair, generateUUID, getActiveCookies, getAppShortName, getAssetsConfig, getAuthDomain, getAuthMethod, getAuthPartnerConfig, getAuthPartnerIdByFirebaseId, getAvailableFeatures, getAvailableThemeNames, getAvailableThemes, getBreakpointFromWidth, getBreakpointUtils, getBrowserRecommendations, getCaptchaSiteKey, getCaptchaToken, getCollectionName, getConditionDependencies, getConfigSection, getConfigSource, getConnectionsSchema, getCookie, getCookieExamples, getCookiesByCategory, getCountries, getCurrencyLocale, getCurrencySymbol, getCurrentOrigin, getCurrentTimestamp, getDndevConfig, getEnabledAuthPartners, getEnabledOAuthPartners, getEncryptionKey, getEntityByCollection, getEntitySchema, getFeatureSummary, getFlagCodes, getGlobalSingleton, getI18nConfig, getI18nInstance, getLanguageRouting, getListCardFieldNames, getLocalStorageItem, getNextEnvVar, getOAuthClientId, getOAuthPartnerConfig, getOAuthRedirectUri, getOAuthRedirectUrl, getPartnerCacheStatus, getPartnerConfig, getPathPrefixes, getPlatformEnvVar, getProvider, getProviderColor, getQueryClient, getRegisteredScopeProviders, getRequestLanguage, getRoleFromClaims, getRouteManifest, getRouteSource, getRoutes, getRoutesConfig, getSchemaType, getScopeValue, getSmartDefaults, getStorageManager, getSupportedLanguages, getThemeInfo, getThemesConfig, getTokenManager, getTranslatedFieldNames, getUrlLanguage, getValidAuthPartnerConfig, getValidAuthPartnerIds, getValidOAuthPartnerConfig, getValidOAuthPartnerIds, getVisibleFields, getVisibleItems, getViteEnvVar, getWeekFromISOString, getWidget, githubPermissionSchema, githubRepoConfigSchema, globalEmitter, grantGitHubAccessSchema, handleError, hasFlag, hasMetadata, hasOptionalCookies, hasProvider, hasRestrictedVisibility, hasRoleAccess, hasScopeProvider, hasTierAccess, hiddenStatusesFor, i18nFieldName, initSentry, initializeConfig, initializePlatformDetection, isAuthPartnerEnabled, isAuthPartnerId, isBackendGeneratedField, isBreakpoint, isClient, isCompactDateString, isConfigAvailable, isCookieNoticeRequired, isDev, isDoNotDevStore, isElementInViewport, isEmailVerificationRequired, isEmptyFieldValue, isExpo, isFeatureAvailable, isFieldVisible, isFrameworkField, isIntersectionObserverSupported, isLocalStorageAvailable, isMultilingual, isNextJs, isOAuthPartnerEnabled, isOAuthPartnerId, isPKCESupported, isPlatform, isReactNative, isReadableBy, isServer, isTest, isValidTheme, isVite, isoToCompactString, jsonScriptText, languageUrl, languageUrls, lazyImport, listEntitiesSchema, listWidgets, localizePath, mapToDoNotDevError, matchRoute, maybeTranslate, mountCaptchaWidget, normalizeToISOString, observeElement, onQueryCacheIdentityChange, overrideFeatures, overridePaymentModes, overridePermissions, overrideSubscriptionStatus, overrideSubscriptionTiers, overrideUserRoles, parseAcceptLanguage, parseBlogFrontmatter, parseDate, parseDateToNoonUTC, prepareCreate, prepareRemove, prepareUpdate, publicPathname, rangeOptions, readCookieValue, readI18nSeoMeta, recordHeadTags, redirectToExternalUrl, redirectToExternalUrlWithErrorHandling, refreshTokenSchema, registerScopeProvider, registerUniqueConstraintValidator, registerWidget, removeLocalStorageItem, resetProviders, resolveAppConfig, resolveAuthConfig, resolveFaviconFiles, resolveFieldValue, resolveLanguage, resolveLanguageRoute, resolvePageMeta, resolveSeoField, resolveUserSubscription, revokeGitHubAccessSchema, robotsContent, routeAncestors, routeHeadTags, routeLabel, routeSeo, routeTitle, safeLocalStorage, safeSessionStorage, safeValidate, sanitizeHref, setCookie, setLocalStorageItem, shouldShowEmailVerification, showNotification, siteHeadTags, splitLanguagePath, statusCan, statusOf, statusReadableBy, statusesThat, stripHtmlTags, stripTrailingSlash, supportsFeature, syncQueryCacheIdentity, throttle, timestampToISOString, timingUtils, toDateOnly, toISOString, translateArray, translateArrayRange, translateArrayWithIndices, translateEntityLabel, translateObjectArray, translateRow, unregisterScopeProvider, updateCheck, updateEntitySchema, updateMetadata, updateNeedsStored, useAbortControllerStore, useAnalyticsConsent, useAppConfig, useAuthConfig, useAuthSessionSnapshot, useBreakpoint, useBreathingTimer, useClickOutside, useConsent, useConsentReady, useConsentStore, useDebounce, useEventListener, useFaviconConfig, useFeatureConsent, useFeaturesConfig, useFunctionalConsent, useHasConsented, useI18nReady, useIntersectionObserver, useIsClient, useLanguage, useLanguageNavigate, useLanguageReady, useLanguageSelector, useLanguageStore, useLayout, useLocalStorage, useMarketingConsent, useMutation, useNavigationStore, useNetwork, useNetworkConnectionType, useNetworkOnline, useNetworkStatus, useNetworkStore, useOverlay, useOverlayStore, useQuery, useSafeContext, useScriptLoader, useSeoConfig, useStorageManager, useTheme, useThemeReady, useThemeStore, useTranslation, useViewportVisibility, validateAIChatRequest, validateAIChatResponse, validateAuthPartners, validateAuthSchemas, validateAuthUser, validateBillingSchemas, validateBlock, validateBulkOutcome, validateCheckoutSessionMetadata, validateCodeChallenge, validateCodeVerifier, validateCreateCheckoutSessionRequest, validateCreateCheckoutSessionResponse, validateCustomClaims, validateDates, validateDocument, validateEvent, validateOAuthPartners, validateSendEmailRequest, validateSendEmailResponse, validateStripeBackConfig, validateStripeFrontConfig, validateSubscriptionClaims, validateSubscriptionData, validateUniqueFields, validateUserSubscription, validateVerifyOrderCheckoutRequest, validateVerifyOrderCheckoutResult, validateWebhookEvent, validateWithSchema, when, withErrorHandling, withGracefulDegradation, withTimeout, wrapAuthError, wrapCrudError, wrapStorageError };
27580
+ export type { AIAPI, AIChatRequest, AIChatResponse, AIConfig, AICostConfig, AICostEvent, AICostRecord, AICostResult, AIErrorCode, AIMessage, AIModelPricing, AIProvider, AIProviderConfig, AIRateLimitConfig, AIRouteConfig, AITierId, AIToolCall, AIToolDefinition, AIToolParameter, AIUsage, AccountLinkResult, AccountLinkingInfo, AdminCheckHookResult, AdminClaims, AggregateConfig, AggregateFilterOperator, AggregateOperation, AggregateRequest, AggregateResponse, AncestorRoute, AnyEntity, AnyFieldValue, AnyValibotSchema, AnyValueSchema, ApiResponse, AppConfig, AppConfigProviderProps, AppCookieCategories, AppMetadata, AppProvidersProps, AssetsPluginConfig, AtomicBulkExecutionPlan, AtomicBulkOutcome, AttemptRecord, AuditEvent, AuditEventType, AuthAPI, AuthActions, AuthConfig, AuthContextValue, AuthCoreHookResult, AuthError, AuthEventData, AuthEventKey, AuthEventName, AuthHardeningConfig, AuthHardeningContext, AuthMethod, AuthPartner, AuthPartnerHookResult, AuthPartnerId, AuthPartnerResult, AuthPartnerState, AuthProvider, AuthProviderProps, AuthRedirectHookResult, AuthRedirectOperation, AuthRedirectOptions, AuthResult, AuthSessionSnapshot, AuthState, AuthStateStore, AuthStatus, AuthTokenHookResult, AuthUser, AuthUserLike, AuthUserSummary, BackendGeneratedField, BaseActions, BaseCredentials, BaseDocument, BaseEntityFields, BasePartnerState, BaseState, BaseStoreActions, BaseStoreState, BaseUserProfile, BasicUserInfo, BeforeCheckoutHook, BeforeCheckoutOptions, BeforeCheckoutResult, BillingAPI, BillingAdapter, BillingAuthProvider, BillingErrorCode, BillingEvent, BillingEventData, BillingEventKey, BillingEventName, BillingProvider, BillingProviderConfig, BillingRedirectOperation, BreadcrumbRoute, Breakpoint, BreakpointAPI, BreakpointUtils, BrowserEngine, BrowserInfo, BrowserType, BuiltInFieldType, BuiltInStatus, BuiltinValue, BuiltinValueOf, BulkAcrossBatch, BulkAcrossOptions, BulkAcrossResult, BulkCollisionReport, BulkFailure, BulkOperations, BulkRequest, BulkResponse, BulkResult, BusinessEntity, CacheOverride, CachedError, CanAPI, CanvasBlock, CanvasCallerAccess, CanvasEvent, CanvasLifetime, CanvasSurface, CanvasWidgetMetadata, CanvasWidgetProps, CaptchaWidget, CaptchaWidgetOptions, CheckGitHubAccessRequest, CheckoutAddress, CheckoutLineItemInput, CheckoutMode, CheckoutOptions, CheckoutSessionMetadata, CheckoutSessionParams, CheckoutSessionResult, CheckoutSessionSnapshot, Claims, ClaimsCacheOptions, ClaimsCacheResult, CleanupFunction, CollectionSubscriptionCallback, ColumnDef, CommonSubscriptionFeatures, CommonTranslations, CompatibilityReport, ConditionBuilderLike, ConditionExpression, ConditionGroup, ConditionInput, ConditionNode, ConditionOperator, ConditionResult, ConditionalBehavior, ConfidenceLevel, ConnectOptions, ConsentAPI, ConsentActions, ConsentCategory, ConsentLevel, ConsentState, Context, CookieInfo, CookieOptions, CountryData, CreateCheckoutSessionRequest, CreateCheckoutSessionRequestInput, CreateCheckoutSessionResponse, CreateEntityData, CreateEntityRequest, CreateEntityResponse, CreateInput, CreateSchemas, CrudAPI, CrudCardProps, CrudConfig, CrudCreateInput, CrudDocQuery, CrudListQuery, CrudOperationOptions, CrudOperator, CspDirective, CurrencyEntry, CustomClaims, CustomFieldOptionsMap, CustomStoreConfig, DateFormatOptions, DateFormatPreset, DateValue, DefinedEntity, DefinedEntityAccess, DefinedEntityFields, DeleteEntityRequest, DeleteEntityResponse, Density, DescribeEntity, DescribeField, DescribeFields, DnDevOverride, DnDevWrapper, DndevFrameworkConfig, DndevProviders, DndevStoreApi, DoNotDevCookieCategories, DoNotDevPersistOptions, DoNotDevStore, DoNotDevStoreConfig, DoNotDevStoreState, DoNotDevTransProps, DocumentSubscriptionCallback, DomainStoreConfig, DraftInput, DynamicFormRule, Editable, EditableForCheck, EditableForOf, EffectiveConnectionType, EmailConfig, EmailErrorCode, EmailProvider, EmailRouteConfig, EmailTemplate, EmailTemplateRegistry, EmailVerificationHookResult, EmailVerificationStatus, Entity, EntityAccessConfig, EntityAccessDefaults, EntityBrowseBaseProps, EntityCardListProps, EntityDescriptor, EntityDisplayRendererProps, EntityExtension, EntityExtensions, EntityField, EntityFieldMapDefault, EntityFormDefaultValues, EntityFormRendererProps, EntityHookErrors, EntityListExtraColumn, EntityListParent, EntityListProps, EntityMetadata, EntityOwnershipConfig, EntityOwnershipPublicCondition, EntityRecommendationsProps, EntityRecord, EntityRowFromFields, EntitySeo, EntitySeoConfig, EntitySeoOptions, EntitySeoRecord, EntityTemplateProps, EntityTranslations, EnvironmentMode, ErrorCode, ErrorHandlerConfig, ErrorHandlerFunction, ErrorSeverity, ErrorSource, EventListener, ExchangeTokenParams, ExchangeTokenRequest, ExchangeTokenResponse, ExtensionFormValues, FAQSectionProps, FaviconConfig, FaviconSet, Feature, FeatureAccessHookResult, FeatureAvailability, FeatureConsentRequirement, FeatureHookResult, FeatureId, FeatureName, FeatureStatus, FeatureSupport, FeaturesConfig, FeaturesPluginConfig, FeaturesRequiringAnyConsent, FeaturesRequiringConsent, FeaturesWithoutConsent, FieldCondition, FieldDescriptor, FieldFilterConfig, FieldInputOf, FieldKindOf, FieldOperation, FieldRequirement, FieldRequirementOf, FieldTextFormatter, FieldTextOptions, FieldTextTranslate, FieldType, FieldTypeToKind, FieldTypeToValue, FieldValue, FieldValueOf, FieldWriteClass, FieldWriteClassOf, FileAsset, FilterVisibleFieldsOptions, FirebaseCallOptions, FirebaseConfig, FirestoreTimestamp, FirestoreUniqueConstraintValidator, FooterConfig, FooterMode, FooterZoneConfig, FormConfig, FormStep, FormValues, FrameworkFeature, FunctionCallConfig, FunctionCallContext, FunctionCallOptions, FunctionCallResult, FunctionClient, FunctionClientFactoryOptions, FunctionDefaults, FunctionEndpoint, FunctionError, FunctionLoader, FunctionMemory, FunctionMeta, FunctionPlatform, FunctionResponse, FunctionSchema, FunctionSchemas, FunctionSystem, FunctionTrigger, FunctionsConfig, GetCustomClaimsResponse, GetEntityData, GetEntityRequest, GetEntityResponse, GetUserAuthStatusResponse, GetVisibleFieldsOptions, GitHubPermission, GitHubRepoConfig, GrantGitHubAccessRequest, GroupByDefinition, HandleErrorOptions, HeadTag, HeaderZoneConfig, HeadersConfig, HiddenStatus, I18nConfig, I18nPluginConfig, I18nProviderProps, I18nSeoMeta, ICallableProvider, ICrudAdapter, ID, INetworkManager, IServerAuthAdapter, IStorageAdapter, IStorageManager, IStorageStrategy, InferEntityRow, IntersectionObserverCallback, IntersectionObserverOptions, Invoice, InvoiceItem, LanguageAPI, LanguageData, LanguageFABFormat, LanguageFABProps, LanguageInfo$1 as LanguageInfo, LanguageNavigate, LanguagePath, LanguageRouteDecision, LanguageRouting, LanguageSelectorProps, LanguageToggleGroupProps, LayoutAPI, LayoutConfig, LayoutPreset, LegalCompanyInfo, LegalConfig, LegalContactInfo, LegalDirectorInfo, LegalHostingInfo, LegalJurisdictionInfo, LegalSectionsConfig, LegalWebsiteInfo, ListAuthUsersResponse, ListCardLayout, ListEntitiesRequest, ListEntitiesResponse, ListEntityData, ListOptions, ListResponse, ListSchemaType, LoadingActions, LoadingState, LocalFontConfig, LocalFontFace, LockoutResult, MergedBarConfig, MergedEntityFieldMap, MetricDefinition, MobileBehaviorConfig, ModalActions, ModalState, MutableMergedEntityFieldMap, MutationResponse, NavigationRoute, NetworkCheckConfig, NetworkConnectionType, NetworkReconnectCallback, NetworkState$1 as NetworkState, NetworkStatus, NetworkStatusHookResult, OAuthAPI, OAuthApiRequestOptions, OAuthCallbackHookResult, OAuthConnection, OAuthConnectionInfo, OAuthConnectionRequest, OAuthConnectionStatus, OAuthCredentials, OAuthEventData, OAuthEventKey, OAuthEventName, OAuthPartner, OAuthPartnerHookResult, OAuthPartnerId, OAuthPartnerResult, OAuthPartnerState, OAuthPurpose, OAuthRedirectOperation, OAuthRefreshRequest, OAuthRefreshResponse, OAuthResult, OAuthStoreActions, OAuthStoreState, OS, Observable, OperationSchemas, OrderByClause, OrderDirection, OrderHookContext, OverlayAPI, PWAAssetType, PWADisplayMode, PWAPluginConfig, PageAuth, PageMeta, PaginatedQueryResult, PaginationOptions, PaidLineItem, PartnerConnectionState, PartnerIconId, PartnerId, PartnerResult, PartnerType, PayloadCacheEventData, PayloadDocument, PayloadDocumentEventData, PayloadEventKey, PayloadEventName, PayloadGlobalEventData, PayloadMediaEventData, PayloadPageRegenerationEventData, PayloadRequest, PayloadUserEventData, PaymentEventData, PaymentMethod, PaymentMethodType, PaymentMode, Permission, Picture, Platform, PlatformInfo, PreparedAtomicBatch, PreparedWrite, PrerenderedHead, PresetConfig, PresetRegistry, ProcessPaymentSuccessRequest, ProcessPaymentSuccessResponse, ProductDeclaration, ProviderInstances, QueryConfig, QueryOptions, QueryOrderBy, QueryWhereClause, RateLimitBackend, RateLimitConfig, RateLimitManager, RateLimitResult, RateLimitState, RateLimiter, ReadCallback, RecordSeo, RedirectOperation, RedirectOverlayActions, RedirectOverlayConfig, RedirectOverlayPhase, RedirectOverlayState, Reference, RefreshSubscriptionRequest, RefreshSubscriptionResponse, RegisteredWidgetBase, RemoveCustomClaimsResponse, RequireValueShapes, ResolveLineItemsContext, ResolvedLayoutConfig, ResolvedLineItem, ResolvedOrder, ResolvedOrderSession, RevokeGitHubAccessRequest, RouteData, RouteManifest, RouteMatch, RouteMeta, RouteSeo, RouteSeoMeta, RouteSource, RoutesPluginConfig, SEOConfig, SchemaKind, SchemaMetadata, SchemaOrgAvailability, SchemaWithVisibility, ScopeConfig, ScopeProviderFn, SecurityContext, SecurityEntityConfig, SelectOption, SendEmailRequest, SendEmailResponse, SeoMeta, ServerRateLimitConfig, ServerRateLimitResult, ServerUserRecord, SetCustomClaimsResponse, SidebarZoneConfig, SignUpMetadata, SlotContent, StatusCapability, StatusField, StatusesThat, StorageError, StorageErrorType, StorageOptions, StorageScope, StorageType, Store, StoredFileAsset, StripeBackConfig, StripeCheckoutProvider, StripeCheckoutRequest, StripeCheckoutResponse, StripeCheckoutSessionEventData, StripeConfig, StripeCustomer, StripeCustomerEventData, StripeEventData, StripeEventKey, StripeEventName, StripeFrontConfig, StripeInvoice, StripeInvoiceEventData, StripeOrderBackItem, StripePayment, StripePaymentBackItem, StripePaymentIntentEventData, StripePaymentMethod, StripePrice, StripeProduct, StripeProvider, StripeSubscription, StripeSubscriptionBackItem, StripeSubscriptionData, StripeWebhookEvent, StripeWebhookEventData, Subscription, SubscriptionClaims, SubscriptionConfig, SubscriptionData, SubscriptionDuration, SubscriptionEventData, SubscriptionHookResult, SubscriptionInfo, SubscriptionStatus, SubscriptionTier, SubscriptionUpdate, SupportedLanguage, TaxIdHookContext, TaxIdSnapshot, TechnicalField, ThemeAPI, ThemeActions, ThemeInfo, ThemeMode, ThemeState, ThemesPluginConfig, TierAccessHookResult, Timestamp, ToggleOrientation, ToggleSize, TokenInfo, TokenManagerOptions, TokenResponse, TokenState, TokenStatus, TransTag, TranslationOptions, TranslationResource, TypedBaseFields, UIFieldOptions, UniqueConstraintValidator, UniqueKeyDefinition, UnsubscribeFn, UpdateEntityData, UpdateEntityRequest, UpdateEntityResponse, UpdateInput, UpdatePatch, UpdateSchemas, UpdateSubscriptionFn, UploadOptions, UploadProgressCallback, UploadResult, UseClickOutsideOptions, UseClickOutsideReturn, UseDebounceOptions, UseEventListenerOptions, UseEventListenerReturn, UseFunctionsCallResult, UseFunctionsMutationOptions, UseFunctionsMutationResult, UseFunctionsQueryOptions, UseFunctionsQueryResult, UseIntersectionObserverOptions, UseIntersectionObserverReturn, UseLocalStorageOptions, UseLocalStorageReturn, UseMutationOptionsWithErrorHandling, UseQueryOptionsWithErrorHandling, UseScriptLoaderOptions, UseScriptLoaderReturn, UseTranslationOptionsEnhanced, UseViewportVisibilityOptions, UseViewportVisibilityReturn, UserContext, UserProfile, UserProviderData, UserRole, UserSubscription, ValidateBlockOptions, ValidateResult, ValidationRules, ValueKind, ValueSchemaOf, ValueTypeForField, VerifiedToken, VerifyOrderCheckoutRequest, VerifyOrderCheckoutResult, ViewportDetectionOptions, ViewportDetectionResult, Visibility, WebhookEvent, WebhookEventData, WhereClause, WhereOperator, WidgetDef, WithMetadata, WriteIssue, WriteSchema, WriteSchemaKey, WriteSchemas, dndevSchema };