@uipath/apollo-wind 2.68.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 (80) 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/code-block.cjs +375 -0
  15. package/dist/components/ui/code-block.d.ts +38 -0
  16. package/dist/components/ui/code-block.js +307 -0
  17. package/dist/components/ui/dropzone-overlay.cjs +142 -0
  18. package/dist/components/ui/dropzone-overlay.d.ts +27 -0
  19. package/dist/components/ui/dropzone-overlay.js +105 -0
  20. package/dist/components/ui/file-upload.cjs +5 -29
  21. package/dist/components/ui/file-upload.js +2 -26
  22. package/dist/components/ui/file-validation.cjs +91 -0
  23. package/dist/components/ui/file-validation.d.ts +24 -0
  24. package/dist/components/ui/file-validation.js +51 -0
  25. package/dist/components/ui/hover-card.cjs +15 -8
  26. package/dist/components/ui/hover-card.d.ts +4 -1
  27. package/dist/components/ui/hover-card.js +16 -9
  28. package/dist/components/ui/index.cjs +330 -198
  29. package/dist/components/ui/index.d.ts +12 -0
  30. package/dist/components/ui/index.js +12 -0
  31. package/dist/components/ui/input-group.cjs +1 -1
  32. package/dist/components/ui/input-group.d.ts +2 -1
  33. package/dist/components/ui/input-group.js +1 -1
  34. package/dist/components/ui/json-tree-view/JsonTree.cjs +2 -2
  35. package/dist/components/ui/json-tree-view/JsonTree.js +1 -1
  36. package/dist/components/ui/json-tree-view/index.cjs +26 -23
  37. package/dist/components/ui/json-tree-view/index.d.ts +2 -2
  38. package/dist/components/ui/json-tree-view/index.js +2 -2
  39. package/dist/components/ui/live-region.cjs +106 -0
  40. package/dist/components/ui/live-region.d.ts +31 -0
  41. package/dist/components/ui/live-region.js +72 -0
  42. package/dist/components/ui/loading-dots.cjs +95 -0
  43. package/dist/components/ui/loading-dots.d.ts +21 -0
  44. package/dist/components/ui/loading-dots.js +55 -0
  45. package/dist/components/ui/markdown.cjs +428 -0
  46. package/dist/components/ui/markdown.d.ts +55 -0
  47. package/dist/components/ui/markdown.js +378 -0
  48. package/dist/components/ui/message-actions.cjs +302 -0
  49. package/dist/components/ui/message-actions.d.ts +102 -0
  50. package/dist/components/ui/message-actions.js +241 -0
  51. package/dist/components/ui/message.cjs +1 -1
  52. package/dist/components/ui/message.d.ts +2 -0
  53. package/dist/components/ui/message.js +1 -1
  54. package/dist/components/ui/sources.cjs +175 -0
  55. package/dist/components/ui/sources.d.ts +44 -0
  56. package/dist/components/ui/sources.js +132 -0
  57. package/dist/components/ui/thinking-indicator.cjs +146 -0
  58. package/dist/components/ui/thinking-indicator.d.ts +38 -0
  59. package/dist/components/ui/thinking-indicator.js +106 -0
  60. package/dist/components/ui/tool-call.cjs +359 -0
  61. package/dist/components/ui/tool-call.d.ts +75 -0
  62. package/dist/components/ui/tool-call.js +301 -0
  63. package/dist/index.cjs +433 -253
  64. package/dist/index.d.ts +24 -0
  65. package/dist/index.js +13 -1
  66. package/dist/lib/index.cjs +8 -1
  67. package/dist/lib/index.d.ts +1 -0
  68. package/dist/lib/index.js +2 -1
  69. package/dist/lib/url.cjs +54 -0
  70. package/dist/lib/url.d.ts +8 -0
  71. package/dist/lib/url.js +17 -0
  72. package/dist/styles.css +363 -35
  73. package/dist/tailwind.utilities.css +21 -0
  74. package/package.json +7 -1
  75. package/dist/components/custom/chat-composer.cjs +0 -134
  76. package/dist/components/custom/chat-composer.d.ts +0 -14
  77. package/dist/components/custom/chat-composer.js +0 -100
  78. /package/dist/{components/ui/json-tree-view → lib}/clipboard.cjs +0 -0
  79. /package/dist/{components/ui/json-tree-view → lib}/clipboard.d.ts +0 -0
  80. /package/dist/{components/ui/json-tree-view → lib}/clipboard.js +0 -0
@@ -322,3 +322,24 @@
322
322
  -webkit-text-fill-color: currentColor;
323
323
  }
324
324
  }
325
+
326
+ /* ============================================================================
327
+ * Loading dots: staggered bounce for LoadingDots
328
+ *
329
+ * `animate-loading-dot` lifts a dot by its own height and dims it at rest.
330
+ * Stagger sibling dots with `[animation-delay:...]`. The reduced-motion rule
331
+ * is nested so Tailwind emits it for every variant, as `shimmer` does.
332
+ * ============================================================================ */
333
+
334
+ @keyframes apollo-loading-dot {
335
+ 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
336
+ 30% { transform: translateY(-100%); opacity: 1; }
337
+ }
338
+
339
+ @utility animate-loading-dot {
340
+ animation: apollo-loading-dot 1.2s ease-in-out infinite;
341
+
342
+ @media (prefers-reduced-motion: reduce) {
343
+ animation: none;
344
+ }
345
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-wind",
3
- "version": "2.68.0",
3
+ "version": "2.70.0",
4
4
  "description": "UiPath wind design system - A Tailwind CSS based React component library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -121,8 +121,13 @@
121
121
  "react-day-picker": "^9.13.0",
122
122
  "react-hook-form": "^7.66.1",
123
123
  "react-live": "^4.1.8",
124
+ "react-markdown": "^10.1.0",
124
125
  "react-resizable-panels": "^4.7.3",
126
+ "react-syntax-highlighter": "^16.1.1",
125
127
  "recharts": "2.15.4",
128
+ "rehype-katex": "^7.0.1",
129
+ "remark-gfm": "^4.0.1",
130
+ "remark-math": "^6.0.0",
126
131
  "sonner": "^2.0.7",
127
132
  "tailwind-merge": "^3.4.0",
128
133
  "tailwindcss": "^4.1.17",
@@ -155,6 +160,7 @@
155
160
  "@types/node": "^24.10.1",
156
161
  "@types/react": "^19.2.6",
157
162
  "@types/react-dom": "^19.2.2",
163
+ "@types/react-syntax-highlighter": "^15.5.13",
158
164
  "@vitest/coverage-v8": "^4.1.5",
159
165
  "@vitest/ui": "^4.1.5",
160
166
  "ajv": "^8.18.0",
@@ -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 };