@asteby/metacore-runtime-react 18.1.0 → 18.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.
@@ -48,7 +48,7 @@ import type { ActionFieldDef } from './types'
48
48
  * not a gallery). Inline style for the box dimensions: arbitrary Tailwind
49
49
  * classes from a federated addon don't always survive the host's class scan.
50
50
  */
51
- function OptionThumb({ image, size = 20 }: { image?: string | null; size?: number }) {
51
+ export function OptionThumb({ image, size = 20 }: { image?: string | null; size?: number }) {
52
52
  const box = { width: size, height: size }
53
53
  if (!image) {
54
54
  return (
@@ -83,7 +83,7 @@ function OptionThumb({ image, size = 20 }: { image?: string | null; size?: numbe
83
83
  * else a declared icon, else a color dot (enum/status options with a color).
84
84
  * Returns null when the option carries none, so plain text options stay plain.
85
85
  */
86
- function OptionLead({
86
+ export function OptionLead({
87
87
  option,
88
88
  size = 20,
89
89
  }: {
package/src/index.ts CHANGED
@@ -68,7 +68,8 @@ export {
68
68
  } from './dynamic-columns'
69
69
  export { humanizeToken } from './dynamic-columns-helpers'
70
70
  export { NIL_UUID, isNilUuid, normalizeNilUuid } from './nil-uuid'
71
- export { DynamicRecordDialog } from './dialogs/dynamic-record'
71
+ export { DynamicRecordDialog, ViewValue } from './dialogs/dynamic-record'
72
+ export type { DynamicRecordDialogProps, FieldDef, FieldOption, GetImageUrl } from './dialogs/dynamic-record'
72
73
  export { CreateRecordDialog } from './dialogs/create-record-dialog'
73
74
  export { ViewRecordDialog } from './dialogs/view-record-dialog'
74
75
  export type {