hazo_ui 3.1.2 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGE_LOG.md +68 -0
- package/README.md +3 -1
- package/dist/index.cjs +163 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -10
- package/dist/index.d.ts +60 -10
- package/dist/index.js +164 -2
- package/dist/index.js.map +1 -1
- package/dist/index.utils.cjs +12 -0
- package/dist/index.utils.cjs.map +1 -0
- package/dist/index.utils.d.cts +10 -0
- package/dist/index.utils.d.ts +10 -0
- package/dist/index.utils.js +10 -0
- package/dist/index.utils.js.map +1 -0
- package/package.json +8 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
export { cn } from './index.utils.cjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { RefObject } from 'react';
|
|
3
|
+
import { ReactNode, RefObject } from 'react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import { ICommand } from '@uiw/react-md-editor';
|
|
6
|
+
export { ICommand as MarkdownEditorCommand } from '@uiw/react-md-editor';
|
|
5
7
|
import { Node, Extension } from '@tiptap/core';
|
|
6
8
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
7
9
|
import * as vaul from 'vaul';
|
|
@@ -26,13 +28,7 @@ import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
|
26
28
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
27
29
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
28
30
|
export { toast as rawToast } from 'sonner';
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Merges class names using clsx and tailwind-merge
|
|
32
|
-
* @param inputs - Class values to merge
|
|
33
|
-
* @returns Merged class string
|
|
34
|
-
*/
|
|
35
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
31
|
+
import 'clsx';
|
|
36
32
|
|
|
37
33
|
/**
|
|
38
34
|
* hazo_context_provider/index.tsx
|
|
@@ -377,6 +373,60 @@ interface HazoUiRteProps {
|
|
|
377
373
|
*/
|
|
378
374
|
declare const HazoUiRte: React.FC<HazoUiRteProps>;
|
|
379
375
|
|
|
376
|
+
/** A toolbar button that inserts a snippet at the cursor. */
|
|
377
|
+
interface MarkdownEmbed {
|
|
378
|
+
/** Stable command name. */
|
|
379
|
+
name: string;
|
|
380
|
+
/** Tooltip / aria-label. */
|
|
381
|
+
label: string;
|
|
382
|
+
/** Optional toolbar icon node. */
|
|
383
|
+
icon?: ReactNode;
|
|
384
|
+
/**
|
|
385
|
+
* The text inserted at the cursor. Either a static string, or a function of
|
|
386
|
+
* the currently-selected text (lets you wrap selections, e.g. callouts).
|
|
387
|
+
*/
|
|
388
|
+
snippet: string | ((selectedText: string) => string);
|
|
389
|
+
}
|
|
390
|
+
interface MarkdownEditorProps {
|
|
391
|
+
value: string;
|
|
392
|
+
onChange: (value: string) => void;
|
|
393
|
+
/** Editor height in pixels. Default 600. */
|
|
394
|
+
height?: number;
|
|
395
|
+
/** Placeholder text for the textarea. */
|
|
396
|
+
placeholder?: string;
|
|
397
|
+
className?: string;
|
|
398
|
+
/** @uiw color mode applied via data-color-mode. Default "light". */
|
|
399
|
+
colorMode?: "light" | "dark";
|
|
400
|
+
/** Built-in @uiw preview mode (ignored when renderPreview is supplied). Default "edit". */
|
|
401
|
+
preview?: "edit" | "live" | "preview";
|
|
402
|
+
/** Toolbar buttons that insert snippets at the cursor (e.g. MDX embeds). */
|
|
403
|
+
embeds?: MarkdownEmbed[];
|
|
404
|
+
/**
|
|
405
|
+
* Fully-custom toolbar commands appended after the image command. Use for
|
|
406
|
+
* buttons that open dialogs (media pickers, etc.). Takes precedence in order
|
|
407
|
+
* after `embeds`.
|
|
408
|
+
*/
|
|
409
|
+
extraCommands?: ICommand[];
|
|
410
|
+
/**
|
|
411
|
+
* Paste-to-upload handler. Receives the pasted image File, returns the URL/
|
|
412
|
+
* path to insert as ``, or null on failure. When omitted, pasted
|
|
413
|
+
* images fall through to the editor's default behavior.
|
|
414
|
+
*/
|
|
415
|
+
onImageUpload?: (file: File) => Promise<string | null>;
|
|
416
|
+
/**
|
|
417
|
+
* Optional custom preview renderer (e.g. MDX). When provided, a side-by-side
|
|
418
|
+
* preview pane renders this instead of the built-in markdown preview, and the
|
|
419
|
+
* built-in preview is forced to "edit".
|
|
420
|
+
*/
|
|
421
|
+
renderPreview?: (source: string) => ReactNode;
|
|
422
|
+
/** Whether the custom preview pane is visible. Default true (when renderPreview set). */
|
|
423
|
+
showPreview?: boolean;
|
|
424
|
+
}
|
|
425
|
+
declare function MarkdownEditor({ value, onChange, height, placeholder, className, colorMode, preview, embeds, extraCommands, onImageUpload, renderPreview, showPreview, }: MarkdownEditorProps): react_jsx_runtime.JSX.Element;
|
|
426
|
+
declare namespace MarkdownEditor {
|
|
427
|
+
var displayName: string;
|
|
428
|
+
}
|
|
429
|
+
|
|
380
430
|
/**
|
|
381
431
|
* Types for HazoUiCommand - Command/Mention System
|
|
382
432
|
*
|
|
@@ -2035,4 +2085,4 @@ interface CelebrationProviderProps {
|
|
|
2035
2085
|
*/
|
|
2036
2086
|
declare function CelebrationProvider({ children }: CelebrationProviderProps): react_jsx_runtime.JSX.Element;
|
|
2037
2087
|
|
|
2038
|
-
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AnimationPreset, type BaseCommandInputProps, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CelebrationPayload, CelebrationProvider, type CelebrationProviderProps, type CelebrationShareableCard, type ChartDataPoint, type ChartDataSeries, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type CommandEditContext, type CommandItem$1 as CommandItem, CommandNodeExtension, CommandPill, type CommandPillProps, CommandPopover, type CommandPopoverProps, type CommandTextOutput, type ConfirmDialogVariant, type DateRangeOption, DateRangeSelector, type DateRangeSelectorProps, type DialogVariant, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, ErrorBanner, type ErrorBannerProps, type ErrorBannerSeverity, ErrorPage, type ErrorPageProps, type FilterConfig, type FilterField, HazoContextProvider, type HazoContextProviderProps, type HazoUiConfig, HazoUiConfirmDialog, type HazoUiConfirmDialogProps, HazoUiDialog, DialogClose as HazoUiDialogClose, DialogContent as HazoUiDialogContent, DialogDescription as HazoUiDialogDescription, DialogFooter as HazoUiDialogFooter, DialogHeader as HazoUiDialogHeader, DialogOverlay as HazoUiDialogOverlay, DialogPortal as HazoUiDialogPortal, type HazoUiDialogProps, Dialog as HazoUiDialogRoot, DialogTitle as HazoUiDialogTitle, DialogTrigger as HazoUiDialogTrigger, HazoUiFlexInput, type HazoUiFlexInputProps, HazoUiFlexRadio, type HazoUiFlexRadioItem, type HazoUiFlexRadioProps, HazoUiKanban, HazoUiKanbanFilter, type HazoUiKanbanFilterProps, type HazoUiKanbanProps, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiPillRadio, type HazoUiPillRadioItem, type HazoUiPillRadioProps, HazoUiRte, type HazoUiRteProps, HazoUiTable, type HazoUiTablePagination, type HazoUiTableProps, type HazoUiTableServerLoadArgs, type HazoUiTableServerLoadResult, HazoUiTextarea, type HazoUiTextareaProps, HazoUiTextbox, type HazoUiTextboxProps, HazoUiToaster, type HazoUiToasterProps, HoverCard, HoverCardContent, HoverCardTrigger, Input, type InsertedCommand, InverseSparkline, type InverseSparklineProps, type KanbanAnnouncements, type KanbanColumn, type KanbanEditorCtx, type KanbanEditorField, type KanbanEditorFieldType, type KanbanFilterValue, type KanbanItem, type KanbanMoveEvent, type KanbanMoveHandle, type KanbanPriority, type KanbanReorderEvent, type KanbanSaveEvent, Label, LineChart, type LineChartProps, LoadingTimeout, type LoadingTimeoutProps, type Logger, MultiLineChart, type MultiLineChartProps, type MultiSeries, Popover, PopoverContent, PopoverTrigger, type PrefixColor, type PrefixConfig, ProgressiveImage, type ProgressiveImageProps, RadioGroup, RadioGroupItem, type RteAttachment, type RteOutput, type RteVariable, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Command as ShadcnCommand, CommandEmpty as ShadcnCommandEmpty, CommandGroup as ShadcnCommandGroup, CommandInput as ShadcnCommandInput, CommandItem as ShadcnCommandItem, CommandList as ShadcnCommandList, Skeleton, SkeletonBar, type SkeletonBarProps, SkeletonCircle, type SkeletonCircleProps, SkeletonGroup, type SkeletonGroupProps, SkeletonRect, type SkeletonRectProps, type SortConfig, type SortField, Sparkline, type SparklineProps, Spinner, type StackedBar, StackedBars, type StackedBarsProps, type SuggestionState, Switch, Table, TableBody, TableCaption, TableCell, type TableColumn, type TableFilter, TableFooter, type TableFormatter, TableHead, TableHeader, TableRow, type TableSort, type TableSortEntry, type TableSortProp, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ToastOptions, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseCopyToClipboardResult, type UseErrorDisplayResult, type UseFullscreenResult, type UseLoadingStateResult, type UseWakeLockResult, applyKanbanFilter, buttonGroupVariants, celebrate,
|
|
2088
|
+
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AnimationPreset, type BaseCommandInputProps, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CelebrationPayload, CelebrationProvider, type CelebrationProviderProps, type CelebrationShareableCard, type ChartDataPoint, type ChartDataSeries, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type CommandEditContext, type CommandItem$1 as CommandItem, CommandNodeExtension, CommandPill, type CommandPillProps, CommandPopover, type CommandPopoverProps, type CommandTextOutput, type ConfirmDialogVariant, type DateRangeOption, DateRangeSelector, type DateRangeSelectorProps, type DialogVariant, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, ErrorBanner, type ErrorBannerProps, type ErrorBannerSeverity, ErrorPage, type ErrorPageProps, type FilterConfig, type FilterField, HazoContextProvider, type HazoContextProviderProps, type HazoUiConfig, HazoUiConfirmDialog, type HazoUiConfirmDialogProps, HazoUiDialog, DialogClose as HazoUiDialogClose, DialogContent as HazoUiDialogContent, DialogDescription as HazoUiDialogDescription, DialogFooter as HazoUiDialogFooter, DialogHeader as HazoUiDialogHeader, DialogOverlay as HazoUiDialogOverlay, DialogPortal as HazoUiDialogPortal, type HazoUiDialogProps, Dialog as HazoUiDialogRoot, DialogTitle as HazoUiDialogTitle, DialogTrigger as HazoUiDialogTrigger, HazoUiFlexInput, type HazoUiFlexInputProps, HazoUiFlexRadio, type HazoUiFlexRadioItem, type HazoUiFlexRadioProps, HazoUiKanban, HazoUiKanbanFilter, type HazoUiKanbanFilterProps, type HazoUiKanbanProps, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiPillRadio, type HazoUiPillRadioItem, type HazoUiPillRadioProps, HazoUiRte, type HazoUiRteProps, HazoUiTable, type HazoUiTablePagination, type HazoUiTableProps, type HazoUiTableServerLoadArgs, type HazoUiTableServerLoadResult, HazoUiTextarea, type HazoUiTextareaProps, HazoUiTextbox, type HazoUiTextboxProps, HazoUiToaster, type HazoUiToasterProps, HoverCard, HoverCardContent, HoverCardTrigger, Input, type InsertedCommand, InverseSparkline, type InverseSparklineProps, type KanbanAnnouncements, type KanbanColumn, type KanbanEditorCtx, type KanbanEditorField, type KanbanEditorFieldType, type KanbanFilterValue, type KanbanItem, type KanbanMoveEvent, type KanbanMoveHandle, type KanbanPriority, type KanbanReorderEvent, type KanbanSaveEvent, Label, LineChart, type LineChartProps, LoadingTimeout, type LoadingTimeoutProps, type Logger, MarkdownEditor, type MarkdownEditorProps, type MarkdownEmbed, MultiLineChart, type MultiLineChartProps, type MultiSeries, Popover, PopoverContent, PopoverTrigger, type PrefixColor, type PrefixConfig, ProgressiveImage, type ProgressiveImageProps, RadioGroup, RadioGroupItem, type RteAttachment, type RteOutput, type RteVariable, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Command as ShadcnCommand, CommandEmpty as ShadcnCommandEmpty, CommandGroup as ShadcnCommandGroup, CommandInput as ShadcnCommandInput, CommandItem as ShadcnCommandItem, CommandList as ShadcnCommandList, Skeleton, SkeletonBar, type SkeletonBarProps, SkeletonCircle, type SkeletonCircleProps, SkeletonGroup, type SkeletonGroupProps, SkeletonRect, type SkeletonRectProps, type SortConfig, type SortField, Sparkline, type SparklineProps, Spinner, type StackedBar, StackedBars, type StackedBarsProps, type SuggestionState, Switch, Table, TableBody, TableCaption, TableCell, type TableColumn, type TableFilter, TableFooter, type TableFormatter, TableHead, TableHeader, TableRow, type TableSort, type TableSortEntry, type TableSortProp, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ToastOptions, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseCopyToClipboardResult, type UseErrorDisplayResult, type UseFullscreenResult, type UseLoadingStateResult, type UseWakeLockResult, applyKanbanFilter, buttonGroupVariants, celebrate, create_command_suggestion_extension, errorToast, format_num, generateUUID, get_hazo_ui_config, get_logger, parse_commands_from_text, pick_x_label_indices, reset_hazo_ui_config, resolve_animation_classes, set_hazo_ui_config, set_logger, successToast, text_to_tiptap_content, toggleVariants, useClickOutside, useCopyToClipboard, useDebounce, useErrorDisplay, useFullscreen, useIsMobile, useLoadingState, useLocalStorage, useMediaQuery, useSessionStorage, useViewport, useWakeLock };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
export { cn } from './index.utils.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { RefObject } from 'react';
|
|
3
|
+
import { ReactNode, RefObject } from 'react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import { ICommand } from '@uiw/react-md-editor';
|
|
6
|
+
export { ICommand as MarkdownEditorCommand } from '@uiw/react-md-editor';
|
|
5
7
|
import { Node, Extension } from '@tiptap/core';
|
|
6
8
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
7
9
|
import * as vaul from 'vaul';
|
|
@@ -26,13 +28,7 @@ import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
|
26
28
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
27
29
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
28
30
|
export { toast as rawToast } from 'sonner';
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Merges class names using clsx and tailwind-merge
|
|
32
|
-
* @param inputs - Class values to merge
|
|
33
|
-
* @returns Merged class string
|
|
34
|
-
*/
|
|
35
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
31
|
+
import 'clsx';
|
|
36
32
|
|
|
37
33
|
/**
|
|
38
34
|
* hazo_context_provider/index.tsx
|
|
@@ -377,6 +373,60 @@ interface HazoUiRteProps {
|
|
|
377
373
|
*/
|
|
378
374
|
declare const HazoUiRte: React.FC<HazoUiRteProps>;
|
|
379
375
|
|
|
376
|
+
/** A toolbar button that inserts a snippet at the cursor. */
|
|
377
|
+
interface MarkdownEmbed {
|
|
378
|
+
/** Stable command name. */
|
|
379
|
+
name: string;
|
|
380
|
+
/** Tooltip / aria-label. */
|
|
381
|
+
label: string;
|
|
382
|
+
/** Optional toolbar icon node. */
|
|
383
|
+
icon?: ReactNode;
|
|
384
|
+
/**
|
|
385
|
+
* The text inserted at the cursor. Either a static string, or a function of
|
|
386
|
+
* the currently-selected text (lets you wrap selections, e.g. callouts).
|
|
387
|
+
*/
|
|
388
|
+
snippet: string | ((selectedText: string) => string);
|
|
389
|
+
}
|
|
390
|
+
interface MarkdownEditorProps {
|
|
391
|
+
value: string;
|
|
392
|
+
onChange: (value: string) => void;
|
|
393
|
+
/** Editor height in pixels. Default 600. */
|
|
394
|
+
height?: number;
|
|
395
|
+
/** Placeholder text for the textarea. */
|
|
396
|
+
placeholder?: string;
|
|
397
|
+
className?: string;
|
|
398
|
+
/** @uiw color mode applied via data-color-mode. Default "light". */
|
|
399
|
+
colorMode?: "light" | "dark";
|
|
400
|
+
/** Built-in @uiw preview mode (ignored when renderPreview is supplied). Default "edit". */
|
|
401
|
+
preview?: "edit" | "live" | "preview";
|
|
402
|
+
/** Toolbar buttons that insert snippets at the cursor (e.g. MDX embeds). */
|
|
403
|
+
embeds?: MarkdownEmbed[];
|
|
404
|
+
/**
|
|
405
|
+
* Fully-custom toolbar commands appended after the image command. Use for
|
|
406
|
+
* buttons that open dialogs (media pickers, etc.). Takes precedence in order
|
|
407
|
+
* after `embeds`.
|
|
408
|
+
*/
|
|
409
|
+
extraCommands?: ICommand[];
|
|
410
|
+
/**
|
|
411
|
+
* Paste-to-upload handler. Receives the pasted image File, returns the URL/
|
|
412
|
+
* path to insert as ``, or null on failure. When omitted, pasted
|
|
413
|
+
* images fall through to the editor's default behavior.
|
|
414
|
+
*/
|
|
415
|
+
onImageUpload?: (file: File) => Promise<string | null>;
|
|
416
|
+
/**
|
|
417
|
+
* Optional custom preview renderer (e.g. MDX). When provided, a side-by-side
|
|
418
|
+
* preview pane renders this instead of the built-in markdown preview, and the
|
|
419
|
+
* built-in preview is forced to "edit".
|
|
420
|
+
*/
|
|
421
|
+
renderPreview?: (source: string) => ReactNode;
|
|
422
|
+
/** Whether the custom preview pane is visible. Default true (when renderPreview set). */
|
|
423
|
+
showPreview?: boolean;
|
|
424
|
+
}
|
|
425
|
+
declare function MarkdownEditor({ value, onChange, height, placeholder, className, colorMode, preview, embeds, extraCommands, onImageUpload, renderPreview, showPreview, }: MarkdownEditorProps): react_jsx_runtime.JSX.Element;
|
|
426
|
+
declare namespace MarkdownEditor {
|
|
427
|
+
var displayName: string;
|
|
428
|
+
}
|
|
429
|
+
|
|
380
430
|
/**
|
|
381
431
|
* Types for HazoUiCommand - Command/Mention System
|
|
382
432
|
*
|
|
@@ -2035,4 +2085,4 @@ interface CelebrationProviderProps {
|
|
|
2035
2085
|
*/
|
|
2036
2086
|
declare function CelebrationProvider({ children }: CelebrationProviderProps): react_jsx_runtime.JSX.Element;
|
|
2037
2087
|
|
|
2038
|
-
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AnimationPreset, type BaseCommandInputProps, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CelebrationPayload, CelebrationProvider, type CelebrationProviderProps, type CelebrationShareableCard, type ChartDataPoint, type ChartDataSeries, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type CommandEditContext, type CommandItem$1 as CommandItem, CommandNodeExtension, CommandPill, type CommandPillProps, CommandPopover, type CommandPopoverProps, type CommandTextOutput, type ConfirmDialogVariant, type DateRangeOption, DateRangeSelector, type DateRangeSelectorProps, type DialogVariant, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, ErrorBanner, type ErrorBannerProps, type ErrorBannerSeverity, ErrorPage, type ErrorPageProps, type FilterConfig, type FilterField, HazoContextProvider, type HazoContextProviderProps, type HazoUiConfig, HazoUiConfirmDialog, type HazoUiConfirmDialogProps, HazoUiDialog, DialogClose as HazoUiDialogClose, DialogContent as HazoUiDialogContent, DialogDescription as HazoUiDialogDescription, DialogFooter as HazoUiDialogFooter, DialogHeader as HazoUiDialogHeader, DialogOverlay as HazoUiDialogOverlay, DialogPortal as HazoUiDialogPortal, type HazoUiDialogProps, Dialog as HazoUiDialogRoot, DialogTitle as HazoUiDialogTitle, DialogTrigger as HazoUiDialogTrigger, HazoUiFlexInput, type HazoUiFlexInputProps, HazoUiFlexRadio, type HazoUiFlexRadioItem, type HazoUiFlexRadioProps, HazoUiKanban, HazoUiKanbanFilter, type HazoUiKanbanFilterProps, type HazoUiKanbanProps, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiPillRadio, type HazoUiPillRadioItem, type HazoUiPillRadioProps, HazoUiRte, type HazoUiRteProps, HazoUiTable, type HazoUiTablePagination, type HazoUiTableProps, type HazoUiTableServerLoadArgs, type HazoUiTableServerLoadResult, HazoUiTextarea, type HazoUiTextareaProps, HazoUiTextbox, type HazoUiTextboxProps, HazoUiToaster, type HazoUiToasterProps, HoverCard, HoverCardContent, HoverCardTrigger, Input, type InsertedCommand, InverseSparkline, type InverseSparklineProps, type KanbanAnnouncements, type KanbanColumn, type KanbanEditorCtx, type KanbanEditorField, type KanbanEditorFieldType, type KanbanFilterValue, type KanbanItem, type KanbanMoveEvent, type KanbanMoveHandle, type KanbanPriority, type KanbanReorderEvent, type KanbanSaveEvent, Label, LineChart, type LineChartProps, LoadingTimeout, type LoadingTimeoutProps, type Logger, MultiLineChart, type MultiLineChartProps, type MultiSeries, Popover, PopoverContent, PopoverTrigger, type PrefixColor, type PrefixConfig, ProgressiveImage, type ProgressiveImageProps, RadioGroup, RadioGroupItem, type RteAttachment, type RteOutput, type RteVariable, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Command as ShadcnCommand, CommandEmpty as ShadcnCommandEmpty, CommandGroup as ShadcnCommandGroup, CommandInput as ShadcnCommandInput, CommandItem as ShadcnCommandItem, CommandList as ShadcnCommandList, Skeleton, SkeletonBar, type SkeletonBarProps, SkeletonCircle, type SkeletonCircleProps, SkeletonGroup, type SkeletonGroupProps, SkeletonRect, type SkeletonRectProps, type SortConfig, type SortField, Sparkline, type SparklineProps, Spinner, type StackedBar, StackedBars, type StackedBarsProps, type SuggestionState, Switch, Table, TableBody, TableCaption, TableCell, type TableColumn, type TableFilter, TableFooter, type TableFormatter, TableHead, TableHeader, TableRow, type TableSort, type TableSortEntry, type TableSortProp, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ToastOptions, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseCopyToClipboardResult, type UseErrorDisplayResult, type UseFullscreenResult, type UseLoadingStateResult, type UseWakeLockResult, applyKanbanFilter, buttonGroupVariants, celebrate,
|
|
2088
|
+
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AnimationPreset, type BaseCommandInputProps, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CelebrationPayload, CelebrationProvider, type CelebrationProviderProps, type CelebrationShareableCard, type ChartDataPoint, type ChartDataSeries, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type CommandEditContext, type CommandItem$1 as CommandItem, CommandNodeExtension, CommandPill, type CommandPillProps, CommandPopover, type CommandPopoverProps, type CommandTextOutput, type ConfirmDialogVariant, type DateRangeOption, DateRangeSelector, type DateRangeSelectorProps, type DialogVariant, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, ErrorBanner, type ErrorBannerProps, type ErrorBannerSeverity, ErrorPage, type ErrorPageProps, type FilterConfig, type FilterField, HazoContextProvider, type HazoContextProviderProps, type HazoUiConfig, HazoUiConfirmDialog, type HazoUiConfirmDialogProps, HazoUiDialog, DialogClose as HazoUiDialogClose, DialogContent as HazoUiDialogContent, DialogDescription as HazoUiDialogDescription, DialogFooter as HazoUiDialogFooter, DialogHeader as HazoUiDialogHeader, DialogOverlay as HazoUiDialogOverlay, DialogPortal as HazoUiDialogPortal, type HazoUiDialogProps, Dialog as HazoUiDialogRoot, DialogTitle as HazoUiDialogTitle, DialogTrigger as HazoUiDialogTrigger, HazoUiFlexInput, type HazoUiFlexInputProps, HazoUiFlexRadio, type HazoUiFlexRadioItem, type HazoUiFlexRadioProps, HazoUiKanban, HazoUiKanbanFilter, type HazoUiKanbanFilterProps, type HazoUiKanbanProps, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiPillRadio, type HazoUiPillRadioItem, type HazoUiPillRadioProps, HazoUiRte, type HazoUiRteProps, HazoUiTable, type HazoUiTablePagination, type HazoUiTableProps, type HazoUiTableServerLoadArgs, type HazoUiTableServerLoadResult, HazoUiTextarea, type HazoUiTextareaProps, HazoUiTextbox, type HazoUiTextboxProps, HazoUiToaster, type HazoUiToasterProps, HoverCard, HoverCardContent, HoverCardTrigger, Input, type InsertedCommand, InverseSparkline, type InverseSparklineProps, type KanbanAnnouncements, type KanbanColumn, type KanbanEditorCtx, type KanbanEditorField, type KanbanEditorFieldType, type KanbanFilterValue, type KanbanItem, type KanbanMoveEvent, type KanbanMoveHandle, type KanbanPriority, type KanbanReorderEvent, type KanbanSaveEvent, Label, LineChart, type LineChartProps, LoadingTimeout, type LoadingTimeoutProps, type Logger, MarkdownEditor, type MarkdownEditorProps, type MarkdownEmbed, MultiLineChart, type MultiLineChartProps, type MultiSeries, Popover, PopoverContent, PopoverTrigger, type PrefixColor, type PrefixConfig, ProgressiveImage, type ProgressiveImageProps, RadioGroup, RadioGroupItem, type RteAttachment, type RteOutput, type RteVariable, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Command as ShadcnCommand, CommandEmpty as ShadcnCommandEmpty, CommandGroup as ShadcnCommandGroup, CommandInput as ShadcnCommandInput, CommandItem as ShadcnCommandItem, CommandList as ShadcnCommandList, Skeleton, SkeletonBar, type SkeletonBarProps, SkeletonCircle, type SkeletonCircleProps, SkeletonGroup, type SkeletonGroupProps, SkeletonRect, type SkeletonRectProps, type SortConfig, type SortField, Sparkline, type SparklineProps, Spinner, type StackedBar, StackedBars, type StackedBarsProps, type SuggestionState, Switch, Table, TableBody, TableCaption, TableCell, type TableColumn, type TableFilter, TableFooter, type TableFormatter, TableHead, TableHeader, TableRow, type TableSort, type TableSortEntry, type TableSortProp, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ToastOptions, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseCopyToClipboardResult, type UseErrorDisplayResult, type UseFullscreenResult, type UseLoadingStateResult, type UseWakeLockResult, applyKanbanFilter, buttonGroupVariants, celebrate, create_command_suggestion_extension, errorToast, format_num, generateUUID, get_hazo_ui_config, get_logger, parse_commands_from_text, pick_x_label_indices, reset_hazo_ui_config, resolve_animation_classes, set_hazo_ui_config, set_logger, successToast, text_to_tiptap_content, toggleVariants, useClickOutside, useCopyToClipboard, useDebounce, useErrorDisplay, useFullscreen, useIsMobile, useLoadingState, useLocalStorage, useMediaQuery, useSessionStorage, useViewport, useWakeLock };
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { clsx } from 'clsx';
|
|
3
3
|
import { twMerge } from 'tailwind-merge';
|
|
4
4
|
import * as React26 from 'react';
|
|
5
|
-
import React26__default, { useRef, useState, useCallback, useEffect, useMemo, Fragment } from 'react';
|
|
5
|
+
import React26__default, { lazy, useRef, useState, useCallback, useEffect, useMemo, Fragment, Suspense } from 'react';
|
|
6
6
|
import { generateRequestId } from 'hazo_core';
|
|
7
7
|
import { withContext, setBrowserCorrelationId } from 'hazo_core/client';
|
|
8
8
|
import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
@@ -54,6 +54,9 @@ import { LuUndo2, LuRedo2, LuMinus, LuPlus, LuBold, LuItalic, LuUnderline, LuStr
|
|
|
54
54
|
import { RxDividerHorizontal } from 'react-icons/rx';
|
|
55
55
|
import { Extension, Node, mergeAttributes } from '@tiptap/core';
|
|
56
56
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
57
|
+
import { commands } from '@uiw/react-md-editor';
|
|
58
|
+
import '@uiw/react-md-editor/markdown-editor.css';
|
|
59
|
+
import '@uiw/react-markdown-preview/markdown.css';
|
|
57
60
|
import Suggestion from '@tiptap/suggestion';
|
|
58
61
|
import { PluginKey } from '@tiptap/pm/state';
|
|
59
62
|
import { createPortal } from 'react-dom';
|
|
@@ -4473,6 +4476,165 @@ var HazoUiRte = ({
|
|
|
4473
4476
|
);
|
|
4474
4477
|
};
|
|
4475
4478
|
HazoUiRte.displayName = "HazoUiRte";
|
|
4479
|
+
var MdEditorLazy = lazy(() => import('@uiw/react-md-editor'));
|
|
4480
|
+
var EDITOR_TEXTAREA_SELECTOR = ".w-md-editor-text-input";
|
|
4481
|
+
function MarkdownEditor({
|
|
4482
|
+
value,
|
|
4483
|
+
onChange,
|
|
4484
|
+
height = 600,
|
|
4485
|
+
placeholder = "Write in Markdown\u2026",
|
|
4486
|
+
className,
|
|
4487
|
+
colorMode = "light",
|
|
4488
|
+
preview = "edit",
|
|
4489
|
+
embeds,
|
|
4490
|
+
extraCommands,
|
|
4491
|
+
onImageUpload,
|
|
4492
|
+
renderPreview,
|
|
4493
|
+
showPreview = true
|
|
4494
|
+
}) {
|
|
4495
|
+
const [mounted, setMounted] = useState(false);
|
|
4496
|
+
useEffect(() => setMounted(true), []);
|
|
4497
|
+
const valueRef = useRef(value);
|
|
4498
|
+
valueRef.current = value;
|
|
4499
|
+
const wrapperRef = useRef(null);
|
|
4500
|
+
const [uploading, setUploading] = useState(false);
|
|
4501
|
+
const [error, setError] = useState("");
|
|
4502
|
+
function insertAtCursor(text) {
|
|
4503
|
+
const textarea = wrapperRef.current?.querySelector(
|
|
4504
|
+
EDITOR_TEXTAREA_SELECTOR
|
|
4505
|
+
);
|
|
4506
|
+
const current = valueRef.current;
|
|
4507
|
+
if (!textarea) {
|
|
4508
|
+
const sep = current === "" || current.endsWith("\n") ? "" : "\n";
|
|
4509
|
+
onChange(current + sep + text + "\n");
|
|
4510
|
+
return;
|
|
4511
|
+
}
|
|
4512
|
+
const start = textarea.selectionStart ?? current.length;
|
|
4513
|
+
const end = textarea.selectionEnd ?? start;
|
|
4514
|
+
onChange(current.slice(0, start) + text + current.slice(end));
|
|
4515
|
+
}
|
|
4516
|
+
const embedCommands = useMemo(() => {
|
|
4517
|
+
return (embeds ?? []).map((embed) => ({
|
|
4518
|
+
name: embed.name,
|
|
4519
|
+
keyCommand: embed.name,
|
|
4520
|
+
buttonProps: { "aria-label": embed.label, title: embed.label },
|
|
4521
|
+
icon: /* @__PURE__ */ jsx("span", { className: "text-xs font-semibold", children: embed.icon ?? embed.label }),
|
|
4522
|
+
execute: () => {
|
|
4523
|
+
const textarea = wrapperRef.current?.querySelector(
|
|
4524
|
+
EDITOR_TEXTAREA_SELECTOR
|
|
4525
|
+
);
|
|
4526
|
+
const current = valueRef.current;
|
|
4527
|
+
const start = textarea?.selectionStart ?? current.length;
|
|
4528
|
+
const end = textarea?.selectionEnd ?? start;
|
|
4529
|
+
const selected = current.slice(start, end);
|
|
4530
|
+
const snippet = typeof embed.snippet === "function" ? embed.snippet(selected) : embed.snippet;
|
|
4531
|
+
insertAtCursor(snippet);
|
|
4532
|
+
}
|
|
4533
|
+
}));
|
|
4534
|
+
}, [embeds]);
|
|
4535
|
+
const editorCommands = useMemo(() => {
|
|
4536
|
+
const defaults = commands.getCommands();
|
|
4537
|
+
const extras = [...embedCommands, ...extraCommands ?? []];
|
|
4538
|
+
if (extras.length === 0) return defaults;
|
|
4539
|
+
const imageIndex = defaults.findIndex((c) => c.name === "image");
|
|
4540
|
+
if (imageIndex < 0) return [...defaults, ...extras];
|
|
4541
|
+
const next = [...defaults];
|
|
4542
|
+
next.splice(imageIndex + 1, 0, ...extras);
|
|
4543
|
+
return next;
|
|
4544
|
+
}, [embedCommands, extraCommands]);
|
|
4545
|
+
async function handlePaste(e) {
|
|
4546
|
+
if (!onImageUpload) return;
|
|
4547
|
+
const items = e.clipboardData?.items;
|
|
4548
|
+
if (!items) return;
|
|
4549
|
+
const imageItem = Array.from(items).find(
|
|
4550
|
+
(it) => it.kind === "file" && it.type.startsWith("image/")
|
|
4551
|
+
);
|
|
4552
|
+
if (!imageItem) return;
|
|
4553
|
+
const file = imageItem.getAsFile();
|
|
4554
|
+
if (!file) return;
|
|
4555
|
+
e.preventDefault();
|
|
4556
|
+
const textarea = e.currentTarget;
|
|
4557
|
+
const start = textarea.selectionStart;
|
|
4558
|
+
const end = textarea.selectionEnd;
|
|
4559
|
+
const current = valueRef.current;
|
|
4560
|
+
const before = current.slice(0, start);
|
|
4561
|
+
const after = current.slice(end);
|
|
4562
|
+
onChange(before + "![uploading\u2026]()" + after);
|
|
4563
|
+
setUploading(true);
|
|
4564
|
+
setError("");
|
|
4565
|
+
try {
|
|
4566
|
+
const url = await onImageUpload(file);
|
|
4567
|
+
if (!url) {
|
|
4568
|
+
setError("Upload failed.");
|
|
4569
|
+
onChange(before + after);
|
|
4570
|
+
return;
|
|
4571
|
+
}
|
|
4572
|
+
onChange(before + `` + after);
|
|
4573
|
+
} catch {
|
|
4574
|
+
setError("Upload failed.");
|
|
4575
|
+
onChange(before + after);
|
|
4576
|
+
} finally {
|
|
4577
|
+
setUploading(false);
|
|
4578
|
+
}
|
|
4579
|
+
}
|
|
4580
|
+
const useCustomPreview = typeof renderPreview === "function";
|
|
4581
|
+
const effectivePreview = useCustomPreview ? "edit" : preview;
|
|
4582
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("w-full", className), children: [
|
|
4583
|
+
/* @__PURE__ */ jsxs(
|
|
4584
|
+
"div",
|
|
4585
|
+
{
|
|
4586
|
+
className: "flex gap-4",
|
|
4587
|
+
"data-color-mode": colorMode,
|
|
4588
|
+
ref: wrapperRef,
|
|
4589
|
+
children: [
|
|
4590
|
+
/* @__PURE__ */ jsx("div", { className: useCustomPreview && showPreview ? "flex-1 min-w-0" : "w-full", children: mounted ? /* @__PURE__ */ jsx(
|
|
4591
|
+
Suspense,
|
|
4592
|
+
{
|
|
4593
|
+
fallback: /* @__PURE__ */ jsx(
|
|
4594
|
+
"div",
|
|
4595
|
+
{
|
|
4596
|
+
className: "flex items-center justify-center rounded-md border border-border bg-muted/30 text-sm text-muted-foreground",
|
|
4597
|
+
style: { height },
|
|
4598
|
+
children: "Loading editor\u2026"
|
|
4599
|
+
}
|
|
4600
|
+
),
|
|
4601
|
+
children: /* @__PURE__ */ jsx(
|
|
4602
|
+
MdEditorLazy,
|
|
4603
|
+
{
|
|
4604
|
+
value,
|
|
4605
|
+
onChange: (v) => onChange(v ?? ""),
|
|
4606
|
+
height,
|
|
4607
|
+
preview: effectivePreview,
|
|
4608
|
+
visibleDragbar: false,
|
|
4609
|
+
commands: editorCommands,
|
|
4610
|
+
textareaProps: { placeholder, onPaste: handlePaste }
|
|
4611
|
+
}
|
|
4612
|
+
)
|
|
4613
|
+
}
|
|
4614
|
+
) : /* @__PURE__ */ jsx(
|
|
4615
|
+
"div",
|
|
4616
|
+
{
|
|
4617
|
+
className: "flex items-center justify-center rounded-md border border-border bg-muted/30 text-sm text-muted-foreground",
|
|
4618
|
+
style: { height },
|
|
4619
|
+
children: "Loading editor\u2026"
|
|
4620
|
+
}
|
|
4621
|
+
) }),
|
|
4622
|
+
useCustomPreview && showPreview && /* @__PURE__ */ jsx(
|
|
4623
|
+
"div",
|
|
4624
|
+
{
|
|
4625
|
+
className: "flex-1 min-w-0 overflow-auto rounded-md border border-border bg-background p-6",
|
|
4626
|
+
style: { height },
|
|
4627
|
+
children: renderPreview(value)
|
|
4628
|
+
}
|
|
4629
|
+
)
|
|
4630
|
+
]
|
|
4631
|
+
}
|
|
4632
|
+
),
|
|
4633
|
+
uploading && /* @__PURE__ */ jsx("p", { className: "mt-2 text-xs text-muted-foreground", children: "Uploading image\u2026" }),
|
|
4634
|
+
error && /* @__PURE__ */ jsx("p", { className: "mt-2 text-xs text-destructive", children: error })
|
|
4635
|
+
] });
|
|
4636
|
+
}
|
|
4637
|
+
MarkdownEditor.displayName = "MarkdownEditor";
|
|
4476
4638
|
var generate_command_id = () => {
|
|
4477
4639
|
return `cmd_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
|
|
4478
4640
|
};
|
|
@@ -10471,6 +10633,6 @@ function CelebrationModalInner({
|
|
|
10471
10633
|
);
|
|
10472
10634
|
}
|
|
10473
10635
|
|
|
10474
|
-
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CelebrationProvider, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, CommandNodeExtension, CommandPill, CommandPopover, DateRangeSelector, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, ErrorBanner, ErrorPage, HazoContextProvider, HazoUiConfirmDialog, HazoUiDialog, DialogClose as HazoUiDialogClose, DialogContent as HazoUiDialogContent, DialogDescription as HazoUiDialogDescription, DialogFooter as HazoUiDialogFooter, DialogHeader as HazoUiDialogHeader, DialogOverlay as HazoUiDialogOverlay, DialogPortal as HazoUiDialogPortal, Dialog as HazoUiDialogRoot, DialogTitle as HazoUiDialogTitle, DialogTrigger as HazoUiDialogTrigger, HazoUiFlexInput, HazoUiFlexRadio, HazoUiKanban, HazoUiKanbanFilter, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiPillRadio, HazoUiRte, HazoUiTable, HazoUiTextarea, HazoUiTextbox, HazoUiToaster, HoverCard, HoverCardContent, HoverCardTrigger, Input, InverseSparkline, Label3 as Label, LineChart, LoadingTimeout, MultiLineChart, Popover, PopoverContent, PopoverTrigger, ProgressiveImage, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, Command as ShadcnCommand, CommandEmpty as ShadcnCommandEmpty, CommandGroup as ShadcnCommandGroup, CommandInput as ShadcnCommandInput, CommandItem as ShadcnCommandItem, CommandList as ShadcnCommandList, Skeleton, SkeletonBar, SkeletonCircle, SkeletonGroup, SkeletonRect, Sparkline, Spinner, StackedBars, Switch, Table2 as Table, TableBody, TableCaption, TableCell2 as TableCell, TableFooter, TableHead, TableHeader2 as TableHeader, TableRow2 as TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, applyKanbanFilter, buttonGroupVariants, celebrate, cn, create_command_suggestion_extension, errorToast, format_num, generateUUID, get_hazo_ui_config, get_logger, parse_commands_from_text, pick_x_label_indices, reset_hazo_ui_config, resolve_animation_classes, set_hazo_ui_config, set_logger, successToast, text_to_tiptap_content, toggleVariants, useClickOutside, useCopyToClipboard, useDebounce, useErrorDisplay, useFullscreen, useIsMobile, useLoadingState, useLocalStorage, useMediaQuery, useSessionStorage, useViewport, useWakeLock };
|
|
10636
|
+
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CelebrationProvider, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, CommandNodeExtension, CommandPill, CommandPopover, DateRangeSelector, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, ErrorBanner, ErrorPage, HazoContextProvider, HazoUiConfirmDialog, HazoUiDialog, DialogClose as HazoUiDialogClose, DialogContent as HazoUiDialogContent, DialogDescription as HazoUiDialogDescription, DialogFooter as HazoUiDialogFooter, DialogHeader as HazoUiDialogHeader, DialogOverlay as HazoUiDialogOverlay, DialogPortal as HazoUiDialogPortal, Dialog as HazoUiDialogRoot, DialogTitle as HazoUiDialogTitle, DialogTrigger as HazoUiDialogTrigger, HazoUiFlexInput, HazoUiFlexRadio, HazoUiKanban, HazoUiKanbanFilter, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiPillRadio, HazoUiRte, HazoUiTable, HazoUiTextarea, HazoUiTextbox, HazoUiToaster, HoverCard, HoverCardContent, HoverCardTrigger, Input, InverseSparkline, Label3 as Label, LineChart, LoadingTimeout, MarkdownEditor, MultiLineChart, Popover, PopoverContent, PopoverTrigger, ProgressiveImage, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, Command as ShadcnCommand, CommandEmpty as ShadcnCommandEmpty, CommandGroup as ShadcnCommandGroup, CommandInput as ShadcnCommandInput, CommandItem as ShadcnCommandItem, CommandList as ShadcnCommandList, Skeleton, SkeletonBar, SkeletonCircle, SkeletonGroup, SkeletonRect, Sparkline, Spinner, StackedBars, Switch, Table2 as Table, TableBody, TableCaption, TableCell2 as TableCell, TableFooter, TableHead, TableHeader2 as TableHeader, TableRow2 as TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, applyKanbanFilter, buttonGroupVariants, celebrate, cn, create_command_suggestion_extension, errorToast, format_num, generateUUID, get_hazo_ui_config, get_logger, parse_commands_from_text, pick_x_label_indices, reset_hazo_ui_config, resolve_animation_classes, set_hazo_ui_config, set_logger, successToast, text_to_tiptap_content, toggleVariants, useClickOutside, useCopyToClipboard, useDebounce, useErrorDisplay, useFullscreen, useIsMobile, useLoadingState, useLocalStorage, useMediaQuery, useSessionStorage, useViewport, useWakeLock };
|
|
10475
10637
|
//# sourceMappingURL=index.js.map
|
|
10476
10638
|
//# sourceMappingURL=index.js.map
|