@uipath/apollo-wind 2.69.0 → 2.70.0

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 (53) hide show
  1. package/dist/components/custom/chat-first-experience.cjs +3 -3
  2. package/dist/components/custom/chat-first-experience.js +3 -3
  3. package/dist/components/custom/demo-composer.cjs +80 -0
  4. package/dist/components/custom/demo-composer.d.ts +11 -0
  5. package/dist/components/custom/demo-composer.js +46 -0
  6. package/dist/components/custom/panel-flow.cjs +2 -2
  7. package/dist/components/custom/panel-flow.js +2 -2
  8. package/dist/components/ui/chat-composer.cjs +429 -0
  9. package/dist/components/ui/chat-composer.d.ts +157 -0
  10. package/dist/components/ui/chat-composer.js +359 -0
  11. package/dist/components/ui/citation.cjs +188 -0
  12. package/dist/components/ui/citation.d.ts +42 -0
  13. package/dist/components/ui/citation.js +148 -0
  14. package/dist/components/ui/dropzone-overlay.cjs +142 -0
  15. package/dist/components/ui/dropzone-overlay.d.ts +27 -0
  16. package/dist/components/ui/dropzone-overlay.js +105 -0
  17. package/dist/components/ui/file-upload.cjs +5 -29
  18. package/dist/components/ui/file-upload.js +2 -26
  19. package/dist/components/ui/file-validation.cjs +91 -0
  20. package/dist/components/ui/file-validation.d.ts +24 -0
  21. package/dist/components/ui/file-validation.js +51 -0
  22. package/dist/components/ui/hover-card.cjs +15 -8
  23. package/dist/components/ui/hover-card.d.ts +4 -1
  24. package/dist/components/ui/hover-card.js +16 -9
  25. package/dist/components/ui/index.cjs +280 -214
  26. package/dist/components/ui/index.d.ts +6 -0
  27. package/dist/components/ui/index.js +6 -0
  28. package/dist/components/ui/input-group.cjs +1 -1
  29. package/dist/components/ui/input-group.d.ts +2 -1
  30. package/dist/components/ui/input-group.js +1 -1
  31. package/dist/components/ui/message-actions.cjs +302 -0
  32. package/dist/components/ui/message-actions.d.ts +102 -0
  33. package/dist/components/ui/message-actions.js +241 -0
  34. package/dist/components/ui/message.cjs +1 -1
  35. package/dist/components/ui/message.d.ts +2 -0
  36. package/dist/components/ui/message.js +1 -1
  37. package/dist/components/ui/sources.cjs +175 -0
  38. package/dist/components/ui/sources.d.ts +44 -0
  39. package/dist/components/ui/sources.js +132 -0
  40. package/dist/index.cjs +117 -6
  41. package/dist/index.d.ts +12 -0
  42. package/dist/index.js +7 -1
  43. package/dist/lib/index.cjs +8 -1
  44. package/dist/lib/index.d.ts +1 -0
  45. package/dist/lib/index.js +2 -1
  46. package/dist/lib/url.cjs +54 -0
  47. package/dist/lib/url.d.ts +8 -0
  48. package/dist/lib/url.js +17 -0
  49. package/dist/styles.css +157 -35
  50. package/package.json +1 -1
  51. package/dist/components/custom/chat-composer.cjs +0 -134
  52. package/dist/components/custom/chat-composer.d.ts +0 -14
  53. package/dist/components/custom/chat-composer.js +0 -100
@@ -1,134 +0,0 @@
1
- "use strict";
2
- var __webpack_require__ = {};
3
- (()=>{
4
- __webpack_require__.d = (exports1, definition)=>{
5
- for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
- enumerable: true,
7
- get: definition[key]
8
- });
9
- };
10
- })();
11
- (()=>{
12
- __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
- })();
14
- (()=>{
15
- __webpack_require__.r = (exports1)=>{
16
- if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
- value: 'Module'
18
- });
19
- Object.defineProperty(exports1, '__esModule', {
20
- value: true
21
- });
22
- };
23
- })();
24
- var __webpack_exports__ = {};
25
- __webpack_require__.r(__webpack_exports__);
26
- __webpack_require__.d(__webpack_exports__, {
27
- ChatComposer: ()=>ChatComposer
28
- });
29
- const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
- const external_lucide_react_namespaceObject = require("lucide-react");
31
- const external_react_namespaceObject = require("react");
32
- const index_cjs_namespaceObject = require("../../lib/index.cjs");
33
- function ChatComposer({ className, placeholder = 'I would like you to automate my', onSubmit }) {
34
- const [value, setValue] = external_react_namespaceObject.useState('');
35
- const handleSubmit = ()=>{
36
- if (value.trim()) {
37
- onSubmit?.(value.trim());
38
- setValue('');
39
- }
40
- };
41
- const handleKeyDown = (e)=>{
42
- if ('Enter' === e.key && !e.shiftKey) {
43
- e.preventDefault();
44
- handleSubmit();
45
- }
46
- };
47
- const showEnter = value.length > 0;
48
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
49
- className: (0, index_cjs_namespaceObject.cn)('w-full max-w-[800px] rounded-[32px] bg-surface-raised p-2', className),
50
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
51
- className: "group/input flex flex-col gap-3 rounded-[24px] border border-border bg-surface pb-3 pl-4 pr-3 pt-4 transition-colors hover:border-border-hover focus-within:border-border-hover",
52
- children: [
53
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("textarea", {
54
- className: "w-full resize-none bg-transparent text-sm font-normal leading-5 text-foreground placeholder:text-foreground-muted group-hover/input:placeholder:text-foreground-secondary focus:placeholder:text-foreground-secondary focus:outline-none",
55
- placeholder: placeholder,
56
- rows: 3,
57
- value: value,
58
- onChange: (e)=>setValue(e.target.value),
59
- onKeyDown: handleKeyDown
60
- }),
61
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
62
- className: "flex items-center justify-between",
63
- children: [
64
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
65
- className: "flex items-center gap-1",
66
- children: [
67
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
68
- type: "button",
69
- className: "group flex h-8 w-8 items-center justify-center rounded-lg hover:bg-surface-hover",
70
- "aria-label": "Add attachment",
71
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Plus, {
72
- className: "h-5 w-5 text-foreground-muted group-hover:text-foreground-hover"
73
- })
74
- }),
75
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
76
- type: "button",
77
- className: "group flex h-8 w-8 items-center justify-center rounded-lg hover:bg-surface-hover",
78
- "aria-label": "Add workflow",
79
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Workflow, {
80
- className: "h-5 w-5 text-foreground-muted group-hover:text-foreground-hover"
81
- })
82
- }),
83
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
84
- type: "button",
85
- className: "group flex h-8 w-8 items-center justify-center rounded-lg hover:bg-surface-hover",
86
- "aria-label": "Settings",
87
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Settings2, {
88
- className: "h-5 w-5 text-foreground-muted group-hover:text-foreground-hover"
89
- })
90
- })
91
- ]
92
- }),
93
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
94
- className: "flex items-center gap-2",
95
- children: [
96
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
97
- type: "button",
98
- className: "group flex h-8 w-8 items-center justify-center rounded-lg hover:bg-surface-hover",
99
- "aria-label": "Record",
100
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Circle, {
101
- className: "h-5 w-5 text-foreground-muted group-hover:text-foreground-hover"
102
- })
103
- }),
104
- showEnter ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
105
- type: "button",
106
- className: "flex h-8 w-8 items-center justify-center rounded-lg bg-foreground-accent hover:bg-foreground-accent-muted",
107
- onClick: handleSubmit,
108
- "aria-label": "Submit message",
109
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.CornerRightUp, {
110
- className: "h-5 w-5 text-foreground-on-accent"
111
- })
112
- }) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
113
- type: "button",
114
- className: "flex h-8 w-8 items-center justify-center rounded-lg bg-surface-hover group-focus-within/input:bg-foreground-accent hover:bg-foreground-accent-muted",
115
- "aria-label": "Voice input",
116
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Mic, {
117
- className: "h-5 w-5 text-foreground-on-accent"
118
- })
119
- })
120
- ]
121
- })
122
- ]
123
- })
124
- ]
125
- })
126
- });
127
- }
128
- exports.ChatComposer = __webpack_exports__.ChatComposer;
129
- for(var __rspack_i in __webpack_exports__)if (-1 === [
130
- "ChatComposer"
131
- ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
132
- Object.defineProperty(exports, '__esModule', {
133
- value: true
134
- });
@@ -1,14 +0,0 @@
1
- export interface ChatComposerProps {
2
- className?: string;
3
- /** Placeholder text displayed when the input is empty */
4
- placeholder?: string;
5
- /** Callback when the user submits a message */
6
- onSubmit?: (value: string) => void;
7
- }
8
- /**
9
- * Reusable chat composer input with action buttons.
10
- *
11
- * Features a text area, left-side action buttons (add, workflow),
12
- * and an accent submit button. Max-width 800px.
13
- */
14
- export declare function ChatComposer({ className, placeholder, onSubmit, }: ChatComposerProps): import("react/jsx-runtime").JSX.Element;
@@ -1,100 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Circle, CornerRightUp, Mic, Plus, Settings2, Workflow } from "lucide-react";
3
- import { useState } from "react";
4
- import { cn } from "../../lib/index.js";
5
- function ChatComposer({ className, placeholder = 'I would like you to automate my', onSubmit }) {
6
- const [value, setValue] = useState('');
7
- const handleSubmit = ()=>{
8
- if (value.trim()) {
9
- onSubmit?.(value.trim());
10
- setValue('');
11
- }
12
- };
13
- const handleKeyDown = (e)=>{
14
- if ('Enter' === e.key && !e.shiftKey) {
15
- e.preventDefault();
16
- handleSubmit();
17
- }
18
- };
19
- const showEnter = value.length > 0;
20
- return /*#__PURE__*/ jsx("div", {
21
- className: cn('w-full max-w-[800px] rounded-[32px] bg-surface-raised p-2', className),
22
- children: /*#__PURE__*/ jsxs("div", {
23
- className: "group/input flex flex-col gap-3 rounded-[24px] border border-border bg-surface pb-3 pl-4 pr-3 pt-4 transition-colors hover:border-border-hover focus-within:border-border-hover",
24
- children: [
25
- /*#__PURE__*/ jsx("textarea", {
26
- className: "w-full resize-none bg-transparent text-sm font-normal leading-5 text-foreground placeholder:text-foreground-muted group-hover/input:placeholder:text-foreground-secondary focus:placeholder:text-foreground-secondary focus:outline-none",
27
- placeholder: placeholder,
28
- rows: 3,
29
- value: value,
30
- onChange: (e)=>setValue(e.target.value),
31
- onKeyDown: handleKeyDown
32
- }),
33
- /*#__PURE__*/ jsxs("div", {
34
- className: "flex items-center justify-between",
35
- children: [
36
- /*#__PURE__*/ jsxs("div", {
37
- className: "flex items-center gap-1",
38
- children: [
39
- /*#__PURE__*/ jsx("button", {
40
- type: "button",
41
- className: "group flex h-8 w-8 items-center justify-center rounded-lg hover:bg-surface-hover",
42
- "aria-label": "Add attachment",
43
- children: /*#__PURE__*/ jsx(Plus, {
44
- className: "h-5 w-5 text-foreground-muted group-hover:text-foreground-hover"
45
- })
46
- }),
47
- /*#__PURE__*/ jsx("button", {
48
- type: "button",
49
- className: "group flex h-8 w-8 items-center justify-center rounded-lg hover:bg-surface-hover",
50
- "aria-label": "Add workflow",
51
- children: /*#__PURE__*/ jsx(Workflow, {
52
- className: "h-5 w-5 text-foreground-muted group-hover:text-foreground-hover"
53
- })
54
- }),
55
- /*#__PURE__*/ jsx("button", {
56
- type: "button",
57
- className: "group flex h-8 w-8 items-center justify-center rounded-lg hover:bg-surface-hover",
58
- "aria-label": "Settings",
59
- children: /*#__PURE__*/ jsx(Settings2, {
60
- className: "h-5 w-5 text-foreground-muted group-hover:text-foreground-hover"
61
- })
62
- })
63
- ]
64
- }),
65
- /*#__PURE__*/ jsxs("div", {
66
- className: "flex items-center gap-2",
67
- children: [
68
- /*#__PURE__*/ jsx("button", {
69
- type: "button",
70
- className: "group flex h-8 w-8 items-center justify-center rounded-lg hover:bg-surface-hover",
71
- "aria-label": "Record",
72
- children: /*#__PURE__*/ jsx(Circle, {
73
- className: "h-5 w-5 text-foreground-muted group-hover:text-foreground-hover"
74
- })
75
- }),
76
- showEnter ? /*#__PURE__*/ jsx("button", {
77
- type: "button",
78
- className: "flex h-8 w-8 items-center justify-center rounded-lg bg-foreground-accent hover:bg-foreground-accent-muted",
79
- onClick: handleSubmit,
80
- "aria-label": "Submit message",
81
- children: /*#__PURE__*/ jsx(CornerRightUp, {
82
- className: "h-5 w-5 text-foreground-on-accent"
83
- })
84
- }) : /*#__PURE__*/ jsx("button", {
85
- type: "button",
86
- className: "flex h-8 w-8 items-center justify-center rounded-lg bg-surface-hover group-focus-within/input:bg-foreground-accent hover:bg-foreground-accent-muted",
87
- "aria-label": "Voice input",
88
- children: /*#__PURE__*/ jsx(Mic, {
89
- className: "h-5 w-5 text-foreground-on-accent"
90
- })
91
- })
92
- ]
93
- })
94
- ]
95
- })
96
- ]
97
- })
98
- });
99
- }
100
- export { ChatComposer };