@inf-monkeys-tech/monkeys-design 2.0.317 → 2.0.318

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.
Files changed (34) hide show
  1. package/dist/components/assembly/catalog.d.mts +1 -1
  2. package/dist/components/assembly/catalog.d.ts +1 -1
  3. package/dist/components/assembly/index.d.mts +1 -1
  4. package/dist/components/assembly/index.d.ts +1 -1
  5. package/dist/components/assembly/runtime.d.mts +1 -1
  6. package/dist/components/assembly/runtime.d.ts +1 -1
  7. package/dist/components/capabilities/index.d.mts +2 -2
  8. package/dist/components/capabilities/index.d.ts +2 -2
  9. package/dist/components/capabilities/index.js +96 -96
  10. package/dist/components/capabilities/index.js.map +1 -1
  11. package/dist/components/capabilities/index.mjs +11 -11
  12. package/dist/components/capabilities/index.mjs.map +1 -1
  13. package/dist/components/data-explorer/index.js +1 -1
  14. package/dist/components/data-explorer/index.js.map +1 -1
  15. package/dist/components/data-explorer/index.mjs +1 -1
  16. package/dist/components/data-explorer/index.mjs.map +1 -1
  17. package/dist/components/workbench/index.d.mts +1 -1
  18. package/dist/components/workbench/index.d.ts +1 -1
  19. package/dist/{contracts.d-feecade4de71.d.ts → contracts.d-0186561cdb39.d.ts} +1 -0
  20. package/dist/{contracts.d-f5deb318e87d.d.mts → contracts.d-6d736c12ba67.d.mts} +1 -0
  21. package/dist/{contracts.d-f5deb318e87d.d.ts → contracts.d-6d736c12ba67.d.ts} +1 -0
  22. package/dist/{contracts.d-9ddd80b7166b.d.mts → contracts.d-fb3821943b55.d.mts} +1 -0
  23. package/dist/icons/runtime/index.d.mts +1 -1
  24. package/dist/icons/runtime/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/index.js.map +1 -1
  27. package/dist/index.mjs +1 -1
  28. package/dist/index.mjs.map +1 -1
  29. package/dist/runtime-entry.d-b71225a810bf.d.ts +1 -1
  30. package/dist/runtime-entry.d-e722d45bd1d0.d.mts +1 -1
  31. package/dist/sources/{1c83227132c69991f17a6043f5657448aea8857d83a044e3db3581ab57bea170.tsx → 0d89dd36e559711654448399a6c530d72b8adfd85028b9c7a1f6143be9ed5d3f.tsx} +3 -2
  32. package/dist/sources/{4c15db9df8bb6d9c6cd6e7cf42534c7853a4e3b4b5e42146498a87106d514a26.tsx → 1936d47d78d7faf9e01eda58f03f56eb01ce4ef105971cc87935d97f6f1f6b6c.tsx} +7 -3
  33. package/dist/styles.css +1 -1
  34. package/package.json +1 -1
@@ -2,7 +2,7 @@ import * as _inf_monkeys_tech_monkeys from '@inf-monkeys-tech/monkeys';
2
2
  import { JsonObject, ComponentAssemblyDescriptor, ComponentAssembly } from '@inf-monkeys-tech/monkeys';
3
3
  import * as react from 'react';
4
4
  import { ReactNode, ComponentType } from 'react';
5
- import { a as DesignCapabilityRendererContext } from './contracts.d-f5deb318e87d.js';
5
+ import { a as DesignCapabilityRendererContext } from './contracts.d-6d736c12ba67.js';
6
6
  interface ComponentAssemblyHost {
7
7
  elementProps?: react.HTMLAttributes<HTMLElement> & {
8
8
  ref?: react.Ref<HTMLElement>;
@@ -2,7 +2,7 @@ import * as _inf_monkeys_tech_monkeys from '@inf-monkeys-tech/monkeys';
2
2
  import { JsonObject, ComponentAssemblyDescriptor, ComponentAssembly } from '@inf-monkeys-tech/monkeys';
3
3
  import * as react from 'react';
4
4
  import { ReactNode, ComponentType } from 'react';
5
- import { a as DesignCapabilityRendererContext } from './contracts.d-f5deb318e87d.mjs';
5
+ import { a as DesignCapabilityRendererContext } from './contracts.d-6d736c12ba67.mjs';
6
6
  interface ComponentAssemblyHost {
7
7
  elementProps?: react.HTMLAttributes<HTMLElement> & {
8
8
  ref?: react.Ref<HTMLElement>;
@@ -174,7 +174,8 @@ export function DataExplorerRecordPicker({
174
174
  {...dataAttributes?.content}
175
175
  align="start"
176
176
  sideOffset={6}
177
- className={cn('z-50 w-[var(--radix-popover-trigger-width)] max-w-[calc(100vw-2rem)] rounded-md border border-border bg-popover p-2 text-popover-foreground shadow-md', classNames?.content)}
177
+ collisionPadding={16}
178
+ className={cn('z-50 box-border w-max min-w-[var(--radix-popover-trigger-width)] max-w-[min(40rem,calc(100vw-2rem))] rounded-md border border-border bg-popover p-2 text-popover-foreground shadow-md', classNames?.content)}
178
179
  onOpenAutoFocus={(event) => event.preventDefault()}
179
180
  >
180
181
  <label className={cn('flex h-9 items-center gap-2 rounded-md border border-border bg-background px-2 text-sm', classNames?.search)}>
@@ -229,7 +230,7 @@ export function DataExplorerRecordPicker({
229
230
  {selected ? <Check className="h-4 w-4" aria-hidden="true" /> : null}
230
231
  </span>
231
232
  <span className="min-w-0 flex-1">
232
- <span className={cn('block truncate', classNames?.optionLabel)}>{option.label}</span>
233
+ <span className={cn('block whitespace-normal [overflow-wrap:anywhere]', classNames?.optionLabel)}>{option.label}</span>
233
234
  {option.description ? <span className={cn('mt-0.5 block truncate text-xs text-muted-foreground', classNames?.optionDescription)}>{option.description}</span> : null}
234
235
  </span>
235
236
  </button>
@@ -3,9 +3,10 @@ import { Check, ChevronDown, Loader2, X } from 'lucide-react';
3
3
  import type { CapabilityTranslate } from './contracts';
4
4
  import { BaseButton } from '../base/BaseButton';
5
5
  import { BaseInput } from '../base/BaseInput';
6
+ import { BaseAvatar } from '../base/BaseAvatar';
6
7
  import { Popover, PopoverAnchor, PopoverContent } from '../primitives/Popover';
7
8
 
8
- export interface RecordEditorSearchItem { id: string; label: string; ontologyId?: string }
9
+ export interface RecordEditorSearchItem { id: string; label: string; description?: string; ontologyId?: string }
9
10
  export interface RecordEditorRelationItem extends RecordEditorSearchItem { ontologyId: string }
10
11
  export interface RecordEditorChoiceRuntime<T extends RecordEditorSearchItem = RecordEditorSearchItem> {
11
12
  key: string;
@@ -93,8 +94,11 @@ export function RecordEditorRelationSearch<T extends RecordEditorSearchItem>({ f
93
94
  disabled={disabled || loading || failed || (!selectedIds.has(selectedKey(item)) && selected.length >= limit)}
94
95
  classNames={{label:"flex w-full min-w-0 items-center gap-2"}} className={`flex h-auto w-full min-w-0 items-center justify-start gap-2 rounded-sm border-0 px-2 py-2 text-left text-sm shadow-none disabled:opacity-50 ${active === index ? 'bg-accent' : ''}`}
95
96
  onMouseDown={event => event.preventDefault()} onClick={() => toggle(item)}>
96
- <span aria-hidden="true" className="flex size-7 shrink-0 items-center justify-center rounded-full bg-muted text-xs">{item.label.slice(0, 2)}</span>
97
- <span className="min-w-0 flex-1 truncate" title={labels.current.get(selectedKey(item)) ?? item.label}>{labels.current.get(selectedKey(item)) ?? item.label}</span>{selectedIds.has(selectedKey(item)) ? <Check className="size-4 shrink-0" aria-hidden="true" /> : null}
97
+ <BaseAvatar name={item.label} size="sm" aria-hidden="true" />
98
+ <span className="min-w-0 flex-1 text-left">
99
+ <span className={`block truncate leading-tight ${item.description ? 'font-semibold' : ''}`} title={labels.current.get(selectedKey(item)) ?? item.label}>{labels.current.get(selectedKey(item)) ?? item.label}</span>
100
+ {item.description ? <span className="mt-0.5 block truncate text-xs font-normal leading-tight text-muted-foreground" title={item.description}>{item.description}</span> : null}
101
+ </span>{selectedIds.has(selectedKey(item)) ? <Check className="size-4 shrink-0" aria-hidden="true" /> : null}
98
102
  </BaseButton>)}
99
103
  </div>
100
104
  {loading ? <p role="status" className="flex items-center gap-2 p-2 text-sm text-muted-foreground"><Loader2 className="size-4 animate-spin" />{messages.loading}</p> : null}