@inkeep/cxkit-primitives 0.5.73 → 0.5.76

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.
Files changed (43) hide show
  1. package/dist/atoms/api/analytics/feedback.cjs +1 -1
  2. package/dist/atoms/api/analytics/feedback.js +9 -8
  3. package/dist/atoms/icons/built-in-icon-renderer.cjs +1 -1
  4. package/dist/atoms/icons/built-in-icon-renderer.js +3 -1
  5. package/dist/atoms/icons/built-in-icons.cjs +1 -1
  6. package/dist/atoms/icons/built-in-icons.js +81 -79
  7. package/dist/atoms/icons/collections/bi.cjs +1 -0
  8. package/dist/atoms/icons/collections/bi.js +49 -0
  9. package/dist/atoms/icons/collections/fi.cjs +1 -0
  10. package/dist/atoms/icons/collections/fi.js +29 -0
  11. package/dist/atoms/icons/collections/gr.cjs +1 -0
  12. package/dist/atoms/icons/collections/gr.js +21 -0
  13. package/dist/atoms/icons/collections/io5.cjs +1 -0
  14. package/dist/atoms/icons/collections/io5.js +806 -0
  15. package/dist/atoms/icons/collections/pi.cjs +1 -0
  16. package/dist/atoms/icons/collections/pi.js +49 -0
  17. package/dist/atoms/icons/generate-icon.cjs +1 -0
  18. package/dist/atoms/icons/generate-icon.js +56 -0
  19. package/dist/components/embedded-chat.cjs +4 -4
  20. package/dist/components/embedded-chat.js +808 -811
  21. package/dist/index.d.cts +0 -11
  22. package/dist/index.d.ts +0 -11
  23. package/dist/providers/base-events-provider.cjs +1 -1
  24. package/dist/providers/base-events-provider.js +32 -23
  25. package/dist/providers/chat-events-provider.cjs +1 -1
  26. package/dist/providers/chat-events-provider.js +47 -37
  27. package/dist/providers/feedback-provider.cjs +1 -1
  28. package/dist/providers/feedback-provider.js +35 -34
  29. package/package.json +5 -5
  30. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/fa6/index.cjs +0 -1
  31. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/fa6/index.js +0 -92
  32. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/fi/index.cjs +0 -1
  33. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/fi/index.js +0 -8
  34. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/hi2/index.cjs +0 -1
  35. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/hi2/index.js +0 -8
  36. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/io5/index.cjs +0 -1
  37. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/io5/index.js +0 -128
  38. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/lib/iconBase.cjs +0 -1
  39. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/lib/iconBase.js +0 -109
  40. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/lib/iconContext.cjs +0 -1
  41. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/lib/iconContext.js +0 -13
  42. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/lu/index.cjs +0 -1
  43. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/lu/index.js +0 -88
package/dist/index.d.cts CHANGED
@@ -27,7 +27,6 @@ import { FormHTMLAttributes } from 'react';
27
27
  import { ForwardRefExoticComponent } from 'react';
28
28
  import { GetHelpOption } from '@inkeep/cxkit-types';
29
29
  import { HTMLAttributes } from 'react';
30
- import { IconBaseProps } from 'react-icons/lib';
31
30
  import { ImgHTMLAttributes } from 'react';
32
31
  import { InkeepAIChatSettings } from '@inkeep/cxkit-types';
33
32
  import { InkeepBaseSettings } from '@inkeep/cxkit-types';
@@ -1586,7 +1585,6 @@ export declare namespace EmbeddedChatPrimitive {
1586
1585
  EmbeddedChatPrimitiveWorkflowsList,
1587
1586
  EmbeddedChatPrimitiveWorkflowProps,
1588
1587
  EmbeddedChatPrimitiveWorkflow,
1589
- EmbeddedChatPrimitiveWorkflowIcon,
1590
1588
  EmbeddedChatPrimitiveMessageWrapperProps,
1591
1589
  EmbeddedChatPrimitiveMessageWrapper,
1592
1590
  EmbeddedChatPrimitiveIntroMessageWrapperProps,
@@ -1660,7 +1658,6 @@ export declare namespace EmbeddedChatPrimitive {
1660
1658
  EmbeddedChatPrimitiveAttachmentsBarInputs,
1661
1659
  EmbeddedChatPrimitiveAttachmentsBarInputProps,
1662
1660
  EmbeddedChatPrimitiveAttachmentsBarInput,
1663
- EmbeddedChatPrimitiveAttachmentsBarInputIcon,
1664
1661
  EmbeddedChatPrimitiveAttachmentsBarModal,
1665
1662
  EmbeddedChatPrimitiveAttachmentsBarModalOverlay,
1666
1663
  EmbeddedChatPrimitiveAttachmentsBarModalContent,
@@ -1784,7 +1781,6 @@ export declare namespace EmbeddedChatPrimitive {
1784
1781
  EmbeddedChatPrimitiveWorkflowsLabel as WorkflowsLabel,
1785
1782
  EmbeddedChatPrimitiveWorkflowsList as WorkflowsList,
1786
1783
  EmbeddedChatPrimitiveWorkflow as Workflow,
1787
- EmbeddedChatPrimitiveWorkflowIcon as WorkflowIcon,
1788
1784
  EmbeddedChatPrimitiveMessageHeader as MessageHeader,
1789
1785
  EmbeddedChatPrimitiveMessageLoading as MessageLoading,
1790
1786
  EmbeddedChatPrimitiveMessageAvatar as MessageAvatar,
@@ -1841,7 +1837,6 @@ export declare namespace EmbeddedChatPrimitive {
1841
1837
  EmbeddedChatPrimitiveAttachmentsBarInfoTipText as AttachmentsBarInfoTipText,
1842
1838
  EmbeddedChatPrimitiveAttachmentsBarInputs as AttachmentsBarInputs,
1843
1839
  EmbeddedChatPrimitiveAttachmentsBarInput as AttachmentsBarInput,
1844
- EmbeddedChatPrimitiveAttachmentsBarInputIcon as AttachmentsBarInputIcon,
1845
1840
  EmbeddedChatPrimitiveAttachmentsBarModal as AttachmentsBarModal,
1846
1841
  EmbeddedChatPrimitiveAttachmentsBarModalOverlay as AttachmentsBarModalOverlay,
1847
1842
  EmbeddedChatPrimitiveAttachmentsBarModalContent as AttachmentsBarModalContent,
@@ -1976,8 +1971,6 @@ declare const EmbeddedChatPrimitiveAttachmentsBarInfoTipText: ForwardRefExoticCo
1976
1971
 
1977
1972
  declare const EmbeddedChatPrimitiveAttachmentsBarInput: (props: EmbeddedChatPrimitiveAttachmentsBarInputProps) => JSX.Element;
1978
1973
 
1979
- declare const EmbeddedChatPrimitiveAttachmentsBarInputIcon: ForwardRefExoticComponent< PolymorphicProps & Omit< IconBaseProps, "_id"> & Partial<Pick< IconBaseProps, "_id">>>;
1980
-
1981
1974
  declare interface EmbeddedChatPrimitiveAttachmentsBarInputProps extends ComponentPropsWithRef<typeof PrimitiveAttachmentsBarInput> {
1982
1975
  input: WorkflowInputTypes;
1983
1976
  }
@@ -2378,8 +2371,6 @@ declare const EmbeddedChatPrimitiveToolbarHeaderWrapper: ForwardRefExoticCompone
2378
2371
 
2379
2372
  declare const EmbeddedChatPrimitiveWorkflow: (props: EmbeddedChatPrimitiveWorkflowProps) => JSX.Element;
2380
2373
 
2381
- declare const EmbeddedChatPrimitiveWorkflowIcon: (props: ComponentPropsWithRef<typeof PrimitiveWorkflowIcon>) => JSX.Element;
2382
-
2383
2374
  declare interface EmbeddedChatPrimitiveWorkflowProps extends ComponentPropsWithRef<'button'> {
2384
2375
  workflow: Workflow;
2385
2376
  }
@@ -3756,8 +3747,6 @@ declare const PrimitiveSuccessMessage: ForwardRefExoticComponent< PolymorphicPro
3756
3747
 
3757
3748
  declare const PrimitiveToolbarHeader: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
3758
3749
 
3759
- declare const PrimitiveWorkflowIcon: ForwardRefExoticComponent< PolymorphicProps & Omit< IconBaseProps, "_id"> & Partial<Pick< IconBaseProps, "_id">>>;
3760
-
3761
3750
  declare const PrimitiveWrapper: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
3762
3751
 
3763
3752
  declare const ResultsList: ForwardRefExoticComponent< PolymorphicProps & Omit<TabsPrimitive.TabsContentProps & RefAttributes<HTMLDivElement>, "_id"> & Partial<Pick<TabsPrimitive.TabsContentProps & RefAttributes<HTMLDivElement>, "_id">>>;
package/dist/index.d.ts CHANGED
@@ -27,7 +27,6 @@ import { FormHTMLAttributes } from 'react';
27
27
  import { ForwardRefExoticComponent } from 'react';
28
28
  import { GetHelpOption } from '@inkeep/cxkit-types';
29
29
  import { HTMLAttributes } from 'react';
30
- import { IconBaseProps } from 'react-icons/lib';
31
30
  import { ImgHTMLAttributes } from 'react';
32
31
  import { InkeepAIChatSettings } from '@inkeep/cxkit-types';
33
32
  import { InkeepBaseSettings } from '@inkeep/cxkit-types';
@@ -1586,7 +1585,6 @@ export declare namespace EmbeddedChatPrimitive {
1586
1585
  EmbeddedChatPrimitiveWorkflowsList,
1587
1586
  EmbeddedChatPrimitiveWorkflowProps,
1588
1587
  EmbeddedChatPrimitiveWorkflow,
1589
- EmbeddedChatPrimitiveWorkflowIcon,
1590
1588
  EmbeddedChatPrimitiveMessageWrapperProps,
1591
1589
  EmbeddedChatPrimitiveMessageWrapper,
1592
1590
  EmbeddedChatPrimitiveIntroMessageWrapperProps,
@@ -1660,7 +1658,6 @@ export declare namespace EmbeddedChatPrimitive {
1660
1658
  EmbeddedChatPrimitiveAttachmentsBarInputs,
1661
1659
  EmbeddedChatPrimitiveAttachmentsBarInputProps,
1662
1660
  EmbeddedChatPrimitiveAttachmentsBarInput,
1663
- EmbeddedChatPrimitiveAttachmentsBarInputIcon,
1664
1661
  EmbeddedChatPrimitiveAttachmentsBarModal,
1665
1662
  EmbeddedChatPrimitiveAttachmentsBarModalOverlay,
1666
1663
  EmbeddedChatPrimitiveAttachmentsBarModalContent,
@@ -1784,7 +1781,6 @@ export declare namespace EmbeddedChatPrimitive {
1784
1781
  EmbeddedChatPrimitiveWorkflowsLabel as WorkflowsLabel,
1785
1782
  EmbeddedChatPrimitiveWorkflowsList as WorkflowsList,
1786
1783
  EmbeddedChatPrimitiveWorkflow as Workflow,
1787
- EmbeddedChatPrimitiveWorkflowIcon as WorkflowIcon,
1788
1784
  EmbeddedChatPrimitiveMessageHeader as MessageHeader,
1789
1785
  EmbeddedChatPrimitiveMessageLoading as MessageLoading,
1790
1786
  EmbeddedChatPrimitiveMessageAvatar as MessageAvatar,
@@ -1841,7 +1837,6 @@ export declare namespace EmbeddedChatPrimitive {
1841
1837
  EmbeddedChatPrimitiveAttachmentsBarInfoTipText as AttachmentsBarInfoTipText,
1842
1838
  EmbeddedChatPrimitiveAttachmentsBarInputs as AttachmentsBarInputs,
1843
1839
  EmbeddedChatPrimitiveAttachmentsBarInput as AttachmentsBarInput,
1844
- EmbeddedChatPrimitiveAttachmentsBarInputIcon as AttachmentsBarInputIcon,
1845
1840
  EmbeddedChatPrimitiveAttachmentsBarModal as AttachmentsBarModal,
1846
1841
  EmbeddedChatPrimitiveAttachmentsBarModalOverlay as AttachmentsBarModalOverlay,
1847
1842
  EmbeddedChatPrimitiveAttachmentsBarModalContent as AttachmentsBarModalContent,
@@ -1976,8 +1971,6 @@ declare const EmbeddedChatPrimitiveAttachmentsBarInfoTipText: ForwardRefExoticCo
1976
1971
 
1977
1972
  declare const EmbeddedChatPrimitiveAttachmentsBarInput: (props: EmbeddedChatPrimitiveAttachmentsBarInputProps) => JSX.Element;
1978
1973
 
1979
- declare const EmbeddedChatPrimitiveAttachmentsBarInputIcon: ForwardRefExoticComponent< PolymorphicProps & Omit< IconBaseProps, "_id"> & Partial<Pick< IconBaseProps, "_id">>>;
1980
-
1981
1974
  declare interface EmbeddedChatPrimitiveAttachmentsBarInputProps extends ComponentPropsWithRef<typeof PrimitiveAttachmentsBarInput> {
1982
1975
  input: WorkflowInputTypes;
1983
1976
  }
@@ -2378,8 +2371,6 @@ declare const EmbeddedChatPrimitiveToolbarHeaderWrapper: ForwardRefExoticCompone
2378
2371
 
2379
2372
  declare const EmbeddedChatPrimitiveWorkflow: (props: EmbeddedChatPrimitiveWorkflowProps) => JSX.Element;
2380
2373
 
2381
- declare const EmbeddedChatPrimitiveWorkflowIcon: (props: ComponentPropsWithRef<typeof PrimitiveWorkflowIcon>) => JSX.Element;
2382
-
2383
2374
  declare interface EmbeddedChatPrimitiveWorkflowProps extends ComponentPropsWithRef<'button'> {
2384
2375
  workflow: Workflow;
2385
2376
  }
@@ -3756,8 +3747,6 @@ declare const PrimitiveSuccessMessage: ForwardRefExoticComponent< PolymorphicPro
3756
3747
 
3757
3748
  declare const PrimitiveToolbarHeader: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
3758
3749
 
3759
- declare const PrimitiveWorkflowIcon: ForwardRefExoticComponent< PolymorphicProps & Omit< IconBaseProps, "_id"> & Partial<Pick< IconBaseProps, "_id">>>;
3760
-
3761
3750
  declare const PrimitiveWrapper: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
3762
3751
 
3763
3752
  declare const ResultsList: ForwardRefExoticComponent< PolymorphicProps & Omit<TabsPrimitive.TabsContentProps & RefAttributes<HTMLDivElement>, "_id"> & Partial<Pick<TabsPrimitive.TabsContentProps & RefAttributes<HTMLDivElement>, "_id">>>;
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),t=require("react"),B=require("../atoms/api/analytics/events.cjs"),f=require("./config-provider.cjs"),b=require("./user-provider.cjs"),p=t.createContext(void 0),x=({children:e})=>{const{baseSettings:n,componentType:r}=f.useInkeepConfig(),{apiKey:i,analyticsApiBaseUrl:c,tags:a,privacyPreferences:E,env:m}=n,{userProperties:v}=b.useUser(),u=t.useMemo(()=>({widgetLibraryVersion:"0.5.73",componentType:r,tags:a}),[r,a]),d=!E.optOutAllAnalytics&&m!=="development",g={logEvent:t.useCallback(async s=>{const o={...u,...s.properties},l={eventName:s.eventName,properties:o,userProperties:v},P=["modal_opened","modal_closed"].includes(s.eventName);if(d&&!P){if("conversation"in o&&!o.conversation?.id)return;B.logEvent(l,i,c)}n.onEvent?.(l)},[d,n,i,c,v,u])};return y.jsx(p.Provider,{value:g,children:e})},q=()=>{const e=t.useContext(p);if(!e)throw new Error("useBaseEvents must be used within a BaseEventsProvider");return e};exports.BaseEventsProvider=x;exports.useBaseEvents=q;
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.76",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,43 +1,52 @@
1
1
  "use client";
2
- import { jsx as g } from "react/jsx-runtime";
3
- import { useMemo as y, useCallback as x, createContext as B, useContext as P } from "react";
4
- import { logEvent as C } from "../atoms/api/analytics/events.js";
5
- import { useInkeepConfig as b } from "./config-provider.js";
6
- import { useUser as w } from "./user-provider.js";
7
- const l = B(void 0), _ = ({ children: e }) => {
8
- const { baseSettings: t, componentType: s } = b(), { apiKey: r, analyticsApiBaseUrl: i, tags: a, privacyPreferences: u, env: d } = t, { userProperties: c } = w(), v = y(
2
+ import { jsx as y } from "react/jsx-runtime";
3
+ import { useMemo as P, useCallback as x, createContext as B, useContext as C } from "react";
4
+ import { logEvent as b } from "../atoms/api/analytics/events.js";
5
+ import { useInkeepConfig as w } from "./config-provider.js";
6
+ import { useUser as A } from "./user-provider.js";
7
+ const u = B(void 0), $ = ({ children: e }) => {
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.73",
10
+ widgetLibraryVersion: "0.5.76",
11
11
  componentType: s,
12
12
  tags: a
13
13
  }),
14
14
  [s, a]
15
- ), m = !u.optOutAllAnalytics && d !== "development", E = { logEvent: x(
15
+ ), m = !d.optOutAllAnalytics && E !== "development", f = { logEvent: x(
16
16
  async (o) => {
17
17
  const n = {
18
- ...v,
19
- ...o.properties
20
- }, p = {
18
+ ...p,
19
+ ...o.properties,
20
+ ...c
21
+ }, l = {
21
22
  eventName: o.eventName,
22
23
  properties: n,
23
- userProperties: c
24
- }, f = ["modal_opened", "modal_closed"].includes(o.eventName);
25
- if (m && !f) {
24
+ userProperties: v
25
+ }, g = ["modal_opened", "modal_closed"].includes(o.eventName);
26
+ if (m && !g) {
26
27
  if ("conversation" in n && !n.conversation?.id) return;
27
- C(p, r, i);
28
+ b(l, r, i);
28
29
  }
29
- t.onEvent?.(p);
30
+ t.onEvent?.(l);
30
31
  },
31
- [m, t, r, i, c, v]
32
+ [
33
+ m,
34
+ t,
35
+ r,
36
+ i,
37
+ v,
38
+ p,
39
+ c
40
+ ]
32
41
  ) };
33
- return /* @__PURE__ */ g(l.Provider, { value: E, children: e });
34
- }, $ = () => {
35
- const e = P(l);
42
+ return /* @__PURE__ */ y(u.Provider, { value: f, children: e });
43
+ }, j = () => {
44
+ const e = C(u);
36
45
  if (!e)
37
46
  throw new Error("useBaseEvents must be used within a BaseEventsProvider");
38
47
  return e;
39
48
  };
40
49
  export {
41
- _ as BaseEventsProvider,
42
- $ as useBaseEvents
50
+ $ as BaseEventsProvider,
51
+ j as useBaseEvents
43
52
  };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react/jsx-runtime"),e=require("react"),y=require("../atoms/api/analytics/conversation.cjs"),x=require("./config-provider.cjs"),w=require("./conversation-provider.cjs"),j=require("./user-provider.cjs"),k=require("./base-events-provider.cjs"),U=require("../utils/generate-uid.cjs"),g=e.createContext(void 0),A=({children:s})=>{const{baseSettings:f}=x.useInkeepConfig(),{apiKey:l,analyticsApiBaseUrl:C,tags:d,privacyPreferences:{optOutAllAnalytics:i},env:a}=f,{userProperties:E}=j.useUser(),{logEvent:p}=k.useBaseEvents(),{conversation:c,setConversation:P}=w.useInkeepConversation(),v=e.useRef(c);e.useEffect(()=>{v.current=c},[c]);const u=e.useCallback(async t=>{const n=v.current,o=!i&&a!=="development";let r=Object.assign({},n,{messages:t});if(o){const h=await y.logConversation(n.id,{messages:t,tags:d,userProperties:E},l,C);h&&(r=h)}else r.id="conv_"+U.generateUid(16);return r},[C,l,d,E,i,a]),b={logEvent:e.useCallback(async(t,n)=>{let o=v.current;n&&(o=await u(n),P(o));const r={...t,properties:{conversation:o,...t.properties}};p(r)},[p,u,i,a]),logConversation:u};return q.jsx(g.Provider,{value:b,children:s})},O=()=>{const s=e.useContext(g);if(!s)throw new Error("useChatEvents must be used within a ChatEventsProvider");return s};exports.ChatEventsProvider=A;exports.useChatEvents=O;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react/jsx-runtime"),e=require("react"),x=require("../atoms/api/analytics/conversation.cjs"),w=require("./config-provider.cjs"),j=require("./conversation-provider.cjs"),k=require("./user-provider.cjs"),U=require("./base-events-provider.cjs"),A=require("../utils/generate-uid.cjs"),P=e.createContext(void 0),O=({children:o})=>{const{baseSettings:f}=w.useInkeepConfig(),{apiKey:C,analyticsApiBaseUrl:d,tags:p,privacyPreferences:{optOutAllAnalytics:i},env:a,analyticsProperties:c}=f,{userProperties:E}=k.useUser(),{logEvent:h}=U.useBaseEvents(),{conversation:v,setConversation:y}=j.useInkeepConversation(),u=e.useRef(v);e.useEffect(()=>{u.current=v},[v]);const l=e.useCallback(async t=>{const n=u.current,r=!i&&a!=="development";let s=Object.assign({},n,{messages:t});if(r){const g=await x.logConversation(n.id,{messages:t,tags:p,userProperties:E,properties:c},C,d);g&&(s=g)}else s.id="conv_"+A.generateUid(16);return s},[d,C,p,E,i,a,c]),b={logEvent:e.useCallback(async(t,n)=>{let r=u.current;n&&(r=await l(n),y(r));const s={...t,properties:{conversation:r,...t.properties}};h(s)},[h,l,i,a,c]),logConversation:l};return q.jsx(P.Provider,{value:b,children:o})},R=()=>{const o=e.useContext(P);if(!o)throw new Error("useChatEvents must be used within a ChatEventsProvider");return o};exports.ChatEventsProvider=O;exports.useChatEvents=R;
@@ -1,49 +1,59 @@
1
1
  "use client";
2
- import { jsx as y } from "react/jsx-runtime";
3
- import { useRef as w, useEffect as P, useCallback as d, createContext as b, useContext as k } from "react";
4
- import { logConversation as A } from "../atoms/api/analytics/conversation.js";
5
- import { useInkeepConfig as U } from "./config-provider.js";
6
- import { useInkeepConversation as j } from "./conversation-provider.js";
7
- import { useUser as B } from "./user-provider.js";
8
- import { useBaseEvents as I } from "./base-events-provider.js";
9
- import { generateUid as O } from "../utils/generate-uid.js";
10
- const E = b(void 0), F = ({ children: r }) => {
11
- const { baseSettings: h } = U(), {
2
+ import { jsx as P } from "react/jsx-runtime";
3
+ import { useRef as w, useEffect as b, useCallback as E, createContext as k, useContext as A } from "react";
4
+ import { logConversation as U } from "../atoms/api/analytics/conversation.js";
5
+ import { useInkeepConfig as j } from "./config-provider.js";
6
+ import { useInkeepConversation as B } from "./conversation-provider.js";
7
+ import { useUser as I } from "./user-provider.js";
8
+ import { useBaseEvents as O } from "./base-events-provider.js";
9
+ import { generateUid as K } from "../utils/generate-uid.js";
10
+ const h = k(void 0), G = ({ children: r }) => {
11
+ const { baseSettings: g } = j(), {
12
12
  apiKey: u,
13
- analyticsApiBaseUrl: p,
14
- tags: l,
13
+ analyticsApiBaseUrl: l,
14
+ tags: C,
15
15
  privacyPreferences: { optOutAllAnalytics: s },
16
- env: i
17
- } = h, { userProperties: C } = B(), { logEvent: f } = I(), { conversation: a, setConversation: g } = j(), c = w(a);
18
- P(() => {
19
- c.current = a;
20
- }, [a]);
21
- const v = d(
16
+ env: i,
17
+ analyticsProperties: a
18
+ } = g, { userProperties: f } = I(), { logEvent: m } = O(), { conversation: c, setConversation: y } = B(), v = w(c);
19
+ b(() => {
20
+ v.current = c;
21
+ }, [c]);
22
+ const p = E(
22
23
  async (t) => {
23
- const e = c.current, n = !s && i !== "development";
24
+ const e = v.current, n = !s && i !== "development";
24
25
  let o = Object.assign({}, e, { messages: t });
25
26
  if (n) {
26
- const m = await A(
27
+ const d = await U(
27
28
  e.id,
28
29
  {
29
30
  messages: t,
30
- tags: l,
31
- userProperties: C
31
+ tags: C,
32
+ userProperties: f,
33
+ properties: a
32
34
  },
33
35
  u,
34
- p
36
+ l
35
37
  );
36
- m && (o = m);
38
+ d && (o = d);
37
39
  } else
38
- o.id = "conv_" + O(16);
40
+ o.id = "conv_" + K(16);
39
41
  return o;
40
42
  },
41
- [p, u, l, C, s, i]
43
+ [
44
+ l,
45
+ u,
46
+ C,
47
+ f,
48
+ s,
49
+ i,
50
+ a
51
+ ]
42
52
  ), x = {
43
- logEvent: d(
53
+ logEvent: E(
44
54
  async (t, e) => {
45
- let n = c.current;
46
- e && (n = await v(e), g(n));
55
+ let n = v.current;
56
+ e && (n = await p(e), y(n));
47
57
  const o = {
48
58
  ...t,
49
59
  properties: {
@@ -51,20 +61,20 @@ const E = b(void 0), F = ({ children: r }) => {
51
61
  ...t.properties
52
62
  }
53
63
  };
54
- f(o);
64
+ m(o);
55
65
  },
56
- [f, v, s, i]
66
+ [m, p, s, i, a]
57
67
  ),
58
- logConversation: v
68
+ logConversation: p
59
69
  };
60
- return /* @__PURE__ */ y(E.Provider, { value: x, children: r });
61
- }, G = () => {
62
- const r = k(E);
70
+ return /* @__PURE__ */ P(h.Provider, { value: x, children: r });
71
+ }, H = () => {
72
+ const r = A(h);
63
73
  if (!r)
64
74
  throw new Error("useChatEvents must be used within a ChatEventsProvider");
65
75
  return r;
66
76
  };
67
77
  export {
68
- F as ChatEventsProvider,
69
- G as useChatEvents
78
+ G as ChatEventsProvider,
79
+ H as useChatEvents
70
80
  };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react/jsx-runtime"),n=require("react"),_=require("../atoms/api/analytics/feedback.cjs"),M=require("../components/embedded-chat/chat-provider.cjs"),l=require("../utils/misc.cjs"),S=require("./config-provider.cjs"),E=require("./conversation-provider.cjs"),j=require("./chat-events-provider.cjs"),I=require("./user-provider.cjs"),f=n.createContext(void 0);function R(){const{baseSettings:e}=S.useInkeepConfig(),{apiKey:s,analyticsApiBaseUrl:o}=e,[b,g]=n.useState(null),[F,p]=n.useState({}),{conversation:k}=E.useInkeepConversation(),{messages:c,selectedWorkflow:C}=M.useChat(),{userProperties:P}=I.useUser(),{logEvent:m}=j.useChatEvents(),r=n.useCallback(async(t,i,a=[])=>{const u=await _.submitFeedback({type:i,messageId:t,reasons:a,apiKey:s,apiUrl:o,userProperties:P});u&&p(d=>({...d,[t]:{type:u.type,reasons:u.reasons}}));const v=c.findIndex(d=>d.id===t),y=c[v],w={conversationId:k.id,question:l.getMessageContent(c[v-1]),answer:l.getMessageContent(y),messageId:t,reasons:a,workflowId:C?.id};m({eventName:i==="positive"?"assistant_positive_feedback_submitted":"assistant_negative_feedback_submitted",properties:w})},[c,k]),h=n.useCallback(async t=>{r(t,"positive")},[r]),q=n.useCallback(async(t,i)=>{const a=$(i);r(t,"negative",a)},[r]);return{feedback:F,currentFeedback:b,setCurrentFeedback:g,submitPositiveFeedback:h,submitNegativeFeedback:q}}const U=({children:e})=>{const s=R();return x.jsx(f.Provider,{value:s,children:e})},N=()=>{const e=n.useContext(f);if(!e)throw new Error("useFeedback must be used within a FeedbackProvider");return e};function $(e){const s=[];for(const o in e)e[o]==="on"&&s.push({label:o,details:e[`${o}:description`]||""});return s.length>0?s:[]}exports.FeedbackProvider=U;exports.useMessageFeedback=N;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react/jsx-runtime"),n=require("react"),M=require("../atoms/api/analytics/feedback.cjs"),S=require("../components/embedded-chat/chat-provider.cjs"),l=require("../utils/misc.cjs"),E=require("./config-provider.cjs"),j=require("./conversation-provider.cjs"),I=require("./chat-events-provider.cjs"),R=require("./user-provider.cjs"),f=n.createContext(void 0);function U(){const{baseSettings:e}=E.useInkeepConfig(),{apiKey:s,analyticsApiBaseUrl:o,analyticsProperties:b}=e,[g,p]=n.useState(null),[F,P]=n.useState({}),{conversation:k}=j.useInkeepConversation(),{messages:r,selectedWorkflow:C}=S.useChat(),{userProperties:m}=R.useUser(),{logEvent:h}=I.useChatEvents(),c=n.useCallback(async(t,i,a=[])=>{const u=await M.submitFeedback({type:i,messageId:t,reasons:a,apiKey:s,apiUrl:o,userProperties:m,properties:b});u&&P(d=>({...d,[t]:{type:u.type,reasons:u.reasons}}));const v=r.findIndex(d=>d.id===t),w=r[v],x={conversationId:k.id,question:l.getMessageContent(r[v-1]),answer:l.getMessageContent(w),messageId:t,reasons:a,workflowId:C?.id};h({eventName:i==="positive"?"assistant_positive_feedback_submitted":"assistant_negative_feedback_submitted",properties:x})},[r,k]),q=n.useCallback(async t=>{c(t,"positive")},[c]),y=n.useCallback(async(t,i)=>{const a=A(i);c(t,"negative",a)},[c]);return{feedback:F,currentFeedback:g,setCurrentFeedback:p,submitPositiveFeedback:q,submitNegativeFeedback:y}}const N=({children:e})=>{const s=U();return _.jsx(f.Provider,{value:s,children:e})},$=()=>{const e=n.useContext(f);if(!e)throw new Error("useFeedback must be used within a FeedbackProvider");return e};function A(e){const s=[];for(const o in e)e[o]==="on"&&s.push({label:o,details:e[`${o}:description`]||""});return s.length>0?s:[]}exports.FeedbackProvider=N;exports.useMessageFeedback=$;
@@ -1,40 +1,41 @@
1
1
  "use client";
2
- import { jsx as E } from "react/jsx-runtime";
3
- import { createContext as I, useContext as U, useState as p, useCallback as u } from "react";
4
- import { submitFeedback as M } from "../atoms/api/analytics/feedback.js";
5
- import { useChat as N } from "../components/embedded-chat/chat-provider.js";
2
+ import { jsx as I } from "react/jsx-runtime";
3
+ import { createContext as U, useContext as M, useState as k, useCallback as u } from "react";
4
+ import { submitFeedback as N } from "../atoms/api/analytics/feedback.js";
5
+ import { useChat as S } from "../components/embedded-chat/chat-provider.js";
6
6
  import { getMessageContent as f } from "../utils/misc.js";
7
- import { useInkeepConfig as S } from "./config-provider.js";
8
- import { useInkeepConversation as j } from "./conversation-provider.js";
9
- import { useChatEvents as q } from "./chat-events-provider.js";
10
- import { useUser as A } from "./user-provider.js";
11
- const v = I(void 0);
12
- function B() {
13
- const { baseSettings: e } = S(), { apiKey: s, analyticsApiBaseUrl: o } = e, [b, l] = p(null), [F, g] = p({}), { conversation: m } = j(), { messages: n, selectedWorkflow: C } = N(), { userProperties: h } = A(), { logEvent: w } = q(), r = u(
7
+ import { useInkeepConfig as j } from "./config-provider.js";
8
+ import { useInkeepConversation as q } from "./conversation-provider.js";
9
+ import { useChatEvents as A } from "./chat-events-provider.js";
10
+ import { useUser as B } from "./user-provider.js";
11
+ const v = U(void 0);
12
+ function K() {
13
+ const { baseSettings: e } = j(), { apiKey: s, analyticsApiBaseUrl: o, analyticsProperties: b } = e, [l, F] = k(null), [g, C] = k({}), { conversation: m } = q(), { messages: n, selectedWorkflow: h } = S(), { userProperties: w } = B(), { logEvent: y } = A(), r = u(
14
14
  async (t, i, c = []) => {
15
- const a = await M({
15
+ const a = await N({
16
16
  type: i,
17
17
  messageId: t,
18
18
  reasons: c,
19
19
  apiKey: s,
20
20
  apiUrl: o,
21
- userProperties: h
21
+ userProperties: w,
22
+ properties: b
22
23
  });
23
- a && g((d) => ({
24
+ a && C((d) => ({
24
25
  ...d,
25
26
  [t]: { type: a.type, reasons: a.reasons }
26
27
  }));
27
- const k = n.findIndex((d) => d.id === t), P = n[k], _ = {
28
+ const p = n.findIndex((d) => d.id === t), _ = n[p], E = {
28
29
  conversationId: m.id,
29
- question: f(n[k - 1]),
30
- answer: f(P),
30
+ question: f(n[p - 1]),
31
+ answer: f(_),
31
32
  messageId: t,
32
33
  reasons: c,
33
- workflowId: C?.id
34
+ workflowId: h?.id
34
35
  };
35
- w({
36
+ y({
36
37
  eventName: i === "positive" ? "assistant_positive_feedback_submitted" : "assistant_negative_feedback_submitted",
37
- properties: _
38
+ properties: E
38
39
  });
39
40
  },
40
41
  [n, m]
@@ -43,31 +44,31 @@ function B() {
43
44
  r(t, "positive");
44
45
  },
45
46
  [r]
46
- ), y = u(
47
+ ), P = u(
47
48
  async (t, i) => {
48
- const c = K(i);
49
+ const c = R(i);
49
50
  r(t, "negative", c);
50
51
  },
51
52
  [r]
52
53
  );
53
54
  return {
54
- feedback: F,
55
- currentFeedback: b,
56
- setCurrentFeedback: l,
55
+ feedback: g,
56
+ currentFeedback: l,
57
+ setCurrentFeedback: F,
57
58
  submitPositiveFeedback: x,
58
- submitNegativeFeedback: y
59
+ submitNegativeFeedback: P
59
60
  };
60
61
  }
61
- const O = ({ children: e }) => {
62
- const s = B();
63
- return /* @__PURE__ */ E(v.Provider, { value: s, children: e });
64
- }, Q = () => {
65
- const e = U(v);
62
+ const Q = ({ children: e }) => {
63
+ const s = K();
64
+ return /* @__PURE__ */ I(v.Provider, { value: s, children: e });
65
+ }, T = () => {
66
+ const e = M(v);
66
67
  if (!e)
67
68
  throw new Error("useFeedback must be used within a FeedbackProvider");
68
69
  return e;
69
70
  };
70
- function K(e) {
71
+ function R(e) {
71
72
  const s = [];
72
73
  for (const o in e)
73
74
  e[o] === "on" && s.push({
@@ -77,6 +78,6 @@ function K(e) {
77
78
  return s.length > 0 ? s : [];
78
79
  }
79
80
  export {
80
- O as FeedbackProvider,
81
- Q as useMessageFeedback
81
+ Q as FeedbackProvider,
82
+ T as useMessageFeedback
82
83
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/cxkit-primitives",
3
- "version": "0.5.73",
3
+ "version": "0.5.76",
4
4
  "description": "",
5
5
  "license": "Inkeep, Inc. Customer License (IICL) v1.1",
6
6
  "homepage": "",
@@ -46,12 +46,12 @@
46
46
  "aria-hidden": "^1.2.4",
47
47
  "dequal": "^2.0.3",
48
48
  "humps": "2.0.1",
49
+ "lucide-react": "^0.503.0",
49
50
  "marked": "^15.0.9",
50
51
  "merge-anything": "5.1.7",
51
52
  "openai": "4.78.1",
52
53
  "prism-react-renderer": "2.4.1",
53
54
  "react-hook-form": "7.54.2",
54
- "react-icons": "5.4.0",
55
55
  "react-markdown": "9.0.3",
56
56
  "react-remove-scroll": "^2.6.3",
57
57
  "react-svg": "16.3.0",
@@ -60,9 +60,9 @@
60
60
  "remark-gfm": "^4.0.1",
61
61
  "unist-util-visit": "^5.0.0",
62
62
  "use-sync-external-store": "^1.4.0",
63
- "@inkeep/cxkit-color-mode": "0.5.73",
64
- "@inkeep/cxkit-theme": "0.5.73",
65
- "@inkeep/cxkit-types": "0.5.73"
63
+ "@inkeep/cxkit-color-mode": "0.5.76",
64
+ "@inkeep/cxkit-theme": "0.5.76",
65
+ "@inkeep/cxkit-types": "0.5.76"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@biomejs/biome": "1.9.4",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../lib/iconBase.cjs");require("../lib/iconContext.cjs");function l(c){return t.GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M0 256C0 209.4 12.47 165.6 34.27 127.1L144.1 318.3C166 357.5 207.9 384 256 384C270.3 384 283.1 381.7 296.8 377.4L220.5 509.6C95.9 492.3 0 385.3 0 256zM365.1 321.6C377.4 302.4 384 279.1 384 256C384 217.8 367.2 183.5 340.7 160H493.4C505.4 189.6 512 222.1 512 256C512 397.4 397.4 511.1 256 512L365.1 321.6zM477.8 128H256C193.1 128 142.3 172.1 130.5 230.7L54.19 98.47C101 38.53 174 0 256 0C350.8 0 433.5 51.48 477.8 128V128zM168 256C168 207.4 207.4 168 256 168C304.6 168 344 207.4 344 256C344 304.6 304.6 344 256 344C207.4 344 168 304.6 168 256z"},child:[]}]})(c)}function a(c){return t.GenIcon({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"},child:[]}]})(c)}function n(c){return t.GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M225.9 32C103.3 32 0 130.5 0 252.1 0 256 .1 480 .1 480l225.8-.2c122.7 0 222.1-102.3 222.1-223.9C448 134.3 348.6 32 225.9 32zM224 384c-19.4 0-37.9-4.3-54.4-12.1L88.5 392l22.9-75c-9.8-18.1-15.4-38.9-15.4-61 0-70.7 57.3-128 128-128s128 57.3 128 128-57.3 128-128 128z"},child:[]}]})(c)}function e(c){return t.GenIcon({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},child:[]}]})(c)}function r(c){return t.GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M94.12 315.1c0 25.9-21.16 47.06-47.06 47.06S0 341 0 315.1c0-25.9 21.16-47.06 47.06-47.06h47.06v47.06zm23.72 0c0-25.9 21.16-47.06 47.06-47.06s47.06 21.16 47.06 47.06v117.84c0 25.9-21.16 47.06-47.06 47.06s-47.06-21.16-47.06-47.06V315.1zm47.06-188.98c-25.9 0-47.06-21.16-47.06-47.06S139 32 164.9 32s47.06 21.16 47.06 47.06v47.06H164.9zm0 23.72c25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06H47.06C21.16 243.96 0 222.8 0 196.9s21.16-47.06 47.06-47.06H164.9zm188.98 47.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06h-47.06V196.9zm-23.72 0c0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06V79.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06V196.9zM283.1 385.88c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06v-47.06h47.06zm0-23.72c-25.9 0-47.06-21.16-47.06-47.06 0-25.9 21.16-47.06 47.06-47.06h117.84c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06H283.1z"},child:[]}]})(c)}function i(c){return t.GenIcon({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M290.7 311L95 269.7 86.8 309l195.7 41zm51-87L188.2 95.7l-25.5 30.8 153.5 128.3zm-31.2 39.7L129.2 179l-16.7 36.5L293.7 300zM262 32l-32 24 119.3 160.3 32-24zm20.5 328h-200v39.7h200zm39.7 80H42.7V320h-40v160h359.5V320h-40z"},child:[]}]})(c)}function o(c){return t.GenIcon({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M248,8C111.033,8,0,119.033,0,256S111.033,504,248,504,496,392.967,496,256,384.967,8,248,8ZM362.952,176.66c-3.732,39.215-19.881,134.378-28.1,178.3-3.476,18.584-10.322,24.816-16.948,25.425-14.4,1.326-25.338-9.517-39.287-18.661-21.827-14.308-34.158-23.215-55.346-37.177-24.485-16.135-8.612-25,5.342-39.5,3.652-3.793,67.107-61.51,68.335-66.746.153-.655.3-3.1-1.154-4.384s-3.59-.849-5.135-.5q-3.283.746-104.608,69.142-14.845,10.194-26.894,9.934c-8.855-.191-25.888-5.006-38.551-9.123-15.531-5.048-27.875-7.717-26.8-16.291q.84-6.7,18.45-13.7,108.446-47.248,144.628-62.3c68.872-28.647,83.183-33.623,92.511-33.789,2.052-.034,6.639.474,9.61,2.885a10.452,10.452,0,0,1,3.53,6.716A43.765,43.765,0,0,1,362.952,176.66Z"},child:[]}]})(c)}function h(c){return t.GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M192 32c0 17.7 14.3 32 32 32c123.7 0 224 100.3 224 224c0 17.7 14.3 32 32 32s32-14.3 32-32C512 128.9 383.1 0 224 0c-17.7 0-32 14.3-32 32zm0 96c0 17.7 14.3 32 32 32c70.7 0 128 57.3 128 128c0 17.7 14.3 32 32 32s32-14.3 32-32c0-106-86-192-192-192c-17.7 0-32 14.3-32 32zM96 144c0-26.5-21.5-48-48-48S0 117.5 0 144L0 368c0 79.5 64.5 144 144 144s144-64.5 144-144s-64.5-144-144-144l-16 0 0 96 16 0c26.5 0 48 21.5 48 48s-21.5 48-48 48s-48-21.5-48-48l0-224z"},child:[]}]})(c)}function z(c){return t.GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M96 0C43 0 0 43 0 96L0 416c0 53 43 96 96 96l288 0 32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-64c17.7 0 32-14.3 32-32l0-320c0-17.7-14.3-32-32-32L384 0 96 0zm0 384l256 0 0 64L96 448c-17.7 0-32-14.3-32-32s14.3-32 32-32zm32-240c0-8.8 7.2-16 16-16l192 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-192 0c-8.8 0-16-7.2-16-16zm16 48l192 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-192 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"},child:[]}]})(c)}function d(c){return t.GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M184 48l144 0c4.4 0 8 3.6 8 8l0 40L176 96l0-40c0-4.4 3.6-8 8-8zm-56 8l0 40L64 96C28.7 96 0 124.7 0 160l0 96 192 0 128 0 192 0 0-96c0-35.3-28.7-64-64-64l-64 0 0-40c0-30.9-25.1-56-56-56L184 0c-30.9 0-56 25.1-56 56zM512 288l-192 0 0 32c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32l0-32L0 288 0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-128z"},child:[]}]})(c)}function s(c){return t.GenIcon({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"},child:[]}]})(c)}function L(c){return t.GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"},child:[]}]})(c)}function u(c){return t.GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 80l0 48c0 44.2-100.3 80-224 80S0 172.2 0 128L0 80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6L448 288c0 44.2-100.3 80-224 80S0 332.2 0 288L0 186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6l0 85.9c0 44.2-100.3 80-224 80S0 476.2 0 432l0-85.9z"},child:[]}]})(c)}function F(c){return t.GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"},child:[]}]})(c)}function M(c){return t.GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z"},child:[]}]})(c)}function C(c){return t.GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"},child:[]}]})(c)}function m(c){return t.GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"},child:[]}]})(c)}function v(c){return t.GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"},child:[]}]})(c)}function g(c){return t.GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z"},child:[]}]})(c)}function f(c){return t.GenIcon({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M137.4 41.4c12.5-12.5 32.8-12.5 45.3 0l128 128c9.2 9.2 11.9 22.9 6.9 34.9s-16.6 19.8-29.6 19.8L32 224c-12.9 0-24.6-7.8-29.6-19.8s-2.2-25.7 6.9-34.9l128-128zm0 429.3l-128-128c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8l256 0c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-128 128c-12.5 12.5-32.8 12.5-45.3 0z"},child:[]}]})(c)}function B(c){return t.GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 256l0-96 160 0 0 96L64 256zm0 64l160 0 0 96L64 416l0-96zm224 96l0-96 160 0 0 96-160 0zM448 256l-160 0 0-96 160 0 0 96zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32z"},child:[]}]})(c)}function p(c){return t.GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 464l48 0 0 48-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 304l-48 0 0-144-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z"},child:[]}]})(c)}exports.FaBlog=h;exports.FaBook=z;exports.FaBriefcase=d;exports.FaChevronRight=s;exports.FaChevronUp=L;exports.FaChrome=l;exports.FaDatabase=u;exports.FaDiscord=a;exports.FaDiscourse=n;exports.FaEnvelope=F;exports.FaFilePdf=M;exports.FaGithub=e;exports.FaMagnifyingGlass=C;exports.FaPenToSquare=m;exports.FaPencil=v;exports.FaPhone=g;exports.FaRegFilePdf=p;exports.FaSlack=r;exports.FaSort=f;exports.FaStackOverflow=i;exports.FaTable=B;exports.FaTelegram=o;