@alfadocs/ui-kit 0.46.0 → 0.47.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/_chunks/alia-sidebar-CVIPrdc9.js +1125 -0
  2. package/dist/_chunks/{audio-recorder-C1rhKhSN.js → audio-recorder-DC-v9YFW.js} +81 -91
  3. package/dist/_chunks/{chat-input-CQe7nR_v.js → chat-input-CFwc7JxL.js} +2 -1
  4. package/dist/_chunks/{chat-message-ASgGtj-L.js → chat-message-B5JpFj0F.js} +79 -73
  5. package/dist/_chunks/code-block-HoddNOKJ.js +106 -0
  6. package/dist/_chunks/download-CDF1sbL9.js +16 -0
  7. package/dist/_chunks/{editable-currency-cell-renderer-BEBUQl9P.js → editable-currency-cell-renderer-CLil9B29.js} +283 -293
  8. package/dist/_chunks/mic-B4Gog3Gi.js +16 -0
  9. package/dist/_chunks/pencil-CfQX-0Qc.js +21 -0
  10. package/dist/_chunks/{streaming-text-GH07yIYh.js → streaming-text-CfhDqtIT.js} +49 -45
  11. package/dist/_chunks/{workflow-map-BFNpzTiw.js → workflow-map-Djn1QMJc.js} +135 -150
  12. package/dist/agent-catalog.json +1 -1
  13. package/dist/components/_shared/code-block.d.ts +39 -0
  14. package/dist/components/audio-recorder/index.js +1 -1
  15. package/dist/components/chat-input/index.js +1 -1
  16. package/dist/components/chat-message/chat-message.d.ts +6 -0
  17. package/dist/components/chat-message/index.js +1 -1
  18. package/dist/components/data-table/index.js +1 -1
  19. package/dist/components/streaming-text/index.js +1 -1
  20. package/dist/components/workflow/index.js +1 -1
  21. package/dist/i18n/locales/ar.d.ts +15 -0
  22. package/dist/i18n/locales/ar.js +16 -1
  23. package/dist/i18n/locales/de.d.ts +15 -0
  24. package/dist/i18n/locales/de.js +16 -1
  25. package/dist/i18n/locales/el.d.ts +15 -0
  26. package/dist/i18n/locales/el.js +16 -1
  27. package/dist/i18n/locales/en.d.ts +15 -0
  28. package/dist/i18n/locales/en.js +16 -1
  29. package/dist/i18n/locales/es.d.ts +15 -0
  30. package/dist/i18n/locales/es.js +16 -1
  31. package/dist/i18n/locales/fr.d.ts +15 -0
  32. package/dist/i18n/locales/fr.js +16 -1
  33. package/dist/i18n/locales/hi.d.ts +15 -0
  34. package/dist/i18n/locales/hi.js +16 -1
  35. package/dist/i18n/locales/it.d.ts +15 -0
  36. package/dist/i18n/locales/it.js +16 -1
  37. package/dist/i18n/locales/ja.d.ts +15 -0
  38. package/dist/i18n/locales/ja.js +16 -1
  39. package/dist/i18n/locales/nl.d.ts +15 -0
  40. package/dist/i18n/locales/nl.js +16 -1
  41. package/dist/i18n/locales/pl.d.ts +15 -0
  42. package/dist/i18n/locales/pl.js +16 -1
  43. package/dist/i18n/locales/pt.d.ts +15 -0
  44. package/dist/i18n/locales/pt.js +16 -1
  45. package/dist/i18n/locales/ro.d.ts +15 -0
  46. package/dist/i18n/locales/ro.js +16 -1
  47. package/dist/i18n/locales/ru.d.ts +15 -0
  48. package/dist/i18n/locales/ru.js +16 -1
  49. package/dist/i18n/locales/sq.d.ts +15 -0
  50. package/dist/i18n/locales/sq.js +16 -1
  51. package/dist/i18n/locales/sv.d.ts +15 -0
  52. package/dist/i18n/locales/sv.js +16 -1
  53. package/dist/i18n/locales/tr.d.ts +15 -0
  54. package/dist/i18n/locales/tr.js +16 -1
  55. package/dist/i18n/locales/zh.d.ts +15 -0
  56. package/dist/i18n/locales/zh.js +16 -1
  57. package/dist/index.js +7 -7
  58. package/dist/locales/ar.json +16 -1
  59. package/dist/locales/de.json +16 -1
  60. package/dist/locales/el.json +16 -1
  61. package/dist/locales/en.json +16 -1
  62. package/dist/locales/es.json +16 -1
  63. package/dist/locales/fr.json +16 -1
  64. package/dist/locales/hi.json +16 -1
  65. package/dist/locales/it.json +16 -1
  66. package/dist/locales/ja.json +16 -1
  67. package/dist/locales/nl.json +16 -1
  68. package/dist/locales/pl.json +16 -1
  69. package/dist/locales/pt.json +16 -1
  70. package/dist/locales/ro.json +16 -1
  71. package/dist/locales/ru.json +16 -1
  72. package/dist/locales/sq.json +16 -1
  73. package/dist/locales/sv.json +16 -1
  74. package/dist/locales/tr.json +16 -1
  75. package/dist/locales/zh.json +16 -1
  76. package/dist/patterns/alia-assistant/alia-types.d.ts +61 -0
  77. package/dist/patterns/alia-assistant/index.js +1 -1
  78. package/dist/tokens.css +1 -1
  79. package/package.json +1 -1
  80. package/dist/_chunks/alia-sidebar-Be8FhKYd.js +0 -837
@@ -0,0 +1,16 @@
1
+ import { c } from "./createLucideIcon-CrFbzy84.js";
2
+ /**
3
+ * @license lucide-react v1.8.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const e = [
9
+ ["path", { d: "M12 19v3", key: "npa21l" }],
10
+ ["path", { d: "M19 10v2a7 7 0 0 1-14 0v-2", key: "1vc78b" }],
11
+ ["rect", { x: "9", y: "2", width: "6", height: "13", rx: "3", key: "s6n7sd" }]
12
+ ], o = c("mic", e);
13
+ export {
14
+ o as M
15
+ };
16
+ //# sourceMappingURL=mic-B4Gog3Gi.js.map
@@ -0,0 +1,21 @@
1
+ import { c as a } from "./createLucideIcon-CrFbzy84.js";
2
+ /**
3
+ * @license lucide-react v1.8.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const c = [
9
+ [
10
+ "path",
11
+ {
12
+ d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",
13
+ key: "1a8usu"
14
+ }
15
+ ],
16
+ ["path", { d: "m15 5 4 4", key: "1mk7zo" }]
17
+ ], o = a("pencil", c);
18
+ export {
19
+ o as P
20
+ };
21
+ //# sourceMappingURL=pencil-CfQX-0Qc.js.map
@@ -1,7 +1,8 @@
1
- import { jsxs as p, jsx as l } from "react/jsx-runtime";
2
- import { forwardRef as h, useState as y, useEffect as b, Fragment as v } from "react";
1
+ import { jsxs as h, jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as y, useState as v, useEffect as b, Fragment as m } from "react";
3
3
  import { c as x } from "./index-D2ZczOXr.js";
4
- const g = x(
4
+ import { s as g, C } from "./code-block-HoddNOKJ.js";
5
+ const z = x(
5
6
  "type-body ds:block ds:whitespace-pre-wrap ds:break-words",
6
7
  {
7
8
  variants: {
@@ -20,86 +21,89 @@ const g = x(
20
21
  defaultVariants: { size: "md", density: "default" }
21
22
  }
22
23
  );
23
- function z(a) {
24
- const t = [], r = a.length, o = 42, c = 96, u = 10;
25
- let i = 0, e = 0;
26
- const d = (n) => {
27
- n > i && t.push({ type: "text", value: a.slice(i, n) });
24
+ function T(a) {
25
+ const s = [], r = a.length, d = 42, c = 96, u = 10;
26
+ let o = 0, e = 0;
27
+ const l = (n) => {
28
+ n > o && s.push({ type: "text", value: a.slice(o, n) });
28
29
  };
29
30
  for (; e < r; ) {
30
31
  const n = a.charCodeAt(e);
31
- if (n === o && e + 1 < r && a.charCodeAt(e + 1) === o) {
32
- let s = e + 2;
33
- for (; s < r && a.charCodeAt(s) !== o; ) s++;
34
- if (s < r - 1 && a.charCodeAt(s + 1) === o && s > e + 2) {
35
- d(e), t.push({ type: "bold", value: a.slice(e + 2, s) }), e = s + 2, i = e;
32
+ if (n === d && e + 1 < r && a.charCodeAt(e + 1) === d) {
33
+ let t = e + 2;
34
+ for (; t < r && a.charCodeAt(t) !== d; ) t++;
35
+ if (t < r - 1 && a.charCodeAt(t + 1) === d && t > e + 2) {
36
+ l(e), s.push({ type: "bold", value: a.slice(e + 2, t) }), e = t + 2, o = e;
36
37
  continue;
37
38
  }
38
39
  e += 2;
39
40
  continue;
40
41
  }
41
42
  if (n === c) {
42
- let s = e + 1;
43
- for (; s < r && a.charCodeAt(s) !== c; ) s++;
44
- if (s < r && s > e + 1) {
45
- d(e), t.push({ type: "code", value: a.slice(e + 1, s) }), e = s + 1, i = e;
43
+ let t = e + 1;
44
+ for (; t < r && a.charCodeAt(t) !== c; ) t++;
45
+ if (t < r && t > e + 1) {
46
+ l(e), s.push({ type: "code", value: a.slice(e + 1, t) }), e = t + 1, o = e;
46
47
  continue;
47
48
  }
48
49
  e += 1;
49
50
  continue;
50
51
  }
51
52
  if (n === u) {
52
- d(e), t.push({ type: "br" }), e += 1, i = e;
53
+ l(e), s.push({ type: "br" }), e += 1, o = e;
53
54
  continue;
54
55
  }
55
56
  e += 1;
56
57
  }
57
- return d(r), t;
58
+ return l(r), s;
58
59
  }
59
- function T(a) {
60
- return z(a).map((t, r) => t.type === "bold" ? /* @__PURE__ */ l("strong", { children: t.value }, r) : t.type === "code" ? /* @__PURE__ */ l(
60
+ function w(a) {
61
+ return T(a).map((s, r) => s.type === "bold" ? /* @__PURE__ */ i("strong", { children: s.value }, r) : s.type === "code" ? /* @__PURE__ */ i(
61
62
  "code",
62
63
  {
63
64
  dir: "ltr",
64
65
  className: "ds:rounded-[var(--radius-sm)] ds:bg-muted/20 ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:font-[family-name:var(--font-mono)] ds:text-[length:0.95em]",
65
- children: t.value
66
+ children: s.value
66
67
  },
67
68
  r
68
- ) : t.type === "br" ? /* @__PURE__ */ l("br", {}, r) : /* @__PURE__ */ l(v, { children: t.value }, r));
69
+ ) : s.type === "br" ? /* @__PURE__ */ i("br", {}, r) : /* @__PURE__ */ i(m, { children: s.value }, r));
70
+ }
71
+ function A(a) {
72
+ return g(a).map((s, r) => s.type === "code" ? /* @__PURE__ */ i(C, { code: s.value, language: s.lang }, r) : /* @__PURE__ */ i(m, { children: w(s.value) }, r));
69
73
  }
70
- const C = h(
74
+ const j = y(
71
75
  ({
72
76
  content: a,
73
- isStreaming: t,
77
+ isStreaming: s,
74
78
  renderMarkdown: r = !1,
75
- ariaLive: o = "polite",
79
+ ariaLive: d = "polite",
76
80
  size: c = "md",
77
81
  density: u = "default",
78
- className: i,
82
+ className: o,
79
83
  ...e
80
- }, d) => {
81
- const [n, s] = y(a);
84
+ }, l) => {
85
+ const [n, t] = v(a);
82
86
  b(() => {
83
- if (!t) {
84
- s(a);
87
+ if (!s) {
88
+ t(a);
85
89
  return;
86
90
  }
87
- const f = setTimeout(() => s(a), 100);
88
- return () => clearTimeout(f);
89
- }, [a, t]);
90
- const m = r ? T(n) : n;
91
- return /* @__PURE__ */ p(
91
+ const p = setTimeout(() => t(a), 100);
92
+ return () => clearTimeout(p);
93
+ }, [a, s]);
94
+ const f = r ? A(n) : n;
95
+ return /* @__PURE__ */ h(
92
96
  "span",
93
97
  {
94
- ref: d,
95
- "aria-live": o,
96
- "aria-busy": !!t,
98
+ ref: l,
99
+ "aria-live": d,
100
+ "aria-busy": !!s,
97
101
  "data-component": "streaming-text",
98
- className: g({ size: c, density: u, className: i }),
102
+ className: z({ size: c, density: u, className: o }),
99
103
  ...e,
100
104
  children: [
101
- m,
102
- t ? /* @__PURE__ */ l(
105
+ f,
106
+ s ? /* @__PURE__ */ i(
103
107
  "span",
104
108
  {
105
109
  "aria-hidden": "true",
@@ -120,8 +124,8 @@ const C = h(
120
124
  );
121
125
  }
122
126
  );
123
- C.displayName = "StreamingText";
127
+ j.displayName = "StreamingText";
124
128
  export {
125
- C as S
129
+ j as S
126
130
  };
127
- //# sourceMappingURL=streaming-text-GH07yIYh.js.map
131
+ //# sourceMappingURL=streaming-text-CfhDqtIT.js.map