@inkeep/cxkit-primitives 0.5.91 → 0.5.92

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
@@ -23,6 +23,7 @@ import { FeebackReason } from '@inkeep/cxkit-types';
23
23
  import { FeedbackItemType } from '@inkeep/cxkit-types';
24
24
  import { FeedbackType } from '@inkeep/cxkit-types';
25
25
  import { FieldErrors } from 'react-hook-form';
26
+ import { FocusScope } from '@radix-ui/react-focus-scope';
26
27
  import { FormField } from '@inkeep/cxkit-types';
27
28
  import { FormHTMLAttributes } from 'react';
28
29
  import { ForwardRefExoticComponent } from 'react';
@@ -50,6 +51,7 @@ import { MessageAction } from '@inkeep/cxkit-types';
50
51
  import { MessageAttachment } from '@inkeep/cxkit-types';
51
52
  import { ModalViewTypes } from '@inkeep/cxkit-types';
52
53
  import * as PopoverPrimitive from '@radix-ui/react-popover';
54
+ import * as PopperPrimitive from '@radix-ui/react-popper';
53
55
  import { Portal as Portal_2 } from '@radix-ui/react-portal';
54
56
  import { Primitive } from '@radix-ui/react-primitive';
55
57
  import { PropsWithChildren } from 'react';
@@ -61,7 +63,6 @@ import { RefAttributes } from 'react';
61
63
  import { RefObject } from 'react';
62
64
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
63
65
  import { SearchHit } from '@inkeep/cxkit-types';
64
- import * as SelectPrimitive from '@radix-ui/react-select';
65
66
  import { SetStateAction } from 'react';
66
67
  import { SourceItem } from '@inkeep/cxkit-types';
67
68
  import { SVGProps } from 'react';
@@ -319,6 +320,8 @@ export declare const aiSearchComponentIds: {
319
320
 
320
321
  declare type AnyString = string & {};
321
322
 
323
+ declare const Arrow: React_2.ForwardRefExoticComponent<SelectArrowProps & React_2.RefAttributes<SVGSVGElement>>;
324
+
322
325
  export declare type AttachmentItemContextValue = {
323
326
  attachment: MessageAttachment;
324
327
  };
@@ -1218,6 +1221,8 @@ export declare interface ContainerSize {
1218
1221
 
1219
1222
  declare const Content: React_2.ForwardRefExoticComponent<DialogContentProps & React_2.RefAttributes<HTMLDivElement>>;
1220
1223
 
1224
+ declare const Content_2: React_2.ForwardRefExoticComponent<SelectContentProps & React_2.RefAttributes<HTMLDivElement>>;
1225
+
1221
1226
  declare type CookieData = GlobalCookieData & PerInstanceCookieData;
1222
1227
 
1223
1228
  declare type CookieKey = keyof CookieData;
@@ -1226,6 +1231,8 @@ declare type CopyFn = (text: string) => void;
1226
1231
 
1227
1232
  declare const createDialogScope: CreateScope;
1228
1233
 
1234
+ declare const createSelectScope: CreateScope;
1235
+
1229
1236
  export declare function CustomIcon({ iconKey, ...props }: CustomIconProps): JSX.Element;
1230
1237
 
1231
1238
  export declare interface CustomIconProps {
@@ -1551,8 +1558,12 @@ declare const DialogTrigger: React_2.ForwardRefExoticComponent<DialogTriggerProp
1551
1558
  declare interface DialogTriggerProps extends PrimitiveButtonProps {
1552
1559
  }
1553
1560
 
1561
+ declare type Direction = 'ltr' | 'rtl';
1562
+
1554
1563
  declare type DismissableLayerProps = React_2.ComponentPropsWithoutRef<typeof DismissableLayer>;
1555
1564
 
1565
+ declare type DismissableLayerProps_2 = React_2.ComponentPropsWithoutRef<typeof DismissableLayer>;
1566
+
1556
1567
  declare type DivProps = React_2.ComponentPropsWithoutRef<typeof Primitive.div>;
1557
1568
 
1558
1569
  export declare namespace EmbeddedChatPrimitive {
@@ -2726,6 +2737,8 @@ export declare const FeedbackProvider: React.FC<{
2726
2737
  children: React.ReactNode;
2727
2738
  }>;
2728
2739
 
2740
+ declare type FocusScopeProps = React_2.ComponentPropsWithoutRef<typeof FocusScope>;
2741
+
2729
2742
  declare type FormErrors = Record<'title' | 'content', string | undefined>;
2730
2743
 
2731
2744
  export declare interface FormFieldContextValue extends FormFieldCtx {
@@ -2751,6 +2764,8 @@ declare interface GlobalCookieData {
2751
2764
  userId?: string | null;
2752
2765
  }
2753
2766
 
2767
+ declare const Group: React_2.ForwardRefExoticComponent<SelectGroupProps & React_2.RefAttributes<HTMLDivElement>>;
2768
+
2754
2769
  declare interface HelpCallToActions {
2755
2770
  pinned: GetHelpOption[];
2756
2771
  unpinned: GetHelpOption[];
@@ -2767,6 +2782,8 @@ export declare type HTMLIkpProps<T extends keyof JSX_2.IntrinsicElements> = HTML
2767
2782
 
2768
2783
  export declare type HTMLProps<T extends keyof JSX_2.IntrinsicElements> = ComponentPropsWithoutRef<T>;
2769
2784
 
2785
+ declare const Icon: React_2.ForwardRefExoticComponent<SelectIconProps & React_2.RefAttributes<HTMLSpanElement>>;
2786
+
2770
2787
  export declare type IdentificationType = 'ANONYMOUS' | 'COOKIED' | 'ID_PROVIDED' | 'TOKEN';
2771
2788
 
2772
2789
  export declare const ikp: IkpFactory;
@@ -3141,8 +3158,16 @@ export declare interface IntelligentFormProviderProps {
3141
3158
 
3142
3159
  export declare const isString: (v: any) => v is string;
3143
3160
 
3161
+ declare const Item: React_2.ForwardRefExoticComponent<SelectItemProps & React_2.RefAttributes<HTMLDivElement>>;
3162
+
3163
+ declare const ItemIndicator: React_2.ForwardRefExoticComponent<SelectItemIndicatorProps & React_2.RefAttributes<HTMLSpanElement>>;
3164
+
3165
+ declare const ItemText: React_2.ForwardRefExoticComponent<SelectItemTextProps & React_2.RefAttributes<HTMLSpanElement>>;
3166
+
3144
3167
  export declare const jsxFactory: () => IkpFactory;
3145
3168
 
3169
+ declare const Label: React_2.ForwardRefExoticComponent<SelectLabelProps & React_2.RefAttributes<HTMLDivElement>>;
3170
+
3146
3171
  declare interface LinkProps extends ComponentPropsWithRef<'a'> {
3147
3172
  /**
3148
3173
  * If `true`, the link will open in new tab
@@ -3279,10 +3304,16 @@ export declare interface PolymorphicProps {
3279
3304
  asChild?: boolean;
3280
3305
  }
3281
3306
 
3307
+ declare type PopperArrowProps = React_2.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
3308
+
3309
+ declare type PopperContentProps = React_2.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;
3310
+
3282
3311
  export declare function Portal(props: PortalProps): JSX_2.Element;
3283
3312
 
3284
3313
  declare const Portal_3: React_2.FC<DialogPortalProps>;
3285
3314
 
3315
+ declare const Portal_4: React_2.FC<SelectPortalProps>;
3316
+
3286
3317
  export declare interface PortalProps {
3287
3318
  children: React.ReactNode;
3288
3319
  target?: React.RefObject<HTMLElement>;
@@ -3292,6 +3323,8 @@ export declare interface PortalProps {
3292
3323
 
3293
3324
  declare type PortalProps_2 = React_2.ComponentPropsWithoutRef<typeof Portal_2>;
3294
3325
 
3326
+ declare type PortalProps_3 = React_2.ComponentPropsWithoutRef<typeof Portal_2>;
3327
+
3295
3328
  export declare const PortalWithTheme: ({ children, ...props }: PortalProps) => JSX.Element;
3296
3329
 
3297
3330
  declare type PossibleRef<T> = React_2.Ref<T | null> | undefined;
@@ -3381,6 +3414,8 @@ declare const PrimitiveBotHeadingName: ForwardRefExoticComponent< PolymorphicPro
3381
3414
 
3382
3415
  declare type PrimitiveButtonProps = React_2.ComponentPropsWithoutRef<typeof Primitive.button>;
3383
3416
 
3417
+ declare type PrimitiveButtonProps_2 = React_2.ComponentPropsWithoutRef<typeof Primitive.button>;
3418
+
3384
3419
  declare const PrimitiveChatAction: ForwardRefExoticComponent< PolymorphicProps & Omit<TooltipPrimitive.TooltipTriggerProps & RefAttributes<HTMLButtonElement>, "_id"> & Partial<Pick<TooltipPrimitive.TooltipTriggerProps & RefAttributes<HTMLButtonElement>, "_id">>>;
3385
3420
 
3386
3421
  declare const PrimitiveChatActionFeedback: ForwardRefExoticComponent< PolymorphicProps & Omit<TooltipPrimitive.TooltipContentProps & RefAttributes<HTMLDivElement>, "_id"> & Partial<Pick<TooltipPrimitive.TooltipContentProps & RefAttributes<HTMLDivElement>, "_id">>>;
@@ -3429,6 +3464,8 @@ declare const PrimitiveDisclaimerTrigger: ForwardRefExoticComponent< Polymorphic
3429
3464
 
3430
3465
  declare type PrimitiveDivProps = React_2.ComponentPropsWithoutRef<typeof Primitive.div>;
3431
3466
 
3467
+ declare type PrimitiveDivProps_2 = React_2.ComponentPropsWithoutRef<typeof Primitive.div>;
3468
+
3432
3469
  declare const PrimitiveFeedbackForm: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "_id"> & Partial<Pick< DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "_id">>>;
3433
3470
 
3434
3471
  declare const PrimitiveFeedbackItem: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
@@ -3477,9 +3514,25 @@ declare const PrimitiveFormFieldLabel: ForwardRefExoticComponent< PolymorphicPro
3477
3514
 
3478
3515
  declare const PrimitiveFormFieldLabel_2: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "_id"> & Partial<Pick< DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "_id">>>;
3479
3516
 
3480
- declare const PrimitiveFormFieldSelect: ForwardRefExoticComponent< PolymorphicProps & Omit<SelectPrimitive.SelectProps, "_id"> & Partial<Pick<SelectPrimitive.SelectProps, "_id">>>;
3517
+ declare const PrimitiveFormFieldSelect: ForwardRefExoticComponent< PolymorphicProps & Omit<SelectPrimitive.SelectSharedProps & {
3518
+ value?: string;
3519
+ defaultValue?: string;
3520
+ onValueChange?(value: string): void;
3521
+ }, "_id"> & Partial<Pick<SelectPrimitive.SelectSharedProps & {
3522
+ value?: string;
3523
+ defaultValue?: string;
3524
+ onValueChange?(value: string): void;
3525
+ }, "_id">>>;
3481
3526
 
3482
- declare const PrimitiveFormFieldSelect_2: ForwardRefExoticComponent< PolymorphicProps & Omit<SelectPrimitive.SelectProps, "_id"> & Partial<Pick<SelectPrimitive.SelectProps, "_id">>>;
3527
+ declare const PrimitiveFormFieldSelect_2: ForwardRefExoticComponent< PolymorphicProps & Omit<SelectPrimitive.SelectSharedProps & {
3528
+ value?: string;
3529
+ defaultValue?: string;
3530
+ onValueChange?(value: string): void;
3531
+ }, "_id"> & Partial<Pick<SelectPrimitive.SelectSharedProps & {
3532
+ value?: string;
3533
+ defaultValue?: string;
3534
+ onValueChange?(value: string): void;
3535
+ }, "_id">>>;
3483
3536
 
3484
3537
  declare const PrimitiveFormFieldSelectValue: ForwardRefExoticComponent< PolymorphicProps & Omit<SelectPrimitive.SelectValueProps & RefAttributes<HTMLSpanElement>, "_id"> & Partial<Pick<SelectPrimitive.SelectValueProps & RefAttributes<HTMLSpanElement>, "_id">>>;
3485
3538
 
@@ -3750,6 +3803,8 @@ declare const PrimitiveSourcesList: ForwardRefExoticComponent< PolymorphicProps
3750
3803
 
3751
3804
  declare const PrimitiveSourceTitle: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id">>>;
3752
3805
 
3806
+ declare type PrimitiveSpanProps = React_2.ComponentPropsWithoutRef<typeof Primitive.span>;
3807
+
3753
3808
  declare const PrimitiveSuccess: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
3754
3809
 
3755
3810
  declare const PrimitiveSuccessHeading: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "_id">>>;
@@ -3776,6 +3831,8 @@ declare const ResultsTabList: ForwardRefExoticComponent< PolymorphicProps & Omit
3776
3831
 
3777
3832
  declare const Root: React_2.FC<DialogProps>;
3778
3833
 
3834
+ declare const Root_2: React_2.FC<SelectProps>;
3835
+
3779
3836
  export declare function RootProvider(props: RootProviderProps): JSX.Element;
3780
3837
 
3781
3838
  export declare interface RootProviderProps {
@@ -3784,6 +3841,8 @@ export declare interface RootProviderProps {
3784
3841
  componentType: (typeof WebWidgetInteractionType)[keyof typeof WebWidgetInteractionType];
3785
3842
  }
3786
3843
 
3844
+ declare const ScrollDownButton: React_2.ForwardRefExoticComponent<SelectScrollDownButtonProps & React_2.RefAttributes<HTMLDivElement>>;
3845
+
3787
3846
  declare interface ScrollToBottomOptions {
3788
3847
  /** Threshold in pixels from bottom to consider "near bottom" */
3789
3848
  threshold?: number;
@@ -3791,6 +3850,8 @@ declare interface ScrollToBottomOptions {
3791
3850
  interactionTimeout?: number;
3792
3851
  }
3793
3852
 
3853
+ declare const ScrollUpButton: React_2.ForwardRefExoticComponent<SelectScrollUpButtonProps & React_2.RefAttributes<HTMLDivElement>>;
3854
+
3794
3855
  export declare const SearchBarComponentIds: {
3795
3856
  searchBar__Container: "searchBar__Container";
3796
3857
  searchBar__Button: "searchBar__Button";
@@ -3854,8 +3915,204 @@ declare interface SearchProviderProps extends Pick<EmbeddedSearchProviderProps,
3854
3915
  children: React.ReactNode;
3855
3916
  }
3856
3917
 
3918
+ declare const Select: React_2.FC<SelectProps>;
3919
+
3920
+ declare const SelectArrow: React_2.ForwardRefExoticComponent<SelectArrowProps & React_2.RefAttributes<SVGSVGElement>>;
3921
+
3922
+ declare interface SelectArrowProps extends PopperArrowProps {
3923
+ }
3924
+
3925
+ declare const SelectContent: React_2.ForwardRefExoticComponent<SelectContentProps & React_2.RefAttributes<HTMLDivElement>>;
3926
+
3927
+ declare interface SelectContentImplProps extends Omit<SelectPopperPositionProps, keyof SelectPopperPrivateProps>, Omit<SelectItemAlignedPositionProps, keyof SelectPopperPrivateProps> {
3928
+ /**
3929
+ * Event handler called when auto-focusing on close.
3930
+ * Can be prevented.
3931
+ */
3932
+ onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];
3933
+ /**
3934
+ * Event handler called when the escape key is down.
3935
+ * Can be prevented.
3936
+ */
3937
+ onEscapeKeyDown?: DismissableLayerProps_2['onEscapeKeyDown'];
3938
+ /**
3939
+ * Event handler called when the a `pointerdown` event happens outside of the `DismissableLayer`.
3940
+ * Can be prevented.
3941
+ */
3942
+ onPointerDownOutside?: DismissableLayerProps_2['onPointerDownOutside'];
3943
+ position?: 'item-aligned' | 'popper';
3944
+ }
3945
+
3946
+ declare interface SelectContentProps extends SelectContentImplProps {
3947
+ }
3948
+
3949
+ declare const SelectGroup: React_2.ForwardRefExoticComponent<SelectGroupProps & React_2.RefAttributes<HTMLDivElement>>;
3950
+
3951
+ declare interface SelectGroupProps extends PrimitiveDivProps_2 {
3952
+ }
3953
+
3954
+ declare const SelectIcon: React_2.ForwardRefExoticComponent<SelectIconProps & React_2.RefAttributes<HTMLSpanElement>>;
3955
+
3956
+ declare interface SelectIconProps extends PrimitiveSpanProps {
3957
+ }
3958
+
3959
+ declare const SelectItem: React_2.ForwardRefExoticComponent<SelectItemProps & React_2.RefAttributes<HTMLDivElement>>;
3960
+
3961
+ declare interface SelectItemAlignedPositionProps extends PrimitiveDivProps_2, SelectPopperPrivateProps {
3962
+ }
3963
+
3964
+ declare const SelectItemIndicator: React_2.ForwardRefExoticComponent<SelectItemIndicatorProps & React_2.RefAttributes<HTMLSpanElement>>;
3965
+
3966
+ declare interface SelectItemIndicatorProps extends PrimitiveSpanProps {
3967
+ }
3968
+
3969
+ declare interface SelectItemProps extends PrimitiveDivProps_2 {
3970
+ value: string;
3971
+ disabled?: boolean;
3972
+ textValue?: string;
3973
+ }
3974
+
3975
+ declare const SelectItemText: React_2.ForwardRefExoticComponent<SelectItemTextProps & React_2.RefAttributes<HTMLSpanElement>>;
3976
+
3977
+ declare interface SelectItemTextProps extends PrimitiveSpanProps {
3978
+ }
3979
+
3980
+ declare const SelectLabel: React_2.ForwardRefExoticComponent<SelectLabelProps & React_2.RefAttributes<HTMLDivElement>>;
3981
+
3982
+ declare interface SelectLabelProps extends PrimitiveDivProps_2 {
3983
+ }
3984
+
3985
+ declare interface SelectPopperPositionProps extends PopperContentProps, SelectPopperPrivateProps {
3986
+ }
3987
+
3988
+ declare type SelectPopperPrivateProps = {
3989
+ onPlaced?: PopperContentProps['onPlaced'];
3990
+ };
3991
+
3992
+ declare const SelectPortal: React_2.FC<SelectPortalProps>;
3993
+
3994
+ declare interface SelectPortalProps {
3995
+ children?: React_2.ReactNode;
3996
+ /**
3997
+ * Specify a container element to portal the content into.
3998
+ */
3999
+ container?: PortalProps_3['container'];
4000
+ }
4001
+
4002
+ declare namespace SelectPrimitive {
4003
+ export {
4004
+ SelectSharedProps,
4005
+ createSelectScope,
4006
+ Select,
4007
+ SelectTrigger,
4008
+ SelectValue,
4009
+ SelectIcon,
4010
+ SelectPortal,
4011
+ SelectContent,
4012
+ SelectViewport,
4013
+ SelectGroup,
4014
+ SelectLabel,
4015
+ SelectItem,
4016
+ SelectItemText,
4017
+ SelectItemIndicator,
4018
+ SelectScrollUpButton,
4019
+ SelectScrollDownButton,
4020
+ SelectSeparator,
4021
+ SelectArrow,
4022
+ Root_2 as Root,
4023
+ Trigger_2 as Trigger,
4024
+ Value,
4025
+ Icon,
4026
+ Portal_4 as Portal,
4027
+ Content_2 as Content,
4028
+ Viewport,
4029
+ Group,
4030
+ Label,
4031
+ Item,
4032
+ ItemText,
4033
+ ItemIndicator,
4034
+ ScrollUpButton,
4035
+ ScrollDownButton,
4036
+ Separator,
4037
+ Arrow,
4038
+ SelectProps,
4039
+ SelectTriggerProps,
4040
+ SelectValueProps,
4041
+ SelectIconProps,
4042
+ SelectPortalProps,
4043
+ SelectContentProps,
4044
+ SelectViewportProps,
4045
+ SelectGroupProps,
4046
+ SelectLabelProps,
4047
+ SelectItemProps,
4048
+ SelectItemTextProps,
4049
+ SelectItemIndicatorProps,
4050
+ SelectScrollUpButtonProps,
4051
+ SelectScrollDownButtonProps,
4052
+ SelectSeparatorProps,
4053
+ SelectArrowProps
4054
+ }
4055
+ }
4056
+
4057
+ declare type SelectProps = SelectSharedProps & {
4058
+ value?: string;
4059
+ defaultValue?: string;
4060
+ onValueChange?(value: string): void;
4061
+ };
4062
+
4063
+ declare interface SelectScrollButtonImplProps extends PrimitiveDivProps_2 {
4064
+ onAutoScroll(): void;
4065
+ }
4066
+
4067
+ declare const SelectScrollDownButton: React_2.ForwardRefExoticComponent<SelectScrollDownButtonProps & React_2.RefAttributes<HTMLDivElement>>;
4068
+
4069
+ declare interface SelectScrollDownButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
4070
+ }
4071
+
4072
+ declare const SelectScrollUpButton: React_2.ForwardRefExoticComponent<SelectScrollUpButtonProps & React_2.RefAttributes<HTMLDivElement>>;
4073
+
4074
+ declare interface SelectScrollUpButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
4075
+ }
4076
+
4077
+ declare const SelectSeparator: React_2.ForwardRefExoticComponent<SelectSeparatorProps & React_2.RefAttributes<HTMLDivElement>>;
4078
+
4079
+ declare interface SelectSeparatorProps extends PrimitiveDivProps_2 {
4080
+ }
4081
+
4082
+ declare interface SelectSharedProps {
4083
+ children?: React_2.ReactNode;
4084
+ open?: boolean;
4085
+ defaultOpen?: boolean;
4086
+ onOpenChange?(open: boolean): void;
4087
+ dir?: Direction;
4088
+ name?: string;
4089
+ autoComplete?: string;
4090
+ disabled?: boolean;
4091
+ required?: boolean;
4092
+ form?: string;
4093
+ }
4094
+
4095
+ declare const SelectTrigger: React_2.ForwardRefExoticComponent<SelectTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
4096
+
4097
+ declare interface SelectTriggerProps extends PrimitiveButtonProps_2 {
4098
+ }
4099
+
4100
+ declare const SelectValue: React_2.ForwardRefExoticComponent<SelectValueProps & React_2.RefAttributes<HTMLSpanElement>>;
4101
+
4102
+ declare interface SelectValueProps extends Omit<PrimitiveSpanProps, 'placeholder'> {
4103
+ placeholder?: React_2.ReactNode;
4104
+ }
4105
+
4106
+ declare const SelectViewport: React_2.ForwardRefExoticComponent<SelectViewportProps & React_2.RefAttributes<HTMLDivElement>>;
4107
+
4108
+ declare interface SelectViewportProps extends PrimitiveDivProps_2 {
4109
+ nonce?: string;
4110
+ }
4111
+
3857
4112
  declare const SendButton: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "_id"> & Partial<Pick< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "_id">>>;
3858
4113
 
4114
+ declare const Separator: React_2.ForwardRefExoticComponent<SelectSeparatorProps & React_2.RefAttributes<HTMLDivElement>>;
4115
+
3859
4116
  declare type SettleFn = () => void;
3860
4117
 
3861
4118
  export declare const ShadowContext: Context<ShadowContextValue | undefined>;
@@ -3999,6 +4256,8 @@ export declare type TransformedSourceItem = TransformedSource & {
3999
4256
 
4000
4257
  declare const Trigger: React_2.ForwardRefExoticComponent<DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
4001
4258
 
4259
+ declare const Trigger_2: React_2.ForwardRefExoticComponent<SelectTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
4260
+
4002
4261
  export declare const useAttachmentItem: () => AttachmentItemContextValue;
4003
4262
 
4004
4263
  export declare const useAttachmentsBar: () => AttachmentsBarContextValue;
@@ -4301,6 +4560,10 @@ export declare const useUser: () => UserContextValue;
4301
4560
 
4302
4561
  export declare const useWidget: () => WidgetContextValue | undefined;
4303
4562
 
4563
+ declare const Value: React_2.ForwardRefExoticComponent<SelectValueProps & React_2.RefAttributes<HTMLSpanElement>>;
4564
+
4565
+ declare const Viewport: React_2.ForwardRefExoticComponent<SelectViewportProps & React_2.RefAttributes<HTMLDivElement>>;
4566
+
4304
4567
  export declare const WebWidgetInteractionType: {
4305
4568
  readonly ChatButton: "ChatButton";
4306
4569
  readonly CustomTrigger: "CustomTrigger";
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react/jsx-runtime"),t=require("react"),f=require("../atoms/api/analytics/events.cjs"),b=require("./config-provider.cjs"),x=require("./user-provider.cjs"),E=t.createContext(void 0),q=({children:e})=>{const{baseSettings:s,componentType:r}=b.useInkeepConfig(),{apiKey:i,analyticsApiBaseUrl:c,tags:a,privacyPreferences:m,env:g,analyticsProperties:v}=s,{userProperties:u}=x.useUser(),l=t.useMemo(()=>({widgetLibraryVersion:"0.5.91",componentType:r,tags:a}),[r,a]),d=!m.optOutAllAnalytics&&g!=="development",P={logEvent:t.useCallback(async n=>{const o={...l,...n.properties,...v},p={eventName:n.eventName,properties:o,userProperties:u},y=["modal_opened","modal_closed"].includes(n.eventName);if(d&&!y){if("conversation"in o&&!o.conversation?.id)return;f.logEvent(p,i,c)}s.onEvent?.(p)},[d,s,i,c,u,l,v])};return B.jsx(E.Provider,{value:P,children:e})},C=()=>{const e=t.useContext(E);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e};exports.BaseEventsProvider=q;exports.useBaseEvents=C;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react/jsx-runtime"),t=require("react"),f=require("../atoms/api/analytics/events.cjs"),b=require("./config-provider.cjs"),x=require("./user-provider.cjs"),E=t.createContext(void 0),q=({children:e})=>{const{baseSettings:s,componentType:r}=b.useInkeepConfig(),{apiKey:i,analyticsApiBaseUrl:c,tags:a,privacyPreferences:m,env:g,analyticsProperties:v}=s,{userProperties:u}=x.useUser(),l=t.useMemo(()=>({widgetLibraryVersion:"0.5.92",componentType:r,tags:a}),[r,a]),d=!m.optOutAllAnalytics&&g!=="development",P={logEvent:t.useCallback(async n=>{const o={...l,...n.properties,...v},p={eventName:n.eventName,properties:o,userProperties:u},y=["modal_opened","modal_closed"].includes(n.eventName);if(d&&!y){if("conversation"in o&&!o.conversation?.id)return;f.logEvent(p,i,c)}s.onEvent?.(p)},[d,s,i,c,u,l,v])};return B.jsx(E.Provider,{value:P,children:e})},C=()=>{const e=t.useContext(E);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e};exports.BaseEventsProvider=q;exports.useBaseEvents=C;
@@ -7,7 +7,7 @@ import { useUser as A } from "./user-provider.js";
7
7
  const u = B(void 0), $ = ({ children: e }) => {
8
8
  const { baseSettings: t, componentType: s } = w(), { apiKey: r, analyticsApiBaseUrl: i, tags: a, privacyPreferences: d, env: E, analyticsProperties: c } = t, { userProperties: v } = A(), p = P(
9
9
  () => ({
10
- widgetLibraryVersion: "0.5.91",
10
+ widgetLibraryVersion: "0.5.92",
11
11
  componentType: s,
12
12
  tags: a
13
13
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/cxkit-primitives",
3
- "version": "0.5.91",
3
+ "version": "0.5.92",
4
4
  "description": "",
5
5
  "license": "Inkeep, Inc. Customer License (IICL) v1.1",
6
6
  "homepage": "",
@@ -20,27 +20,31 @@
20
20
  },
21
21
  "sideEffects": false,
22
22
  "dependencies": {
23
+ "@radix-ui/number": "^1.1.1",
23
24
  "@radix-ui/primitive": "^1.1.1",
24
25
  "@radix-ui/react-avatar": "1.1.2",
25
26
  "@radix-ui/react-checkbox": "1.1.3",
27
+ "@radix-ui/react-collection": "^1.1.7",
26
28
  "@radix-ui/react-compose-refs": "^1.1.1",
27
29
  "@radix-ui/react-context": "^1.1.1",
30
+ "@radix-ui/react-direction": "^1.1.1",
28
31
  "@radix-ui/react-dismissable-layer": "^1.1.5",
29
32
  "@radix-ui/react-focus-guards": "^1.1.1",
30
33
  "@radix-ui/react-focus-scope": "^1.1.2",
31
34
  "@radix-ui/react-hover-card": "^1.1.6",
32
35
  "@radix-ui/react-id": "^1.1.0",
33
36
  "@radix-ui/react-popover": "1.1.6",
37
+ "@radix-ui/react-popper": "^1.2.7",
34
38
  "@radix-ui/react-portal": "^1.1.4",
35
39
  "@radix-ui/react-presence": "^1.1.2",
36
40
  "@radix-ui/react-primitive": "^2.0.2",
37
41
  "@radix-ui/react-scroll-area": "1.2.2",
38
- "@radix-ui/react-select": "^2.1.7",
39
42
  "@radix-ui/react-slot": "^1.2.0",
40
43
  "@radix-ui/react-tabs": "^1.1.4",
41
44
  "@radix-ui/react-tooltip": "1.1.6",
42
45
  "@radix-ui/react-use-callback-ref": "^1.1.0",
43
46
  "@radix-ui/react-use-controllable-state": "^1.1.0",
47
+ "@radix-ui/react-use-layout-effect": "^1.1.1",
44
48
  "@zag-js/focus-trap": "^1.7.0",
45
49
  "@zag-js/presence": "^1.13.1",
46
50
  "@zag-js/react": "^1.13.1",
@@ -63,9 +67,9 @@
63
67
  "remark-gfm": "^4.0.1",
64
68
  "unist-util-visit": "^5.0.0",
65
69
  "use-sync-external-store": "^1.4.0",
66
- "@inkeep/cxkit-color-mode": "0.5.91",
67
- "@inkeep/cxkit-theme": "0.5.91",
68
- "@inkeep/cxkit-types": "0.5.91"
70
+ "@inkeep/cxkit-color-mode": "^0.5.92",
71
+ "@inkeep/cxkit-theme": "0.5.92",
72
+ "@inkeep/cxkit-types": "0.5.92"
69
73
  },
70
74
  "devDependencies": {
71
75
  "@biomejs/biome": "1.9.4",