@object-ui/fields 11.5.0 → 13.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,11 @@
1
1
  import { default as React } from 'react';
2
2
  import { FieldMetadata } from '@object-ui/types';
3
3
  import { resolveFieldCurrency } from './currency';
4
+ /**
5
+ * Pick the most reasonable display name from an arbitrary record object.
6
+ * Tries common name-like keys in priority order, then falls back to undefined.
7
+ */
8
+ export declare function pickRecordDisplayName(record: Record<string, unknown> | null | undefined, preferredField?: string): string | undefined;
4
9
  /**
5
10
  * Heuristic: detect strings that look like opaque foreign-key IDs (e.g. nanoid
6
11
  * or BSON ObjectId). Used so we don't display random gibberish to users when