@inf-monkeys-tech/monkeys-design 1.0.44 → 1.0.45

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.
@@ -703,6 +703,13 @@ interface WorkbenchGalleryViewProps<Row = any> extends Omit<WorkbenchGalleryCard
703
703
  }) => undefined | WorkbenchMasonryItemSize;
704
704
  }
705
705
  declare function WorkbenchGalleryView<Row = any>({ rows, columns, onRowClick, selectedLinkKey, selectedRowKey, className, isMasonry, galleryLayoutMode, galleryRailCardWidth, galleryGridColumns, galleryGridCardWidth, galleryMasonryColumnWidth, masonryPlacementStrategy, galleryFieldKey, galleryDensity, galleryBentoColumns, galleryDetailVisibility, galleryDetailLimit, shouldEnhanceMultimodal, getFieldValue, isMediaColumn, isTitleCandidate, isSummaryCandidate, getDisplayText, renderFieldValue, getImagePreviewSrc, isImageField, isAudioField, AudioPlayerComponent, cardVariant, renderPreview, renderMeta, renderLeadingVisual, resolveRecordVisual, hiddenDetailFieldKeys, labels, formatLabel, getMasonryItemSize, }: WorkbenchGalleryViewProps<Row>): react_jsx_runtime.JSX.Element;
706
+ type WorkbenchCollectionLoadingVariant = 'skeleton' | 'spinner';
707
+ interface WorkbenchCollectionSkeletonConfig {
708
+ count?: number;
709
+ loadMoreCount?: number;
710
+ aspectRatios?: readonly number[];
711
+ animated?: boolean;
712
+ }
706
713
  type WorkbenchCollectionKey = number | string;
707
714
  type WorkbenchCollectionLayoutMode = 'dense' | 'grid' | 'masonry' | 'rail';
708
715
  type WorkbenchCollectionSelectionMode = 'multiple' | 'none' | 'single';
@@ -778,6 +785,9 @@ interface WorkbenchCollectionLoadingConfig {
778
785
  threshold?: number;
779
786
  /** Request another page while the configured scroll viewport is not filled. */
780
787
  autoFill?: boolean;
788
+ /** Collection loading defaults to a layout-aware skeleton. */
789
+ variant?: WorkbenchCollectionLoadingVariant;
790
+ skeleton?: WorkbenchCollectionSkeletonConfig;
781
791
  }
782
792
  type WorkbenchCollectionHoverEffect = 'highlight' | 'lift-shadow' | 'lift' | 'none' | 'scale' | 'shadow';
783
793
  type WorkbenchCollectionTitleVisibility = 'always' | 'hover' | 'never';
@@ -1243,4 +1253,4 @@ interface WorkbenchRadarMatrixProps {
1243
1253
  className?: string;
1244
1254
  }
1245
1255
  declare function WorkbenchRadarMatrix({ points, xAxis, yAxis, thresholds, quadrants, legend, selectedPointId, onPointSelect, width, height, labelLimit, emptyState, ariaLabel, className, }: WorkbenchRadarMatrixProps): null | react_jsx_runtime.JSX.Element;
1246
- export { InteractiveTable, type InteractiveTableClassNames, type InteractiveTableColumn, type InteractiveTableColumnMenuLabels, InteractiveTableEditableTextCell, type InteractiveTableEditableTextCellProps, type InteractiveTableHeaderContext, type InteractiveTableHeaderProps, type InteractiveTableProps, InteractiveTableReadonlyCell, type InteractiveTableReadonlyCellProps, type InteractiveTableRenderContext, type InteractiveTableRowState, InteractiveTableSelectCell, type InteractiveTableSelectCellProps, type InteractiveTableSelectOption, WorkbenchAssetGallery, type WorkbenchAssetGalleryItem, type WorkbenchAssetGalleryProps, WorkbenchCollection, type WorkbenchCollectionActionsPlacement, type WorkbenchCollectionActionsVisibility, type WorkbenchCollectionActivationEvent, type WorkbenchCollectionAppearanceConfig, type WorkbenchCollectionCallbacks, type WorkbenchCollectionClassNames, type WorkbenchCollectionConfig, type WorkbenchCollectionGroupContext, type WorkbenchCollectionGroupingConfig, type WorkbenchCollectionHoverEffect, type WorkbenchCollectionItemActionsConfig, type WorkbenchCollectionItemAlign, type WorkbenchCollectionItemConfig, type WorkbenchCollectionItemContext, type WorkbenchCollectionItemSize, type WorkbenchCollectionItemSlotName, type WorkbenchCollectionItemSlots, type WorkbenchCollectionItemStatus, type WorkbenchCollectionItemTitleConfig, type WorkbenchCollectionKey, type WorkbenchCollectionLabels, type WorkbenchCollectionLayoutConfig, type WorkbenchCollectionLayoutContext, type WorkbenchCollectionLayoutMode, type WorkbenchCollectionLayoutSnapshot, type WorkbenchCollectionLoadingConfig, type WorkbenchCollectionProps, type WorkbenchCollectionResponsive, type WorkbenchCollectionSelectionBehavior, type WorkbenchCollectionSelectionConfig, type WorkbenchCollectionSelectionMode, type WorkbenchCollectionSlotContext, type WorkbenchCollectionSlots, type WorkbenchCollectionStateConfig, type WorkbenchCollectionTitlePlacement, type WorkbenchCollectionTitleVisibility, type WorkbenchCollectionVirtualizationAdapter, type WorkbenchCollectionVirtualizationConfig, type WorkbenchCollectionVirtualizationRenderOptions, WorkbenchContentPane, type WorkbenchContentPaneBodyProps, type WorkbenchContentPaneClassNames, type WorkbenchContentPaneProps, WorkbenchContentToolbar, type WorkbenchContentToolbarClassNames, type WorkbenchContentToolbarProps, type WorkbenchContentToolbarViewModeOption, WorkbenchDetailSidebar, type WorkbenchDetailSidebarBodyProps, type WorkbenchDetailSidebarClassNames, type WorkbenchDetailSidebarField, type WorkbenchDetailSidebarProps, type WorkbenchDetailSidebarRenderContext, type WorkbenchDetailSidebarSection, type WorkbenchEvidenceItem, WorkbenchEvidenceList, type WorkbenchEvidenceListProps, WorkbenchGalleryCard, type WorkbenchGalleryCardMetaContext, type WorkbenchGalleryCardProps, type WorkbenchGalleryCardRenderContext, type WorkbenchGalleryColumn, type WorkbenchGalleryLabels, type WorkbenchGalleryRecordVisual, WorkbenchGallerySettingsButton, type WorkbenchGallerySettingsButtonClassNames, type WorkbenchGallerySettingsButtonProps, type WorkbenchGallerySettingsLabels, type WorkbenchGallerySettingsOption, WorkbenchGallerySettingsPanel, type WorkbenchGallerySettingsPanelClassNames, type WorkbenchGallerySettingsPanelProps, type WorkbenchGallerySettingsValue, WorkbenchGalleryView, type WorkbenchGalleryViewProps, type WorkbenchJourneyItem, type WorkbenchJourneyItemState, WorkbenchJourneyNavigation, type WorkbenchJourneyNavigationProps, type WorkbenchLaneClassNames, type WorkbenchLaneColumn, type WorkbenchLaneRenderCardContext, WorkbenchLaneView, type WorkbenchLaneViewProps, type WorkbenchMasonryItemSize, WorkbenchMasonryLayout, type WorkbenchMasonryLayoutContext, type WorkbenchMasonryLayoutProps, WorkbenchMetricGrid, type WorkbenchMetricGridDensity, type WorkbenchMetricGridProps, type WorkbenchMetricGridVariant, type WorkbenchMetricItem, WorkbenchRadarFilterChip, WorkbenchRadarInspectorSection, type WorkbenchRadarLegendItem, WorkbenchRadarMatrix, type WorkbenchRadarMatrixProps, WorkbenchRadarNavigation, type WorkbenchRadarNavigationChild, type WorkbenchRadarNavigationItem, type WorkbenchRadarNavigationProps, type WorkbenchRadarQuadrant, WorkbenchRadarWorkspace, type WorkbenchRadarWorkspaceProps, WorkbenchRankedList, type WorkbenchRankedListItem, type WorkbenchRankedListMetric, type WorkbenchRankedListProps, type WorkbenchRelationshipEdge, WorkbenchRelationshipGraph, type WorkbenchRelationshipGraphProps, type WorkbenchRelationshipNode, WorkbenchResizableSidebar, type WorkbenchResizableSidebarClassNames, type WorkbenchResizableSidebarItem, type WorkbenchResizableSidebarProps, type WorkbenchResizableSidebarSection, type WorkbenchScatterAxis, WorkbenchScatterPlot, type WorkbenchScatterPlotProps, type WorkbenchScatterPoint, type WorkbenchScatterThresholds, WorkbenchSelectionTray, type WorkbenchSelectionTrayItem, type WorkbenchSelectionTrayProps, WorkbenchTableView, type WorkbenchTableViewClassNames, type WorkbenchTableViewColumn, type WorkbenchTableViewHeaderContext, type WorkbenchTableViewProps, type WorkbenchTableViewRenderContext, type WorkbenchVisualizationTone };
1256
+ export { InteractiveTable, type InteractiveTableClassNames, type InteractiveTableColumn, type InteractiveTableColumnMenuLabels, InteractiveTableEditableTextCell, type InteractiveTableEditableTextCellProps, type InteractiveTableHeaderContext, type InteractiveTableHeaderProps, type InteractiveTableProps, InteractiveTableReadonlyCell, type InteractiveTableReadonlyCellProps, type InteractiveTableRenderContext, type InteractiveTableRowState, InteractiveTableSelectCell, type InteractiveTableSelectCellProps, type InteractiveTableSelectOption, WorkbenchAssetGallery, type WorkbenchAssetGalleryItem, type WorkbenchAssetGalleryProps, WorkbenchCollection, type WorkbenchCollectionActionsPlacement, type WorkbenchCollectionActionsVisibility, type WorkbenchCollectionActivationEvent, type WorkbenchCollectionAppearanceConfig, type WorkbenchCollectionCallbacks, type WorkbenchCollectionClassNames, type WorkbenchCollectionConfig, type WorkbenchCollectionGroupContext, type WorkbenchCollectionGroupingConfig, type WorkbenchCollectionHoverEffect, type WorkbenchCollectionItemActionsConfig, type WorkbenchCollectionItemAlign, type WorkbenchCollectionItemConfig, type WorkbenchCollectionItemContext, type WorkbenchCollectionItemSize, type WorkbenchCollectionItemSlotName, type WorkbenchCollectionItemSlots, type WorkbenchCollectionItemStatus, type WorkbenchCollectionItemTitleConfig, type WorkbenchCollectionKey, type WorkbenchCollectionLabels, type WorkbenchCollectionLayoutConfig, type WorkbenchCollectionLayoutContext, type WorkbenchCollectionLayoutMode, type WorkbenchCollectionLayoutSnapshot, type WorkbenchCollectionLoadingConfig, type WorkbenchCollectionLoadingVariant, type WorkbenchCollectionProps, type WorkbenchCollectionResponsive, type WorkbenchCollectionSelectionBehavior, type WorkbenchCollectionSelectionConfig, type WorkbenchCollectionSelectionMode, type WorkbenchCollectionSkeletonConfig, type WorkbenchCollectionSlotContext, type WorkbenchCollectionSlots, type WorkbenchCollectionStateConfig, type WorkbenchCollectionTitlePlacement, type WorkbenchCollectionTitleVisibility, type WorkbenchCollectionVirtualizationAdapter, type WorkbenchCollectionVirtualizationConfig, type WorkbenchCollectionVirtualizationRenderOptions, WorkbenchContentPane, type WorkbenchContentPaneBodyProps, type WorkbenchContentPaneClassNames, type WorkbenchContentPaneProps, WorkbenchContentToolbar, type WorkbenchContentToolbarClassNames, type WorkbenchContentToolbarProps, type WorkbenchContentToolbarViewModeOption, WorkbenchDetailSidebar, type WorkbenchDetailSidebarBodyProps, type WorkbenchDetailSidebarClassNames, type WorkbenchDetailSidebarField, type WorkbenchDetailSidebarProps, type WorkbenchDetailSidebarRenderContext, type WorkbenchDetailSidebarSection, type WorkbenchEvidenceItem, WorkbenchEvidenceList, type WorkbenchEvidenceListProps, WorkbenchGalleryCard, type WorkbenchGalleryCardMetaContext, type WorkbenchGalleryCardProps, type WorkbenchGalleryCardRenderContext, type WorkbenchGalleryColumn, type WorkbenchGalleryLabels, type WorkbenchGalleryRecordVisual, WorkbenchGallerySettingsButton, type WorkbenchGallerySettingsButtonClassNames, type WorkbenchGallerySettingsButtonProps, type WorkbenchGallerySettingsLabels, type WorkbenchGallerySettingsOption, WorkbenchGallerySettingsPanel, type WorkbenchGallerySettingsPanelClassNames, type WorkbenchGallerySettingsPanelProps, type WorkbenchGallerySettingsValue, WorkbenchGalleryView, type WorkbenchGalleryViewProps, type WorkbenchJourneyItem, type WorkbenchJourneyItemState, WorkbenchJourneyNavigation, type WorkbenchJourneyNavigationProps, type WorkbenchLaneClassNames, type WorkbenchLaneColumn, type WorkbenchLaneRenderCardContext, WorkbenchLaneView, type WorkbenchLaneViewProps, type WorkbenchMasonryItemSize, WorkbenchMasonryLayout, type WorkbenchMasonryLayoutContext, type WorkbenchMasonryLayoutProps, WorkbenchMetricGrid, type WorkbenchMetricGridDensity, type WorkbenchMetricGridProps, type WorkbenchMetricGridVariant, type WorkbenchMetricItem, WorkbenchRadarFilterChip, WorkbenchRadarInspectorSection, type WorkbenchRadarLegendItem, WorkbenchRadarMatrix, type WorkbenchRadarMatrixProps, WorkbenchRadarNavigation, type WorkbenchRadarNavigationChild, type WorkbenchRadarNavigationItem, type WorkbenchRadarNavigationProps, type WorkbenchRadarQuadrant, WorkbenchRadarWorkspace, type WorkbenchRadarWorkspaceProps, WorkbenchRankedList, type WorkbenchRankedListItem, type WorkbenchRankedListMetric, type WorkbenchRankedListProps, type WorkbenchRelationshipEdge, WorkbenchRelationshipGraph, type WorkbenchRelationshipGraphProps, type WorkbenchRelationshipNode, WorkbenchResizableSidebar, type WorkbenchResizableSidebarClassNames, type WorkbenchResizableSidebarItem, type WorkbenchResizableSidebarProps, type WorkbenchResizableSidebarSection, type WorkbenchScatterAxis, WorkbenchScatterPlot, type WorkbenchScatterPlotProps, type WorkbenchScatterPoint, type WorkbenchScatterThresholds, WorkbenchSelectionTray, type WorkbenchSelectionTrayItem, type WorkbenchSelectionTrayProps, WorkbenchTableView, type WorkbenchTableViewClassNames, type WorkbenchTableViewColumn, type WorkbenchTableViewHeaderContext, type WorkbenchTableViewProps, type WorkbenchTableViewRenderContext, type WorkbenchVisualizationTone };
@@ -703,6 +703,13 @@ interface WorkbenchGalleryViewProps<Row = any> extends Omit<WorkbenchGalleryCard
703
703
  }) => undefined | WorkbenchMasonryItemSize;
704
704
  }
705
705
  declare function WorkbenchGalleryView<Row = any>({ rows, columns, onRowClick, selectedLinkKey, selectedRowKey, className, isMasonry, galleryLayoutMode, galleryRailCardWidth, galleryGridColumns, galleryGridCardWidth, galleryMasonryColumnWidth, masonryPlacementStrategy, galleryFieldKey, galleryDensity, galleryBentoColumns, galleryDetailVisibility, galleryDetailLimit, shouldEnhanceMultimodal, getFieldValue, isMediaColumn, isTitleCandidate, isSummaryCandidate, getDisplayText, renderFieldValue, getImagePreviewSrc, isImageField, isAudioField, AudioPlayerComponent, cardVariant, renderPreview, renderMeta, renderLeadingVisual, resolveRecordVisual, hiddenDetailFieldKeys, labels, formatLabel, getMasonryItemSize, }: WorkbenchGalleryViewProps<Row>): react_jsx_runtime.JSX.Element;
706
+ type WorkbenchCollectionLoadingVariant = 'skeleton' | 'spinner';
707
+ interface WorkbenchCollectionSkeletonConfig {
708
+ count?: number;
709
+ loadMoreCount?: number;
710
+ aspectRatios?: readonly number[];
711
+ animated?: boolean;
712
+ }
706
713
  type WorkbenchCollectionKey = number | string;
707
714
  type WorkbenchCollectionLayoutMode = 'dense' | 'grid' | 'masonry' | 'rail';
708
715
  type WorkbenchCollectionSelectionMode = 'multiple' | 'none' | 'single';
@@ -778,6 +785,9 @@ interface WorkbenchCollectionLoadingConfig {
778
785
  threshold?: number;
779
786
  /** Request another page while the configured scroll viewport is not filled. */
780
787
  autoFill?: boolean;
788
+ /** Collection loading defaults to a layout-aware skeleton. */
789
+ variant?: WorkbenchCollectionLoadingVariant;
790
+ skeleton?: WorkbenchCollectionSkeletonConfig;
781
791
  }
782
792
  type WorkbenchCollectionHoverEffect = 'highlight' | 'lift-shadow' | 'lift' | 'none' | 'scale' | 'shadow';
783
793
  type WorkbenchCollectionTitleVisibility = 'always' | 'hover' | 'never';
@@ -1243,4 +1253,4 @@ interface WorkbenchRadarMatrixProps {
1243
1253
  className?: string;
1244
1254
  }
1245
1255
  declare function WorkbenchRadarMatrix({ points, xAxis, yAxis, thresholds, quadrants, legend, selectedPointId, onPointSelect, width, height, labelLimit, emptyState, ariaLabel, className, }: WorkbenchRadarMatrixProps): null | react_jsx_runtime.JSX.Element;
1246
- export { InteractiveTable, type InteractiveTableClassNames, type InteractiveTableColumn, type InteractiveTableColumnMenuLabels, InteractiveTableEditableTextCell, type InteractiveTableEditableTextCellProps, type InteractiveTableHeaderContext, type InteractiveTableHeaderProps, type InteractiveTableProps, InteractiveTableReadonlyCell, type InteractiveTableReadonlyCellProps, type InteractiveTableRenderContext, type InteractiveTableRowState, InteractiveTableSelectCell, type InteractiveTableSelectCellProps, type InteractiveTableSelectOption, WorkbenchAssetGallery, type WorkbenchAssetGalleryItem, type WorkbenchAssetGalleryProps, WorkbenchCollection, type WorkbenchCollectionActionsPlacement, type WorkbenchCollectionActionsVisibility, type WorkbenchCollectionActivationEvent, type WorkbenchCollectionAppearanceConfig, type WorkbenchCollectionCallbacks, type WorkbenchCollectionClassNames, type WorkbenchCollectionConfig, type WorkbenchCollectionGroupContext, type WorkbenchCollectionGroupingConfig, type WorkbenchCollectionHoverEffect, type WorkbenchCollectionItemActionsConfig, type WorkbenchCollectionItemAlign, type WorkbenchCollectionItemConfig, type WorkbenchCollectionItemContext, type WorkbenchCollectionItemSize, type WorkbenchCollectionItemSlotName, type WorkbenchCollectionItemSlots, type WorkbenchCollectionItemStatus, type WorkbenchCollectionItemTitleConfig, type WorkbenchCollectionKey, type WorkbenchCollectionLabels, type WorkbenchCollectionLayoutConfig, type WorkbenchCollectionLayoutContext, type WorkbenchCollectionLayoutMode, type WorkbenchCollectionLayoutSnapshot, type WorkbenchCollectionLoadingConfig, type WorkbenchCollectionProps, type WorkbenchCollectionResponsive, type WorkbenchCollectionSelectionBehavior, type WorkbenchCollectionSelectionConfig, type WorkbenchCollectionSelectionMode, type WorkbenchCollectionSlotContext, type WorkbenchCollectionSlots, type WorkbenchCollectionStateConfig, type WorkbenchCollectionTitlePlacement, type WorkbenchCollectionTitleVisibility, type WorkbenchCollectionVirtualizationAdapter, type WorkbenchCollectionVirtualizationConfig, type WorkbenchCollectionVirtualizationRenderOptions, WorkbenchContentPane, type WorkbenchContentPaneBodyProps, type WorkbenchContentPaneClassNames, type WorkbenchContentPaneProps, WorkbenchContentToolbar, type WorkbenchContentToolbarClassNames, type WorkbenchContentToolbarProps, type WorkbenchContentToolbarViewModeOption, WorkbenchDetailSidebar, type WorkbenchDetailSidebarBodyProps, type WorkbenchDetailSidebarClassNames, type WorkbenchDetailSidebarField, type WorkbenchDetailSidebarProps, type WorkbenchDetailSidebarRenderContext, type WorkbenchDetailSidebarSection, type WorkbenchEvidenceItem, WorkbenchEvidenceList, type WorkbenchEvidenceListProps, WorkbenchGalleryCard, type WorkbenchGalleryCardMetaContext, type WorkbenchGalleryCardProps, type WorkbenchGalleryCardRenderContext, type WorkbenchGalleryColumn, type WorkbenchGalleryLabels, type WorkbenchGalleryRecordVisual, WorkbenchGallerySettingsButton, type WorkbenchGallerySettingsButtonClassNames, type WorkbenchGallerySettingsButtonProps, type WorkbenchGallerySettingsLabels, type WorkbenchGallerySettingsOption, WorkbenchGallerySettingsPanel, type WorkbenchGallerySettingsPanelClassNames, type WorkbenchGallerySettingsPanelProps, type WorkbenchGallerySettingsValue, WorkbenchGalleryView, type WorkbenchGalleryViewProps, type WorkbenchJourneyItem, type WorkbenchJourneyItemState, WorkbenchJourneyNavigation, type WorkbenchJourneyNavigationProps, type WorkbenchLaneClassNames, type WorkbenchLaneColumn, type WorkbenchLaneRenderCardContext, WorkbenchLaneView, type WorkbenchLaneViewProps, type WorkbenchMasonryItemSize, WorkbenchMasonryLayout, type WorkbenchMasonryLayoutContext, type WorkbenchMasonryLayoutProps, WorkbenchMetricGrid, type WorkbenchMetricGridDensity, type WorkbenchMetricGridProps, type WorkbenchMetricGridVariant, type WorkbenchMetricItem, WorkbenchRadarFilterChip, WorkbenchRadarInspectorSection, type WorkbenchRadarLegendItem, WorkbenchRadarMatrix, type WorkbenchRadarMatrixProps, WorkbenchRadarNavigation, type WorkbenchRadarNavigationChild, type WorkbenchRadarNavigationItem, type WorkbenchRadarNavigationProps, type WorkbenchRadarQuadrant, WorkbenchRadarWorkspace, type WorkbenchRadarWorkspaceProps, WorkbenchRankedList, type WorkbenchRankedListItem, type WorkbenchRankedListMetric, type WorkbenchRankedListProps, type WorkbenchRelationshipEdge, WorkbenchRelationshipGraph, type WorkbenchRelationshipGraphProps, type WorkbenchRelationshipNode, WorkbenchResizableSidebar, type WorkbenchResizableSidebarClassNames, type WorkbenchResizableSidebarItem, type WorkbenchResizableSidebarProps, type WorkbenchResizableSidebarSection, type WorkbenchScatterAxis, WorkbenchScatterPlot, type WorkbenchScatterPlotProps, type WorkbenchScatterPoint, type WorkbenchScatterThresholds, WorkbenchSelectionTray, type WorkbenchSelectionTrayItem, type WorkbenchSelectionTrayProps, WorkbenchTableView, type WorkbenchTableViewClassNames, type WorkbenchTableViewColumn, type WorkbenchTableViewHeaderContext, type WorkbenchTableViewProps, type WorkbenchTableViewRenderContext, type WorkbenchVisualizationTone };
1256
+ export { InteractiveTable, type InteractiveTableClassNames, type InteractiveTableColumn, type InteractiveTableColumnMenuLabels, InteractiveTableEditableTextCell, type InteractiveTableEditableTextCellProps, type InteractiveTableHeaderContext, type InteractiveTableHeaderProps, type InteractiveTableProps, InteractiveTableReadonlyCell, type InteractiveTableReadonlyCellProps, type InteractiveTableRenderContext, type InteractiveTableRowState, InteractiveTableSelectCell, type InteractiveTableSelectCellProps, type InteractiveTableSelectOption, WorkbenchAssetGallery, type WorkbenchAssetGalleryItem, type WorkbenchAssetGalleryProps, WorkbenchCollection, type WorkbenchCollectionActionsPlacement, type WorkbenchCollectionActionsVisibility, type WorkbenchCollectionActivationEvent, type WorkbenchCollectionAppearanceConfig, type WorkbenchCollectionCallbacks, type WorkbenchCollectionClassNames, type WorkbenchCollectionConfig, type WorkbenchCollectionGroupContext, type WorkbenchCollectionGroupingConfig, type WorkbenchCollectionHoverEffect, type WorkbenchCollectionItemActionsConfig, type WorkbenchCollectionItemAlign, type WorkbenchCollectionItemConfig, type WorkbenchCollectionItemContext, type WorkbenchCollectionItemSize, type WorkbenchCollectionItemSlotName, type WorkbenchCollectionItemSlots, type WorkbenchCollectionItemStatus, type WorkbenchCollectionItemTitleConfig, type WorkbenchCollectionKey, type WorkbenchCollectionLabels, type WorkbenchCollectionLayoutConfig, type WorkbenchCollectionLayoutContext, type WorkbenchCollectionLayoutMode, type WorkbenchCollectionLayoutSnapshot, type WorkbenchCollectionLoadingConfig, type WorkbenchCollectionLoadingVariant, type WorkbenchCollectionProps, type WorkbenchCollectionResponsive, type WorkbenchCollectionSelectionBehavior, type WorkbenchCollectionSelectionConfig, type WorkbenchCollectionSelectionMode, type WorkbenchCollectionSkeletonConfig, type WorkbenchCollectionSlotContext, type WorkbenchCollectionSlots, type WorkbenchCollectionStateConfig, type WorkbenchCollectionTitlePlacement, type WorkbenchCollectionTitleVisibility, type WorkbenchCollectionVirtualizationAdapter, type WorkbenchCollectionVirtualizationConfig, type WorkbenchCollectionVirtualizationRenderOptions, WorkbenchContentPane, type WorkbenchContentPaneBodyProps, type WorkbenchContentPaneClassNames, type WorkbenchContentPaneProps, WorkbenchContentToolbar, type WorkbenchContentToolbarClassNames, type WorkbenchContentToolbarProps, type WorkbenchContentToolbarViewModeOption, WorkbenchDetailSidebar, type WorkbenchDetailSidebarBodyProps, type WorkbenchDetailSidebarClassNames, type WorkbenchDetailSidebarField, type WorkbenchDetailSidebarProps, type WorkbenchDetailSidebarRenderContext, type WorkbenchDetailSidebarSection, type WorkbenchEvidenceItem, WorkbenchEvidenceList, type WorkbenchEvidenceListProps, WorkbenchGalleryCard, type WorkbenchGalleryCardMetaContext, type WorkbenchGalleryCardProps, type WorkbenchGalleryCardRenderContext, type WorkbenchGalleryColumn, type WorkbenchGalleryLabels, type WorkbenchGalleryRecordVisual, WorkbenchGallerySettingsButton, type WorkbenchGallerySettingsButtonClassNames, type WorkbenchGallerySettingsButtonProps, type WorkbenchGallerySettingsLabels, type WorkbenchGallerySettingsOption, WorkbenchGallerySettingsPanel, type WorkbenchGallerySettingsPanelClassNames, type WorkbenchGallerySettingsPanelProps, type WorkbenchGallerySettingsValue, WorkbenchGalleryView, type WorkbenchGalleryViewProps, type WorkbenchJourneyItem, type WorkbenchJourneyItemState, WorkbenchJourneyNavigation, type WorkbenchJourneyNavigationProps, type WorkbenchLaneClassNames, type WorkbenchLaneColumn, type WorkbenchLaneRenderCardContext, WorkbenchLaneView, type WorkbenchLaneViewProps, type WorkbenchMasonryItemSize, WorkbenchMasonryLayout, type WorkbenchMasonryLayoutContext, type WorkbenchMasonryLayoutProps, WorkbenchMetricGrid, type WorkbenchMetricGridDensity, type WorkbenchMetricGridProps, type WorkbenchMetricGridVariant, type WorkbenchMetricItem, WorkbenchRadarFilterChip, WorkbenchRadarInspectorSection, type WorkbenchRadarLegendItem, WorkbenchRadarMatrix, type WorkbenchRadarMatrixProps, WorkbenchRadarNavigation, type WorkbenchRadarNavigationChild, type WorkbenchRadarNavigationItem, type WorkbenchRadarNavigationProps, type WorkbenchRadarQuadrant, WorkbenchRadarWorkspace, type WorkbenchRadarWorkspaceProps, WorkbenchRankedList, type WorkbenchRankedListItem, type WorkbenchRankedListMetric, type WorkbenchRankedListProps, type WorkbenchRelationshipEdge, WorkbenchRelationshipGraph, type WorkbenchRelationshipGraphProps, type WorkbenchRelationshipNode, WorkbenchResizableSidebar, type WorkbenchResizableSidebarClassNames, type WorkbenchResizableSidebarItem, type WorkbenchResizableSidebarProps, type WorkbenchResizableSidebarSection, type WorkbenchScatterAxis, WorkbenchScatterPlot, type WorkbenchScatterPlotProps, type WorkbenchScatterPoint, type WorkbenchScatterThresholds, WorkbenchSelectionTray, type WorkbenchSelectionTrayItem, type WorkbenchSelectionTrayProps, WorkbenchTableView, type WorkbenchTableViewClassNames, type WorkbenchTableViewColumn, type WorkbenchTableViewHeaderContext, type WorkbenchTableViewProps, type WorkbenchTableViewRenderContext, type WorkbenchVisualizationTone };
@@ -8791,13 +8791,146 @@ function WorkbenchMasonryLayout({
8791
8791
  }
8792
8792
  );
8793
8793
  }
8794
+ var DEFAULT_PROVISIONAL_CAPACITY = 12;
8795
+ var DEFAULT_GRID_ASPECT_RATIOS = [1];
8796
+ var DEFAULT_RAIL_ASPECT_RATIOS = [4 / 3];
8797
+ var DEFAULT_MASONRY_ASPECT_RATIOS = [1, 4 / 5, 3 / 2, 3 / 4, 5 / 4];
8798
+ var MIN_SKELETON_ASPECT_RATIO = 0.5;
8799
+ var MAX_SKELETON_ASPECT_RATIO = 2;
8800
+ var SKELETON_BACKGROUND_COLOR = "hsl(var(--monkeys-color-muted, var(--muted)))";
8801
+ function clamp2(value, min, max) {
8802
+ return Math.min(Math.max(value, min), max);
8803
+ }
8804
+ function normalizeCount(value, fallback, max) {
8805
+ if (typeof value !== "number" || !Number.isFinite(value) || value <= 0) return fallback;
8806
+ return clamp2(Math.round(value), 1, max);
8807
+ }
8808
+ function getDefaultAspectRatios(mode) {
8809
+ if (mode === "masonry" || mode === "dense") return DEFAULT_MASONRY_ASPECT_RATIOS;
8810
+ if (mode === "rail") return DEFAULT_RAIL_ASPECT_RATIOS;
8811
+ return DEFAULT_GRID_ASPECT_RATIOS;
8812
+ }
8813
+ function resolveAspectRatios(mode, values) {
8814
+ const normalized = values?.filter((value) => typeof value === "number" && Number.isFinite(value) && value > 0).map((value) => clamp2(value, MIN_SKELETON_ASPECT_RATIO, MAX_SKELETON_ASPECT_RATIO));
8815
+ return normalized?.length ? normalized : getDefaultAspectRatios(mode);
8816
+ }
8817
+ function resolveWorkbenchCollectionSkeletonCapacity(config) {
8818
+ return normalizeCount(config?.count, DEFAULT_PROVISIONAL_CAPACITY, 48);
8819
+ }
8820
+ function resolveWorkbenchCollectionLoadingVariant(value) {
8821
+ if (value === void 0) return "skeleton";
8822
+ if (value === "skeleton" || value === "spinner") return value;
8823
+ throw new TypeError('WorkbenchCollection loading.variant must be "skeleton" or "spinner".');
8824
+ }
8825
+ function resolveSkeletonCount({
8826
+ columnCount,
8827
+ config,
8828
+ phase
8829
+ }) {
8830
+ if (phase === "initial") {
8831
+ const fallback2 = clamp2(columnCount * 2, 6, 24);
8832
+ return normalizeCount(config?.count, fallback2, 48);
8833
+ }
8834
+ const fallback = clamp2(columnCount, 1, 12);
8835
+ return normalizeCount(config?.loadMoreCount, fallback, 24);
8836
+ }
8837
+ function getSkeletonHeight(columnWidth, aspectRatio) {
8838
+ return Math.max(1, columnWidth / aspectRatio);
8839
+ }
8840
+ function WorkbenchCollectionSkeleton({
8841
+ mode,
8842
+ phase,
8843
+ columnCount,
8844
+ columnWidth,
8845
+ cardWidth,
8846
+ gap,
8847
+ rowHeight,
8848
+ config,
8849
+ ariaLabel,
8850
+ className
8851
+ }) {
8852
+ const count = resolveSkeletonCount({ columnCount, config, phase });
8853
+ const aspectRatios = resolveAspectRatios(mode, config?.aspectRatios);
8854
+ const animated = config?.animated ?? true;
8855
+ const items = react.useMemo(
8856
+ () => Array.from({ length: count }, (_, index) => ({
8857
+ aspectRatio: aspectRatios[index % aspectRatios.length],
8858
+ key: `${phase}-${index}`
8859
+ })),
8860
+ [aspectRatios, count, phase]
8861
+ );
8862
+ const renderSkeleton = (item, style) => /* @__PURE__ */ jsxRuntime.jsx(
8863
+ BaseSkeleton,
8864
+ {
8865
+ variant: "block",
8866
+ animated,
8867
+ className: "h-auto w-full",
8868
+ style: {
8869
+ backgroundColor: SKELETON_BACKGROUND_COLOR,
8870
+ ...style ?? { aspectRatio: String(item.aspectRatio) }
8871
+ },
8872
+ "data-collection-skeleton-item": "",
8873
+ "data-skeleton-aspect-ratio": item.aspectRatio
8874
+ }
8875
+ );
8876
+ return /* @__PURE__ */ jsxRuntime.jsx(
8877
+ "div",
8878
+ {
8879
+ role: "status",
8880
+ "aria-label": ariaLabel,
8881
+ "aria-atomic": "true",
8882
+ "data-collection-loading": phase,
8883
+ "data-layout-mode": mode,
8884
+ className: "min-w-0",
8885
+ children: mode === "masonry" || mode === "dense" ? /* @__PURE__ */ jsxRuntime.jsx(
8886
+ WorkbenchMasonryLayout,
8887
+ {
8888
+ items,
8889
+ columnCount,
8890
+ columnWidth,
8891
+ gap,
8892
+ rowHeight,
8893
+ placementStrategy: mode === "dense" ? "dense" : "shortest",
8894
+ className,
8895
+ containerProps: { "aria-hidden": true },
8896
+ getItemKey: (item) => item.key,
8897
+ getItemSize: (item, layout) => ({
8898
+ height: getSkeletonHeight(layout.columnWidth, item.aspectRatio)
8899
+ }),
8900
+ renderItem: (item, layout) => renderSkeleton(item, {
8901
+ height: `${getSkeletonHeight(layout.columnWidth, item.aspectRatio)}px`
8902
+ })
8903
+ }
8904
+ ) : mode === "rail" ? /* @__PURE__ */ jsxRuntime.jsx(
8905
+ "div",
8906
+ {
8907
+ "aria-hidden": "true",
8908
+ className: cn("grid min-w-0 grid-flow-col items-start overflow-x-auto", className),
8909
+ style: {
8910
+ gap,
8911
+ gridAutoColumns: typeof cardWidth === "number" ? `${cardWidth}px` : cardWidth ?? `${columnWidth}px`
8912
+ },
8913
+ children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsx("div", { children: renderSkeleton(item) }, item.key))
8914
+ }
8915
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
8916
+ "div",
8917
+ {
8918
+ "aria-hidden": "true",
8919
+ className: cn("grid min-w-0 items-start", className),
8920
+ style: { gap, gridTemplateColumns: `repeat(${columnCount}, minmax(0, 1fr))` },
8921
+ children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsx("div", { children: renderSkeleton(item) }, item.key))
8922
+ }
8923
+ )
8924
+ }
8925
+ );
8926
+ }
8794
8927
  var DEFAULT_GAP_PX = 12;
8795
8928
  var DEFAULT_ROW_HEIGHT_PX = 8;
8796
8929
  var DEFAULT_CARD_WIDTH_PX = 280;
8797
8930
  var BREAKPOINT_TABLET_PX = 640;
8798
8931
  var BREAKPOINT_DESKTOP_PX = 1024;
8799
8932
  var MAX_COLUMN_COUNT = 24;
8800
- function clamp2(value, min, max) {
8933
+ function clamp3(value, min, max) {
8801
8934
  return Math.min(Math.max(value, min), max);
8802
8935
  }
8803
8936
  function resolveRenderableSlot(slot, context) {
@@ -8821,7 +8954,7 @@ function resolveLengthToPixels2(value, fallback, node) {
8821
8954
  }
8822
8955
  function normalizeColumns(value) {
8823
8956
  if (typeof value !== "number" || !Number.isFinite(value) || value <= 0) return void 0;
8824
- return clamp2(Math.round(value), 1, MAX_COLUMN_COUNT);
8957
+ return clamp3(Math.round(value), 1, MAX_COLUMN_COUNT);
8825
8958
  }
8826
8959
  function resolveResponsiveColumns(columns, containerWidth) {
8827
8960
  if (columns === "auto" || columns === void 0) return void 0;
@@ -8882,7 +9015,7 @@ function normalizeRowHeight(value) {
8882
9015
  return typeof value === "number" && Number.isFinite(value) && value > 0 ? value : DEFAULT_ROW_HEIGHT_PX;
8883
9016
  }
8884
9017
  function normalizeThreshold(value) {
8885
- return typeof value === "number" && Number.isFinite(value) ? clamp2(value, 0, 1) : 0;
9018
+ return typeof value === "number" && Number.isFinite(value) ? clamp3(value, 0, 1) : 0;
8886
9019
  }
8887
9020
  function normalizeItemSize(size, aspectRatio, columnWidth) {
8888
9021
  const normalizedAspectRatio = Number.isFinite(aspectRatio) && Number(aspectRatio) > 0 ? Number(aspectRatio) : void 0;
@@ -8942,7 +9075,7 @@ function warnOnDuplicateKeys(keys) {
8942
9075
  }
8943
9076
  function normalizeTitleMaxLines(value) {
8944
9077
  if (!Number.isFinite(value) || Number(value) <= 0) return void 0;
8945
- return clamp2(Math.round(Number(value)), 1, 12);
9078
+ return clamp3(Math.round(Number(value)), 1, 12);
8946
9079
  }
8947
9080
  function WorkbenchCollection({
8948
9081
  items,
@@ -8992,6 +9125,12 @@ function WorkbenchCollection({
8992
9125
  [normalizedItems]
8993
9126
  );
8994
9127
  const keysSignature = normalizedItems.map(({ stringKey }) => stringKey).join("");
9128
+ const state = config.state;
9129
+ const loading = state?.loading === true;
9130
+ const loadingMore = state?.loadingMore === true;
9131
+ const hasMore = state?.hasMore === true;
9132
+ const loadingVariant = resolveWorkbenchCollectionLoadingVariant(config.loading?.variant);
9133
+ const layoutItemCount = loading && normalizedItems.length === 0 && loadingVariant === "skeleton" ? resolveWorkbenchCollectionSkeletonCapacity(config.loading?.skeleton) : normalizedItems.length;
8995
9134
  react.useEffect(() => warnOnDuplicateKeys(keys), [keys, keysSignature]);
8996
9135
  const selectionMode = config.selection?.mode ?? "none";
8997
9136
  const controlledSelection = config.selection?.selectedKeys !== void 0;
@@ -9026,7 +9165,7 @@ function WorkbenchCollection({
9026
9165
  }, [itemsNode]);
9027
9166
  const columnCount = resolveColumnCount({
9028
9167
  containerWidth,
9029
- itemCount: normalizedItems.length,
9168
+ itemCount: layoutItemCount,
9030
9169
  gap,
9031
9170
  columns: config.layout.columns,
9032
9171
  maxColumns: config.layout.maxColumns,
@@ -9111,10 +9250,6 @@ function WorkbenchCollection({
9111
9250
  owner.removeEventListener("scroll", saveScrollPosition);
9112
9251
  };
9113
9252
  }, [config.scrollRestorationKey, resolveScrollOwner]);
9114
- const state = config.state;
9115
- const loading = state?.loading === true;
9116
- const loadingMore = state?.loadingMore === true;
9117
- const hasMore = state?.hasMore === true;
9118
9253
  const canLoadMore = typeof callbacks?.onLoadMore === "function";
9119
9254
  const effectiveError = state?.error ?? virtualizationError;
9120
9255
  react.useEffect(() => {
@@ -9465,7 +9600,7 @@ function WorkbenchCollection({
9465
9600
  },
9466
9601
  children: group.items.map((entry) => {
9467
9602
  const customSize = config.layout.getItemSize?.(entry.item, baseLayoutContext);
9468
- const span = clamp2(Math.round(Number(customSize?.columnSpan) || 1), 1, columnCount);
9603
+ const span = clamp3(Math.round(Number(customSize?.columnSpan) || 1), 1, columnCount);
9469
9604
  const aspectRatio = config.layout.getItemAspectRatio?.(entry.item, entry.index);
9470
9605
  return /* @__PURE__ */ jsxRuntime.jsx(
9471
9606
  "div",
@@ -9552,7 +9687,28 @@ function WorkbenchCollection({
9552
9687
  title: labels.offline,
9553
9688
  actions: statusStates.error?.showRetry !== false && callbacks?.onRetry ? /* @__PURE__ */ jsxRuntime.jsx(BaseButton, { size: "sm", label: labels.retry, onClick: callbacks.onRetry }) : void 0
9554
9689
  }
9555
- ) : showInitialLoading ? hasRenderableNode(loadingSlot) ? loadingSlot : /* @__PURE__ */ jsxRuntime.jsx(BaseLoadingState, { title: labels.loading }) : showInitialError ? hasRenderableNode(errorSlot) ? errorSlot : /* @__PURE__ */ jsxRuntime.jsx(
9690
+ ) : showInitialLoading ? hasRenderableNode(loadingSlot) ? loadingSlot : loadingVariant === "spinner" ? /* @__PURE__ */ jsxRuntime.jsx(BaseLoadingState, { title: labels.loading, variant: "spinner" }) : /* @__PURE__ */ jsxRuntime.jsx(
9691
+ "div",
9692
+ {
9693
+ ref: registerItemsNode,
9694
+ className: cn("min-w-0", classNames?.items),
9695
+ children: /* @__PURE__ */ jsxRuntime.jsx(
9696
+ WorkbenchCollectionSkeleton,
9697
+ {
9698
+ mode,
9699
+ phase: "initial",
9700
+ columnCount,
9701
+ columnWidth,
9702
+ cardWidth: config.layout.cardWidth ?? config.layout.idealCardWidth,
9703
+ gap,
9704
+ rowHeight,
9705
+ config: config.loading?.skeleton,
9706
+ ariaLabel: labels.loading,
9707
+ className: classNames?.layout
9708
+ }
9709
+ )
9710
+ }
9711
+ ) : showInitialError ? hasRenderableNode(errorSlot) ? errorSlot : /* @__PURE__ */ jsxRuntime.jsx(
9556
9712
  BaseSystemState,
9557
9713
  {
9558
9714
  kind: "error",
@@ -9596,7 +9752,21 @@ function WorkbenchCollection({
9596
9752
  actions: statusStates.error?.showRetry !== false && callbacks?.onRetry ? /* @__PURE__ */ jsxRuntime.jsx(BaseButton, { size: "sm", label: labels.retry, onClick: callbacks.onRetry }) : void 0
9597
9753
  }
9598
9754
  ) }) : null,
9599
- items.length > 0 && (hasMore || loadingMore) ? /* @__PURE__ */ jsxRuntime.jsx("div", { ref: loadMoreRef, className: classNames?.loadMore, "data-collection-load-more": "", children: hasRenderableNode(loadMoreSlot) ? loadMoreSlot : loadingMore ? /* @__PURE__ */ jsxRuntime.jsx(BaseLoadingState, { title: labels.loadingMore }) : null }) : null,
9755
+ items.length > 0 && (hasMore || loadingMore) ? /* @__PURE__ */ jsxRuntime.jsx("div", { ref: loadMoreRef, className: classNames?.loadMore, "data-collection-load-more": "", children: hasRenderableNode(loadMoreSlot) ? loadMoreSlot : loadingMore ? loadingVariant === "spinner" ? /* @__PURE__ */ jsxRuntime.jsx(BaseLoadingState, { title: labels.loadingMore, variant: "spinner" }) : /* @__PURE__ */ jsxRuntime.jsx(
9756
+ WorkbenchCollectionSkeleton,
9757
+ {
9758
+ mode,
9759
+ phase: "load-more",
9760
+ columnCount,
9761
+ columnWidth,
9762
+ cardWidth: config.layout.cardWidth ?? config.layout.idealCardWidth,
9763
+ gap,
9764
+ rowHeight,
9765
+ config: config.loading?.skeleton,
9766
+ ariaLabel: labels.loadingMore,
9767
+ className: classNames?.layout
9768
+ }
9769
+ ) : null }) : null,
9600
9770
  hasRenderableNode(footer) ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames?.footer, children: footer }) : null
9601
9771
  ]
9602
9772
  }
@@ -10467,7 +10637,7 @@ var getDomain = (values, min, max) => {
10467
10637
  return lower < upper ? [lower, upper] : [upper, lower];
10468
10638
  };
10469
10639
  var scale = (value, domain, start, end) => start + (value - domain[0]) / (domain[1] - domain[0]) * (end - start);
10470
- var clamp3 = (value, min, max) => Math.min(max, Math.max(min, value));
10640
+ var clamp4 = (value, min, max) => Math.min(max, Math.max(min, value));
10471
10641
  var activatePoint = (event, point, onPointSelect) => {
10472
10642
  if (!onPointSelect || event.key !== "Enter" && event.key !== " ") return;
10473
10643
  event.preventDefault();
@@ -10549,9 +10719,9 @@ function WorkbenchScatterPlot({
10549
10719
  xThreshold === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(
10550
10720
  "line",
10551
10721
  {
10552
- x1: clamp3(xThreshold, plotLeft, plotRight),
10722
+ x1: clamp4(xThreshold, plotLeft, plotRight),
10553
10723
  y1: plotTop,
10554
- x2: clamp3(xThreshold, plotLeft, plotRight),
10724
+ x2: clamp4(xThreshold, plotLeft, plotRight),
10555
10725
  y2: plotBottom,
10556
10726
  className: "stroke-muted-foreground/50",
10557
10727
  strokeDasharray: "5 5"
@@ -10561,9 +10731,9 @@ function WorkbenchScatterPlot({
10561
10731
  "line",
10562
10732
  {
10563
10733
  x1: plotLeft,
10564
- y1: clamp3(yThreshold, plotTop, plotBottom),
10734
+ y1: clamp4(yThreshold, plotTop, plotBottom),
10565
10735
  x2: plotRight,
10566
- y2: clamp3(yThreshold, plotTop, plotBottom),
10736
+ y2: clamp4(yThreshold, plotTop, plotBottom),
10567
10737
  className: "stroke-muted-foreground/50",
10568
10738
  strokeDasharray: "5 5"
10569
10739
  }
@@ -10590,17 +10760,17 @@ function WorkbenchScatterPlot({
10590
10760
  }
10591
10761
  ),
10592
10762
  validPoints.map((point) => {
10593
- const x = clamp3(
10763
+ const x = clamp4(
10594
10764
  scale(point.x, xDomain, plotLeft, plotRight),
10595
10765
  plotLeft,
10596
10766
  plotRight
10597
10767
  );
10598
- const y = clamp3(
10768
+ const y = clamp4(
10599
10769
  scale(point.y, yDomain, plotBottom, plotTop),
10600
10770
  plotTop,
10601
10771
  plotBottom
10602
10772
  );
10603
- const radius = point.size === void 0 ? 9 : clamp3(scale(point.size, sizeDomain, 7, 18), 7, 18);
10773
+ const radius = point.size === void 0 ? 9 : clamp4(scale(point.size, sizeDomain, 7, 18), 7, 18);
10604
10774
  const selected = selectedPointId === point.id;
10605
10775
  return /* @__PURE__ */ jsxRuntime.jsxs(
10606
10776
  "g",
@@ -11140,7 +11310,7 @@ var getDomain2 = (values, min, max) => {
11140
11310
  return lower < upper ? [lower, upper] : [upper, lower];
11141
11311
  };
11142
11312
  var scale2 = (value, domain, start, end) => start + (value - domain[0]) / (domain[1] - domain[0]) * (end - start);
11143
- var clamp4 = (value, min, max) => Math.min(max, Math.max(min, value));
11313
+ var clamp5 = (value, min, max) => Math.min(max, Math.max(min, value));
11144
11314
  var toneVariable = {
11145
11315
  primary: "--radar-series-one",
11146
11316
  secondary: "--radar-series-two",
@@ -11203,7 +11373,7 @@ function WorkbenchRadarMatrix({
11203
11373
  const plotRight = width;
11204
11374
  const plotTop = 0;
11205
11375
  const plotBottom = height;
11206
- const xThreshold = clamp4(
11376
+ const xThreshold = clamp5(
11207
11377
  scale2(
11208
11378
  Number.isFinite(thresholds?.x) ? Number(thresholds?.x) : (xDomain[0] + xDomain[1]) / 2,
11209
11379
  xDomain,
@@ -11213,7 +11383,7 @@ function WorkbenchRadarMatrix({
11213
11383
  plotLeft,
11214
11384
  plotRight
11215
11385
  );
11216
- const yThreshold = clamp4(
11386
+ const yThreshold = clamp5(
11217
11387
  scale2(
11218
11388
  Number.isFinite(thresholds?.y) ? Number(thresholds?.y) : (yDomain[0] + yDomain[1]) / 2,
11219
11389
  yDomain,
@@ -11321,13 +11491,13 @@ function WorkbenchRadarMatrix({
11321
11491
  ] }, quadrant.id);
11322
11492
  }),
11323
11493
  validPoints.map((point, index) => {
11324
- const x = clamp4(scale2(point.x, xDomain, 40, width - 40), 40, width - 40);
11325
- const y = clamp4(scale2(point.y, yDomain, height - 48, 54), 54, height - 48);
11494
+ const x = clamp5(scale2(point.x, xDomain, 40, width - 40), 40, width - 40);
11495
+ const y = clamp5(scale2(point.y, yDomain, height - 48, 54), 54, height - 48);
11326
11496
  const tone = point.tone || (index % 2 === 0 ? "primary" : "accent");
11327
11497
  const selected = selectedPointId === point.id;
11328
11498
  const labelled = labelledPointIds.has(point.id);
11329
- const radius = labelled ? clamp4(scale2(point.size ?? 1, sizeDomain, 5, 9), 5, 9) : 3.5;
11330
- const fontSize = labelled ? clamp4(scale2(point.size ?? 1, sizeDomain, 14, 31), 14, 31) : 0;
11499
+ const radius = labelled ? clamp5(scale2(point.size ?? 1, sizeDomain, 5, 9), 5, 9) : 3.5;
11500
+ const fontSize = labelled ? clamp5(scale2(point.size ?? 1, sizeDomain, 14, 31), 14, 31) : 0;
11331
11501
  const pointStyle = {
11332
11502
  fill: toneColor(tone),
11333
11503
  stroke: "hsl(var(--foreground) / 0.74)"
@@ -11429,8 +11599,8 @@ function WorkbenchRadarMatrix({
11429
11599
  validPoints.map((point, index) => /* @__PURE__ */ jsxRuntime.jsx(
11430
11600
  "circle",
11431
11601
  {
11432
- cx: clamp4(scale2(point.x, xDomain, 40, width - 40), 40, width - 40),
11433
- cy: clamp4(scale2(point.y, yDomain, height - 48, 54), 54, height - 48),
11602
+ cx: clamp5(scale2(point.x, xDomain, 40, width - 40), 40, width - 40),
11603
+ cy: clamp5(scale2(point.y, yDomain, height - 48, 54), 54, height - 48),
11434
11604
  r: "8",
11435
11605
  style: { fill: toneColor(point.tone || (index % 2 === 0 ? "primary" : "accent")) }
11436
11606
  },