@donotdev/core 0.0.25 → 0.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -4601,7 +4601,7 @@ declare const LIST_SCHEMA_TYPE: {
4601
4601
  readonly LIST_CARD: "listCard";
4602
4602
  };
4603
4603
  type ListSchemaType = (typeof LIST_SCHEMA_TYPE)[keyof typeof LIST_SCHEMA_TYPE];
4604
- declare const FIELD_TYPES: readonly ["address", "array", "avatar", "badge", "boolean", "checkbox", "color", "combobox", "date", "datetime-local", "document", "documents", "duration", "email", "file", "files", "gdprConsent", "geopoint", "hidden", "iban", "image", "images", "map", "month", "multiselect", "number", "currency", "price", "password", "radio", "reference", "range", "rating", "reset", "richtext", "select", "submit", "switch", "tel", "text", "textarea", "time", "timestamp", "url", "week", "year"];
4604
+ declare const FIELD_TYPES: readonly ["address", "array", "avatar", "badge", "boolean", "checkbox", "color", "combobox", "date", "datetime-local", "document", "documents", "duration", "email", "field-array", "file", "files", "gdprConsent", "geopoint", "hidden", "iban", "image", "images", "map", "month", "multiselect", "number", "currency", "price", "password", "radio", "reference", "range", "rating", "reset", "richtext", "select", "submit", "switch", "tel", "text", "textarea", "time", "timestamp", "url", "week", "year"];
4605
4605
 
4606
4606
  /**
4607
4607
  * @fileoverview Schema-Related Type Definitions
@@ -4911,6 +4911,7 @@ type FieldTypeToValue = {
4911
4911
  document: FileAsset | null;
4912
4912
  documents: FileAsset[];
4913
4913
  email: string;
4914
+ 'field-array': Record<string, unknown>[];
4914
4915
  file: FileAsset | null;
4915
4916
  files: FileAsset[];
4916
4917
  geopoint: {
@@ -5595,6 +5596,32 @@ interface BusinessEntity {
5595
5596
  * ```
5596
5597
  */
5597
5598
  security?: SecurityEntityConfig;
5599
+ /**
5600
+ * Client-side search config for `useCrudList`/`useCrudCardList` `searchQuery` option.
5601
+ * If omitted, all text-like visible fields are searched automatically.
5602
+ *
5603
+ * @example
5604
+ * ```typescript
5605
+ * search: { fields: ['name', 'description', 'sku'] }
5606
+ * ```
5607
+ */
5608
+ search?: {
5609
+ fields?: string[];
5610
+ };
5611
+ /**
5612
+ * Default client-side sort for list hooks.
5613
+ * Applied when no explicit `clientSort` option is passed and no `orderBy` in `queryOptions`.
5614
+ * Pass `clientSort: null` in hook options to disable.
5615
+ *
5616
+ * @example
5617
+ * ```typescript
5618
+ * defaultSort: { field: 'createdAt', direction: 'desc' }
5619
+ * ```
5620
+ */
5621
+ defaultSort?: {
5622
+ field: string;
5623
+ direction?: 'asc' | 'desc';
5624
+ };
5598
5625
  }
5599
5626
  /**
5600
5627
  * Complete entity definition including base fields
@@ -16344,8 +16371,8 @@ declare function clearPartnerCache(): void;
16344
16371
  declare function getPartnerCacheStatus(): {
16345
16372
  authPartnersCached: boolean;
16346
16373
  oauthPartnersCached: boolean;
16347
- authPartners: ("password" | "apple" | "discord" | "emailLink" | "facebook" | "github" | "google" | "linkedin" | "microsoft" | "reddit" | "spotify" | "twitch" | "twitter" | "yahoo")[] | null;
16348
- oauthPartners: ("medium" | "discord" | "github" | "google" | "linkedin" | "reddit" | "spotify" | "twitch" | "twitter" | "notion" | "slack" | "mastodon" | "youtube")[] | null;
16374
+ authPartners: ("apple" | "discord" | "emailLink" | "facebook" | "github" | "google" | "linkedin" | "microsoft" | "password" | "reddit" | "spotify" | "twitch" | "twitter" | "yahoo")[] | null;
16375
+ oauthPartners: ("discord" | "github" | "google" | "linkedin" | "reddit" | "spotify" | "twitch" | "twitter" | "notion" | "slack" | "medium" | "mastodon" | "youtube")[] | null;
16349
16376
  };
16350
16377
  /**
16351
16378
  * Get AuthPartnerId from Firebase provider ID
@@ -24221,7 +24248,7 @@ interface UseBreathingTimerProps {
24221
24248
  * @author AMBROISE PARK Consulting
24222
24249
  */
24223
24250
  declare function useBreathingTimer({ duration, onComplete, }: UseBreathingTimerProps): {
24224
- status: "paused" | "active" | "idle" | "complete";
24251
+ status: "active" | "idle" | "paused" | "complete";
24225
24252
  timeRemaining: number;
24226
24253
  start: () => void;
24227
24254
  togglePause: () => void;