@inkeep/cxkit-primitives 0.5.37 → 0.5.39

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/dist/index.d.ts CHANGED
@@ -55,6 +55,7 @@ import * as PopoverPrimitive from '@radix-ui/react-popover';
55
55
  import { Portal as Portal_2 } from '@radix-ui/react-portal';
56
56
  import { Primitive } from '@radix-ui/react-primitive';
57
57
  import { PropsWithChildren } from 'react';
58
+ import * as RadixDialog from '@radix-ui/react-dialog';
58
59
  import * as React_2 from 'react';
59
60
  import { ReactElement } from 'react';
60
61
  import { ReactNode } from 'react';
@@ -318,8 +319,6 @@ export declare const aiSearchComponentIds: {
318
319
 
319
320
  declare type AnyString = string & {};
320
321
 
321
- declare const ASK_AI_TRIGGER_VALUE = "__ask_ai__";
322
-
323
322
  export declare type AttachmentItemContextValue = {
324
323
  attachment: MessageAttachment;
325
324
  };
@@ -431,6 +430,10 @@ export declare interface ChatProviderProps extends Pick<EmbeddedChatProviderProp
431
430
  children: React.ReactNode;
432
431
  }
433
432
 
433
+ declare type Children = {
434
+ children?: React_2.ReactNode;
435
+ };
436
+
434
437
  declare const Close: React_2.ForwardRefExoticComponent<DialogCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
435
438
 
436
439
  declare interface CodeProps {
@@ -443,6 +446,438 @@ declare interface CodeProps {
443
446
  onCopy?: (language: string, code: string) => void;
444
447
  }
445
448
 
449
+ export declare const Command: React_2.ForwardRefExoticComponent<Children & Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
450
+ asChild?: boolean;
451
+ }, "ref"> & {
452
+ /**
453
+ * Accessible label for this command menu. Not shown visibly.
454
+ */
455
+ label?: string;
456
+ /**
457
+ * Optionally set to `false` to turn off the automatic filtering and sorting.
458
+ * If `false`, you must conditionally render valid items based on the search query yourself.
459
+ */
460
+ shouldFilter?: boolean;
461
+ /**
462
+ * Custom filter function for whether each command menu item should matches the given search query.
463
+ * It should return a number between 0 and 1, with 1 being the best match and 0 being hidden entirely.
464
+ * By default, uses the `command-score` library.
465
+ */
466
+ filter?: (value: string, search: string, keywords?: string[]) => number;
467
+ /**
468
+ * Optional default item value when it is initially rendered.
469
+ */
470
+ defaultValue?: string;
471
+ /**
472
+ * Optional default query when it is initially rendered.
473
+ */
474
+ defaultSearch?: string;
475
+ /**
476
+ * Optional controlled state of the selected command menu item.
477
+ */
478
+ value?: string;
479
+ /**
480
+ * Event handler called when the selected item of the menu changes.
481
+ */
482
+ onValueChange?: (value: string) => void;
483
+ /**
484
+ * Optionally set to `true` to turn on looping around when using the arrow keys.
485
+ */
486
+ loop?: boolean;
487
+ /**
488
+ * Optionally set to `true` to disable selection via pointer events.
489
+ */
490
+ disablePointerSelection?: boolean;
491
+ /**
492
+ * Set to `false` to disable ctrl+n/j/p/k shortcuts. Defaults to `true`.
493
+ */
494
+ vimBindings?: boolean;
495
+ } & React_2.RefAttributes<HTMLDivElement>> & {
496
+ List: React_2.ForwardRefExoticComponent<Children & Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
497
+ asChild?: boolean;
498
+ }, "ref"> & {
499
+ /**
500
+ * Accessible label for this List of suggestions. Not shown visibly.
501
+ */
502
+ label?: string;
503
+ } & React_2.RefAttributes<HTMLDivElement>>;
504
+ Item: React_2.ForwardRefExoticComponent<Children & Omit<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
505
+ asChild?: boolean;
506
+ }, "ref">, "value" | "disabled" | "onSelect"> & {
507
+ /** Whether this item is currently disabled. */
508
+ disabled?: boolean;
509
+ /** Event handler for when this item is selected, either via click or keyboard selection. */
510
+ onSelect?: (details: {
511
+ value: string;
512
+ trigger: "click" | "keyboard";
513
+ }) => void;
514
+ /**
515
+ * A unique value for this item.
516
+ * If no value is provided, it will be inferred from `children` or the rendered `textContent`. If your `textContent` changes between renders, you _must_ provide a stable, unique `value`.
517
+ */
518
+ value?: string;
519
+ /** Optional keywords to match against when filtering. */
520
+ keywords?: string[];
521
+ /** Whether this item is forcibly rendered regardless of filtering. */
522
+ forceMount?: boolean;
523
+ } & React_2.RefAttributes<HTMLDivElement>>;
524
+ Input: React_2.ForwardRefExoticComponent<Omit<Omit<React_2.ClassAttributes<HTMLInputElement> & React_2.InputHTMLAttributes<HTMLInputElement> & {
525
+ asChild?: boolean;
526
+ }, "ref">, "value" | "type" | "onChange"> & {
527
+ /**
528
+ * Optional controlled state for the value of the search input.
529
+ */
530
+ value?: string;
531
+ /**
532
+ * Event handler called when the search value changes.
533
+ */
534
+ onValueChange?: (search: string) => void;
535
+ } & React_2.RefAttributes<HTMLInputElement>>;
536
+ Group: React_2.ForwardRefExoticComponent<Children & Omit<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
537
+ asChild?: boolean;
538
+ }, "ref">, "value" | "heading"> & {
539
+ /** Optional heading to render for this group. */
540
+ heading?: React_2.ReactNode;
541
+ /** If no heading is provided, you must provide a value that is unique for this group. */
542
+ value?: string;
543
+ /** Whether this group is forcibly rendered regardless of filtering. */
544
+ forceMount?: boolean;
545
+ } & React_2.RefAttributes<HTMLDivElement>>;
546
+ Separator: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
547
+ asChild?: boolean;
548
+ }, "ref"> & {
549
+ /** Whether this separator should always be rendered. Useful if you disable automatic filtering. */
550
+ alwaysRender?: boolean;
551
+ } & React_2.RefAttributes<HTMLDivElement>>;
552
+ Dialog: React_2.ForwardRefExoticComponent<RadixDialog.DialogProps & Children & Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
553
+ asChild?: boolean;
554
+ }, "ref"> & {
555
+ /**
556
+ * Accessible label for this command menu. Not shown visibly.
557
+ */
558
+ label?: string;
559
+ /**
560
+ * Optionally set to `false` to turn off the automatic filtering and sorting.
561
+ * If `false`, you must conditionally render valid items based on the search query yourself.
562
+ */
563
+ shouldFilter?: boolean;
564
+ /**
565
+ * Custom filter function for whether each command menu item should matches the given search query.
566
+ * It should return a number between 0 and 1, with 1 being the best match and 0 being hidden entirely.
567
+ * By default, uses the `command-score` library.
568
+ */
569
+ filter?: (value: string, search: string, keywords?: string[]) => number;
570
+ /**
571
+ * Optional default item value when it is initially rendered.
572
+ */
573
+ defaultValue?: string;
574
+ /**
575
+ * Optional default query when it is initially rendered.
576
+ */
577
+ defaultSearch?: string;
578
+ /**
579
+ * Optional controlled state of the selected command menu item.
580
+ */
581
+ value?: string;
582
+ /**
583
+ * Event handler called when the selected item of the menu changes.
584
+ */
585
+ onValueChange?: (value: string) => void;
586
+ /**
587
+ * Optionally set to `true` to turn on looping around when using the arrow keys.
588
+ */
589
+ loop?: boolean;
590
+ /**
591
+ * Optionally set to `true` to disable selection via pointer events.
592
+ */
593
+ disablePointerSelection?: boolean;
594
+ /**
595
+ * Set to `false` to disable ctrl+n/j/p/k shortcuts. Defaults to `true`.
596
+ */
597
+ vimBindings?: boolean;
598
+ } & {
599
+ /** Provide a className to the Dialog overlay. */
600
+ overlayClassName?: string;
601
+ /** Provide a className to the Dialog content. */
602
+ contentClassName?: string;
603
+ /** Provide a custom element the Dialog should portal into. */
604
+ container?: HTMLElement;
605
+ } & React_2.RefAttributes<HTMLDivElement>>;
606
+ Empty: React_2.ForwardRefExoticComponent<Children & Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
607
+ asChild?: boolean;
608
+ }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
609
+ Loading: React_2.ForwardRefExoticComponent<Children & Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
610
+ asChild?: boolean;
611
+ }, "ref"> & {
612
+ /** Estimated progress of loading asynchronous options. */
613
+ progress?: number;
614
+ /**
615
+ * Accessible label for this loading progressbar. Not shown visibly.
616
+ */
617
+ label?: string;
618
+ } & React_2.RefAttributes<HTMLDivElement>>;
619
+ };
620
+
621
+ /**
622
+ * Renders the command menu in a Radix Dialog.
623
+ */
624
+ export declare const CommandDialog: React_2.ForwardRefExoticComponent<RadixDialog.DialogProps & Children & Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
625
+ asChild?: boolean;
626
+ }, "ref"> & {
627
+ /**
628
+ * Accessible label for this command menu. Not shown visibly.
629
+ */
630
+ label?: string;
631
+ /**
632
+ * Optionally set to `false` to turn off the automatic filtering and sorting.
633
+ * If `false`, you must conditionally render valid items based on the search query yourself.
634
+ */
635
+ shouldFilter?: boolean;
636
+ /**
637
+ * Custom filter function for whether each command menu item should matches the given search query.
638
+ * It should return a number between 0 and 1, with 1 being the best match and 0 being hidden entirely.
639
+ * By default, uses the `command-score` library.
640
+ */
641
+ filter?: (value: string, search: string, keywords?: string[]) => number;
642
+ /**
643
+ * Optional default item value when it is initially rendered.
644
+ */
645
+ defaultValue?: string;
646
+ /**
647
+ * Optional default query when it is initially rendered.
648
+ */
649
+ defaultSearch?: string;
650
+ /**
651
+ * Optional controlled state of the selected command menu item.
652
+ */
653
+ value?: string;
654
+ /**
655
+ * Event handler called when the selected item of the menu changes.
656
+ */
657
+ onValueChange?: (value: string) => void;
658
+ /**
659
+ * Optionally set to `true` to turn on looping around when using the arrow keys.
660
+ */
661
+ loop?: boolean;
662
+ /**
663
+ * Optionally set to `true` to disable selection via pointer events.
664
+ */
665
+ disablePointerSelection?: boolean;
666
+ /**
667
+ * Set to `false` to disable ctrl+n/j/p/k shortcuts. Defaults to `true`.
668
+ */
669
+ vimBindings?: boolean;
670
+ } & {
671
+ /** Provide a className to the Dialog overlay. */
672
+ overlayClassName?: string;
673
+ /** Provide a className to the Dialog content. */
674
+ contentClassName?: string;
675
+ /** Provide a custom element the Dialog should portal into. */
676
+ container?: HTMLElement;
677
+ } & React_2.RefAttributes<HTMLDivElement>>;
678
+
679
+ /**
680
+ * Automatically renders when there are no results for the search query.
681
+ */
682
+ export declare const CommandEmpty: React_2.ForwardRefExoticComponent<Children & Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
683
+ asChild?: boolean;
684
+ }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
685
+
686
+ export declare type CommandGroup = {
687
+ id: string;
688
+ forceMount?: boolean;
689
+ };
690
+
691
+ /**
692
+ * Group command menu items together with a heading.
693
+ * Grouped items are always shown together.
694
+ */
695
+ export declare const CommandGroup: React_2.ForwardRefExoticComponent<Children & Omit<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
696
+ asChild?: boolean;
697
+ }, "ref">, "value" | "heading"> & {
698
+ /** Optional heading to render for this group. */
699
+ heading?: React_2.ReactNode;
700
+ /** If no heading is provided, you must provide a value that is unique for this group. */
701
+ value?: string;
702
+ /** Whether this group is forcibly rendered regardless of filtering. */
703
+ forceMount?: boolean;
704
+ } & React_2.RefAttributes<HTMLDivElement>>;
705
+
706
+ /**
707
+ * Command menu input.
708
+ * All props are forwarded to the underyling `input` element.
709
+ */
710
+ export declare const CommandInput: React_2.ForwardRefExoticComponent<Omit<Omit<React_2.ClassAttributes<HTMLInputElement> & React_2.InputHTMLAttributes<HTMLInputElement> & {
711
+ asChild?: boolean;
712
+ }, "ref">, "value" | "type" | "onChange"> & {
713
+ /**
714
+ * Optional controlled state for the value of the search input.
715
+ */
716
+ value?: string;
717
+ /**
718
+ * Event handler called when the search value changes.
719
+ */
720
+ onValueChange?: (search: string) => void;
721
+ } & React_2.RefAttributes<HTMLInputElement>>;
722
+
723
+ /**
724
+ * Command menu item. Becomes active on pointer enter or through keyboard navigation.
725
+ * Preferably pass a `value`, otherwise the value will be inferred from `children` or
726
+ * the rendered item's `textContent`.
727
+ */
728
+ export declare const CommandItem: React_2.ForwardRefExoticComponent<Children & Omit<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
729
+ asChild?: boolean;
730
+ }, "ref">, "value" | "disabled" | "onSelect"> & {
731
+ /** Whether this item is currently disabled. */
732
+ disabled?: boolean;
733
+ /** Event handler for when this item is selected, either via click or keyboard selection. */
734
+ onSelect?: (details: {
735
+ value: string;
736
+ trigger: "click" | "keyboard";
737
+ }) => void;
738
+ /**
739
+ * A unique value for this item.
740
+ * If no value is provided, it will be inferred from `children` or the rendered `textContent`. If your `textContent` changes between renders, you _must_ provide a stable, unique `value`.
741
+ */
742
+ value?: string;
743
+ /** Optional keywords to match against when filtering. */
744
+ keywords?: string[];
745
+ /** Whether this item is forcibly rendered regardless of filtering. */
746
+ forceMount?: boolean;
747
+ } & React_2.RefAttributes<HTMLDivElement>>;
748
+
749
+ /**
750
+ * Contains `Item`, `Group`, and `Separator`.
751
+ * Use the `--cmdk-list-height` CSS variable to animate height based on the number of results.
752
+ */
753
+ export declare const CommandList: React_2.ForwardRefExoticComponent<Children & Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
754
+ asChild?: boolean;
755
+ }, "ref"> & {
756
+ /**
757
+ * Accessible label for this List of suggestions. Not shown visibly.
758
+ */
759
+ label?: string;
760
+ } & React_2.RefAttributes<HTMLDivElement>>;
761
+
762
+ /**
763
+ * You should conditionally render this with `progress` while loading asynchronous items.
764
+ */
765
+ export declare const CommandLoading: React_2.ForwardRefExoticComponent<Children & Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
766
+ asChild?: boolean;
767
+ }, "ref"> & {
768
+ /** Estimated progress of loading asynchronous options. */
769
+ progress?: number;
770
+ /**
771
+ * Accessible label for this loading progressbar. Not shown visibly.
772
+ */
773
+ label?: string;
774
+ } & React_2.RefAttributes<HTMLDivElement>>;
775
+
776
+ declare type CommandProps = Children & DivProps & {
777
+ /**
778
+ * Accessible label for this command menu. Not shown visibly.
779
+ */
780
+ label?: string;
781
+ /**
782
+ * Optionally set to `false` to turn off the automatic filtering and sorting.
783
+ * If `false`, you must conditionally render valid items based on the search query yourself.
784
+ */
785
+ shouldFilter?: boolean;
786
+ /**
787
+ * Custom filter function for whether each command menu item should matches the given search query.
788
+ * It should return a number between 0 and 1, with 1 being the best match and 0 being hidden entirely.
789
+ * By default, uses the `command-score` library.
790
+ */
791
+ filter?: (value: string, search: string, keywords?: string[]) => number;
792
+ /**
793
+ * Optional default item value when it is initially rendered.
794
+ */
795
+ defaultValue?: string;
796
+ /**
797
+ * Optional default query when it is initially rendered.
798
+ */
799
+ defaultSearch?: string;
800
+ /**
801
+ * Optional controlled state of the selected command menu item.
802
+ */
803
+ value?: string;
804
+ /**
805
+ * Event handler called when the selected item of the menu changes.
806
+ */
807
+ onValueChange?: (value: string) => void;
808
+ /**
809
+ * Optionally set to `true` to turn on looping around when using the arrow keys.
810
+ */
811
+ loop?: boolean;
812
+ /**
813
+ * Optionally set to `true` to disable selection via pointer events.
814
+ */
815
+ disablePointerSelection?: boolean;
816
+ /**
817
+ * Set to `false` to disable ctrl+n/j/p/k shortcuts. Defaults to `true`.
818
+ */
819
+ vimBindings?: boolean;
820
+ };
821
+
822
+ export declare const CommandRoot: React_2.ForwardRefExoticComponent<Children & Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
823
+ asChild?: boolean;
824
+ }, "ref"> & {
825
+ /**
826
+ * Accessible label for this command menu. Not shown visibly.
827
+ */
828
+ label?: string;
829
+ /**
830
+ * Optionally set to `false` to turn off the automatic filtering and sorting.
831
+ * If `false`, you must conditionally render valid items based on the search query yourself.
832
+ */
833
+ shouldFilter?: boolean;
834
+ /**
835
+ * Custom filter function for whether each command menu item should matches the given search query.
836
+ * It should return a number between 0 and 1, with 1 being the best match and 0 being hidden entirely.
837
+ * By default, uses the `command-score` library.
838
+ */
839
+ filter?: (value: string, search: string, keywords?: string[]) => number;
840
+ /**
841
+ * Optional default item value when it is initially rendered.
842
+ */
843
+ defaultValue?: string;
844
+ /**
845
+ * Optional default query when it is initially rendered.
846
+ */
847
+ defaultSearch?: string;
848
+ /**
849
+ * Optional controlled state of the selected command menu item.
850
+ */
851
+ value?: string;
852
+ /**
853
+ * Event handler called when the selected item of the menu changes.
854
+ */
855
+ onValueChange?: (value: string) => void;
856
+ /**
857
+ * Optionally set to `true` to turn on looping around when using the arrow keys.
858
+ */
859
+ loop?: boolean;
860
+ /**
861
+ * Optionally set to `true` to disable selection via pointer events.
862
+ */
863
+ disablePointerSelection?: boolean;
864
+ /**
865
+ * Set to `false` to disable ctrl+n/j/p/k shortcuts. Defaults to `true`.
866
+ */
867
+ vimBindings?: boolean;
868
+ } & React_2.RefAttributes<HTMLDivElement>>;
869
+
870
+ /**
871
+ * A visual and semantic separator between items or groups.
872
+ * Visible when the search query is empty or `alwaysRender` is true, hidden otherwise.
873
+ */
874
+ export declare const CommandSeparator: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
875
+ asChild?: boolean;
876
+ }, "ref"> & {
877
+ /** Whether this separator should always be rendered. Useful if you disable automatic filtering. */
878
+ alwaysRender?: boolean;
879
+ } & React_2.RefAttributes<HTMLDivElement>>;
880
+
446
881
  export declare type ComponentID = keyof typeof componentIDs;
447
882
 
448
883
  export declare const componentIDs: {
@@ -798,6 +1233,8 @@ export declare interface CustomIconProps {
798
1233
 
799
1234
  export declare const dataAttr: (guard: boolean | undefined) => Booleanish;
800
1235
 
1236
+ export declare const defaultFilter: CommandProps['filter'];
1237
+
801
1238
  declare type DefaultInkeepAIChatSettings = typeof defaultInkeepAIChatSettings;
802
1239
 
803
1240
  declare const defaultInkeepAIChatSettings: {
@@ -1114,6 +1551,8 @@ declare interface DialogTriggerProps extends PrimitiveButtonProps {
1114
1551
 
1115
1552
  declare type DismissableLayerProps = React_2.ComponentPropsWithoutRef<typeof DismissableLayer>;
1116
1553
 
1554
+ declare type DivProps = React_2.ComponentPropsWithoutRef<typeof Primitive.div>;
1555
+
1117
1556
  export declare namespace EmbeddedChatPrimitive {
1118
1557
  export {
1119
1558
  EmbeddedChatPrimitiveWrapper,
@@ -1976,7 +2415,6 @@ declare const EmbeddedSearchInputIcon: ForwardRefExoticComponent< PolymorphicPro
1976
2415
 
1977
2416
  export declare namespace EmbeddedSearchPrimitive {
1978
2417
  export {
1979
- ASK_AI_TRIGGER_VALUE,
1980
2418
  EmbeddedSearchPrimitiveWrapper,
1981
2419
  EmbeddedSearchPrimitiveRoot,
1982
2420
  PrimitiveContent,
@@ -3266,35 +3704,7 @@ declare const PrimitiveResultsScrollArea: ForwardRefExoticComponent< Polymorphic
3266
3704
 
3267
3705
  declare const PrimitiveRoot: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
3268
3706
 
3269
- declare const PrimitiveRoot_2: ForwardRefExoticComponent< PolymorphicProps & Omit<{
3270
- children?: React.ReactNode;
3271
- } & Omit< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & {
3272
- asChild?: boolean;
3273
- }, "ref"> & {
3274
- label?: string;
3275
- shouldFilter?: boolean;
3276
- filter?: (value: string, search: string, keywords?: string[]) => number;
3277
- defaultValue?: string;
3278
- value?: string;
3279
- onValueChange?: (value: string) => void;
3280
- loop?: boolean;
3281
- disablePointerSelection?: boolean;
3282
- vimBindings?: boolean;
3283
- } & RefAttributes<HTMLDivElement>, "_id"> & Partial<Pick<{
3284
- children?: React.ReactNode;
3285
- } & Omit< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & {
3286
- asChild?: boolean;
3287
- }, "ref"> & {
3288
- label?: string;
3289
- shouldFilter?: boolean;
3290
- filter?: (value: string, search: string, keywords?: string[]) => number;
3291
- defaultValue?: string;
3292
- value?: string;
3293
- onValueChange?: (value: string) => void;
3294
- loop?: boolean;
3295
- disablePointerSelection?: boolean;
3296
- vimBindings?: boolean;
3297
- } & RefAttributes<HTMLDivElement>, "_id">>>;
3707
+ declare const PrimitiveRoot_2: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
3298
3708
 
3299
3709
  declare const PrimitiveRoot_3: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "_id"> & Partial<Pick< DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "_id">>>;
3300
3710
 
@@ -3457,6 +3867,24 @@ export declare const SourceItemProvider: React.FC<{
3457
3867
  source: TransformedSourceItem;
3458
3868
  }>;
3459
3869
 
3870
+ declare type State = {
3871
+ search: string;
3872
+ value: string;
3873
+ selectedItemId?: string;
3874
+ filtered: {
3875
+ count: number;
3876
+ items: Map<string, number>;
3877
+ groups: Set<string>;
3878
+ };
3879
+ };
3880
+
3881
+ declare type Store = {
3882
+ subscribe: (callback: () => void) => () => void;
3883
+ snapshot: () => State;
3884
+ setState: <K extends keyof State>(key: K, value: State[K], opts?: any) => void;
3885
+ emit: () => void;
3886
+ };
3887
+
3460
3888
  export declare const ThemeProvider: React.FC<{
3461
3889
  children: React.ReactNode;
3462
3890
  }>;
@@ -3544,6 +3972,11 @@ export declare function useChatFormState(): {
3544
3972
 
3545
3973
  export declare const useChatMarkdown: () => ChatMarkdownContextValue | undefined;
3546
3974
 
3975
+ /** Run a selector against the store state. */
3976
+ export declare function useCommandState<T = any>(selector: (state: State) => T): T;
3977
+
3978
+ export declare const useCommandStore: () => Store;
3979
+
3547
3980
  /**
3548
3981
  * Hook to compute class names for a component based on its ID, user-provided classes,
3549
3982
  * global configuration, and prefixing rules.
@@ -3631,20 +4064,18 @@ declare const useInkeepModal: (props: InkeepModalSettings | undefined) => {
3631
4064
  declare const useInkeepSearch: () => {
3632
4065
  results: Record<string, TransformedSourceItem[]>;
3633
4066
  resultsList: SearchHit[];
4067
+ setResultsList: Dispatch<SetStateAction<SearchHit[]>>;
3634
4068
  hasContent: boolean;
3635
4069
  loading: boolean;
3636
- error: string | null;
3637
- query: string;
3638
- onInput: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
3639
- placeholder: string;
4070
+ setLoading: Dispatch<SetStateAction<boolean>>;
4071
+ defaultTab: string;
3640
4072
  tab: string;
3641
- onTabChange: (newTab: string) => void;
3642
- selectedItem: string | undefined;
3643
- setSelectedItem: Dispatch<SetStateAction<string | undefined>>;
3644
- onSelectedItemChange: (value: string) => void;
4073
+ setTab: Dispatch<SetStateAction<string>>;
4074
+ disableTransition: () => void;
3645
4075
  transitionsDisabled: boolean;
3646
4076
  inputRef: RefObject<HTMLInputElement | null>;
3647
- isMobile: boolean;
4077
+ showSearchResults: boolean;
4078
+ setShowSearchResults: Dispatch<SetStateAction<boolean>>;
3648
4079
  };
3649
4080
 
3650
4081
  /**