@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donotdev/core",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -51,7 +51,7 @@
51
51
  ],
52
52
  "sideEffects": false,
53
53
  "peerDependencies": {
54
- "@donotdev/components": "^0.0.19",
54
+ "@donotdev/components": "^0.0.21",
55
55
  "@sentry/react": "^10.39.0",
56
56
  "lucide-react": "^0.574.0",
57
57
  "react": "^19.2.4",
@@ -85,11 +85,22 @@
85
85
  "access": "public"
86
86
  },
87
87
  "dependencies": {
88
+ "@clack/prompts": "^1.0.1",
89
+ "@rollup/plugin-strip": "^3.0.4",
88
90
  "@tanstack/react-query": "^5.90.21",
89
- "i18next": "^25.8.11",
91
+ "@vitejs/plugin-basic-ssl": "^2.1.4",
92
+ "autoprefixer": "^10.4.24",
93
+ "fast-glob": "^3.3.3",
94
+ "i18next": "^25.8.13",
90
95
  "i18next-browser-languagedetector": "^8.2.1",
91
- "i18next-http-backend": "3.0.2",
92
- "react-i18next": "^16.5.4"
96
+ "i18next-http-backend": "^3.0.2",
97
+ "postcss": "^8.5.6",
98
+ "postcss-import": "^16.1.1",
99
+ "postcss-nesting": "^14.0.0",
100
+ "react-i18next": "^16.5.4",
101
+ "rollup-plugin-visualizer": "^6.0.5",
102
+ "vite-plugin-pwa": "1.2.0",
103
+ "vite-tsconfig-paths": "^6.1.1"
93
104
  },
94
105
  "peerDependenciesMeta": {}
95
106
  }
package/server.d.ts CHANGED
@@ -4596,7 +4596,7 @@ declare const LIST_SCHEMA_TYPE: {
4596
4596
  readonly LIST_CARD: "listCard";
4597
4597
  };
4598
4598
  type ListSchemaType = (typeof LIST_SCHEMA_TYPE)[keyof typeof LIST_SCHEMA_TYPE];
4599
- 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"];
4599
+ 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"];
4600
4600
 
4601
4601
  /**
4602
4602
  * @fileoverview Schema-Related Type Definitions
@@ -4906,6 +4906,7 @@ type FieldTypeToValue = {
4906
4906
  document: FileAsset | null;
4907
4907
  documents: FileAsset[];
4908
4908
  email: string;
4909
+ 'field-array': Record<string, unknown>[];
4909
4910
  file: FileAsset | null;
4910
4911
  files: FileAsset[];
4911
4912
  geopoint: {
@@ -5590,6 +5591,32 @@ interface BusinessEntity {
5590
5591
  * ```
5591
5592
  */
5592
5593
  security?: SecurityEntityConfig;
5594
+ /**
5595
+ * Client-side search config for `useCrudList`/`useCrudCardList` `searchQuery` option.
5596
+ * If omitted, all text-like visible fields are searched automatically.
5597
+ *
5598
+ * @example
5599
+ * ```typescript
5600
+ * search: { fields: ['name', 'description', 'sku'] }
5601
+ * ```
5602
+ */
5603
+ search?: {
5604
+ fields?: string[];
5605
+ };
5606
+ /**
5607
+ * Default client-side sort for list hooks.
5608
+ * Applied when no explicit `clientSort` option is passed and no `orderBy` in `queryOptions`.
5609
+ * Pass `clientSort: null` in hook options to disable.
5610
+ *
5611
+ * @example
5612
+ * ```typescript
5613
+ * defaultSort: { field: 'createdAt', direction: 'desc' }
5614
+ * ```
5615
+ */
5616
+ defaultSort?: {
5617
+ field: string;
5618
+ direction?: 'asc' | 'desc';
5619
+ };
5593
5620
  }
5594
5621
  /**
5595
5622
  * Complete entity definition including base fields