@object-ui/fields 11.5.0 → 13.2.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
@@ -287,6 +292,7 @@ export * from './widgets/PasswordField';
287
292
  export * from './widgets/TextAreaField';
288
293
  export * from './widgets/RichTextField';
289
294
  export * from './widgets/LookupField';
295
+ export * from './widgets/CapabilityMultiSelectField';
290
296
  export * from './widgets/RecordPickerDialog';
291
297
  export * from './widgets/FileField';
292
298
  export * from './widgets/ImageField';