@inkeep/cxkit-primitives 0.5.37 → 0.5.38

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.
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _="__ask_ai__";exports.ASK_AI_TRIGGER_VALUE=_;
@@ -0,0 +1,5 @@
1
+ "use client";
2
+ const _ = "__ask_ai__";
3
+ export {
4
+ _ as ASK_AI_TRIGGER_VALUE
5
+ };
package/dist/index.d.cts CHANGED
@@ -318,8 +318,6 @@ export declare const aiSearchComponentIds: {
318
318
 
319
319
  declare type AnyString = string & {};
320
320
 
321
- declare const ASK_AI_TRIGGER_VALUE = "__ask_ai__";
322
-
323
321
  export declare type AttachmentItemContextValue = {
324
322
  attachment: MessageAttachment;
325
323
  };
@@ -1976,7 +1974,6 @@ declare const EmbeddedSearchInputIcon: ForwardRefExoticComponent< PolymorphicPro
1976
1974
 
1977
1975
  export declare namespace EmbeddedSearchPrimitive {
1978
1976
  export {
1979
- ASK_AI_TRIGGER_VALUE,
1980
1977
  EmbeddedSearchPrimitiveWrapper,
1981
1978
  EmbeddedSearchPrimitiveRoot,
1982
1979
  PrimitiveContent,
@@ -3266,35 +3263,7 @@ declare const PrimitiveResultsScrollArea: ForwardRefExoticComponent< Polymorphic
3266
3263
 
3267
3264
  declare const PrimitiveRoot: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
3268
3265
 
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">>>;
3266
+ declare const PrimitiveRoot_2: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
3298
3267
 
3299
3268
  declare const PrimitiveRoot_3: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "_id"> & Partial<Pick< DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "_id">>>;
3300
3269
 
@@ -3631,20 +3600,18 @@ declare const useInkeepModal: (props: InkeepModalSettings | undefined) => {
3631
3600
  declare const useInkeepSearch: () => {
3632
3601
  results: Record<string, TransformedSourceItem[]>;
3633
3602
  resultsList: SearchHit[];
3603
+ setResultsList: Dispatch<SetStateAction<SearchHit[]>>;
3634
3604
  hasContent: boolean;
3635
3605
  loading: boolean;
3636
- error: string | null;
3637
- query: string;
3638
- onInput: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
3639
- placeholder: string;
3606
+ setLoading: Dispatch<SetStateAction<boolean>>;
3607
+ defaultTab: string;
3640
3608
  tab: string;
3641
- onTabChange: (newTab: string) => void;
3642
- selectedItem: string | undefined;
3643
- setSelectedItem: Dispatch<SetStateAction<string | undefined>>;
3644
- onSelectedItemChange: (value: string) => void;
3609
+ setTab: Dispatch<SetStateAction<string>>;
3610
+ disableTransition: () => void;
3645
3611
  transitionsDisabled: boolean;
3646
3612
  inputRef: RefObject<HTMLInputElement | null>;
3647
- isMobile: boolean;
3613
+ showSearchResults: boolean;
3614
+ setShowSearchResults: Dispatch<SetStateAction<boolean>>;
3648
3615
  };
3649
3616
 
3650
3617
  /**
package/dist/index.d.ts CHANGED
@@ -318,8 +318,6 @@ export declare const aiSearchComponentIds: {
318
318
 
319
319
  declare type AnyString = string & {};
320
320
 
321
- declare const ASK_AI_TRIGGER_VALUE = "__ask_ai__";
322
-
323
321
  export declare type AttachmentItemContextValue = {
324
322
  attachment: MessageAttachment;
325
323
  };
@@ -1976,7 +1974,6 @@ declare const EmbeddedSearchInputIcon: ForwardRefExoticComponent< PolymorphicPro
1976
1974
 
1977
1975
  export declare namespace EmbeddedSearchPrimitive {
1978
1976
  export {
1979
- ASK_AI_TRIGGER_VALUE,
1980
1977
  EmbeddedSearchPrimitiveWrapper,
1981
1978
  EmbeddedSearchPrimitiveRoot,
1982
1979
  PrimitiveContent,
@@ -3266,35 +3263,7 @@ declare const PrimitiveResultsScrollArea: ForwardRefExoticComponent< Polymorphic
3266
3263
 
3267
3264
  declare const PrimitiveRoot: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
3268
3265
 
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">>>;
3266
+ declare const PrimitiveRoot_2: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
3298
3267
 
3299
3268
  declare const PrimitiveRoot_3: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "_id"> & Partial<Pick< DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "_id">>>;
3300
3269
 
@@ -3631,20 +3600,18 @@ declare const useInkeepModal: (props: InkeepModalSettings | undefined) => {
3631
3600
  declare const useInkeepSearch: () => {
3632
3601
  results: Record<string, TransformedSourceItem[]>;
3633
3602
  resultsList: SearchHit[];
3603
+ setResultsList: Dispatch<SetStateAction<SearchHit[]>>;
3634
3604
  hasContent: boolean;
3635
3605
  loading: boolean;
3636
- error: string | null;
3637
- query: string;
3638
- onInput: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
3639
- placeholder: string;
3606
+ setLoading: Dispatch<SetStateAction<boolean>>;
3607
+ defaultTab: string;
3640
3608
  tab: string;
3641
- onTabChange: (newTab: string) => void;
3642
- selectedItem: string | undefined;
3643
- setSelectedItem: Dispatch<SetStateAction<string | undefined>>;
3644
- onSelectedItemChange: (value: string) => void;
3609
+ setTab: Dispatch<SetStateAction<string>>;
3610
+ disableTransition: () => void;
3645
3611
  transitionsDisabled: boolean;
3646
3612
  inputRef: RefObject<HTMLInputElement | null>;
3647
- isMobile: boolean;
3613
+ showSearchResults: boolean;
3614
+ setShowSearchResults: Dispatch<SetStateAction<boolean>>;
3648
3615
  };
3649
3616
 
3650
3617
  /**
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react/jsx-runtime"),t=require("react"),y=require("../atoms/api/analytics/events.cjs"),B=require("./config-provider.cjs"),b=require("./user-provider.cjs"),p=t.createContext(void 0),f=({children:e})=>{const{baseSettings:s,componentType:n}=B.useInkeepConfig(),{apiKey:o,analyticsApiBaseUrl:r,tags:i,privacyPreferences:d,env:E}=s,{userProperties:c}=b.useUser(),a=t.useMemo(()=>({widgetLibraryVersion:"0.5.37",componentType:n,tags:i}),[n,i]),u=!d.optOutAllAnalytics&&E!=="development",g={logEvent:t.useCallback(async v=>{const m={...a,...v.properties},l={eventName:v.eventName,properties:m,userProperties:c};u&&y.logEvent(l,o,r),s.onEvent?.(l)},[u,s,o,r,c,a])};return P.jsx(p.Provider,{value:g,children:e})},x=()=>{const e=t.useContext(p);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e};exports.BaseEventsProvider=f;exports.useBaseEvents=x;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react/jsx-runtime"),t=require("react"),y=require("../atoms/api/analytics/events.cjs"),B=require("./config-provider.cjs"),b=require("./user-provider.cjs"),p=t.createContext(void 0),f=({children:e})=>{const{baseSettings:s,componentType:n}=B.useInkeepConfig(),{apiKey:o,analyticsApiBaseUrl:r,tags:i,privacyPreferences:d,env:E}=s,{userProperties:c}=b.useUser(),a=t.useMemo(()=>({widgetLibraryVersion:"0.5.38",componentType:n,tags:i}),[n,i]),u=!d.optOutAllAnalytics&&E!=="development",g={logEvent:t.useCallback(async v=>{const m={...a,...v.properties},l={eventName:v.eventName,properties:m,userProperties:c};u&&y.logEvent(l,o,r),s.onEvent?.(l)},[u,s,o,r,c,a])};return P.jsx(p.Provider,{value:g,children:e})},x=()=>{const e=t.useContext(p);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e};exports.BaseEventsProvider=f;exports.useBaseEvents=x;
@@ -7,7 +7,7 @@ import { useUser as b } from "./user-provider.js";
7
7
  const m = x(void 0), U = ({ children: e }) => {
8
8
  const { baseSettings: t, componentType: o } = C(), { apiKey: n, analyticsApiBaseUrl: s, tags: r, privacyPreferences: u, env: l } = t, { userProperties: i } = b(), a = d(
9
9
  () => ({
10
- widgetLibraryVersion: "0.5.37",
10
+ widgetLibraryVersion: "0.5.38",
11
11
  componentType: o,
12
12
  tags: r
13
13
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/cxkit-primitives",
3
- "version": "0.5.37",
3
+ "version": "0.5.38",
4
4
  "description": "",
5
5
  "license": "Inkeep, Inc. Customer License (IICL) v1.1",
6
6
  "homepage": "",
@@ -59,9 +59,9 @@
59
59
  "remark-gfm": "^4.0.1",
60
60
  "unist-util-visit": "^5.0.0",
61
61
  "use-sync-external-store": "^1.4.0",
62
- "@inkeep/cxkit-color-mode": "0.5.37",
63
- "@inkeep/cxkit-theme": "0.5.37",
64
- "@inkeep/cxkit-types": "0.5.37"
62
+ "@inkeep/cxkit-color-mode": "0.5.38",
63
+ "@inkeep/cxkit-theme": "0.5.38",
64
+ "@inkeep/cxkit-types": "0.5.38"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@biomejs/biome": "1.9.4",