@flikk/ui 1.0.0-beta.31 → 1.0.0-beta.32
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/CHANGELOG.md +295 -22
- package/dist/components/ai/AgentRequest/AgentRequest.animations.d.ts +25 -0
- package/dist/components/ai/AgentRequest/AgentRequest.animations.js +81 -0
- package/dist/components/ai/AgentRequest/AgentRequest.d.ts +3 -0
- package/dist/components/ai/AgentRequest/AgentRequest.js +435 -0
- package/dist/components/ai/AgentRequest/AgentRequest.theme.d.ts +2 -0
- package/dist/components/ai/AgentRequest/AgentRequest.theme.js +106 -0
- package/dist/components/ai/AgentRequest/AgentRequest.types.d.ts +241 -0
- package/dist/components/ai/AgentRequest/index.d.ts +3 -0
- package/dist/components/ai/CodeBlock/CodeBlock.theme.js +1 -1
- package/dist/components/ai/PromptInput/PromptInput.js +2 -2
- package/dist/components/ai/PromptInput/PromptInput.theme.js +2 -2
- package/dist/components/ai/PromptSuggestion/PromptSuggestion.theme.js +2 -2
- package/dist/components/ai/Reasoning/Reasoning.js +27 -3
- package/dist/components/ai/Reasoning/Reasoning.theme.d.ts +6 -0
- package/dist/components/ai/Reasoning/Reasoning.theme.js +36 -0
- package/dist/components/ai/Reasoning/Reasoning.types.d.ts +58 -5
- package/dist/components/ai/Reasoning/ReasoningTrace.d.ts +11 -0
- package/dist/components/ai/Reasoning/ReasoningTrace.js +84 -0
- package/dist/components/ai/Reasoning/index.d.ts +2 -1
- package/dist/components/ai/StreamingResponse/AnimatedText.d.ts +7 -0
- package/dist/components/ai/StreamingResponse/AnimatedText.js +8 -7
- package/dist/components/ai/StreamingResponse/MarkdownRenderer.d.ts +5 -0
- package/dist/components/ai/StreamingResponse/MarkdownRenderer.js +4 -4
- package/dist/components/ai/StreamingResponse/StreamingCursor.d.ts +2 -2
- package/dist/components/ai/StreamingResponse/StreamingCursor.js +10 -7
- package/dist/components/ai/StreamingResponse/StreamingResponse.animations.d.ts +10 -0
- package/dist/components/ai/StreamingResponse/StreamingResponse.animations.js +59 -33
- package/dist/components/ai/StreamingResponse/StreamingResponse.js +13 -7
- package/dist/components/ai/StreamingResponse/StreamingResponse.types.d.ts +33 -2
- package/dist/components/ai/StreamingResponse/StreamingSurface.d.ts +13 -0
- package/dist/components/ai/StreamingResponse/StreamingSurface.js +38 -0
- package/dist/components/ai/StreamingResponse/WordAnimationContext.d.ts +5 -0
- package/dist/components/ai/StreamingResponse/WordAnimationContext.js +5 -4
- package/dist/components/ai/StreamingResponse/index.d.ts +4 -2
- package/dist/components/ai/TokenCounter/TokenCounter.theme.js +1 -1
- package/dist/components/ai/index.d.ts +3 -2
- package/dist/components/ai/index.js +4 -0
- package/dist/components/canvas/BaseNode.js +1 -1
- package/dist/components/canvas/CanvasToolbar.js +0 -1
- package/dist/components/canvas/Edge.js +2 -2
- package/dist/components/canvas/NodeControls.js +0 -1
- package/dist/components/canvas/NodeRenderer.js +2 -2
- package/dist/components/charts/ActivityRings/ActivityRings.js +2 -2
- package/dist/components/charts/ActivityRings/ActivityRings.theme.js +1 -1
- package/dist/components/charts/AreaChart/AreaChart.js +3 -3
- package/dist/components/charts/AreaChart/AreaChart.theme.js +3 -3
- package/dist/components/charts/BarChart/BarChart.js +4 -4
- package/dist/components/charts/ComboChart/BarRenderer.js +2 -2
- package/dist/components/charts/ComboChart/BarRenderer.types.d.ts +1 -1
- package/dist/components/charts/ComboChart/ComboChartCanvas.js +1 -1
- package/dist/components/charts/ComboChart/LineRenderer.js +1 -1
- package/dist/components/charts/ComboChart/LineRenderer.types.d.ts +1 -1
- package/dist/components/charts/DonutChart/DonutChart.theme.js +4 -4
- package/dist/components/charts/DonutChart/MultiSegmentDonutChart.theme.js +1 -1
- package/dist/components/charts/Heatmap/Heatmap.js +49 -42
- package/dist/components/charts/Heatmap/Heatmap.theme.d.ts +6 -2
- package/dist/components/charts/Heatmap/Heatmap.theme.js +20 -8
- package/dist/components/charts/Heatmap/Heatmap.types.d.ts +49 -82
- package/dist/components/charts/Heatmap/HeatmapCell.js +30 -81
- package/dist/components/charts/Heatmap/HeatmapLegend.d.ts +7 -6
- package/dist/components/charts/Heatmap/HeatmapLegend.js +6 -6
- package/dist/components/charts/Heatmap/index.d.ts +1 -1
- package/dist/components/charts/Heatmap/utils/heatmapUtils.d.ts +7 -12
- package/dist/components/charts/Heatmap/utils/heatmapUtils.js +16 -61
- package/dist/components/charts/Heatmap/utils/heatmapUtils.test.d.ts +1 -0
- package/dist/components/charts/HorizontalBarChart/HorizontalBarChart.js +1 -1
- package/dist/components/charts/LineChart/LineChart.js +2 -2
- package/dist/components/charts/LollipopChart/LollipopChart.js +1 -1
- package/dist/components/charts/RadarChart/RadarChart.js +1 -1
- package/dist/components/charts/StackedBarChart/StackedBarChart.js +3 -3
- package/dist/components/charts/hooks/useChartAccessibility.js +9 -6
- package/dist/components/charts/index.d.ts +4 -8
- package/dist/components/charts/index.js +2 -4
- package/dist/components/charts/shared/ChartText/ChartText.theme.js +1 -1
- package/dist/components/charts/shared/index.d.ts +1 -1
- package/dist/components/charts/theme/chart.theme.js +3 -3
- package/dist/components/charts/utils/animation-utils.d.ts +12 -7
- package/dist/components/charts/utils/animation-utils.js +19 -19
- package/dist/components/core/Accordion/Accordion.theme.js +1 -1
- package/dist/components/core/Alert/Alert.animations.d.ts +11 -4
- package/dist/components/core/Alert/Alert.animations.js +11 -4
- package/dist/components/core/Alert/Alert.js +16 -2
- package/dist/components/core/Alert/Alert.theme.js +1 -1
- package/dist/components/core/Alert/Alert.types.d.ts +4 -2
- package/dist/components/core/AlertDialog/AlertDialog.js +2 -2
- package/dist/components/core/Avatar/Avatar.theme.js +1 -1
- package/dist/components/core/Badge/Badge.animations.d.ts +0 -5
- package/dist/components/core/Badge/Badge.animations.js +5 -84
- package/dist/components/core/Badge/Badge.d.ts +7 -4
- package/dist/components/core/Badge/Badge.js +27 -64
- package/dist/components/core/Badge/Badge.theme.js +8 -12
- package/dist/components/core/Badge/Badge.types.d.ts +18 -34
- package/dist/components/core/Breadcrumbs/Breadcrumbs.theme.js +4 -4
- package/dist/components/core/Button/Button.js +7 -43
- package/dist/components/core/Button/Button.theme.js +2 -2
- package/dist/components/core/Button/Button.types.d.ts +8 -12
- package/dist/components/core/Button/index.d.ts +0 -2
- package/dist/components/core/Calendar/Calendar.theme.js +1 -1
- package/dist/components/core/Calendar/CalendarMini/CalendarMini.theme.js +2 -2
- package/dist/components/core/Card/Card.js +7 -2
- package/dist/components/core/Card/Card.theme.js +29 -1
- package/dist/components/core/Card/Card.types.d.ts +20 -0
- package/dist/components/core/Card/CardBody.js +9 -1
- package/dist/components/core/Card/CardContext.d.ts +13 -0
- package/dist/components/core/Card/CardContext.js +14 -0
- package/dist/components/core/Card/CardHeader.js +4 -1
- package/dist/components/core/ContextMenu/ContextMenu.theme.js +4 -3
- package/dist/components/core/ContextMenu/ContextMenu.types.d.ts +8 -1
- package/dist/components/core/ContextMenu/ContextMenuSub.d.ts +11 -1
- package/dist/components/core/ContextMenu/ContextMenuSub.js +35 -22
- package/dist/components/core/ContextMenu/ContextMenuSubBody.js +14 -3
- package/dist/components/core/ContextMenu/ContextMenuSubTrigger.js +21 -8
- package/dist/components/core/DragDrop/DragDrop.theme.js +2 -2
- package/dist/components/core/Drawer/Drawer.theme.js +1 -1
- package/dist/components/core/Drawer/DrawerHeader.js +0 -1
- package/dist/components/core/Dropdown/DropdownMenu.js +22 -7
- package/dist/components/core/Link/Link.js +1 -1
- package/dist/components/core/Masonry/Masonry.theme.js +1 -1
- package/dist/components/core/MenuItem/MenuItem.js +2 -1
- package/dist/components/core/MenuItem/MenuItem.theme.js +13 -1
- package/dist/components/core/Message/Message.js +2 -0
- package/dist/components/core/Message/Message.theme.js +3 -3
- package/dist/components/core/Modal/Modal.animations.d.ts +1 -1
- package/dist/components/core/Modal/Modal.animations.js +50 -11
- package/dist/components/core/Modal/Modal.js +5 -1
- package/dist/components/core/Modal/Modal.theme.js +1 -1
- package/dist/components/core/Modal/ModalHeader.js +0 -1
- package/dist/components/core/ModalStack/ModalStackModal.js +3 -1
- package/dist/components/core/NavItem/NavItem.js +3 -2
- package/dist/components/core/NavItem/NavItem.theme.js +1 -1
- package/dist/components/core/OfflineIndicator/OfflineIndicator.theme.js +4 -2
- package/dist/components/core/PageHeading/PageHeading.theme.js +1 -1
- package/dist/components/core/Pagination/Pagination.theme.js +2 -2
- package/dist/components/core/Pill/Pill.js +2 -1
- package/dist/components/core/Pill/Pill.theme.js +4 -2
- package/dist/components/core/Popover/PopoverBody.js +16 -5
- package/dist/components/core/Progress/Progress.d.ts +0 -25
- package/dist/components/core/Progress/Progress.js +79 -11
- package/dist/components/core/Progress/Progress.theme.js +17 -0
- package/dist/components/core/Progress/Progress.types.d.ts +47 -1
- package/dist/components/core/Rating/Rating.theme.js +1 -1
- package/dist/components/core/Rating/Rating.types.d.ts +3 -2
- package/dist/components/core/ScrollArea/ScrollArea.js +1 -1
- package/dist/components/core/ScrollArea/ScrollArea.theme.js +1 -1
- package/dist/components/core/Segmented/Segmented.theme.js +3 -3
- package/dist/components/core/Segmented/SegmentedContext.js +1 -0
- package/dist/components/core/Sidebar/Sidebar.js +5 -2
- package/dist/components/core/Sidebar/Sidebar.theme.js +2 -2
- package/dist/components/core/Sidebar/SidebarContent.js +1 -1
- package/dist/components/core/Sidebar/SidebarHeader.js +1 -1
- package/dist/components/core/Sidebar/SidebarSearch.js +2 -2
- package/dist/components/core/Sidebar/SidebarToggle.js +1 -1
- package/dist/components/core/Sidebar/SidebarUserProfile.js +1 -1
- package/dist/components/core/Sortable/Sortable.theme.js +1 -1
- package/dist/components/core/Tabs/Tabs.theme.js +1 -1
- package/dist/components/core/Tag/Tag.theme.js +1 -1
- package/dist/components/core/Toast/ToastProvider.js +1 -1
- package/dist/components/core/Tree/Tree.theme.js +1 -1
- package/dist/components/core/index.d.ts +0 -2
- package/dist/components/core/index.js +0 -4
- package/dist/components/core/shared/ChartTooltip/ChartTooltip.animations.d.ts +4 -0
- package/dist/components/core/shared/ChartTooltip/ChartTooltip.animations.js +20 -0
- package/dist/components/{charts → core}/shared/ChartTooltip/ChartTooltip.js +1 -1
- package/dist/components/core/shared/Ripple.d.ts +16 -0
- package/dist/components/core/shared/Ripple.js +141 -0
- package/dist/components/data-display/GanttChart/GanttChart.theme.js +6 -6
- package/dist/components/data-display/GanttChart/GanttTaskBar.js +1 -1
- package/dist/components/data-display/GanttChart/GanttTimelineHeader.js +1 -1
- package/dist/components/data-display/GanttChart/GanttToolbar.js +0 -1
- package/dist/components/data-display/KPI/KPI.js +11 -20
- package/dist/components/data-display/KPI/KPI.theme.js +8 -4
- package/dist/components/data-display/Metric/Metric.theme.js +4 -4
- package/dist/components/data-display/Table/Table.theme.js +2 -2
- package/dist/components/data-display/Table/TableColumnManager.js +1 -2
- package/dist/components/data-display/Table/TableContext.js +1 -0
- package/dist/components/data-display/Table/TableFilter.js +9 -2
- package/dist/components/data-display/Table/TableSelectionHeader.js +1 -1
- package/dist/components/data-display/Timeline/Timeline.theme.js +1 -1
- package/dist/components/effects/CustomCursor/CustomCursor.d.ts +1 -1
- package/dist/components/effects/CustomCursor/CustomCursor.js +1 -1
- package/dist/components/effects/CustomCursor/CustomCursor.theme.js +4 -4
- package/dist/components/effects/Neumorphic/InsetCircleButton.js +1 -1
- package/dist/components/effects/Overlay/Overlay.js +7 -3
- package/dist/components/effects/index.d.ts +0 -32
- package/dist/components/effects/index.js +0 -16
- package/dist/components/effects/shared/ShaderCanvas/ShaderCanvas.d.ts +0 -2
- package/dist/components/effects/shared/ShaderCanvas/ShaderCanvas.js +1 -93
- package/dist/components/effects/shared/ShaderCanvas/ShaderCanvas.types.d.ts +0 -10
- package/dist/components/effects/shared/ShaderCanvas/index.d.ts +1 -1
- package/dist/components/effects/shared/index.d.ts +1 -3
- package/dist/components/effects/shared/shaderNoise.glsl.d.ts +1 -1
- package/dist/components/effects/shared/shaderNoise.glsl.js +2 -11
- package/dist/components/forms/Checkbox/Checkbox.theme.js +1 -1
- package/dist/components/forms/ColorPicker/ColorPickerHeader.js +1 -1
- package/dist/components/forms/ColorPicker/ColorPickerImage.js +1 -1
- package/dist/components/forms/Combobox/Combobox.js +2 -0
- package/dist/components/forms/DateRangePicker/DateRangePicker.theme.js +1 -1
- package/dist/components/forms/DateRangePicker/DateRangePickerContext.js +1 -0
- package/dist/components/forms/FileUpload/FileUpload.theme.js +2 -2
- package/dist/components/forms/FileUpload/FileUploadProgress.theme.js +1 -1
- package/dist/components/forms/InputAddress/InputAddress.types.d.ts +2 -2
- package/dist/components/forms/Radio/Radio.theme.js +1 -1
- package/dist/components/forms/RichTextEditor/RichTextEditor.d.ts +12 -16
- package/dist/components/forms/RichTextEditor/RichTextEditor.js +165 -1680
- package/dist/components/forms/RichTextEditor/RichTextEditor.theme.d.ts +12 -56
- package/dist/components/forms/RichTextEditor/RichTextEditor.theme.js +60 -118
- package/dist/components/forms/RichTextEditor/RichTextEditor.types.d.ts +62 -126
- package/dist/components/forms/RichTextEditor/RichTextLinkField.d.ts +18 -0
- package/dist/components/forms/RichTextEditor/RichTextLinkField.js +46 -0
- package/dist/components/forms/RichTextEditor/RichTextToolbar.d.ts +15 -0
- package/dist/components/forms/RichTextEditor/RichTextToolbar.js +93 -0
- package/dist/components/forms/RichTextEditor/editorCommands.d.ts +50 -0
- package/dist/components/forms/RichTextEditor/editorCommands.js +58 -0
- package/dist/components/forms/RichTextEditor/editorState.d.ts +19 -0
- package/dist/components/forms/RichTextEditor/editorState.js +103 -0
- package/dist/components/forms/RichTextEditor/index.d.ts +5 -3
- package/dist/components/forms/RichTextEditor/sanitizeHtml.d.ts +38 -0
- package/dist/components/forms/RichTextEditor/sanitizeHtml.js +179 -0
- package/dist/components/forms/RichTextEditor/sanitizeHtml.test.d.ts +1 -0
- package/dist/components/forms/Select/Select.js +4 -4
- package/dist/components/forms/Select/Select.types.d.ts +70 -7
- package/dist/components/forms/Select/useSelectState.d.ts +9 -3
- package/dist/components/forms/Select/useSelectState.js +4 -1
- package/dist/components/forms/SelectableCard/SelectableCard.js +2 -1
- package/dist/components/forms/SelectableCard/SelectableCard.theme.js +1 -1
- package/dist/components/forms/Switch/Switch.theme.js +2 -2
- package/dist/components/forms/TimePicker/TimePicker.theme.js +1 -1
- package/dist/components/forms/TimePicker/TimePickerTrigger.js +1 -1
- package/dist/components/forms/forms.theme.js +19 -5
- package/dist/components/forms/index.js +1 -0
- package/dist/components/generative/FormShell.d.ts +22 -0
- package/dist/components/generative/FormShell.js +102 -0
- package/dist/components/generative/GenerativeView.d.ts +52 -1
- package/dist/components/generative/GenerativeView.js +203 -11
- package/dist/components/generative/actions.d.ts +5 -0
- package/dist/components/generative/ai-sdk/index.d.ts +1 -0
- package/dist/components/generative/ai-sdk/index.js +1 -0
- package/dist/components/generative/ai-sdk/useGenerativeChat.d.ts +52 -0
- package/dist/components/generative/ai-sdk/useGenerativeChat.js +73 -0
- package/dist/components/generative/ai-sdk/useGenerativeChat.test.d.ts +1 -0
- package/dist/components/generative/fieldBinding.d.ts +31 -0
- package/dist/components/generative/fieldBinding.js +33 -0
- package/dist/components/generative/fieldBinding.test.d.ts +1 -0
- package/dist/components/generative/formScope.d.ts +71 -0
- package/dist/components/generative/formScope.js +135 -0
- package/dist/components/generative/index.d.ts +4 -0
- package/dist/components/generative/index.js +4 -0
- package/dist/components/generative/registry.d.ts +2 -0
- package/dist/components/generative/registry.js +10 -10
- package/dist/components/generative/schema.generated.js +178 -292
- package/dist/components/generative/toToolResult.d.ts +21 -0
- package/dist/components/generative/toToolResult.js +15 -0
- package/dist/components/generative/toToolResult.test.d.ts +1 -0
- package/dist/components/generative/validate.d.ts +10 -1
- package/dist/components/generative/validate.js +126 -11
- package/dist/components/layout/Grid/Grid.js +1 -0
- package/dist/components/layout/Section/Section.theme.js +1 -1
- package/dist/components/layout/Stack/Stack.js +1 -0
- package/dist/generative.schema.json +178 -292
- package/dist/index.js +1 -4
- package/dist/registry.json +2599 -2375
- package/dist/shadcn-compat.css +5 -5
- package/dist/styles/theme.test.d.ts +1 -0
- package/dist/styles.css +1 -1
- package/dist/test/render.d.ts +17 -0
- package/dist/themes/precision.css +232 -0
- package/dist/tools.json +179 -294
- package/dist/utils/index.d.ts +0 -1
- package/package.json +31 -1
- package/src/global.scss +21 -28
- package/src/styles/theme.css +124 -41
- package/src/styles/theme.test.ts +119 -0
- package/tailwind.preset.cjs +30 -20
- package/dist/components/charts/FunnelChart/FunnelChart.animations.d.ts +0 -35
- package/dist/components/charts/FunnelChart/FunnelChart.animations.js +0 -59
- package/dist/components/charts/FunnelChart/FunnelChart.d.ts +0 -8
- package/dist/components/charts/FunnelChart/FunnelChart.js +0 -410
- package/dist/components/charts/FunnelChart/FunnelChart.theme.d.ts +0 -2
- package/dist/components/charts/FunnelChart/FunnelChart.theme.js +0 -12
- package/dist/components/charts/FunnelChart/FunnelChart.types.d.ts +0 -105
- package/dist/components/charts/FunnelChart/index.d.ts +0 -4
- package/dist/components/charts/ScatterPlot/ScatterPlot.d.ts +0 -9
- package/dist/components/charts/ScatterPlot/ScatterPlot.js +0 -208
- package/dist/components/charts/ScatterPlot/ScatterPlot.theme.d.ts +0 -18
- package/dist/components/charts/ScatterPlot/ScatterPlot.theme.js +0 -42
- package/dist/components/charts/ScatterPlot/ScatterPlot.types.d.ts +0 -60
- package/dist/components/charts/ScatterPlot/ScatterPlot.types.js +0 -19
- package/dist/components/charts/ScatterPlot/index.d.ts +0 -3
- package/dist/components/core/Button/Button.ripple.d.ts +0 -71
- package/dist/components/core/Button/Button.ripple.js +0 -236
- package/dist/components/core/Calendar/CalendarEvent/CalendarEvent.d.ts +0 -4
- package/dist/components/core/Calendar/CalendarEvent/CalendarEvent.theme.d.ts +0 -12
- package/dist/components/core/Calendar/CalendarEvent/CalendarEvent.types.d.ts +0 -23
- package/dist/components/core/Calendar/CalendarEvent/index.d.ts +0 -2
- package/dist/components/core/CardStack/CardStack.animations.d.ts +0 -47
- package/dist/components/core/CardStack/CardStack.d.ts +0 -3
- package/dist/components/core/CardStack/CardStack.js +0 -187
- package/dist/components/core/CardStack/CardStack.theme.d.ts +0 -6
- package/dist/components/core/CardStack/CardStack.theme.js +0 -33
- package/dist/components/core/CardStack/CardStack.types.d.ts +0 -139
- package/dist/components/core/CardStack/index.d.ts +0 -7
- package/dist/components/core/Carousel/Carousel.d.ts +0 -3
- package/dist/components/core/Carousel/Carousel.js +0 -83
- package/dist/components/core/Carousel/Carousel.theme.d.ts +0 -10
- package/dist/components/core/Carousel/Carousel.theme.js +0 -20
- package/dist/components/core/Carousel/Carousel.types.d.ts +0 -113
- package/dist/components/core/Carousel/CarouselBody.d.ts +0 -4
- package/dist/components/core/Carousel/CarouselBody.js +0 -59
- package/dist/components/core/Carousel/CarouselContext.d.ts +0 -3
- package/dist/components/core/Carousel/CarouselContext.js +0 -13
- package/dist/components/core/Carousel/CarouselItem.d.ts +0 -4
- package/dist/components/core/Carousel/CarouselItem.js +0 -11
- package/dist/components/core/Carousel/CarouselNext.d.ts +0 -4
- package/dist/components/core/Carousel/CarouselNext.js +0 -16
- package/dist/components/core/Carousel/CarouselPrevious.d.ts +0 -4
- package/dist/components/core/Carousel/CarouselPrevious.js +0 -16
- package/dist/components/core/Carousel/index.d.ts +0 -3
- package/dist/components/effects/ColorPanels/ColorPanels.d.ts +0 -8
- package/dist/components/effects/ColorPanels/ColorPanels.js +0 -66
- package/dist/components/effects/ColorPanels/ColorPanels.shaders.d.ts +0 -12
- package/dist/components/effects/ColorPanels/ColorPanels.shaders.js +0 -218
- package/dist/components/effects/ColorPanels/ColorPanels.types.d.ts +0 -29
- package/dist/components/effects/ColorPanels/ColorPanels.types.js +0 -3
- package/dist/components/effects/ColorPanels/index.d.ts +0 -2
- package/dist/components/effects/FlutedGlass/FlutedGlass.d.ts +0 -9
- package/dist/components/effects/FlutedGlass/FlutedGlass.js +0 -80
- package/dist/components/effects/FlutedGlass/FlutedGlass.shaders.d.ts +0 -12
- package/dist/components/effects/FlutedGlass/FlutedGlass.shaders.js +0 -335
- package/dist/components/effects/FlutedGlass/FlutedGlass.types.d.ts +0 -61
- package/dist/components/effects/FlutedGlass/FlutedGlass.types.js +0 -16
- package/dist/components/effects/FlutedGlass/index.d.ts +0 -3
- package/dist/components/effects/GlassEffect/GlassEffect.d.ts +0 -15
- package/dist/components/effects/GlassEffect/GlassEffect.js +0 -38
- package/dist/components/effects/GlassEffect/GlassEffect.types.d.ts +0 -19
- package/dist/components/effects/GlassEffect/index.d.ts +0 -2
- package/dist/components/effects/GlassSurface/GlassSurface.d.ts +0 -8
- package/dist/components/effects/GlassSurface/GlassSurface.js +0 -250
- package/dist/components/effects/GlassSurface/GlassSurface.types.d.ts +0 -66
- package/dist/components/effects/GlassSurface/index.d.ts +0 -2
- package/dist/components/effects/GodRays/GodRays.d.ts +0 -8
- package/dist/components/effects/GodRays/GodRays.js +0 -68
- package/dist/components/effects/GodRays/GodRays.shaders.d.ts +0 -10
- package/dist/components/effects/GodRays/GodRays.shaders.js +0 -128
- package/dist/components/effects/GodRays/GodRays.types.d.ts +0 -25
- package/dist/components/effects/GodRays/GodRays.types.js +0 -3
- package/dist/components/effects/GodRays/index.d.ts +0 -2
- package/dist/components/effects/GridPattern/GridPattern.d.ts +0 -18
- package/dist/components/effects/GridPattern/GridPattern.js +0 -65
- package/dist/components/effects/GridPattern/GridPattern.types.d.ts +0 -47
- package/dist/components/effects/GridPattern/index.d.ts +0 -2
- package/dist/components/effects/HalftoneCmyk/HalftoneCmyk.d.ts +0 -10
- package/dist/components/effects/HalftoneCmyk/HalftoneCmyk.js +0 -78
- package/dist/components/effects/HalftoneCmyk/HalftoneCmyk.shaders.d.ts +0 -22
- package/dist/components/effects/HalftoneCmyk/HalftoneCmyk.shaders.js +0 -239
- package/dist/components/effects/HalftoneCmyk/HalftoneCmyk.types.d.ts +0 -52
- package/dist/components/effects/HalftoneCmyk/index.d.ts +0 -2
- package/dist/components/effects/HalftoneDots/HalftoneDots.d.ts +0 -9
- package/dist/components/effects/HalftoneDots/HalftoneDots.js +0 -68
- package/dist/components/effects/HalftoneDots/HalftoneDots.shaders.d.ts +0 -13
- package/dist/components/effects/HalftoneDots/HalftoneDots.shaders.js +0 -296
- package/dist/components/effects/HalftoneDots/HalftoneDots.types.d.ts +0 -43
- package/dist/components/effects/HalftoneDots/HalftoneDots.types.js +0 -12
- package/dist/components/effects/HalftoneDots/index.d.ts +0 -3
- package/dist/components/effects/ImageDithering/ImageDithering.d.ts +0 -9
- package/dist/components/effects/ImageDithering/ImageDithering.js +0 -68
- package/dist/components/effects/ImageDithering/ImageDithering.shaders.d.ts +0 -12
- package/dist/components/effects/ImageDithering/ImageDithering.shaders.js +0 -117
- package/dist/components/effects/ImageDithering/ImageDithering.types.d.ts +0 -30
- package/dist/components/effects/ImageDithering/ImageDithering.types.js +0 -8
- package/dist/components/effects/ImageDithering/index.d.ts +0 -3
- package/dist/components/effects/MagneticElement/MagneticElement.d.ts +0 -30
- package/dist/components/effects/MagneticElement/MagneticElement.js +0 -111
- package/dist/components/effects/MagneticElement/MagneticElement.types.d.ts +0 -44
- package/dist/components/effects/MagneticElement/index.d.ts +0 -2
- package/dist/components/effects/Metaballs/Metaballs.d.ts +0 -8
- package/dist/components/effects/Metaballs/Metaballs.js +0 -59
- package/dist/components/effects/Metaballs/Metaballs.shaders.d.ts +0 -10
- package/dist/components/effects/Metaballs/Metaballs.shaders.js +0 -102
- package/dist/components/effects/Metaballs/Metaballs.types.d.ts +0 -16
- package/dist/components/effects/Metaballs/Metaballs.types.js +0 -3
- package/dist/components/effects/Metaballs/index.d.ts +0 -2
- package/dist/components/effects/PaperTexture/PaperTexture.d.ts +0 -9
- package/dist/components/effects/PaperTexture/PaperTexture.js +0 -61
- package/dist/components/effects/PaperTexture/PaperTexture.shaders.d.ts +0 -22
- package/dist/components/effects/PaperTexture/PaperTexture.shaders.js +0 -145
- package/dist/components/effects/PaperTexture/PaperTexture.types.d.ts +0 -19
- package/dist/components/effects/PaperTexture/index.d.ts +0 -2
- package/dist/components/effects/PulsingBorder/PulsingBorder.d.ts +0 -27
- package/dist/components/effects/PulsingBorder/PulsingBorder.js +0 -174
- package/dist/components/effects/PulsingBorder/PulsingBorder.shaders.d.ts +0 -14
- package/dist/components/effects/PulsingBorder/PulsingBorder.shaders.js +0 -258
- package/dist/components/effects/PulsingBorder/PulsingBorder.types.d.ts +0 -75
- package/dist/components/effects/PulsingBorder/PulsingBorder.types.js +0 -3
- package/dist/components/effects/PulsingBorder/index.d.ts +0 -2
- package/dist/components/effects/SmokeRing/SmokeRing.d.ts +0 -8
- package/dist/components/effects/SmokeRing/SmokeRing.js +0 -62
- package/dist/components/effects/SmokeRing/SmokeRing.shaders.d.ts +0 -14
- package/dist/components/effects/SmokeRing/SmokeRing.shaders.js +0 -130
- package/dist/components/effects/SmokeRing/SmokeRing.types.d.ts +0 -22
- package/dist/components/effects/SmokeRing/SmokeRing.types.js +0 -3
- package/dist/components/effects/SmokeRing/index.d.ts +0 -2
- package/dist/components/effects/StaticGradientMesh/StaticGradientMesh.d.ts +0 -9
- package/dist/components/effects/StaticGradientMesh/StaticGradientMesh.js +0 -59
- package/dist/components/effects/StaticGradientMesh/StaticGradientMesh.shaders.d.ts +0 -14
- package/dist/components/effects/StaticGradientMesh/StaticGradientMesh.shaders.js +0 -129
- package/dist/components/effects/StaticGradientMesh/StaticGradientMesh.types.d.ts +0 -23
- package/dist/components/effects/StaticGradientMesh/StaticGradientMesh.types.js +0 -3
- package/dist/components/effects/StaticGradientMesh/index.d.ts +0 -2
- package/dist/components/effects/Water/Water.d.ts +0 -9
- package/dist/components/effects/Water/Water.js +0 -65
- package/dist/components/effects/Water/Water.shaders.d.ts +0 -11
- package/dist/components/effects/Water/Water.shaders.js +0 -123
- package/dist/components/effects/Water/Water.types.d.ts +0 -25
- package/dist/components/effects/Water/index.d.ts +0 -2
- package/dist/components/effects/shared/bayerMatrices.glsl.d.ts +0 -10
- package/dist/components/effects/shared/bayerMatrices.glsl.js +0 -44
- package/dist/components/effects/shared/imageUV.glsl.d.ts +0 -12
- package/dist/components/effects/shared/imageUV.glsl.js +0 -26
- package/dist/components/forms/RichTextEditor/RichTextEditor.animations.d.ts +0 -7
- package/dist/components/forms/RichTextEditor/RichTextEditor.animations.js +0 -32
- package/dist/utils/calendarUtils.d.ts +0 -60
- /package/dist/components/{charts → core}/shared/ChartTooltip/ChartTooltip.d.ts +0 -0
- /package/dist/components/{charts → core}/shared/ChartTooltip/ChartTooltip.theme.d.ts +0 -0
- /package/dist/components/{charts → core}/shared/ChartTooltip/ChartTooltip.theme.js +0 -0
- /package/dist/components/{charts → core}/shared/ChartTooltip/ChartTooltip.types.d.ts +0 -0
- /package/dist/components/{charts → core}/shared/ChartTooltip/ChartTooltipContent.d.ts +0 -0
- /package/dist/components/{charts → core}/shared/ChartTooltip/index.d.ts +0 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { isEmptyValue } from './fieldBinding.js';
|
|
4
|
+
|
|
5
|
+
const REQUIRED_MESSAGE = "This field is required.";
|
|
6
|
+
/**
|
|
7
|
+
* Defense in depth for the values/errors bags below. `validate()` is the
|
|
8
|
+
* primary boundary (it rejects any field `name` that collides with
|
|
9
|
+
* `Object.prototype` before a spec ever reaches this scope), but a bag keyed
|
|
10
|
+
* by arbitrary field names is still one bad path away from resolving
|
|
11
|
+
* "toString"/"hasOwnProperty"/etc. to an INHERITED function instead of
|
|
12
|
+
* `undefined` for a key nobody ever set. A null-prototype object has no such
|
|
13
|
+
* chain — an unset key is always exactly `undefined`. Every bag update below
|
|
14
|
+
* goes through this rather than an object spread (`{ ...prev }` recreates a
|
|
15
|
+
* normal-prototype object, silently undoing the protection).
|
|
16
|
+
*/
|
|
17
|
+
function nullProtoBag(...sources) {
|
|
18
|
+
return Object.assign(Object.create(null), ...sources);
|
|
19
|
+
}
|
|
20
|
+
const FormScopeContext = React__default.createContext(undefined);
|
|
21
|
+
/** Nearest enclosing form scope, or undefined outside a Form. */
|
|
22
|
+
function useFormScope() {
|
|
23
|
+
return React__default.useContext(FormScopeContext);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The form state machine. Controlled when `values` is passed; otherwise it owns
|
|
27
|
+
* state seeded from `defaultValues`. Mode is derived per render and never
|
|
28
|
+
* stored (CLAUDE.md §9).
|
|
29
|
+
*/
|
|
30
|
+
function useFormScopeState({ formId, values, defaultValues, onValuesChange, onSubmit, onInvalid, }) {
|
|
31
|
+
const isControlled = values !== undefined;
|
|
32
|
+
const [internal, setInternal] = React__default.useState(() => nullProtoBag(defaultValues));
|
|
33
|
+
const [errors, setErrors] = React__default.useState(() => nullProtoBag());
|
|
34
|
+
const fields = React__default.useRef(new Map());
|
|
35
|
+
if (process.env.NODE_ENV !== "production") {
|
|
36
|
+
if (values !== undefined && defaultValues !== undefined) {
|
|
37
|
+
console.warn("[GenerativeView]: both `values` and `defaultValues` were provided — `values` wins.");
|
|
38
|
+
}
|
|
39
|
+
if (values !== undefined && !onValuesChange) {
|
|
40
|
+
console.warn("[GenerativeView]: `values` was provided without `onValuesChange` — fields will not update.");
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
// In controlled mode `values` is adopted VERBATIM — the consumer's own
|
|
44
|
+
// object, trusted as-given, never copied or re-prototyped. Copying it every
|
|
45
|
+
// render to null-proto it would break the referential equality the
|
|
46
|
+
// controlled contract depends on (a consumer diffing `values` between
|
|
47
|
+
// renders). `nullProtoBag` below therefore only ever touches the
|
|
48
|
+
// UNCONTROLLED bag this scope itself builds (`internal`/`errors`); it is
|
|
49
|
+
// NOT a defense against a hostile key in a controlled `values` object.
|
|
50
|
+
// `validate()` is the only boundary standing between a spec's field
|
|
51
|
+
// `name`s and a controlled consumer's bag — see CLAUDE.md §22 / the
|
|
52
|
+
// "limits of the defense-in-depth layer" note in the Task 6 report.
|
|
53
|
+
const current = isControlled ? values : internal;
|
|
54
|
+
// `current` is read during render; keep a ref so the stable callbacks below
|
|
55
|
+
// always see the latest bag without re-creating themselves every keystroke.
|
|
56
|
+
const currentRef = React__default.useRef(current);
|
|
57
|
+
currentRef.current = current;
|
|
58
|
+
const getValue = React__default.useCallback((name) => currentRef.current[name], []);
|
|
59
|
+
const getLabel = React__default.useCallback((name) => { var _a; return (_a = fields.current.get(name)) === null || _a === void 0 ? void 0 : _a.label; }, []);
|
|
60
|
+
const setValue = React__default.useCallback((name, value) => {
|
|
61
|
+
const next = nullProtoBag(currentRef.current, { [name]: value });
|
|
62
|
+
if (!isControlled) {
|
|
63
|
+
// Update the ref immediately (not just on the next render): React
|
|
64
|
+
// batches the setInternal below, so a second setValue call in the
|
|
65
|
+
// same synchronous block (e.g. two fields committed in one `act`)
|
|
66
|
+
// would otherwise read the pre-update snapshot and clobber this one.
|
|
67
|
+
currentRef.current = next;
|
|
68
|
+
setInternal(next);
|
|
69
|
+
}
|
|
70
|
+
onValuesChange === null || onValuesChange === void 0 ? void 0 : onValuesChange(next);
|
|
71
|
+
setErrors((prev) => {
|
|
72
|
+
if (prev[name] === undefined)
|
|
73
|
+
return prev;
|
|
74
|
+
const nextErrors = nullProtoBag();
|
|
75
|
+
for (const [k, v] of Object.entries(prev)) {
|
|
76
|
+
if (k !== name)
|
|
77
|
+
nextErrors[k] = v;
|
|
78
|
+
}
|
|
79
|
+
return nextErrors;
|
|
80
|
+
});
|
|
81
|
+
}, [isControlled, onValuesChange]);
|
|
82
|
+
const register = React__default.useCallback((name, opts) => {
|
|
83
|
+
fields.current.set(name, opts);
|
|
84
|
+
// Commit the seed directly into internal state — never through
|
|
85
|
+
// `setValue` — so an untouched field still contributes to the
|
|
86
|
+
// submitted bag without ever notifying the consumer at mount. In
|
|
87
|
+
// controlled mode the consumer owns the complete bag already (or
|
|
88
|
+
// doesn't; either way it isn't this scope's place to inject a default
|
|
89
|
+
// behind their back), so this is a no-op there: `currentRef.current`
|
|
90
|
+
// is overwritten from `values` again on the very next render.
|
|
91
|
+
if (!isControlled && opts.seed !== undefined && currentRef.current[name] === undefined) {
|
|
92
|
+
const next = nullProtoBag(currentRef.current, { [name]: opts.seed });
|
|
93
|
+
currentRef.current = next;
|
|
94
|
+
setInternal(next);
|
|
95
|
+
}
|
|
96
|
+
}, [isControlled]);
|
|
97
|
+
const unregister = React__default.useCallback((name) => {
|
|
98
|
+
fields.current.delete(name);
|
|
99
|
+
}, []);
|
|
100
|
+
const submit = React__default.useCallback(() => {
|
|
101
|
+
const bag = nullProtoBag();
|
|
102
|
+
const nextErrors = nullProtoBag();
|
|
103
|
+
const invalid = [];
|
|
104
|
+
for (const [name, reg] of fields.current) {
|
|
105
|
+
const value = currentRef.current[name];
|
|
106
|
+
if (reg.required && isEmptyValue(reg.binding, value)) {
|
|
107
|
+
nextErrors[name] = REQUIRED_MESSAGE;
|
|
108
|
+
invalid.push(name);
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
if (value !== undefined)
|
|
112
|
+
bag[name] = value;
|
|
113
|
+
}
|
|
114
|
+
setErrors(nextErrors);
|
|
115
|
+
if (invalid.length) {
|
|
116
|
+
onInvalid === null || onInvalid === void 0 ? void 0 : onInvalid(invalid);
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
onSubmit(bag);
|
|
120
|
+
}, [onSubmit, onInvalid]);
|
|
121
|
+
return React__default.useMemo(
|
|
122
|
+
// `current` is otherwise not a dependency of any memoized callback below
|
|
123
|
+
// (they all close over `currentRef`, not `current` itself), so without
|
|
124
|
+
// it here the returned object's identity never changes on a plain value
|
|
125
|
+
// update — and an unchanged Context value never re-renders consumers,
|
|
126
|
+
// regardless of how many times this component itself re-renders. Every
|
|
127
|
+
// field's own `NodeRenderer` reads the scope's value at render time via
|
|
128
|
+
// `getValue`; it needs a reason to be asked to render again, and this is
|
|
129
|
+
// that reason.
|
|
130
|
+
() => ({ formId, getValue, setValue, getLabel, register, unregister, errors, submit }),
|
|
131
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
132
|
+
[formId, getValue, setValue, getLabel, register, unregister, errors, submit, current]);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export { FormScopeContext, REQUIRED_MESSAGE, useFormScope, useFormScopeState };
|
|
@@ -9,3 +9,7 @@ export { bindActionProps, extractActionData, type ActionContext, type ActionHand
|
|
|
9
9
|
export { buildToolDefinition, GENERATIVE_TOOL, type GenerativeToolDefinition } from "./tools";
|
|
10
10
|
export { GENERATIVE_SCHEMA } from "./schema.generated";
|
|
11
11
|
export type { GenerativeSchemaDoc, ComponentSchema, SchemaProp, SchemaPropKind } from "./schemaTypes";
|
|
12
|
+
export { toToolResult, type GenerativeToolResult } from "./toToolResult";
|
|
13
|
+
export { FormShell, type FormShellProps } from "./FormShell";
|
|
14
|
+
export { useFormScope, REQUIRED_MESSAGE, type FormValues, type GenerativeValues, type FormScopeValue, } from "./formScope";
|
|
15
|
+
export { FIELD_BINDINGS, getFieldBinding, type FieldBinding } from "./fieldBinding";
|
|
@@ -7,3 +7,7 @@ export { useGenerativeStream } from './useGenerativeStream.js';
|
|
|
7
7
|
export { bindActionProps, extractActionData } from './actions.js';
|
|
8
8
|
export { GENERATIVE_TOOL, buildToolDefinition } from './tools.js';
|
|
9
9
|
export { GENERATIVE_SCHEMA } from './schema.generated.js';
|
|
10
|
+
export { toToolResult } from './toToolResult.js';
|
|
11
|
+
export { FormShell } from './FormShell.js';
|
|
12
|
+
export { REQUIRED_MESSAGE, useFormScope } from './formScope.js';
|
|
13
|
+
export { FIELD_BINDINGS, getFieldBinding } from './fieldBinding.js';
|
|
@@ -12,6 +12,8 @@ export interface RegistryEntry {
|
|
|
12
12
|
render?: (props: Record<string, unknown>, children?: React.ReactNode) => React.ReactNode;
|
|
13
13
|
/** Map spec action keys to component callback props, e.g. { click: "onClick" }. */
|
|
14
14
|
actionProps?: Record<string, string>;
|
|
15
|
+
/** Marks the container that hosts a FormScope. Only `Form` sets this. */
|
|
16
|
+
isForm?: boolean;
|
|
15
17
|
}
|
|
16
18
|
export interface GenerativeRegistry {
|
|
17
19
|
components: Record<string, RegistryEntry>;
|
|
@@ -9,7 +9,6 @@ import { Badge } from '../core/Badge/Badge.js';
|
|
|
9
9
|
import { Breadcrumbs } from '../core/Breadcrumbs/Breadcrumbs.js';
|
|
10
10
|
import '../core/Breadcrumbs/Breadcrumbs.theme.js';
|
|
11
11
|
import { Button } from '../core/Button/Button.js';
|
|
12
|
-
import 'react';
|
|
13
12
|
import { ButtonGroup } from '../core/ButtonGroup/ButtonGroup.js';
|
|
14
13
|
import '../core/ButtonGroup/ButtonGroupSeparator.js';
|
|
15
14
|
import '../core/ButtonGroup/ButtonGroupText.js';
|
|
@@ -19,6 +18,7 @@ import { Card } from '../core/Card/Card.js';
|
|
|
19
18
|
import { CommandPalette } from '../core/CommandPalette/CommandPalette.js';
|
|
20
19
|
import { DotSeparator } from '../core/DotSeparator/DotSeparator.js';
|
|
21
20
|
import { Empty } from '../core/Empty/Empty.js';
|
|
21
|
+
import { FormShell } from './FormShell.js';
|
|
22
22
|
import { HeroCard } from '../core/HeroCard/HeroCard.js';
|
|
23
23
|
import { Icon } from '../core/Icon/Icon.js';
|
|
24
24
|
import { Kbd } from '../core/Kbd/Kbd.js';
|
|
@@ -28,6 +28,7 @@ import { Message } from '../core/Message/Message.js';
|
|
|
28
28
|
import '../core/Message/TypeWriter.js';
|
|
29
29
|
import '../core/Message/MessageBody.js';
|
|
30
30
|
import { cn } from '../../utils/cn.js';
|
|
31
|
+
import 'react';
|
|
31
32
|
import '@phosphor-icons/react';
|
|
32
33
|
import { MenuItem } from '../core/MenuItem/MenuItem.js';
|
|
33
34
|
import { PageHeading } from '../core/PageHeading/PageHeading.js';
|
|
@@ -81,6 +82,7 @@ import '../forms/Slider/Slider.theme.js';
|
|
|
81
82
|
import '../forms/Signature/Signature.js';
|
|
82
83
|
import '../forms/Signature/Signature.theme.js';
|
|
83
84
|
import '../forms/RichTextEditor/RichTextEditor.js';
|
|
85
|
+
import '../forms/RichTextEditor/RichTextToolbar.js';
|
|
84
86
|
import '../forms/RichTextEditor/RichTextEditor.theme.js';
|
|
85
87
|
import { InputOTP } from '../forms/InputOTP/InputOTP.js';
|
|
86
88
|
import '../forms/InputOTP/InputOTP.theme.js';
|
|
@@ -116,8 +118,6 @@ import { defaultResolvers, DEFAULT_ICONS } from './resolvers.js';
|
|
|
116
118
|
import { Heatmap } from '../charts/Heatmap/Heatmap.js';
|
|
117
119
|
import '../charts/Heatmap/HeatmapCell.js';
|
|
118
120
|
import { ActivityRings } from '../charts/ActivityRings/ActivityRings.js';
|
|
119
|
-
import { FunnelChart } from '../charts/FunnelChart/FunnelChart.js';
|
|
120
|
-
import { ScatterPlot } from '../charts/ScatterPlot/ScatterPlot.js';
|
|
121
121
|
import { RadarChart } from '../charts/RadarChart/RadarChart.js';
|
|
122
122
|
import { DonutChart } from '../charts/DonutChart/DonutChart.js';
|
|
123
123
|
import { ChartContainer } from '../charts/ChartContainer.js';
|
|
@@ -157,6 +157,12 @@ const DEFAULT_COMPONENTS = {
|
|
|
157
157
|
Grid: { component: Grid, kind: "container" },
|
|
158
158
|
Stack: { component: Stack, kind: "container" },
|
|
159
159
|
Section: { component: Section, kind: "container" },
|
|
160
|
+
Form: {
|
|
161
|
+
component: FormShell,
|
|
162
|
+
kind: "container",
|
|
163
|
+
isForm: true,
|
|
164
|
+
actionProps: { submit: "onSubmit" },
|
|
165
|
+
},
|
|
160
166
|
Card: {
|
|
161
167
|
component: Card,
|
|
162
168
|
kind: "container",
|
|
@@ -175,7 +181,7 @@ const DEFAULT_COMPONENTS = {
|
|
|
175
181
|
Progress: { component: Progress },
|
|
176
182
|
Separator: { component: Separator },
|
|
177
183
|
Empty: { component: Empty },
|
|
178
|
-
Rating: { component: Rating },
|
|
184
|
+
Rating: { component: Rating, actionProps: { change: "onChange" } },
|
|
179
185
|
Pill: { component: Pill },
|
|
180
186
|
Tag: { component: Tag },
|
|
181
187
|
PageHeading: { component: PageHeading },
|
|
@@ -291,12 +297,6 @@ const DEFAULT_COMPONENTS = {
|
|
|
291
297
|
// Charts (Wave 3) — bespoke prop systems, not BaseChartProps-shaped, so no
|
|
292
298
|
// ChartContainer wrap via chartEntry() (that helper is data/config-specific).
|
|
293
299
|
RadarChart: { component: RadarChart, needsShell: true },
|
|
294
|
-
ScatterPlot: { component: ScatterPlot, needsShell: true },
|
|
295
|
-
FunnelChart: {
|
|
296
|
-
component: FunnelChart,
|
|
297
|
-
needsShell: true,
|
|
298
|
-
actionProps: { stageClick: "onStageClick" },
|
|
299
|
-
},
|
|
300
300
|
ActivityRings: { component: ActivityRings, needsShell: true },
|
|
301
301
|
Heatmap: {
|
|
302
302
|
component: Heatmap,
|