@easy-cms/core 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9688,7 +9688,7 @@ async function readAdminModule(cms, index) {
9688
9688
  }
9689
9689
 
9690
9690
  // src/version.ts
9691
- var VERSION = true ? "1.4.1" : "0.0.0-dev";
9691
+ var VERSION = true ? "1.4.2" : "0.0.0-dev";
9692
9692
 
9693
9693
  // src/rest/admin-deliveries.ts
9694
9694
  var PER_PAGE = 50;
@@ -1019,7 +1019,26 @@ type GlobalBySlug<C extends Config, S> = WithPluginFields<C, Extract<NonNullable
1019
1019
  readonly slug: S;
1020
1020
  }>, 'globalFields'>;
1021
1021
  /** Relationships are ids at depth 0 and documents when populated. */
1022
- type RelationValue<C extends Config, S> = [CollectionBySlug<C, S>] extends [never] ? ID | Record<string, unknown> : ID | CollectionDocument<C, S & string>;
1022
+ type RelationValue<C extends Config, S, A extends boolean> = [CollectionBySlug<C, S>] extends [
1023
+ never
1024
+ ] ? ID | Record<string, unknown> : ID | CollectionDocument<C, S & string, A>;
1025
+ /** The content locales of a config (`localization.locales`); `string` when not literal. */
1026
+ type LocaleOf<C extends Config> = C extends {
1027
+ readonly localization: {
1028
+ readonly locales: readonly (infer L extends string)[];
1029
+ };
1030
+ } ? L : string;
1031
+ /**
1032
+ * A localized field read with `locale: 'all'`: its value per locale, which may be missing or
1033
+ * empty for a locale. Relationships in it are ids (they are not populated).
1034
+ */
1035
+ type LocaleMap<F extends Field, C extends Config> = {
1036
+ [L in LocaleOf<C>]?: (F extends {
1037
+ readonly type: 'relationship' | 'upload';
1038
+ } ? F extends {
1039
+ readonly hasMany: true;
1040
+ } ? ID[] : ID : FieldValue<F, C>) | null;
1041
+ };
1023
1042
  interface MediaSize {
1024
1043
  filename: string;
1025
1044
  width: number;
@@ -1049,7 +1068,14 @@ interface MediaDocument {
1049
1068
  updatedAt: string;
1050
1069
  [field: string]: unknown;
1051
1070
  }
1052
- type FieldValue<F extends Field, C extends Config = Config> = F extends {
1071
+ /**
1072
+ * The value of a field as read. With `AllLocales` (reads with `locale: 'all'`), localized fields
1073
+ * are `{ [locale]: value }` maps.
1074
+ */
1075
+ type FieldValue<F extends Field, C extends Config = Config, AllLocales extends boolean = false> = AllLocales extends true ? F extends {
1076
+ readonly localized: true;
1077
+ } ? LocaleMap<F, C> : OneLocaleValue<F, C, true> : OneLocaleValue<F, C, false>;
1078
+ type OneLocaleValue<F extends Field, C extends Config, A extends boolean> = F extends {
1053
1079
  readonly type: 'text' | 'textarea' | 'email' | 'slug' | 'date';
1054
1080
  } ? string : F extends {
1055
1081
  readonly type: 'number';
@@ -1070,18 +1096,18 @@ type FieldValue<F extends Field, C extends Config = Config> = F extends {
1070
1096
  readonly to: infer S;
1071
1097
  } ? F extends {
1072
1098
  readonly hasMany: true;
1073
- } ? RelationValue<C, S>[] : RelationValue<C, S> : F extends {
1099
+ } ? RelationValue<C, S, A>[] : RelationValue<C, S, A> : F extends {
1074
1100
  readonly type: 'array';
1075
1101
  readonly fields: infer Sub extends readonly Field[];
1076
- } ? Simplify<FieldsValue<Sub, C> & {
1102
+ } ? Simplify<FieldsValue<Sub, C, A> & {
1077
1103
  id: string;
1078
1104
  }>[] : F extends {
1079
1105
  readonly type: 'group';
1080
1106
  readonly fields: infer Sub extends readonly Field[];
1081
- } ? FieldsValue<Sub, C> : F extends {
1107
+ } ? FieldsValue<Sub, C, A> : F extends {
1082
1108
  readonly type: 'blocks';
1083
1109
  readonly blocks: infer B extends readonly Block[];
1084
- } ? BlockValue<B[number], C>[] : CustomValue<F>;
1110
+ } ? BlockValue<B[number], C, A>[] : CustomValue<F>;
1085
1111
  /** The value of a field of an added type (`CustomFieldTypes`). */
1086
1112
  type CustomValue<F> = F extends {
1087
1113
  readonly type: infer T extends keyof CustomFieldTypes;
@@ -1089,10 +1115,10 @@ type CustomValue<F> = F extends {
1089
1115
  value: infer V;
1090
1116
  } ? V : unknown : never;
1091
1117
  /** One row of a `blocks` field: the block's fields plus `id` and `blockType` (distributes over kinds). */
1092
- type BlockValue<B, C extends Config> = B extends {
1118
+ type BlockValue<B, C extends Config, A extends boolean> = B extends {
1093
1119
  readonly slug: infer S;
1094
1120
  readonly fields: infer Sub extends readonly Field[];
1095
- } ? Simplify<FieldsValue<Sub, C> & {
1121
+ } ? Simplify<FieldsValue<Sub, C, A> & {
1096
1122
  id: string;
1097
1123
  blockType: S;
1098
1124
  }> : never;
@@ -1116,11 +1142,11 @@ type Present = {
1116
1142
  };
1117
1143
  type RequiredFields<Fs extends readonly Field[]> = Extract<Visible<Fs>, Present>;
1118
1144
  type OptionalFields<Fs extends readonly Field[]> = Exclude<Visible<Fs>, Present>;
1119
- /** The shape of the data described by a list of fields. */
1120
- type FieldsValue<Fs extends readonly Field[], C extends Config = Config> = Simplify<{
1121
- -readonly [F in RequiredFields<Fs> as F['name']]: FieldValue<F, C>;
1145
+ /** The shape of the data described by a list of fields (`AllLocales`: see `FieldValue`). */
1146
+ type FieldsValue<Fs extends readonly Field[], C extends Config = Config, AllLocales extends boolean = false> = Simplify<{
1147
+ -readonly [F in RequiredFields<Fs> as F['name']]: FieldValue<F, C, AllLocales>;
1122
1148
  } & {
1123
- -readonly [F in OptionalFields<Fs> as F['name']]?: FieldValue<F, C> | null;
1149
+ -readonly [F in OptionalFields<Fs> as F['name']]?: FieldValue<F, C, AllLocales> | null;
1124
1150
  }>;
1125
1151
  type SystemFields<T extends {
1126
1152
  readonly drafts?: unknown;
@@ -1138,8 +1164,8 @@ type FieldsOwner = {
1138
1164
  readonly fields: readonly Field[];
1139
1165
  readonly drafts?: unknown;
1140
1166
  };
1141
- type InferCollection<T extends FieldsOwner, C extends Config = Config> = Simplify<SystemFields<T> & FieldsValue<T['fields'], C>>;
1142
- type InferGlobal<T extends FieldsOwner, C extends Config = Config> = Simplify<
1167
+ type InferCollection<T extends FieldsOwner, C extends Config = Config, AllLocales extends boolean = false> = Simplify<SystemFields<T> & FieldsValue<T['fields'], C, AllLocales>>;
1168
+ type InferGlobal<T extends FieldsOwner, C extends Config = Config, AllLocales extends boolean = false> = Simplify<
1143
1169
  /** `null` until the global is saved for the first time. */
1144
1170
  {
1145
1171
  updatedAt: string | null;
@@ -1147,13 +1173,16 @@ type InferGlobal<T extends FieldsOwner, C extends Config = Config> = Simplify<
1147
1173
  readonly drafts: true;
1148
1174
  } ? {
1149
1175
  status: 'draft' | 'published';
1150
- } : unknown) & FieldsValue<T['fields'], C>>;
1176
+ } : unknown) & FieldsValue<T['fields'], C, AllLocales>>;
1151
1177
  type CollectionSlug<C extends Config> = OwnCollections<C>['slug'] | 'users' | 'media' | ApiKeysOf<C>['slug'] | FoldersOf<C>['slug'] | PluginCollections<C>['slug'];
1152
1178
  type GlobalSlug<C extends Config> = NonNullable<C['globals']>[number]['slug'];
1153
- /** Document type of a collection, e.g. `CollectionDocument<typeof config, 'posts'>`. */
1154
- type CollectionDocument<C extends Config, S extends CollectionSlug<C>> = S extends 'media' ? MediaDocument : InferCollection<CollectionBySlug<C, S>, C>;
1155
- /** Data type of a global, e.g. `GlobalDocument<typeof config, 'site'>`. */
1156
- type GlobalDocument<C extends Config, S extends GlobalSlug<C>> = InferGlobal<GlobalBySlug<C, S>, C>;
1179
+ /**
1180
+ * Document type of a collection, e.g. `CollectionDocument<typeof config, 'posts'>`. With
1181
+ * `AllLocales` (reads with `locale: 'all'`), localized fields are `{ [locale]: value }` maps.
1182
+ */
1183
+ type CollectionDocument<C extends Config, S extends CollectionSlug<C>, AllLocales extends boolean = false> = S extends 'media' ? MediaDocument : InferCollection<CollectionBySlug<C, S>, C, AllLocales>;
1184
+ /** Data type of a global, e.g. `GlobalDocument<typeof config, 'site'>` (`AllLocales`: as above). */
1185
+ type GlobalDocument<C extends Config, S extends GlobalSlug<C>, AllLocales extends boolean = false> = InferGlobal<GlobalBySlug<C, S>, C, AllLocales>;
1157
1186
  type InputValue<F extends Field> = F extends {
1158
1187
  readonly type: 'relationship';
1159
1188
  } ? F extends {
@@ -1537,18 +1566,28 @@ interface Version<T = Record<string, unknown>> extends VersionSummary {
1537
1566
  type Data$1 = Record<string, unknown>;
1538
1567
  type Slug<C extends Config> = string extends CollectionSlug<C> ? string : CollectionSlug<C>;
1539
1568
  type GSlug<C extends Config> = string extends GlobalSlug<C> ? string : GlobalSlug<C>;
1540
- type Doc<C extends Config, S> = string extends CollectionSlug<C> ? RawDocument : CollectionDocument<C, S & CollectionSlug<C>>;
1569
+ /**
1570
+ * Whether reads with the locale `L` return localized fields as `{ [locale]: value }` maps: only
1571
+ * the literal `'all'`, with `localization` set. A locale typed `string` reads as one locale.
1572
+ */
1573
+ type AllLocales<C extends Config, L> = [L] extends ['all'] ? C extends {
1574
+ readonly localization: {
1575
+ readonly locales: readonly string[];
1576
+ };
1577
+ } ? true : false : false;
1578
+ type Doc<C extends Config, S, L = undefined> = string extends CollectionSlug<C> ? RawDocument : CollectionDocument<C, S & CollectionSlug<C>, AllLocales<C, L>>;
1541
1579
  type Create<C extends Config, S> = string extends CollectionSlug<C> ? Data$1 : CreateInput<C, S & CollectionSlug<C>>;
1542
1580
  type Update<C extends Config, S> = string extends CollectionSlug<C> ? Data$1 : UpdateInput<C, S & CollectionSlug<C>>;
1543
- type GDoc<C extends Config, S> = string extends GlobalSlug<C> ? Data$1 : GlobalDocument<C, S & GlobalSlug<C>>;
1581
+ type GDoc<C extends Config, S, L = undefined> = string extends GlobalSlug<C> ? Data$1 : GlobalDocument<C, S & GlobalSlug<C>, AllLocales<C, L>>;
1544
1582
  type GInput<C extends Config, S> = string extends GlobalSlug<C> ? Data$1 : GlobalInput<C, S & GlobalSlug<C>>;
1545
1583
  /** A collection slug of the config `C` (any string when the config isn't a literal). */
1546
1584
  type SlugOf<C extends Config> = Slug<C>;
1547
1585
  /**
1548
1586
  * A document of collection `S` as the Local API returns it, e.g. for helpers that take an
1549
- * `EasyCMS<C>`: inferred from a literal config, loose otherwise.
1587
+ * `EasyCMS<C>`: inferred from a literal config, loose otherwise. `L` is the locale read
1588
+ * (`'all'`: localized fields are `{ [locale]: value }` maps).
1550
1589
  */
1551
- type DocumentOf<C extends Config, S> = Doc<C, S>;
1590
+ type DocumentOf<C extends Config, S, L = undefined> = Doc<C, S, L>;
1552
1591
  interface AccessOptions {
1553
1592
  /**
1554
1593
  * The Local API trusts its caller and skips access rules by default.
@@ -1670,8 +1709,12 @@ declare class EasyCMS<C extends Config = Config> {
1670
1709
  user: AuthUser | null;
1671
1710
  context: RequestContext;
1672
1711
  }>;
1673
- find<S extends Slug<C>>(collection: S, options?: FindOptions): Promise<PaginatedDocs<Doc<C, S>>>;
1674
- findById<S extends Slug<C>>(collection: S, id: ID, options?: ReadOptions): Promise<Doc<C, S> | null>;
1712
+ find<S extends Slug<C>, L extends string | undefined = undefined>(collection: S, options?: FindOptions & {
1713
+ readonly locale?: L;
1714
+ }): Promise<PaginatedDocs<Doc<C, S, L>>>;
1715
+ findById<S extends Slug<C>, L extends string | undefined = undefined>(collection: S, id: ID, options?: ReadOptions & {
1716
+ readonly locale?: L;
1717
+ }): Promise<Doc<C, S, L> | null>;
1675
1718
  count<S extends Slug<C>>(collection: S, options?: {
1676
1719
  where?: Where;
1677
1720
  draft?: boolean;
@@ -1850,7 +1893,9 @@ declare class EasyCMS<C extends Config = Config> {
1850
1893
  delete<S extends Slug<C>>(collection: S, id: ID, options?: AccessOptions & {
1851
1894
  transferTo?: ID | null;
1852
1895
  }): Promise<Doc<C, S>>;
1853
- findGlobal<S extends GSlug<C>>(slug: S, options?: ReadOptions): Promise<GDoc<C, S>>;
1896
+ findGlobal<S extends GSlug<C>, L extends string | undefined = undefined>(slug: S, options?: ReadOptions & {
1897
+ readonly locale?: L;
1898
+ }): Promise<GDoc<C, S, L>>;
1854
1899
  /** A global as stored under `key` (see `globalKey`); empty when there is no key. */
1855
1900
  private readGlobal;
1856
1901
  /**
@@ -1863,9 +1908,9 @@ declare class EasyCMS<C extends Config = Config> {
1863
1908
  private writeKey;
1864
1909
  updateGlobal<S extends GSlug<C>>(slug: S, data: GInput<C, S>, options?: DepthOptions): Promise<GDoc<C, S>>;
1865
1910
  /** Takes a global off the site (`status: 'draft'`). See `unpublish`. */
1866
- unpublishGlobal<S extends GSlug<C>>(slug: S, options?: DepthOptions): Promise<GDoc<C, S>>;
1911
+ unpublishGlobal<S extends GSlug<C>>(slug: S, options?: DepthOptions): Promise<GDoc<C, S, undefined>>;
1867
1912
  /** Throws away the unpublished draft of a published global. */
1868
- discardGlobalDraft<S extends GSlug<C>>(slug: S, options?: DepthOptions): Promise<GDoc<C, S>>;
1913
+ discardGlobalDraft<S extends GSlug<C>>(slug: S, options?: DepthOptions): Promise<GDoc<C, S, string>>;
1869
1914
  /** Saved versions of a global, newest first. Needs update access. */
1870
1915
  findGlobalVersions<S extends GSlug<C>>(slug: S, options?: AccessOptions & {
1871
1916
  limit?: number;
@@ -3267,4 +3312,4 @@ interface ResolvedConfig extends Omit<Config, 'cors' | 'localization' | 'routes'
3267
3312
  */
3268
3313
  declare function defineConfig<const TConfig extends Config>(config: TConfig): TConfig;
3269
3314
 
3270
- export { type BuiltinMediaCollection as $, ADAPTER_API_VERSION as A, type ApiKeyOperation as B, type ApiKeyPermissions as C, type ArrayField as D, type EmailSetting as E, type AuditChange as F, type AuditConfig as G, type AuditEntry as H, type ID as I, AuditLog as J, type AuditPage as K, type AuditVerification as L, Auth as M, type AuthConfig as N, type AuthProvider as O, type PaginatedDocs as P, type AuthProviderProfile as Q, type AuthProviderRequest as R, type AuthUser as S, type BackupsConfig as T, type BeforeChangeHook as U, type BeforeDeleteHook as V, type BeforeValidateHook as W, type Block as X, type BlocksField as Y, type BooleanField as Z, type BuiltinApiKeysCollection as _, ADMIN_ICONS as a, type GlobalDocument as a$, type BuiltinMediaFoldersCollection as a0, type BuiltinUsersCollection as a1, type BundleHints as a2, type CliCommand as a3, type CollectionAccess as a4, type CollectionAdmin as a5, type CollectionConfig as a6, type CollectionDocument as a7, type CollectionHooks as a8, type CollectionListAdmin as a9, type EndpointRequest as aA, type ErrorCode as aB, FIELD_TYPES as aC, type Field as aD, type FieldAccess as aE, type FieldAccessFn as aF, type FieldAdmin as aG, type FieldError as aH, type FieldRule as aI, type FieldType as aJ, type FieldTypeBase as aK, type FieldTypeDefinition as aL, type FieldTypeValidateContext as aM, type FieldValidate as aN, type FieldValidateContext as aO, type FieldValue as aP, type FieldsInput as aQ, type FieldsValue as aR, type FilterOptions as aS, type FilterOptionsArgs as aT, type FindArgs as aU, type FindOptions as aV, type FolderLevel as aW, type FolderPermissions as aX, ForbiddenError as aY, type GlobalAccess as aZ, type GlobalConfig as a_, type CollectionSlug as aa, type Config as ab, ConfigError as ac, type ConfigIssue as ad, type ContainerAdmin as ae, type CreateEasyCMSOptions as af, type CreateInput as ag, type CreateMigrationResult as ah, type CustomField as ai, type CustomFieldTypes as aj, type DashboardWidget as ak, type Database as al, type DatabaseAdapter as am, type DatabaseInitArgs as an, type DatabaseTransfer as ao, type DateField as ap, type DepthOptions as aq, type DirectUpload as ar, type DiskStorageOptions as as, type DocumentOf as at, EasyCMS as au, EasyCMSError as av, type EmailAdapter as aw, type EmailField as ax, type EmailMessage as ay, type Endpoint as az, type Access as b, type SlugOf as b$, type GlobalHooks as b0, type GlobalInput as b1, type GlobalSlug as b2, type GroupField as b3, type ImageSize as b4, type IncrementOptions as b5, type InferCollection as b6, type InferGlobal as b7, type JobConfig as b8, type JsonField as b9, type PreviewTarget as bA, type PreviewURL as bB, QueryError as bC, ROLE_OPERATIONS as bD, type RawDocument as bE, type ReadOptions as bF, type RelationshipField as bG, type RequestContext as bH, type ResolvedConfig as bI, type RichTextDocument as bJ, type RichTextField as bK, type Role as bL, type RoleOperation as bM, type RolePermissions as bN, Roles as bO, type RoutesConfig as bP, type ScheduledPublish as bQ, SchemaError as bR, type SchemaMode as bS, type SelectField as bT, type SelectOption as bU, type Session as bV, type SidebarPanel as bW, type SignupArgs as bX, type SignupResult as bY, SingleSignOn as bZ, type SlugField as b_, type Label as ba, type LayoutNode as bb, type LivePreview as bc, type LocalizationConfig as bd, type Logger as be, type LoginArgs as bf, type MediaDocument as bg, type MediaSize as bh, type MembersConfig as bi, type MembersSignup as bj, type MigrationInfo as bk, type NavGroup as bl, NotFoundError as bm, type NumberField as bn, type OnRequest as bo, type OnRequestArgs as bp, type Operation as bq, PLUGIN_API_VERSION as br, type PasswordEmail as bs, type PasswordEmailArgs as bt, type PasswordEmailFn as bu, type PasswordLinkOptions as bv, PayloadTooLargeError as bw, type Plugin as bx, type PluginInfo as by, type PluginTypes as bz, type AccessArgs as c, type SsoOutcome as c0, type SsoProviderRef as c1, type StorageAdapter as c2, type StoredFile as c3, type TextField as c4, type TextareaField as c5, TooManyRequestsError as c6, type TypedPlugin as c7, UnauthorizedError as c8, type UpdateInput as c9, isSignedIn as cA, isStaff as cB, isSystemAdmin as cC, mimeAllowedBy as cD, rowFields as cE, silentLogger as cF, uniqueWithinOf as cG, API_KEYS as cH, API_KEY_GLOBAL_OPERATIONS as cI, API_KEY_OPERATIONS as cJ, DEFAULT_MAX_VERSIONS as cK, DEFAULT_PASSWORD_EMAILS as cL, FIELD_TYPE_BASES as cM, FOLDER_LEVELS as cN, MediaFolders as cO, SSO_COOKIE as cP, codeOfStatus as cQ, keyAllows as cR, type UpdateOptions as ca, type UploadConfig as cb, type UploadField as cc, type UploadFromURLConfig as cd, type UserIdentity as ce, ValidationError as cf, type Version as cg, type VersionSummary as ch, type VersionsConfig as ci, WEBHOOK_EVENTS as cj, type WebhookConfig as ck, type WebhookEvent as cl, type WebhookPayload as cm, type Where as cn, type WhereOperators as co, anyone as cp, consoleEmail as cq, consoleLogger as cr, createEasyCMS as cs, defineConfig as ct, defineFieldType as cu, definePlugin as cv, diskStorage as cw, hasRows as cx, isAdmin as cy, isHasMany as cz, type AccessOptions as d, type AdminBrand as e, type AdminCommand as f, type AdminComponent as g, type AdminConfig as h, type AdminFieldArgs as i, type AdminIcon as j, type AdminLocale as k, type AdminPage as l, type AdminRole as m, type AdminRoleChange as n, type AdminRoleField as o, type AdminRoleTarget as p, type AdminRoleView as q, type AdminRoles as r, type AdminSso as s, type AdminSwitcher as t, type AdminViewAccess as u, type AfterChangeHook as v, type AfterDeleteHook as w, type AfterReadHook as x, type ApiKeyContext as y, type ApiKeyGlobalOperation as z };
3315
+ export { type BuiltinMediaCollection as $, ADAPTER_API_VERSION as A, type ApiKeyOperation as B, type ApiKeyPermissions as C, type ArrayField as D, type EmailSetting as E, type AuditChange as F, type AuditConfig as G, type AuditEntry as H, type ID as I, AuditLog as J, type AuditPage as K, type AuditVerification as L, Auth as M, type AuthConfig as N, type AuthProvider as O, type PaginatedDocs as P, type AuthProviderProfile as Q, type AuthProviderRequest as R, type AuthUser as S, type BackupsConfig as T, type BeforeChangeHook as U, type BeforeDeleteHook as V, type BeforeValidateHook as W, type Block as X, type BlocksField as Y, type BooleanField as Z, type BuiltinApiKeysCollection as _, ADMIN_ICONS as a, type GlobalDocument as a$, type BuiltinMediaFoldersCollection as a0, type BuiltinUsersCollection as a1, type BundleHints as a2, type CliCommand as a3, type CollectionAccess as a4, type CollectionAdmin as a5, type CollectionConfig as a6, type CollectionDocument as a7, type CollectionHooks as a8, type CollectionListAdmin as a9, type EndpointRequest as aA, type ErrorCode as aB, FIELD_TYPES as aC, type Field as aD, type FieldAccess as aE, type FieldAccessFn as aF, type FieldAdmin as aG, type FieldError as aH, type FieldRule as aI, type FieldType as aJ, type FieldTypeBase as aK, type FieldTypeDefinition as aL, type FieldTypeValidateContext as aM, type FieldValidate as aN, type FieldValidateContext as aO, type FieldValue as aP, type FieldsInput as aQ, type FieldsValue as aR, type FilterOptions as aS, type FilterOptionsArgs as aT, type FindArgs as aU, type FindOptions as aV, type FolderLevel as aW, type FolderPermissions as aX, ForbiddenError as aY, type GlobalAccess as aZ, type GlobalConfig as a_, type CollectionSlug as aa, type Config as ab, ConfigError as ac, type ConfigIssue as ad, type ContainerAdmin as ae, type CreateEasyCMSOptions as af, type CreateInput as ag, type CreateMigrationResult as ah, type CustomField as ai, type CustomFieldTypes as aj, type DashboardWidget as ak, type Database as al, type DatabaseAdapter as am, type DatabaseInitArgs as an, type DatabaseTransfer as ao, type DateField as ap, type DepthOptions as aq, type DirectUpload as ar, type DiskStorageOptions as as, type DocumentOf as at, EasyCMS as au, EasyCMSError as av, type EmailAdapter as aw, type EmailField as ax, type EmailMessage as ay, type Endpoint as az, type Access as b, type SlugField as b$, type GlobalHooks as b0, type GlobalInput as b1, type GlobalSlug as b2, type GroupField as b3, type ImageSize as b4, type IncrementOptions as b5, type InferCollection as b6, type InferGlobal as b7, type JobConfig as b8, type JsonField as b9, type PluginTypes as bA, type PreviewTarget as bB, type PreviewURL as bC, QueryError as bD, ROLE_OPERATIONS as bE, type RawDocument as bF, type ReadOptions as bG, type RelationshipField as bH, type RequestContext as bI, type ResolvedConfig as bJ, type RichTextDocument as bK, type RichTextField as bL, type Role as bM, type RoleOperation as bN, type RolePermissions as bO, Roles as bP, type RoutesConfig as bQ, type ScheduledPublish as bR, SchemaError as bS, type SchemaMode as bT, type SelectField as bU, type SelectOption as bV, type Session as bW, type SidebarPanel as bX, type SignupArgs as bY, type SignupResult as bZ, SingleSignOn as b_, type Label as ba, type LayoutNode as bb, type LivePreview as bc, type LocaleOf as bd, type LocalizationConfig as be, type Logger as bf, type LoginArgs as bg, type MediaDocument as bh, type MediaSize as bi, type MembersConfig as bj, type MembersSignup as bk, type MigrationInfo as bl, type NavGroup as bm, NotFoundError as bn, type NumberField as bo, type OnRequest as bp, type OnRequestArgs as bq, type Operation as br, PLUGIN_API_VERSION as bs, type PasswordEmail as bt, type PasswordEmailArgs as bu, type PasswordEmailFn as bv, type PasswordLinkOptions as bw, PayloadTooLargeError as bx, type Plugin as by, type PluginInfo as bz, type AccessArgs as c, type SlugOf as c0, type SsoOutcome as c1, type SsoProviderRef as c2, type StorageAdapter as c3, type StoredFile as c4, type TextField as c5, type TextareaField as c6, TooManyRequestsError as c7, type TypedPlugin as c8, UnauthorizedError as c9, isHasMany as cA, isSignedIn as cB, isStaff as cC, isSystemAdmin as cD, mimeAllowedBy as cE, rowFields as cF, silentLogger as cG, uniqueWithinOf as cH, API_KEYS as cI, API_KEY_GLOBAL_OPERATIONS as cJ, API_KEY_OPERATIONS as cK, DEFAULT_MAX_VERSIONS as cL, DEFAULT_PASSWORD_EMAILS as cM, FIELD_TYPE_BASES as cN, FOLDER_LEVELS as cO, MediaFolders as cP, SSO_COOKIE as cQ, codeOfStatus as cR, keyAllows as cS, type UpdateInput as ca, type UpdateOptions as cb, type UploadConfig as cc, type UploadField as cd, type UploadFromURLConfig as ce, type UserIdentity as cf, ValidationError as cg, type Version as ch, type VersionSummary as ci, type VersionsConfig as cj, WEBHOOK_EVENTS as ck, type WebhookConfig as cl, type WebhookEvent as cm, type WebhookPayload as cn, type Where as co, type WhereOperators as cp, anyone as cq, consoleEmail as cr, consoleLogger as cs, createEasyCMS as ct, defineConfig as cu, defineFieldType as cv, definePlugin as cw, diskStorage as cx, hasRows as cy, isAdmin as cz, type AccessOptions as d, type AdminBrand as e, type AdminCommand as f, type AdminComponent as g, type AdminConfig as h, type AdminFieldArgs as i, type AdminIcon as j, type AdminLocale as k, type AdminPage as l, type AdminRole as m, type AdminRoleChange as n, type AdminRoleField as o, type AdminRoleTarget as p, type AdminRoleView as q, type AdminRoles as r, type AdminSso as s, type AdminSwitcher as t, type AdminViewAccess as u, type AfterChangeHook as v, type AfterDeleteHook as w, type AfterReadHook as x, type ApiKeyContext as y, type ApiKeyGlobalOperation as z };
@@ -1,4 +1,4 @@
1
- import { I as ID, ab as Config, au as EasyCMS, bd as LocalizationConfig, aD as Field, aH as FieldError, aS as FilterOptions, af as CreateEasyCMSOptions, bI as ResolvedConfig } from './config-CBssruvP.js';
1
+ import { I as ID, ab as Config, au as EasyCMS, be as LocalizationConfig, aD as Field, aH as FieldError, aS as FilterOptions, af as CreateEasyCMSOptions, bJ as ResolvedConfig } from './config-CB8mhU2a.js';
2
2
 
3
3
  /** Decrypts a file from `encryptBackup`; throws for another key or a changed file. */
4
4
  declare function decryptBackup(data: Uint8Array, encryptionKey: string): Uint8Array;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { P as PaginatedDocs, I as ID, E as EmailSetting } from './config-CBssruvP.js';
2
- export { A as ADAPTER_API_VERSION, a as ADMIN_ICONS, b as Access, c as AccessArgs, d as AccessOptions, e as AdminBrand, f as AdminCommand, g as AdminComponent, h as AdminConfig, i as AdminFieldArgs, j as AdminIcon, k as AdminLocale, l as AdminPage, m as AdminRole, n as AdminRoleChange, o as AdminRoleField, p as AdminRoleTarget, q as AdminRoleView, r as AdminRoles, s as AdminSso, t as AdminSwitcher, u as AdminViewAccess, v as AfterChangeHook, w as AfterDeleteHook, x as AfterReadHook, y as ApiKeyContext, z as ApiKeyGlobalOperation, B as ApiKeyOperation, C as ApiKeyPermissions, D as ArrayField, F as AuditChange, G as AuditConfig, H as AuditEntry, J as AuditLog, K as AuditPage, L as AuditVerification, M as Auth, N as AuthConfig, O as AuthProvider, Q as AuthProviderProfile, R as AuthProviderRequest, S as AuthUser, T as BackupsConfig, U as BeforeChangeHook, V as BeforeDeleteHook, W as BeforeValidateHook, X as Block, Y as BlocksField, Z as BooleanField, _ as BuiltinApiKeysCollection, $ as BuiltinMediaCollection, a0 as BuiltinMediaFoldersCollection, a1 as BuiltinUsersCollection, a2 as BundleHints, a3 as CliCommand, a4 as CollectionAccess, a5 as CollectionAdmin, a6 as CollectionConfig, a7 as CollectionDocument, a8 as CollectionHooks, a9 as CollectionListAdmin, aa as CollectionSlug, ab as Config, ac as ConfigError, ad as ConfigIssue, ae as ContainerAdmin, af as CreateEasyCMSOptions, ag as CreateInput, ah as CreateMigrationResult, ai as CustomField, aj as CustomFieldTypes, ak as DashboardWidget, al as Database, am as DatabaseAdapter, an as DatabaseInitArgs, ao as DatabaseTransfer, ap as DateField, aq as DepthOptions, ar as DirectUpload, as as DiskStorageOptions, at as DocumentOf, au as EasyCMS, av as EasyCMSError, aw as EmailAdapter, ax as EmailField, ay as EmailMessage, az as Endpoint, aA as EndpointRequest, aB as ErrorCode, aC as FIELD_TYPES, aD as Field, aE as FieldAccess, aF as FieldAccessFn, aG as FieldAdmin, aH as FieldError, aI as FieldRule, aJ as FieldType, aK as FieldTypeBase, aL as FieldTypeDefinition, aM as FieldTypeValidateContext, aN as FieldValidate, aO as FieldValidateContext, aP as FieldValue, aQ as FieldsInput, aR as FieldsValue, aS as FilterOptions, aT as FilterOptionsArgs, aU as FindArgs, aV as FindOptions, aW as FolderLevel, aX as FolderPermissions, aY as ForbiddenError, aZ as GlobalAccess, a_ as GlobalConfig, a$ as GlobalDocument, b0 as GlobalHooks, b1 as GlobalInput, b2 as GlobalSlug, b3 as GroupField, b4 as ImageSize, b5 as IncrementOptions, b6 as InferCollection, b7 as InferGlobal, b8 as JobConfig, b9 as JsonField, ba as Label, bb as LayoutNode, bc as LivePreview, bd as LocalizationConfig, be as Logger, bf as LoginArgs, bg as MediaDocument, bh as MediaSize, bi as MembersConfig, bj as MembersSignup, bk as MigrationInfo, bl as NavGroup, bm as NotFoundError, bn as NumberField, bo as OnRequest, bp as OnRequestArgs, bq as Operation, br as PLUGIN_API_VERSION, bs as PasswordEmail, bt as PasswordEmailArgs, bu as PasswordEmailFn, bv as PasswordLinkOptions, bw as PayloadTooLargeError, bx as Plugin, by as PluginInfo, bz as PluginTypes, bA as PreviewTarget, bB as PreviewURL, bC as QueryError, bD as ROLE_OPERATIONS, bE as RawDocument, bF as ReadOptions, bG as RelationshipField, bH as RequestContext, bI as ResolvedConfig, bJ as RichTextDocument, bK as RichTextField, bL as Role, bM as RoleOperation, bN as RolePermissions, bO as Roles, bP as RoutesConfig, bQ as ScheduledPublish, bR as SchemaError, bS as SchemaMode, bT as SelectField, bU as SelectOption, bV as Session, bW as SidebarPanel, bX as SignupArgs, bY as SignupResult, bZ as SingleSignOn, b_ as SlugField, b$ as SlugOf, c0 as SsoOutcome, c1 as SsoProviderRef, c2 as StorageAdapter, c3 as StoredFile, c4 as TextField, c5 as TextareaField, c6 as TooManyRequestsError, c7 as TypedPlugin, c8 as UnauthorizedError, c9 as UpdateInput, ca as UpdateOptions, cb as UploadConfig, cc as UploadField, cd as UploadFromURLConfig, ce as UserIdentity, cf as ValidationError, cg as Version, ch as VersionSummary, ci as VersionsConfig, cj as WEBHOOK_EVENTS, ck as WebhookConfig, cl as WebhookEvent, cm as WebhookPayload, cn as Where, co as WhereOperators, cp as anyone, cq as consoleEmail, cr as consoleLogger, cs as createEasyCMS, ct as defineConfig, cu as defineFieldType, cv as definePlugin, cw as diskStorage, cx as hasRows, cy as isAdmin, cz as isHasMany, cA as isSignedIn, cB as isStaff, cC as isSystemAdmin, cD as mimeAllowedBy, cE as rowFields, cF as silentLogger, cG as uniqueWithinOf } from './config-CBssruvP.js';
3
- export { A as ADMIN_API_VERSION, a as AdminCollection, b as AdminComponentRef, c as AdminElementProps, d as AdminField, e as AdminGlobal, f as AdminLayoutNode, g as AdminNavGroup, h as AdminNavItem, i as AdminNavNode, j as AdminPageRef, k as AdminPageRoute, l as AdminSchema, m as AdminWidgetRef, S as SetFieldDetail, w as warnDeprecated } from './plugin-CnqJrjt8.js';
4
- export { A as AdminBackup, a as AdminBackups, b as ApiHandlerOptions, B as BackupState, L as LoadConfigOptions, R as RestHandler, c as RestHandlerOptions, d as createApiHandler, e as createRestHandler, l as loadConfig, r as resolveConfig, s as sharedEasyCMS, f as slugify } from './handler-BcFlwRK8.js';
1
+ import { P as PaginatedDocs, I as ID, E as EmailSetting } from './config-CB8mhU2a.js';
2
+ export { A as ADAPTER_API_VERSION, a as ADMIN_ICONS, b as Access, c as AccessArgs, d as AccessOptions, e as AdminBrand, f as AdminCommand, g as AdminComponent, h as AdminConfig, i as AdminFieldArgs, j as AdminIcon, k as AdminLocale, l as AdminPage, m as AdminRole, n as AdminRoleChange, o as AdminRoleField, p as AdminRoleTarget, q as AdminRoleView, r as AdminRoles, s as AdminSso, t as AdminSwitcher, u as AdminViewAccess, v as AfterChangeHook, w as AfterDeleteHook, x as AfterReadHook, y as ApiKeyContext, z as ApiKeyGlobalOperation, B as ApiKeyOperation, C as ApiKeyPermissions, D as ArrayField, F as AuditChange, G as AuditConfig, H as AuditEntry, J as AuditLog, K as AuditPage, L as AuditVerification, M as Auth, N as AuthConfig, O as AuthProvider, Q as AuthProviderProfile, R as AuthProviderRequest, S as AuthUser, T as BackupsConfig, U as BeforeChangeHook, V as BeforeDeleteHook, W as BeforeValidateHook, X as Block, Y as BlocksField, Z as BooleanField, _ as BuiltinApiKeysCollection, $ as BuiltinMediaCollection, a0 as BuiltinMediaFoldersCollection, a1 as BuiltinUsersCollection, a2 as BundleHints, a3 as CliCommand, a4 as CollectionAccess, a5 as CollectionAdmin, a6 as CollectionConfig, a7 as CollectionDocument, a8 as CollectionHooks, a9 as CollectionListAdmin, aa as CollectionSlug, ab as Config, ac as ConfigError, ad as ConfigIssue, ae as ContainerAdmin, af as CreateEasyCMSOptions, ag as CreateInput, ah as CreateMigrationResult, ai as CustomField, aj as CustomFieldTypes, ak as DashboardWidget, al as Database, am as DatabaseAdapter, an as DatabaseInitArgs, ao as DatabaseTransfer, ap as DateField, aq as DepthOptions, ar as DirectUpload, as as DiskStorageOptions, at as DocumentOf, au as EasyCMS, av as EasyCMSError, aw as EmailAdapter, ax as EmailField, ay as EmailMessage, az as Endpoint, aA as EndpointRequest, aB as ErrorCode, aC as FIELD_TYPES, aD as Field, aE as FieldAccess, aF as FieldAccessFn, aG as FieldAdmin, aH as FieldError, aI as FieldRule, aJ as FieldType, aK as FieldTypeBase, aL as FieldTypeDefinition, aM as FieldTypeValidateContext, aN as FieldValidate, aO as FieldValidateContext, aP as FieldValue, aQ as FieldsInput, aR as FieldsValue, aS as FilterOptions, aT as FilterOptionsArgs, aU as FindArgs, aV as FindOptions, aW as FolderLevel, aX as FolderPermissions, aY as ForbiddenError, aZ as GlobalAccess, a_ as GlobalConfig, a$ as GlobalDocument, b0 as GlobalHooks, b1 as GlobalInput, b2 as GlobalSlug, b3 as GroupField, b4 as ImageSize, b5 as IncrementOptions, b6 as InferCollection, b7 as InferGlobal, b8 as JobConfig, b9 as JsonField, ba as Label, bb as LayoutNode, bc as LivePreview, bd as LocaleOf, be as LocalizationConfig, bf as Logger, bg as LoginArgs, bh as MediaDocument, bi as MediaSize, bj as MembersConfig, bk as MembersSignup, bl as MigrationInfo, bm as NavGroup, bn as NotFoundError, bo as NumberField, bp as OnRequest, bq as OnRequestArgs, br as Operation, bs as PLUGIN_API_VERSION, bt as PasswordEmail, bu as PasswordEmailArgs, bv as PasswordEmailFn, bw as PasswordLinkOptions, bx as PayloadTooLargeError, by as Plugin, bz as PluginInfo, bA as PluginTypes, bB as PreviewTarget, bC as PreviewURL, bD as QueryError, bE as ROLE_OPERATIONS, bF as RawDocument, bG as ReadOptions, bH as RelationshipField, bI as RequestContext, bJ as ResolvedConfig, bK as RichTextDocument, bL as RichTextField, bM as Role, bN as RoleOperation, bO as RolePermissions, bP as Roles, bQ as RoutesConfig, bR as ScheduledPublish, bS as SchemaError, bT as SchemaMode, bU as SelectField, bV as SelectOption, bW as Session, bX as SidebarPanel, bY as SignupArgs, bZ as SignupResult, b_ as SingleSignOn, b$ as SlugField, c0 as SlugOf, c1 as SsoOutcome, c2 as SsoProviderRef, c3 as StorageAdapter, c4 as StoredFile, c5 as TextField, c6 as TextareaField, c7 as TooManyRequestsError, c8 as TypedPlugin, c9 as UnauthorizedError, ca as UpdateInput, cb as UpdateOptions, cc as UploadConfig, cd as UploadField, ce as UploadFromURLConfig, cf as UserIdentity, cg as ValidationError, ch as Version, ci as VersionSummary, cj as VersionsConfig, ck as WEBHOOK_EVENTS, cl as WebhookConfig, cm as WebhookEvent, cn as WebhookPayload, co as Where, cp as WhereOperators, cq as anyone, cr as consoleEmail, cs as consoleLogger, ct as createEasyCMS, cu as defineConfig, cv as defineFieldType, cw as definePlugin, cx as diskStorage, cy as hasRows, cz as isAdmin, cA as isHasMany, cB as isSignedIn, cC as isStaff, cD as isSystemAdmin, cE as mimeAllowedBy, cF as rowFields, cG as silentLogger, cH as uniqueWithinOf } from './config-CB8mhU2a.js';
3
+ export { A as ADMIN_API_VERSION, a as AdminCollection, b as AdminComponentRef, c as AdminElementProps, d as AdminField, e as AdminGlobal, f as AdminLayoutNode, g as AdminNavGroup, h as AdminNavItem, i as AdminNavNode, j as AdminPageRef, k as AdminPageRoute, l as AdminSchema, m as AdminWidgetRef, S as SetFieldDetail, w as warnDeprecated } from './plugin-CJCqvyo_.js';
4
+ export { A as AdminBackup, a as AdminBackups, b as ApiHandlerOptions, B as BackupState, L as LoadConfigOptions, R as RestHandler, c as RestHandlerOptions, d as createApiHandler, e as createRestHandler, l as loadConfig, r as resolveConfig, s as sharedEasyCMS, f as slugify } from './handler-bybEUkpd.js';
5
5
  export { FieldCondition, matchesCondition } from './conditions.js';
6
6
 
7
7
  type DeliveryKind = 'webhook' | 'email';
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  sharedEasyCMS,
24
24
  silentLogger,
25
25
  slugify
26
- } from "./chunk-Y6KQLWXM.js";
26
+ } from "./chunk-M4LMZIP4.js";
27
27
  import {
28
28
  matchesCondition
29
29
  } from "./chunk-U266LV4M.js";
@@ -1,6 +1,6 @@
1
- import { ab as Config, al as Database, bl as NavGroup, a6 as CollectionConfig, I as ID, bE as RawDocument, aD as Field, bI as ResolvedConfig, ad as ConfigIssue } from './config-CBssruvP.js';
2
- export { cH as API_KEYS, cI as API_KEY_GLOBAL_OPERATIONS, cJ as API_KEY_OPERATIONS, cK as DEFAULT_MAX_VERSIONS, cL as DEFAULT_PASSWORD_EMAILS, cM as FIELD_TYPE_BASES, cN as FOLDER_LEVELS, cO as MediaFolders, cP as SSO_COOKIE, cQ as codeOfStatus, cx as hasRows, cz as isHasMany, cR as keyAllows, cD as mimeAllowedBy, cE as rowFields, cG as uniqueWithinOf } from './config-CBssruvP.js';
3
- export { C as CONFIG_FILE_NAMES, g as CSRF_COOKIE, h as CSRF_HEADER, D as DEFAULT_ADMIN_PATH, i as DEFAULT_API_PATH, j as DEFAULT_MAX_FILE_SIZE, k as DEFAULT_TOKEN_EXPIRATION, m as applyDefaults, n as applyPlugins, o as createRootEndpointHandler, p as decryptBackup, q as fillMissing, t as findConfigFile, u as forwardedClientIp, v as generateSlugs, w as importConfig, x as mergeForUpdate, y as parseId, z as platformClientIp, E as readCookie, F as validateFields, G as writeBackupFile } from './handler-BcFlwRK8.js';
1
+ import { ab as Config, al as Database, bm as NavGroup, a6 as CollectionConfig, I as ID, bF as RawDocument, aD as Field, bJ as ResolvedConfig, ad as ConfigIssue } from './config-CB8mhU2a.js';
2
+ export { cI as API_KEYS, cJ as API_KEY_GLOBAL_OPERATIONS, cK as API_KEY_OPERATIONS, cL as DEFAULT_MAX_VERSIONS, cM as DEFAULT_PASSWORD_EMAILS, cN as FIELD_TYPE_BASES, cO as FOLDER_LEVELS, cP as MediaFolders, cQ as SSO_COOKIE, cR as codeOfStatus, cy as hasRows, cA as isHasMany, cS as keyAllows, cE as mimeAllowedBy, cF as rowFields, cH as uniqueWithinOf } from './config-CB8mhU2a.js';
3
+ export { C as CONFIG_FILE_NAMES, g as CSRF_COOKIE, h as CSRF_HEADER, D as DEFAULT_ADMIN_PATH, i as DEFAULT_API_PATH, j as DEFAULT_MAX_FILE_SIZE, k as DEFAULT_TOKEN_EXPIRATION, m as applyDefaults, n as applyPlugins, o as createRootEndpointHandler, p as decryptBackup, q as fillMissing, t as findConfigFile, u as forwardedClientIp, v as generateSlugs, w as importConfig, x as mergeForUpdate, y as parseId, z as platformClientIp, E as readCookie, F as validateFields, G as writeBackupFile } from './handler-bybEUkpd.js';
4
4
  export { conditionIssues } from './conditions.js';
5
5
 
6
6
  /** The session cookie the REST API sets at login. */
package/dist/internal.js CHANGED
@@ -53,7 +53,7 @@ import {
53
53
  verifyPassword,
54
54
  verifyTurnstile,
55
55
  writeBackupFile
56
- } from "./chunk-Y6KQLWXM.js";
56
+ } from "./chunk-M4LMZIP4.js";
57
57
  import {
58
58
  conditionIssues
59
59
  } from "./chunk-U266LV4M.js";
@@ -1,4 +1,4 @@
1
- import { ba as Label, aD as Field, I as ID, k as AdminLocale, t as AdminSwitcher, c1 as SsoProviderRef } from './config-CBssruvP.js';
1
+ import { ba as Label, aD as Field, I as ID, k as AdminLocale, t as AdminSwitcher, c2 as SsoProviderRef } from './config-CB8mhU2a.js';
2
2
  import { FieldCondition } from './conditions.js';
3
3
 
4
4
  /** A Web Component from an admin module, with its `props` (plain JSON). */
package/dist/plugin.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { a as ADMIN_ICONS, g as AdminComponent, j as AdminIcon, S as AuthUser, a3 as CliCommand, a4 as CollectionAccess, a6 as CollectionConfig, ab as Config, ac as ConfigError, ak as DashboardWidget, av as EasyCMSError, az as Endpoint, aA as EndpointRequest, aB as ErrorCode, aD as Field, aE as FieldAccess, aH as FieldError, aK as FieldTypeBase, aL as FieldTypeDefinition, aM as FieldTypeValidateContext, aY as ForbiddenError, a_ as GlobalConfig, I as ID, b8 as JobConfig, ba as Label, bl as NavGroup, bm as NotFoundError, bo as OnRequest, bp as OnRequestArgs, br as PLUGIN_API_VERSION, bw as PayloadTooLargeError, bx as Plugin, by as PluginInfo, bz as PluginTypes, bC as QueryError, bH as RequestContext, c6 as TooManyRequestsError, c7 as TypedPlugin, c8 as UnauthorizedError, cf as ValidationError, cn as Where, cu as defineFieldType, cv as definePlugin } from './config-CBssruvP.js';
2
- export { A as ADMIN_API_VERSION, c as AdminElementProps, k as AdminPageRoute, S as SetFieldDetail, w as warnDeprecated } from './plugin-CnqJrjt8.js';
1
+ export { a as ADMIN_ICONS, g as AdminComponent, j as AdminIcon, S as AuthUser, a3 as CliCommand, a4 as CollectionAccess, a6 as CollectionConfig, ab as Config, ac as ConfigError, ak as DashboardWidget, av as EasyCMSError, az as Endpoint, aA as EndpointRequest, aB as ErrorCode, aD as Field, aE as FieldAccess, aH as FieldError, aK as FieldTypeBase, aL as FieldTypeDefinition, aM as FieldTypeValidateContext, aY as ForbiddenError, a_ as GlobalConfig, I as ID, b8 as JobConfig, ba as Label, bm as NavGroup, bn as NotFoundError, bp as OnRequest, bq as OnRequestArgs, bs as PLUGIN_API_VERSION, bx as PayloadTooLargeError, by as Plugin, bz as PluginInfo, bA as PluginTypes, bD as QueryError, bI as RequestContext, c7 as TooManyRequestsError, c8 as TypedPlugin, c9 as UnauthorizedError, cg as ValidationError, co as Where, cv as defineFieldType, cw as definePlugin } from './config-CB8mhU2a.js';
2
+ export { A as ADMIN_API_VERSION, c as AdminElementProps, k as AdminPageRoute, S as SetFieldDetail, w as warnDeprecated } from './plugin-CJCqvyo_.js';
3
3
  import './conditions.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easy-cms/core",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Embedded, code-first headless CMS for Nuxt and Next.js",
5
5
  "license": "MIT",
6
6
  "type": "module",