@inkeep/cxkit-primitives 0.5.24 → 0.5.25

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.cts CHANGED
@@ -737,6 +737,8 @@ export declare const componentIDs: {
737
737
  markdownCode: "markdownCode";
738
738
  };
739
739
 
740
+ declare type ComponentProps = Omit<ComponentPropsWithRef<typeof PrimitiveChatHelpAction>, 'action'> | ComponentPropsWithRef<typeof PrimitiveChatHelpActionLink>;
741
+
740
742
  export declare function composeRefs<T>(...refs: PossibleRef<T>[]): (node: T | null) => void;
741
743
 
742
744
  export declare interface ContainerSize {
@@ -1634,9 +1636,9 @@ declare type EmbeddedChatPrimitiveChatActionType = 'help' | 'copy' | 'share' | '
1634
1636
 
1635
1637
  declare const EmbeddedChatPrimitiveChatHelpAction: (props: EmbeddedChatPrimitiveChatHelpActionProps) => JSX.Element;
1636
1638
 
1637
- declare interface EmbeddedChatPrimitiveChatHelpActionProps extends Omit<ComponentPropsWithRef<typeof PrimitiveChatHelpAction>, 'action'> {
1639
+ declare type EmbeddedChatPrimitiveChatHelpActionProps = ComponentProps & {
1638
1640
  action: GetHelpOption;
1639
- }
1641
+ };
1640
1642
 
1641
1643
  declare const EmbeddedChatPrimitiveContent: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
1642
1644
 
@@ -2893,6 +2895,8 @@ declare const PrimitiveChatButtonAvatarImage: ForwardRefExoticComponent< Polymor
2893
2895
 
2894
2896
  declare const PrimitiveChatHelpAction: ForwardRefExoticComponent< PolymorphicProps & Omit<EmbeddedChatPrimitiveChatActionProps, "action" | "_id"> & Partial<Pick<EmbeddedChatPrimitiveChatActionProps, "action" | "_id">>>;
2895
2897
 
2898
+ declare const PrimitiveChatHelpActionLink: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "rel" | "target" | "_id"> & Partial<Pick< DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "rel" | "target" | "_id">>>;
2899
+
2896
2900
  declare const PrimitiveConfidentAnswer: ForwardRefExoticComponent< PolymorphicProps & Omit< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & MarkdownProps, "_id"> & Partial<Pick< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & MarkdownProps, "_id">>>;
2897
2901
 
2898
2902
  declare const PrimitiveConfidentResponseButton: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "type" | "_id"> & Partial<Pick< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "type" | "_id">>>;
package/dist/index.d.ts CHANGED
@@ -737,6 +737,8 @@ export declare const componentIDs: {
737
737
  markdownCode: "markdownCode";
738
738
  };
739
739
 
740
+ declare type ComponentProps = Omit<ComponentPropsWithRef<typeof PrimitiveChatHelpAction>, 'action'> | ComponentPropsWithRef<typeof PrimitiveChatHelpActionLink>;
741
+
740
742
  export declare function composeRefs<T>(...refs: PossibleRef<T>[]): (node: T | null) => void;
741
743
 
742
744
  export declare interface ContainerSize {
@@ -1634,9 +1636,9 @@ declare type EmbeddedChatPrimitiveChatActionType = 'help' | 'copy' | 'share' | '
1634
1636
 
1635
1637
  declare const EmbeddedChatPrimitiveChatHelpAction: (props: EmbeddedChatPrimitiveChatHelpActionProps) => JSX.Element;
1636
1638
 
1637
- declare interface EmbeddedChatPrimitiveChatHelpActionProps extends Omit<ComponentPropsWithRef<typeof PrimitiveChatHelpAction>, 'action'> {
1639
+ declare type EmbeddedChatPrimitiveChatHelpActionProps = ComponentProps & {
1638
1640
  action: GetHelpOption;
1639
- }
1641
+ };
1640
1642
 
1641
1643
  declare const EmbeddedChatPrimitiveContent: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
1642
1644
 
@@ -2893,6 +2895,8 @@ declare const PrimitiveChatButtonAvatarImage: ForwardRefExoticComponent< Polymor
2893
2895
 
2894
2896
  declare const PrimitiveChatHelpAction: ForwardRefExoticComponent< PolymorphicProps & Omit<EmbeddedChatPrimitiveChatActionProps, "action" | "_id"> & Partial<Pick<EmbeddedChatPrimitiveChatActionProps, "action" | "_id">>>;
2895
2897
 
2898
+ declare const PrimitiveChatHelpActionLink: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "rel" | "target" | "_id"> & Partial<Pick< DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "rel" | "target" | "_id">>>;
2899
+
2896
2900
  declare const PrimitiveConfidentAnswer: ForwardRefExoticComponent< PolymorphicProps & Omit< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & MarkdownProps, "_id"> & Partial<Pick< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & MarkdownProps, "_id">>>;
2897
2901
 
2898
2902
  declare const PrimitiveConfidentResponseButton: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "type" | "_id"> & Partial<Pick< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "type" | "_id">>>;
@@ -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.24",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.25",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.24",
10
+ widgetLibraryVersion: "0.5.25",
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.24",
3
+ "version": "0.5.25",
4
4
  "description": "",
5
5
  "license": "Inkeep, Inc. Customer License (IICL) v1.1",
6
6
  "homepage": "",
@@ -58,9 +58,9 @@
58
58
  "rehype-raw": "7.0.0",
59
59
  "unist-util-visit": "^5.0.0",
60
60
  "use-sync-external-store": "^1.4.0",
61
- "@inkeep/cxkit-color-mode": "0.5.24",
62
- "@inkeep/cxkit-theme": "0.5.24",
63
- "@inkeep/cxkit-types": "0.5.24"
61
+ "@inkeep/cxkit-color-mode": "0.5.25",
62
+ "@inkeep/cxkit-theme": "0.5.25",
63
+ "@inkeep/cxkit-types": "0.5.25"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@biomejs/biome": "1.9.4",