@inkeep/cxkit-primitives 0.5.15 → 0.5.17

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 (237) hide show
  1. package/dist/components/embedded-search/use-inkeep-search.cjs +1 -1
  2. package/dist/components/embedded-search/use-inkeep-search.js +77 -76
  3. package/dist/index.d.cts +3695 -11
  4. package/dist/index.d.ts +3695 -11
  5. package/dist/providers/base-events-provider.cjs +1 -1
  6. package/dist/providers/base-events-provider.js +1 -1
  7. package/package.json +4 -4
  8. package/dist/atoms/api/analytics/conversation.d.cts +0 -3
  9. package/dist/atoms/api/analytics/conversation.d.ts +0 -3
  10. package/dist/atoms/api/analytics/events.d.cts +0 -2
  11. package/dist/atoms/api/analytics/events.d.ts +0 -2
  12. package/dist/atoms/api/analytics/feedback.d.cts +0 -11
  13. package/dist/atoms/api/analytics/feedback.d.ts +0 -11
  14. package/dist/atoms/avatars/ai.d.cts +0 -3
  15. package/dist/atoms/avatars/ai.d.ts +0 -3
  16. package/dist/atoms/avatars/user.d.cts +0 -3
  17. package/dist/atoms/avatars/user.d.ts +0 -3
  18. package/dist/atoms/cmdk/command-score.d.cts +0 -1
  19. package/dist/atoms/cmdk/command-score.d.ts +0 -1
  20. package/dist/atoms/cmdk/index.d.cts +0 -426
  21. package/dist/atoms/cmdk/index.d.ts +0 -426
  22. package/dist/atoms/codeblock/index.d.cts +0 -10
  23. package/dist/atoms/codeblock/index.d.ts +0 -10
  24. package/dist/atoms/custom-styles.d.cts +0 -5
  25. package/dist/atoms/custom-styles.d.ts +0 -5
  26. package/dist/atoms/dialog.d.cts +0 -95
  27. package/dist/atoms/dialog.d.ts +0 -95
  28. package/dist/atoms/icons/built-in-icon-renderer.d.cts +0 -6
  29. package/dist/atoms/icons/built-in-icon-renderer.d.ts +0 -6
  30. package/dist/atoms/icons/built-in-icons.d.cts +0 -72
  31. package/dist/atoms/icons/built-in-icons.d.ts +0 -72
  32. package/dist/atoms/icons/checkbox-icon.d.cts +0 -1
  33. package/dist/atoms/icons/checkbox-icon.d.ts +0 -1
  34. package/dist/atoms/icons/custom-icon.d.cts +0 -6
  35. package/dist/atoms/icons/custom-icon.d.ts +0 -6
  36. package/dist/atoms/icons/index.d.cts +0 -2
  37. package/dist/atoms/icons/index.d.ts +0 -2
  38. package/dist/atoms/icons/inkeep-default-icons.d.cts +0 -2
  39. package/dist/atoms/icons/inkeep-default-icons.d.ts +0 -2
  40. package/dist/atoms/link.d.cts +0 -14
  41. package/dist/atoms/link.d.ts +0 -14
  42. package/dist/atoms/markdown/components.d.cts +0 -27
  43. package/dist/atoms/markdown/components.d.ts +0 -27
  44. package/dist/atoms/markdown/index.d.cts +0 -15
  45. package/dist/atoms/markdown/index.d.ts +0 -15
  46. package/dist/atoms/markdown/rehype-inline-code-property.d.cts +0 -1
  47. package/dist/atoms/markdown/rehype-inline-code-property.d.ts +0 -1
  48. package/dist/atoms/portal-with-theme.d.cts +0 -2
  49. package/dist/atoms/portal-with-theme.d.ts +0 -2
  50. package/dist/atoms/portal.d.cts +0 -8
  51. package/dist/atoms/portal.d.ts +0 -8
  52. package/dist/atoms/shadow/context.d.cts +0 -14
  53. package/dist/atoms/shadow/context.d.ts +0 -14
  54. package/dist/atoms/shadow/create.d.cts +0 -8
  55. package/dist/atoms/shadow/create.d.ts +0 -8
  56. package/dist/atoms/shadow/index.d.cts +0 -1
  57. package/dist/atoms/shadow/index.d.ts +0 -1
  58. package/dist/atoms/shadow/root.d.cts +0 -5
  59. package/dist/atoms/shadow/root.d.ts +0 -5
  60. package/dist/atoms/shadow/use-ensured-forwarded-ref.d.cts +0 -2
  61. package/dist/atoms/shadow/use-ensured-forwarded-ref.d.ts +0 -2
  62. package/dist/atoms/shadow/utils.d.cts +0 -9
  63. package/dist/atoms/shadow/utils.d.ts +0 -9
  64. package/dist/components/chat-button.d.cts +0 -18
  65. package/dist/components/chat-button.d.ts +0 -18
  66. package/dist/components/embedded-chat/chat-provider.d.cts +0 -19
  67. package/dist/components/embedded-chat/chat-provider.d.ts +0 -19
  68. package/dist/components/embedded-chat/use-captcha.d.cts +0 -13
  69. package/dist/components/embedded-chat/use-captcha.d.ts +0 -13
  70. package/dist/components/embedded-chat/use-chat-action.d.cts +0 -9
  71. package/dist/components/embedded-chat/use-chat-action.d.ts +0 -9
  72. package/dist/components/embedded-chat/use-inkeep-chat.d.cts +0 -25
  73. package/dist/components/embedded-chat/use-inkeep-chat.d.ts +0 -25
  74. package/dist/components/embedded-chat.d.cts +0 -416
  75. package/dist/components/embedded-chat.d.ts +0 -416
  76. package/dist/components/embedded-search/search-provider.d.cts +0 -21
  77. package/dist/components/embedded-search/search-provider.d.ts +0 -21
  78. package/dist/components/embedded-search/transform-results.d.cts +0 -3
  79. package/dist/components/embedded-search/transform-results.d.ts +0 -3
  80. package/dist/components/embedded-search/use-inkeep-search.d.cts +0 -21
  81. package/dist/components/embedded-search/use-inkeep-search.d.ts +0 -21
  82. package/dist/components/embedded-search.d.cts +0 -216
  83. package/dist/components/embedded-search.d.ts +0 -216
  84. package/dist/components/factory.d.cts +0 -19
  85. package/dist/components/factory.d.ts +0 -19
  86. package/dist/components/index.d.cts +0 -11
  87. package/dist/components/index.d.ts +0 -11
  88. package/dist/components/intelligent-form/actions/context-model-response.d.cts +0 -10
  89. package/dist/components/intelligent-form/actions/context-model-response.d.ts +0 -10
  90. package/dist/components/intelligent-form/actions/escalation-schema.d.cts +0 -2
  91. package/dist/components/intelligent-form/actions/escalation-schema.d.ts +0 -2
  92. package/dist/components/intelligent-form/actions/qa-model-messages.d.cts +0 -2
  93. package/dist/components/intelligent-form/actions/qa-model-messages.d.ts +0 -2
  94. package/dist/components/intelligent-form/actions/qa-model-response.d.cts +0 -14
  95. package/dist/components/intelligent-form/actions/qa-model-response.d.ts +0 -14
  96. package/dist/components/intelligent-form/intelligent-form-provider.d.cts +0 -29
  97. package/dist/components/intelligent-form/intelligent-form-provider.d.ts +0 -29
  98. package/dist/components/intelligent-form/use-inkeep-intelligent-form.d.cts +0 -30
  99. package/dist/components/intelligent-form/use-inkeep-intelligent-form.d.ts +0 -30
  100. package/dist/components/intelligent-form.d.cts +0 -136
  101. package/dist/components/intelligent-form.d.ts +0 -136
  102. package/dist/components/modal/modal-provider.d.cts +0 -13
  103. package/dist/components/modal/modal-provider.d.ts +0 -13
  104. package/dist/components/modal/use-inkeep-modal.d.cts +0 -8
  105. package/dist/components/modal/use-inkeep-modal.d.ts +0 -8
  106. package/dist/components/modal.d.cts +0 -18
  107. package/dist/components/modal.d.ts +0 -18
  108. package/dist/components/searchbar.d.cts +0 -23
  109. package/dist/components/searchbar.d.ts +0 -23
  110. package/dist/components/tagline-logo-icon.d.cts +0 -1
  111. package/dist/components/tagline-logo-icon.d.ts +0 -1
  112. package/dist/hooks/index.d.cts +0 -12
  113. package/dist/hooks/index.d.ts +0 -12
  114. package/dist/hooks/use-boolean.d.cts +0 -10
  115. package/dist/hooks/use-boolean.d.ts +0 -10
  116. package/dist/hooks/use-browser-storage.d.cts +0 -17
  117. package/dist/hooks/use-browser-storage.d.ts +0 -17
  118. package/dist/hooks/use-component-classnames.d.cts +0 -6
  119. package/dist/hooks/use-component-classnames.d.ts +0 -6
  120. package/dist/hooks/use-container-size.d.cts +0 -5
  121. package/dist/hooks/use-container-size.d.ts +0 -5
  122. package/dist/hooks/use-copy-to-clipboard.d.cts +0 -3
  123. package/dist/hooks/use-copy-to-clipboard.d.ts +0 -3
  124. package/dist/hooks/use-instant-update.d.cts +0 -17
  125. package/dist/hooks/use-instant-update.d.ts +0 -17
  126. package/dist/hooks/use-is-mounted.d.cts +0 -1
  127. package/dist/hooks/use-is-mounted.d.ts +0 -1
  128. package/dist/hooks/use-media-query.d.cts +0 -1
  129. package/dist/hooks/use-media-query.d.ts +0 -1
  130. package/dist/hooks/use-resize-observer.d.cts +0 -12
  131. package/dist/hooks/use-resize-observer.d.ts +0 -12
  132. package/dist/hooks/use-scroll-to-bottom.d.cts +0 -13
  133. package/dist/hooks/use-scroll-to-bottom.d.ts +0 -13
  134. package/dist/hooks/use-scrolling-fades.d.cts +0 -2
  135. package/dist/hooks/use-scrolling-fades.d.ts +0 -2
  136. package/dist/hooks/use-settle-action.d.cts +0 -3
  137. package/dist/hooks/use-settle-action.d.ts +0 -3
  138. package/dist/providers/attachment-item-provider.d.cts +0 -9
  139. package/dist/providers/attachment-item-provider.d.ts +0 -9
  140. package/dist/providers/attachments-bar-provider.d.cts +0 -30
  141. package/dist/providers/attachments-bar-provider.d.ts +0 -30
  142. package/dist/providers/base-events-provider.d.cts +0 -8
  143. package/dist/providers/base-events-provider.d.ts +0 -8
  144. package/dist/providers/chat-events-provider.d.cts +0 -20
  145. package/dist/providers/chat-events-provider.d.ts +0 -20
  146. package/dist/providers/chat-form-provider.d.cts +0 -23
  147. package/dist/providers/chat-form-provider.d.ts +0 -23
  148. package/dist/providers/config-provider.d.cts +0 -24
  149. package/dist/providers/config-provider.d.ts +0 -24
  150. package/dist/providers/conversation-provider.d.cts +0 -12
  151. package/dist/providers/conversation-provider.d.ts +0 -12
  152. package/dist/providers/feedback-item-provider.d.cts +0 -10
  153. package/dist/providers/feedback-item-provider.d.ts +0 -10
  154. package/dist/providers/feedback-provider.d.cts +0 -19
  155. package/dist/providers/feedback-provider.d.ts +0 -19
  156. package/dist/providers/form-field-provider.d.cts +0 -15
  157. package/dist/providers/form-field-provider.d.ts +0 -15
  158. package/dist/providers/help-menu-provider.d.cts +0 -11
  159. package/dist/providers/help-menu-provider.d.ts +0 -11
  160. package/dist/providers/index.d.cts +0 -19
  161. package/dist/providers/index.d.ts +0 -19
  162. package/dist/providers/intelligent-form-field-provider.d.cts +0 -15
  163. package/dist/providers/intelligent-form-field-provider.d.ts +0 -15
  164. package/dist/providers/markdown-provider.d.cts +0 -9
  165. package/dist/providers/markdown-provider.d.ts +0 -9
  166. package/dist/providers/message-attachments-provider.d.cts +0 -13
  167. package/dist/providers/message-attachments-provider.d.ts +0 -13
  168. package/dist/providers/message-provider.d.cts +0 -10
  169. package/dist/providers/message-provider.d.ts +0 -10
  170. package/dist/providers/root-provider.d.cts +0 -8
  171. package/dist/providers/root-provider.d.ts +0 -8
  172. package/dist/providers/search-events-provider.d.cts +0 -11
  173. package/dist/providers/search-events-provider.d.ts +0 -11
  174. package/dist/providers/source-item-provider.d.cts +0 -12
  175. package/dist/providers/source-item-provider.d.ts +0 -12
  176. package/dist/providers/theme-provider.d.cts +0 -3
  177. package/dist/providers/theme-provider.d.ts +0 -3
  178. package/dist/providers/user-provider.d.cts +0 -13
  179. package/dist/providers/user-provider.d.ts +0 -13
  180. package/dist/providers/widget-provider.d.cts +0 -9
  181. package/dist/providers/widget-provider.d.ts +0 -9
  182. package/dist/utils/component-ids.d.cts +0 -632
  183. package/dist/utils/component-ids.d.ts +0 -632
  184. package/dist/utils/compose-event-handlers.d.cts +0 -3
  185. package/dist/utils/compose-event-handlers.d.ts +0 -3
  186. package/dist/utils/compose-refs.d.cts +0 -5
  187. package/dist/utils/compose-refs.d.ts +0 -5
  188. package/dist/utils/default-settings.d.cts +0 -249
  189. package/dist/utils/default-settings.d.ts +0 -249
  190. package/dist/utils/form.d.cts +0 -3
  191. package/dist/utils/form.d.ts +0 -3
  192. package/dist/utils/generate-uid.d.cts +0 -2
  193. package/dist/utils/generate-uid.d.ts +0 -2
  194. package/dist/utils/get-message-metadata.d.cts +0 -8
  195. package/dist/utils/get-message-metadata.d.ts +0 -8
  196. package/dist/utils/graphql-client.d.cts +0 -8
  197. package/dist/utils/graphql-client.d.ts +0 -8
  198. package/dist/utils/highlight-emphasis.d.cts +0 -4
  199. package/dist/utils/highlight-emphasis.d.ts +0 -4
  200. package/dist/utils/merge-props.d.cts +0 -7
  201. package/dist/utils/merge-props.d.ts +0 -7
  202. package/dist/utils/misc.d.cts +0 -13
  203. package/dist/utils/misc.d.ts +0 -13
  204. package/dist/utils/reset-query-params.d.cts +0 -1
  205. package/dist/utils/reset-query-params.d.ts +0 -1
  206. package/dist/utils/tools/links-schema.d.cts +0 -64
  207. package/dist/utils/tools/links-schema.d.ts +0 -64
  208. package/dist/utils/transform-source/breadcrumbs.d.cts +0 -2
  209. package/dist/utils/transform-source/breadcrumbs.d.ts +0 -2
  210. package/dist/utils/transform-source/common-words/long.d.cts +0 -1
  211. package/dist/utils/transform-source/common-words/long.d.ts +0 -1
  212. package/dist/utils/transform-source/common-words/lowercase.d.cts +0 -1
  213. package/dist/utils/transform-source/common-words/lowercase.d.ts +0 -1
  214. package/dist/utils/transform-source/common-words/short.d.cts +0 -1
  215. package/dist/utils/transform-source/common-words/short.d.ts +0 -1
  216. package/dist/utils/transform-source/description.d.cts +0 -2
  217. package/dist/utils/transform-source/description.d.ts +0 -2
  218. package/dist/utils/transform-source/icon.d.cts +0 -2
  219. package/dist/utils/transform-source/icon.d.ts +0 -2
  220. package/dist/utils/transform-source/tabs.d.cts +0 -2
  221. package/dist/utils/transform-source/tabs.d.ts +0 -2
  222. package/dist/utils/transform-source/title.d.cts +0 -2
  223. package/dist/utils/transform-source/title.d.ts +0 -2
  224. package/dist/utils/transform-source/utils/description-without-title.d.cts +0 -11
  225. package/dist/utils/transform-source/utils/description-without-title.d.ts +0 -11
  226. package/dist/utils/transform-source/utils/index.d.cts +0 -6
  227. package/dist/utils/transform-source/utils/index.d.ts +0 -6
  228. package/dist/utils/transform-source/utils/misc.d.cts +0 -2
  229. package/dist/utils/transform-source/utils/misc.d.ts +0 -2
  230. package/dist/utils/transform-source/utils/standardize-common-words.d.cts +0 -1
  231. package/dist/utils/transform-source/utils/standardize-common-words.d.ts +0 -1
  232. package/dist/utils/transform-source/utils/standardize-organization-display-name.d.cts +0 -8
  233. package/dist/utils/transform-source/utils/standardize-organization-display-name.d.ts +0 -8
  234. package/dist/utils/transform-source/utils/standardize-suffixes.d.cts +0 -5
  235. package/dist/utils/transform-source/utils/standardize-suffixes.d.ts +0 -5
  236. package/dist/utils/transform-source/utils/strip-branding-keywords.d.cts +0 -17
  237. package/dist/utils/transform-source/utils/strip-branding-keywords.d.ts +0 -17
@@ -1,72 +0,0 @@
1
- import { IconType } from 'react-icons/lib';
2
- export declare const iconMap: {
3
- FaBook: IconType;
4
- FaGithub: IconType;
5
- FaDatabase: IconType;
6
- FaStackOverflow: IconType;
7
- FaChrome: IconType;
8
- FaPhone: IconType;
9
- FaEnvelope: IconType;
10
- FaPencil: IconType;
11
- FaBlog: IconType;
12
- FaSort: IconType;
13
- FaPenSquare: IconType;
14
- FaChevronRight: IconType;
15
- FaChevronUp: IconType;
16
- FaFilePdf: IconType;
17
- FaDiscourse: IconType;
18
- FaDiscord: IconType;
19
- FaSlack: IconType;
20
- IoDocumentTextSharp: IconType;
21
- IoDocumentSharp: IconType;
22
- IoSend: IconType;
23
- IoInformationCircleOutline: IconType;
24
- IoLinkOutline: IconType;
25
- IoThumbsUpSharp: IconType;
26
- IoThumbsDownSharp: IconType;
27
- IoSearch: IconType;
28
- IoCopyOutline: IconType;
29
- IoCopy: IconType;
30
- IoReturnDownBackOutline: IconType;
31
- IoChevronForwardOutline: IconType;
32
- IoReturnDownForward: IconType;
33
- IoCloseOutline: IconType;
34
- IoCheckmarkOutline: IconType;
35
- IoBookOutline: IconType;
36
- IoReaderOutline: IconType;
37
- IoHelpBuoyOutline: IconType;
38
- IoPeopleOutline: IconType;
39
- IoDocumentTextOutline: IconType;
40
- IoChatbubblesOutline: IconType;
41
- FaRegFilePdf: IconType;
42
- IoLogoDiscord: IconType;
43
- IoLogoGithub: IconType;
44
- IoTerminal: IconType;
45
- FaBriefcase: IconType;
46
- IoPlayCircleOutline: IconType;
47
- IoPencilOutline: IconType;
48
- IoCheckmarkDoneOutline: IconType;
49
- IoHomeOutline: IconType;
50
- IoMail: IconType;
51
- IoOpenOutline: IconType;
52
- FaTelegram: IconType;
53
- FaTable: IconType;
54
- FaMagnifyingGlass: IconType;
55
- LuArrowLeft: IconType;
56
- LuCircleCheck: IconType;
57
- LuCommand: IconType;
58
- LuCopy: IconType;
59
- LuCheck: IconType;
60
- LuCornerDownLeft: IconType;
61
- LuRepeat: IconType;
62
- LuThumbsDown: IconType;
63
- LuThumbsUp: IconType;
64
- LuUsers: IconType;
65
- LuUser: IconType;
66
- LuArrowUpRight: IconType;
67
- LuBookOpen: IconType;
68
- LuChevronDown: IconType;
69
- LuLoaderCircle: IconType;
70
- FiEdit: IconType;
71
- LuSparkles: IconType;
72
- };
@@ -1,72 +0,0 @@
1
- import { IconType } from 'react-icons/lib';
2
- export declare const iconMap: {
3
- FaBook: IconType;
4
- FaGithub: IconType;
5
- FaDatabase: IconType;
6
- FaStackOverflow: IconType;
7
- FaChrome: IconType;
8
- FaPhone: IconType;
9
- FaEnvelope: IconType;
10
- FaPencil: IconType;
11
- FaBlog: IconType;
12
- FaSort: IconType;
13
- FaPenSquare: IconType;
14
- FaChevronRight: IconType;
15
- FaChevronUp: IconType;
16
- FaFilePdf: IconType;
17
- FaDiscourse: IconType;
18
- FaDiscord: IconType;
19
- FaSlack: IconType;
20
- IoDocumentTextSharp: IconType;
21
- IoDocumentSharp: IconType;
22
- IoSend: IconType;
23
- IoInformationCircleOutline: IconType;
24
- IoLinkOutline: IconType;
25
- IoThumbsUpSharp: IconType;
26
- IoThumbsDownSharp: IconType;
27
- IoSearch: IconType;
28
- IoCopyOutline: IconType;
29
- IoCopy: IconType;
30
- IoReturnDownBackOutline: IconType;
31
- IoChevronForwardOutline: IconType;
32
- IoReturnDownForward: IconType;
33
- IoCloseOutline: IconType;
34
- IoCheckmarkOutline: IconType;
35
- IoBookOutline: IconType;
36
- IoReaderOutline: IconType;
37
- IoHelpBuoyOutline: IconType;
38
- IoPeopleOutline: IconType;
39
- IoDocumentTextOutline: IconType;
40
- IoChatbubblesOutline: IconType;
41
- FaRegFilePdf: IconType;
42
- IoLogoDiscord: IconType;
43
- IoLogoGithub: IconType;
44
- IoTerminal: IconType;
45
- FaBriefcase: IconType;
46
- IoPlayCircleOutline: IconType;
47
- IoPencilOutline: IconType;
48
- IoCheckmarkDoneOutline: IconType;
49
- IoHomeOutline: IconType;
50
- IoMail: IconType;
51
- IoOpenOutline: IconType;
52
- FaTelegram: IconType;
53
- FaTable: IconType;
54
- FaMagnifyingGlass: IconType;
55
- LuArrowLeft: IconType;
56
- LuCircleCheck: IconType;
57
- LuCommand: IconType;
58
- LuCopy: IconType;
59
- LuCheck: IconType;
60
- LuCornerDownLeft: IconType;
61
- LuRepeat: IconType;
62
- LuThumbsDown: IconType;
63
- LuThumbsUp: IconType;
64
- LuUsers: IconType;
65
- LuUser: IconType;
66
- LuArrowUpRight: IconType;
67
- LuBookOpen: IconType;
68
- LuChevronDown: IconType;
69
- LuLoaderCircle: IconType;
70
- FiEdit: IconType;
71
- LuSparkles: IconType;
72
- };
@@ -1 +0,0 @@
1
- export declare function CheckboxIcon(): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function CheckboxIcon(): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { CustomIcons } from '@inkeep/cxkit-types';
2
- export interface CustomIconProps {
3
- iconKey: keyof CustomIcons;
4
- className?: string;
5
- }
6
- export declare function CustomIcon({ iconKey, ...props }: CustomIconProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { CustomIcons } from '@inkeep/cxkit-types';
2
- export interface CustomIconProps {
3
- iconKey: keyof CustomIcons;
4
- className?: string;
5
- }
6
- export declare function CustomIcon({ iconKey, ...props }: CustomIconProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export * from './custom-icon';
2
- export * from './built-in-icon-renderer';
@@ -1,2 +0,0 @@
1
- export * from './custom-icon';
2
- export * from './built-in-icon-renderer';
@@ -1,2 +0,0 @@
1
- import { CustomIcons } from '@inkeep/cxkit-types';
2
- export declare const defaultBuiltInIcons: CustomIcons;
@@ -1,2 +0,0 @@
1
- import { CustomIcons } from '@inkeep/cxkit-types';
2
- export declare const defaultBuiltInIcons: CustomIcons;
@@ -1,14 +0,0 @@
1
- import { ComponentPropsWithRef, ForwardRefExoticComponent, RefAttributes } from 'react';
2
- import { UrlQueryParam } from '@inkeep/cxkit-types';
3
- export interface LinkProps extends ComponentPropsWithRef<'a'> {
4
- /**
5
- * If `true`, the link will open in new tab
6
- *
7
- * @default false
8
- */
9
- isExternal?: boolean;
10
- }
11
- export declare const Link: ForwardRefExoticComponent<Omit<LinkProps, "ref"> & RefAttributes<HTMLAnchorElement>>;
12
- export declare const LinkWithQueryParams: ForwardRefExoticComponent<Omit<LinkProps & {
13
- appendToUrl?: UrlQueryParam;
14
- }, "ref"> & RefAttributes<HTMLAnchorElement>>;
@@ -1,14 +0,0 @@
1
- import { ComponentPropsWithRef, ForwardRefExoticComponent, RefAttributes } from 'react';
2
- import { UrlQueryParam } from '@inkeep/cxkit-types';
3
- export interface LinkProps extends ComponentPropsWithRef<'a'> {
4
- /**
5
- * If `true`, the link will open in new tab
6
- *
7
- * @default false
8
- */
9
- isExternal?: boolean;
10
- }
11
- export declare const Link: ForwardRefExoticComponent<Omit<LinkProps, "ref"> & RefAttributes<HTMLAnchorElement>>;
12
- export declare const LinkWithQueryParams: ForwardRefExoticComponent<Omit<LinkProps & {
13
- appendToUrl?: UrlQueryParam;
14
- }, "ref"> & RefAttributes<HTMLAnchorElement>>;
@@ -1,27 +0,0 @@
1
- import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, LiHTMLAttributes, OlHTMLAttributes, RefAttributes, TableHTMLAttributes, ThHTMLAttributes, TdHTMLAttributes, ButtonHTMLAttributes } from 'react';
2
- import { PolymorphicProps } from '../..';
3
- import { LinkProps } from '../link';
4
- import { UrlQueryParam } from '@inkeep/cxkit-types';
5
- export declare const MarkdownH1: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "_id">>>;
6
- export declare const MarkdownH2: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "_id">>>;
7
- export declare const MarkdownP: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "_id">>>;
8
- export declare const MarkdownLi: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "_id"> & Partial<Pick< DetailedHTMLProps<LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "_id">>>;
9
- export declare const MarkdownUl: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "_id">>>;
10
- export declare const MarkdownOl: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "_id"> & Partial<Pick< DetailedHTMLProps<OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "_id">>>;
11
- export declare const MarkdownLink: ForwardRefExoticComponent< PolymorphicProps & Omit<Omit< LinkProps & {
12
- appendToUrl?: UrlQueryParam;
13
- }, "ref"> & RefAttributes<HTMLAnchorElement>, "_id"> & Partial<Pick<Omit< LinkProps & {
14
- appendToUrl?: UrlQueryParam;
15
- }, "ref"> & RefAttributes<HTMLAnchorElement>, "_id">>>;
16
- export declare const MarkdownSourceLink: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "_id">>>;
17
- export declare const MarkdownTable: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "_id"> & Partial<Pick< DetailedHTMLProps<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "_id">>>;
18
- export declare const MarkdownTh: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "_id"> & Partial<Pick< DetailedHTMLProps<ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "_id">>>;
19
- export declare const MarkdownTd: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "_id"> & Partial<Pick< DetailedHTMLProps<TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "_id">>>;
20
- export declare const MarkdownCode: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "_id">>>;
21
- export declare const CodeblockContainer: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
22
- export declare const CodeblockHeader: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
23
- export declare const CodeblockHeaderLanguage: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id">>>;
24
- export declare const CodeblockCopyButton: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "type" | "_id"> & Partial<Pick< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "type" | "_id">>>;
25
- export declare const CodeblockHighlighterWrapper: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
26
- export declare const CodeblockHighlighter: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
27
- export declare const CodeblockCode: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "_id">>>;
@@ -1,27 +0,0 @@
1
- import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, LiHTMLAttributes, OlHTMLAttributes, RefAttributes, TableHTMLAttributes, ThHTMLAttributes, TdHTMLAttributes, ButtonHTMLAttributes } from 'react';
2
- import { PolymorphicProps } from '../..';
3
- import { LinkProps } from '../link';
4
- import { UrlQueryParam } from '@inkeep/cxkit-types';
5
- export declare const MarkdownH1: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "_id">>>;
6
- export declare const MarkdownH2: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "_id">>>;
7
- export declare const MarkdownP: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "_id">>>;
8
- export declare const MarkdownLi: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "_id"> & Partial<Pick< DetailedHTMLProps<LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "_id">>>;
9
- export declare const MarkdownUl: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "_id">>>;
10
- export declare const MarkdownOl: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "_id"> & Partial<Pick< DetailedHTMLProps<OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "_id">>>;
11
- export declare const MarkdownLink: ForwardRefExoticComponent< PolymorphicProps & Omit<Omit< LinkProps & {
12
- appendToUrl?: UrlQueryParam;
13
- }, "ref"> & RefAttributes<HTMLAnchorElement>, "_id"> & Partial<Pick<Omit< LinkProps & {
14
- appendToUrl?: UrlQueryParam;
15
- }, "ref"> & RefAttributes<HTMLAnchorElement>, "_id">>>;
16
- export declare const MarkdownSourceLink: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "_id">>>;
17
- export declare const MarkdownTable: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "_id"> & Partial<Pick< DetailedHTMLProps<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "_id">>>;
18
- export declare const MarkdownTh: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "_id"> & Partial<Pick< DetailedHTMLProps<ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "_id">>>;
19
- export declare const MarkdownTd: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "_id"> & Partial<Pick< DetailedHTMLProps<TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "_id">>>;
20
- export declare const MarkdownCode: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "_id">>>;
21
- export declare const CodeblockContainer: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
22
- export declare const CodeblockHeader: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
23
- export declare const CodeblockHeaderLanguage: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "_id">>>;
24
- export declare const CodeblockCopyButton: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "type" | "_id"> & Partial<Pick< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "type" | "_id">>>;
25
- export declare const CodeblockHighlighterWrapper: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
26
- export declare const CodeblockHighlighter: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
27
- export declare const CodeblockCode: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, "_id">>>;
@@ -1,15 +0,0 @@
1
- import { ComponentPropsWithRef } from 'react';
2
- import { CodeProps } from '../codeblock';
3
- import { MarkdownComponentID } from '../../utils/component-ids';
4
- export interface MarkdownProps {
5
- shouldOpenLinksInNewTab?: boolean;
6
- componentStyles?: Partial<Record<MarkdownComponentID, string>>;
7
- onCodeCopy?: CodeProps['onCopy'];
8
- /**
9
- * Callback when a link is clicked.
10
- * @param href - the destination of the link
11
- * @param label - the link text
12
- */
13
- onLinkClick?: (href: string | undefined, label: string | undefined) => void;
14
- }
15
- export declare const Markdown: ({ children, componentStyles, shouldOpenLinksInNewTab, onLinkClick, onCodeCopy, ...props }: ComponentPropsWithRef<"div"> & MarkdownProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,15 +0,0 @@
1
- import { ComponentPropsWithRef } from 'react';
2
- import { CodeProps } from '../codeblock';
3
- import { MarkdownComponentID } from '../../utils/component-ids';
4
- export interface MarkdownProps {
5
- shouldOpenLinksInNewTab?: boolean;
6
- componentStyles?: Partial<Record<MarkdownComponentID, string>>;
7
- onCodeCopy?: CodeProps['onCopy'];
8
- /**
9
- * Callback when a link is clicked.
10
- * @param href - the destination of the link
11
- * @param label - the link text
12
- */
13
- onLinkClick?: (href: string | undefined, label: string | undefined) => void;
14
- }
15
- export declare const Markdown: ({ children, componentStyles, shouldOpenLinksInNewTab, onLinkClick, onCodeCopy, ...props }: ComponentPropsWithRef<"div"> & MarkdownProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1 +0,0 @@
1
- export declare function rehypeInlineCodeProperty(): (tree: any) => void;
@@ -1 +0,0 @@
1
- export declare function rehypeInlineCodeProperty(): (tree: any) => void;
@@ -1,2 +0,0 @@
1
- import { PortalProps } from './portal';
2
- export declare const PortalWithTheme: ({ children, ...props }: PortalProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { PortalProps } from './portal';
2
- export declare const PortalWithTheme: ({ children, ...props }: PortalProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { JSX } from 'react';
2
- export interface PortalProps {
3
- children: React.ReactNode;
4
- target?: React.RefObject<HTMLElement>;
5
- tag?: string;
6
- host?: HTMLElement | null;
7
- }
8
- export declare function Portal(props: PortalProps): JSX.Element;
@@ -1,8 +0,0 @@
1
- import { JSX } from 'react';
2
- export interface PortalProps {
3
- children: React.ReactNode;
4
- target?: React.RefObject<HTMLElement>;
5
- tag?: string;
6
- host?: HTMLElement | null;
7
- }
8
- export declare function Portal(props: PortalProps): JSX.Element;
@@ -1,14 +0,0 @@
1
- import { CSSProperties, PropsWithChildren, Context, ReactNode, ReactPortal, ReactElement, JSXElementConstructor } from 'react';
2
- export declare const ShadowContext: Context<ShadowContextValue | undefined>;
3
- export type ShadowContextValue = {
4
- shadowHost: HTMLDivElement | null;
5
- rootElement: HTMLDivElement | null;
6
- };
7
- export declare const useShadow: () => ShadowContextValue | undefined;
8
- export interface InkeepShadowProps extends PropsWithChildren {
9
- wrapperStyles?: CSSProperties;
10
- customStyles?: React.ReactNode;
11
- styles?: string;
12
- }
13
- export declare function InkeepShadowProvider({ wrapperStyles, children, customStyles, styles, }: InkeepShadowProps): import("react/jsx-runtime").JSX.Element;
14
- export declare const InkeepShadow: (props: InkeepShadowProps) => string | number | bigint | boolean | Iterable< ReactNode> | Promise<string | number | bigint | boolean | ReactPortal | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable< ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
@@ -1,14 +0,0 @@
1
- import { CSSProperties, PropsWithChildren, Context, ReactNode, ReactPortal, ReactElement, JSXElementConstructor } from 'react';
2
- export declare const ShadowContext: Context<ShadowContextValue | undefined>;
3
- export type ShadowContextValue = {
4
- shadowHost: HTMLDivElement | null;
5
- rootElement: HTMLDivElement | null;
6
- };
7
- export declare const useShadow: () => ShadowContextValue | undefined;
8
- export interface InkeepShadowProps extends PropsWithChildren {
9
- wrapperStyles?: CSSProperties;
10
- customStyles?: React.ReactNode;
11
- styles?: string;
12
- }
13
- export declare function InkeepShadowProvider({ wrapperStyles, children, customStyles, styles, }: InkeepShadowProps): import("react/jsx-runtime").JSX.Element;
14
- export declare const InkeepShadow: (props: InkeepShadowProps) => string | number | bigint | boolean | Iterable< ReactNode> | Promise<string | number | bigint | boolean | ReactPortal | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable< ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- import { RenderFn, ShadowRootProps } from '@inkeep/cxkit-types';
3
- interface CreateOptions {
4
- tag: React.ElementType;
5
- render: RenderFn;
6
- }
7
- export declare function create(options: CreateOptions): React.ForwardRefExoticComponent<ShadowRootProps & React.RefAttributes<Element>>;
8
- export {};
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- import { RenderFn, ShadowRootProps } from '@inkeep/cxkit-types';
3
- interface CreateOptions {
4
- tag: React.ElementType;
5
- render: RenderFn;
6
- }
7
- export declare function create(options: CreateOptions): React.ForwardRefExoticComponent<ShadowRootProps & React.RefAttributes<Element>>;
8
- export {};
@@ -1 +0,0 @@
1
- export * from './context';
@@ -1 +0,0 @@
1
- export * from './context';
@@ -1,5 +0,0 @@
1
- import { RenderFn, Root } from '@inkeep/cxkit-types';
2
- export declare const useShadowRoot: () => ShadowRoot | null;
3
- export declare function createProxy(target?: Root, id?: string, render?: RenderFn): Root;
4
- declare const _default: Root;
5
- export default _default;
@@ -1,5 +0,0 @@
1
- import { RenderFn, Root } from '@inkeep/cxkit-types';
2
- export declare const useShadowRoot: () => ShadowRoot | null;
3
- export declare function createProxy(target?: Root, id?: string, render?: RenderFn): Root;
4
- declare const _default: Root;
5
- export default _default;
@@ -1,2 +0,0 @@
1
- import { RefObject } from 'react';
2
- export declare function useEnsuredForwardedRef<T>(forwardedRef: RefObject<T>): RefObject<T>;
@@ -1,2 +0,0 @@
1
- import { RefObject } from 'react';
2
- export declare function useEnsuredForwardedRef<T>(forwardedRef: RefObject<T>): RefObject<T>;
@@ -1,9 +0,0 @@
1
- import { Context } from 'react';
2
- export declare const Context: Context<ShadowRoot | null>;
3
- interface ErrorWithStyleSheets {
4
- error: Error;
5
- styleSheets: CSSStyleSheet[];
6
- root: ShadowRoot | null;
7
- }
8
- export declare function handleError({ error, styleSheets, root }: ErrorWithStyleSheets): void;
9
- export {};
@@ -1,9 +0,0 @@
1
- import { Context } from 'react';
2
- export declare const Context: Context<ShadowRoot | null>;
3
- interface ErrorWithStyleSheets {
4
- error: Error;
5
- styleSheets: CSSStyleSheet[];
6
- root: ShadowRoot | null;
7
- }
8
- export declare function handleError({ error, styleSheets, root }: ErrorWithStyleSheets): void;
9
- export {};
@@ -1,18 +0,0 @@
1
- import { ComponentPropsWithRef, ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, ButtonHTMLAttributes, RefAttributes, MemoExoticComponent } from 'react';
2
- import { InkeepAIChatSettings } from '@inkeep/cxkit-types';
3
- import { PolymorphicProps } from './factory';
4
- import * as AvatarPrimitive from '@radix-ui/react-avatar';
5
- declare const ChatButtonPrimitiveContainer: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
6
- declare const ChatButtonPrimitiveButton: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "_id"> & Partial<Pick< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "_id">>>;
7
- declare const ChatButtonPrimitiveText: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
8
- declare const PrimitiveChatButtonAvatarContent: ForwardRefExoticComponent< PolymorphicProps & Omit<AvatarPrimitive.AvatarProps & RefAttributes<HTMLSpanElement>, "_id"> & Partial<Pick<AvatarPrimitive.AvatarProps & RefAttributes<HTMLSpanElement>, "_id">>>;
9
- declare const PrimitiveChatButtonAvatarImage: ForwardRefExoticComponent< PolymorphicProps & Omit<AvatarPrimitive.AvatarImageProps & RefAttributes<HTMLImageElement>, "_id"> & Partial<Pick<AvatarPrimitive.AvatarImageProps & RefAttributes<HTMLImageElement>, "_id">>>;
10
- type OnLoadingStatusChange = AvatarPrimitive.AvatarImageProps['onLoadingStatusChange'];
11
- type AvatarImageProps = {
12
- onLoadingStatusChange?: OnLoadingStatusChange;
13
- } & (ComponentPropsWithRef<'svg'> | ComponentPropsWithRef<typeof PrimitiveChatButtonAvatarImage>);
14
- type ChatButtonPrimitiveAvatarImageProps = AvatarImageProps & {
15
- avatar?: InkeepAIChatSettings['aiAssistantAvatar'];
16
- };
17
- export declare const ChatButtonPrimitiveAvatarImage: MemoExoticComponent<(props: ChatButtonPrimitiveAvatarImageProps) => import("react/jsx-runtime").JSX.Element>;
18
- export { ChatButtonPrimitiveContainer as ChatButtonContainer, ChatButtonPrimitiveText as ChatButtonText, ChatButtonPrimitiveButton as ChatButton, ChatButtonPrimitiveAvatarImage as ChatButtonAvatarImage, PrimitiveChatButtonAvatarContent as ChatButtonAvatarContent, };
@@ -1,18 +0,0 @@
1
- import { ComponentPropsWithRef, ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, ButtonHTMLAttributes, RefAttributes, MemoExoticComponent } from 'react';
2
- import { InkeepAIChatSettings } from '@inkeep/cxkit-types';
3
- import { PolymorphicProps } from './factory';
4
- import * as AvatarPrimitive from '@radix-ui/react-avatar';
5
- declare const ChatButtonPrimitiveContainer: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
6
- declare const ChatButtonPrimitiveButton: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "_id"> & Partial<Pick< DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "_id">>>;
7
- declare const ChatButtonPrimitiveText: ForwardRefExoticComponent< PolymorphicProps & Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id"> & Partial<Pick< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "_id">>>;
8
- declare const PrimitiveChatButtonAvatarContent: ForwardRefExoticComponent< PolymorphicProps & Omit<AvatarPrimitive.AvatarProps & RefAttributes<HTMLSpanElement>, "_id"> & Partial<Pick<AvatarPrimitive.AvatarProps & RefAttributes<HTMLSpanElement>, "_id">>>;
9
- declare const PrimitiveChatButtonAvatarImage: ForwardRefExoticComponent< PolymorphicProps & Omit<AvatarPrimitive.AvatarImageProps & RefAttributes<HTMLImageElement>, "_id"> & Partial<Pick<AvatarPrimitive.AvatarImageProps & RefAttributes<HTMLImageElement>, "_id">>>;
10
- type OnLoadingStatusChange = AvatarPrimitive.AvatarImageProps['onLoadingStatusChange'];
11
- type AvatarImageProps = {
12
- onLoadingStatusChange?: OnLoadingStatusChange;
13
- } & (ComponentPropsWithRef<'svg'> | ComponentPropsWithRef<typeof PrimitiveChatButtonAvatarImage>);
14
- type ChatButtonPrimitiveAvatarImageProps = AvatarImageProps & {
15
- avatar?: InkeepAIChatSettings['aiAssistantAvatar'];
16
- };
17
- export declare const ChatButtonPrimitiveAvatarImage: MemoExoticComponent<(props: ChatButtonPrimitiveAvatarImageProps) => import("react/jsx-runtime").JSX.Element>;
18
- export { ChatButtonPrimitiveContainer as ChatButtonContainer, ChatButtonPrimitiveText as ChatButtonText, ChatButtonPrimitiveButton as ChatButton, ChatButtonPrimitiveAvatarImage as ChatButtonAvatarImage, PrimitiveChatButtonAvatarContent as ChatButtonAvatarContent, };
@@ -1,19 +0,0 @@
1
- import { useInkeepChat } from './use-inkeep-chat';
2
- export interface EmbeddedChatProviderProps {
3
- /**
4
- * Whether to show the chat.
5
- * @default false
6
- */
7
- isHidden?: boolean;
8
- /**
9
- * Whether to autofocus the chat input on load.
10
- * @default true
11
- */
12
- shouldAutoFocusInput?: boolean;
13
- }
14
- export type ChatContextValue = ReturnType<typeof useInkeepChat> & Omit<ChatProviderProps, 'children'>;
15
- export interface ChatProviderProps extends Pick<EmbeddedChatProviderProps, 'shouldAutoFocusInput' | 'isHidden'> {
16
- children: React.ReactNode;
17
- }
18
- export declare const ChatProvider: React.FC<ChatProviderProps>;
19
- export declare const useChat: () => ChatContextValue;
@@ -1,19 +0,0 @@
1
- import { useInkeepChat } from './use-inkeep-chat';
2
- export interface EmbeddedChatProviderProps {
3
- /**
4
- * Whether to show the chat.
5
- * @default false
6
- */
7
- isHidden?: boolean;
8
- /**
9
- * Whether to autofocus the chat input on load.
10
- * @default true
11
- */
12
- shouldAutoFocusInput?: boolean;
13
- }
14
- export type ChatContextValue = ReturnType<typeof useInkeepChat> & Omit<ChatProviderProps, 'children'>;
15
- export interface ChatProviderProps extends Pick<EmbeddedChatProviderProps, 'shouldAutoFocusInput' | 'isHidden'> {
16
- children: React.ReactNode;
17
- }
18
- export declare const ChatProvider: React.FC<ChatProviderProps>;
19
- export declare const useChat: () => ChatContextValue;
@@ -1,13 +0,0 @@
1
- import { Payload } from 'altcha-lib/types';
2
- interface UseCaptchaOptions {
3
- fetchUrl: string;
4
- shouldBypassCaptcha?: boolean;
5
- shouldMakeInitialRequest?: boolean;
6
- }
7
- export declare const fetchAndSolveChallenge: (fetchUrl: string) => Promise<Payload | undefined>;
8
- export declare const useCaptcha: ({ fetchUrl, shouldBypassCaptcha, shouldMakeInitialRequest, }: UseCaptchaOptions) => {
9
- getSolution: () => Promise<Payload | undefined>;
10
- prefetchSolution: () => void;
11
- invalidateSolution: () => void;
12
- };
13
- export {};
@@ -1,13 +0,0 @@
1
- import { Payload } from 'altcha-lib/types';
2
- interface UseCaptchaOptions {
3
- fetchUrl: string;
4
- shouldBypassCaptcha?: boolean;
5
- shouldMakeInitialRequest?: boolean;
6
- }
7
- export declare const fetchAndSolveChallenge: (fetchUrl: string) => Promise<Payload | undefined>;
8
- export declare const useCaptcha: ({ fetchUrl, shouldBypassCaptcha, shouldMakeInitialRequest, }: UseCaptchaOptions) => {
9
- getSolution: () => Promise<Payload | undefined>;
10
- prefetchSolution: () => void;
11
- invalidateSolution: () => void;
12
- };
13
- export {};
@@ -1,9 +0,0 @@
1
- import { IkpChatAction } from '@inkeep/cxkit-types';
2
- interface HandleAction {
3
- onOpenForm?: Function;
4
- }
5
- export declare const useChatAction: (chatAction: IkpChatAction) => {
6
- handleAction: (opts?: HandleAction) => void;
7
- logHelpAction: () => void;
8
- };
9
- export {};
@@ -1,9 +0,0 @@
1
- import { IkpChatAction } from '@inkeep/cxkit-types';
2
- interface HandleAction {
3
- onOpenForm?: Function;
4
- }
5
- export declare const useChatAction: (chatAction: IkpChatAction) => {
6
- handleAction: (opts?: HandleAction) => void;
7
- logHelpAction: () => void;
8
- };
9
- export {};
@@ -1,25 +0,0 @@
1
- import { KeyboardEvent, Dispatch, SetStateAction, RefObject } from 'react';
2
- import { ToolCallAction, MessageAttachment, Workflow, Message } from '@inkeep/cxkit-types';
3
- export declare const useInkeepChat: () => {
4
- messages: Message[];
5
- input: string;
6
- isLoading: boolean;
7
- isStreaming: boolean;
8
- isLoadingConversation: boolean;
9
- error: unknown;
10
- isSubmitDisabled: boolean;
11
- handleInputChange: (e: React.ChangeEvent<HTMLElement>) => void;
12
- handleInputKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
13
- handleSubmit: (content?: string) => Promise<void>;
14
- stop: () => void;
15
- clear: () => void;
16
- handleWorkflow: (workflow: Workflow) => void;
17
- selectedWorkflow: Workflow | null;
18
- messageAttachments: MessageAttachment[];
19
- setMessageAttachments: Dispatch<SetStateAction<MessageAttachment[]>>;
20
- addAttachment: (attachment: MessageAttachment) => void;
21
- messageToolCalls: Record<string, ToolCallAction[]>;
22
- isEmpty: boolean;
23
- inputRef: RefObject<HTMLTextAreaElement | null>;
24
- isMobile: boolean;
25
- };