@alfadocs/ui-kit 0.45.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.
- package/dist/_chunks/alia-sidebar-CVIPrdc9.js +1125 -0
- package/dist/_chunks/{audio-recorder-C1rhKhSN.js → audio-recorder-DC-v9YFW.js} +81 -91
- package/dist/_chunks/{chat-input-CQe7nR_v.js → chat-input-CFwc7JxL.js} +2 -1
- package/dist/_chunks/{chat-message-ASgGtj-L.js → chat-message-B5JpFj0F.js} +79 -73
- package/dist/_chunks/code-block-HoddNOKJ.js +106 -0
- package/dist/_chunks/download-CDF1sbL9.js +16 -0
- package/dist/_chunks/{editable-currency-cell-renderer-BEBUQl9P.js → editable-currency-cell-renderer-CLil9B29.js} +283 -293
- package/dist/_chunks/{freemium-paywall-BYist2sJ.js → freemium-paywall-DzpD63WY.js} +2 -2
- package/dist/_chunks/mic-B4Gog3Gi.js +16 -0
- package/dist/_chunks/{payment-form-DqEiEJRO.js → payment-form-BNTx4876.js} +225 -196
- package/dist/_chunks/pencil-CfQX-0Qc.js +21 -0
- package/dist/_chunks/{streaming-text-GH07yIYh.js → streaming-text-CfhDqtIT.js} +49 -45
- package/dist/_chunks/{workflow-map-BFNpzTiw.js → workflow-map-Djn1QMJc.js} +135 -150
- package/dist/agent-catalog.json +1 -1
- package/dist/components/_shared/code-block.d.ts +39 -0
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/chat-message.d.ts +6 -0
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/payment-form/payment-form.d.ts +6 -0
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +15 -0
- package/dist/i18n/locales/ar.js +16 -1
- package/dist/i18n/locales/de.d.ts +15 -0
- package/dist/i18n/locales/de.js +16 -1
- package/dist/i18n/locales/el.d.ts +15 -0
- package/dist/i18n/locales/el.js +16 -1
- package/dist/i18n/locales/en.d.ts +15 -0
- package/dist/i18n/locales/en.js +16 -1
- package/dist/i18n/locales/es.d.ts +15 -0
- package/dist/i18n/locales/es.js +16 -1
- package/dist/i18n/locales/fr.d.ts +15 -0
- package/dist/i18n/locales/fr.js +16 -1
- package/dist/i18n/locales/hi.d.ts +15 -0
- package/dist/i18n/locales/hi.js +16 -1
- package/dist/i18n/locales/it.d.ts +15 -0
- package/dist/i18n/locales/it.js +16 -1
- package/dist/i18n/locales/ja.d.ts +15 -0
- package/dist/i18n/locales/ja.js +16 -1
- package/dist/i18n/locales/nl.d.ts +15 -0
- package/dist/i18n/locales/nl.js +16 -1
- package/dist/i18n/locales/pl.d.ts +15 -0
- package/dist/i18n/locales/pl.js +16 -1
- package/dist/i18n/locales/pt.d.ts +15 -0
- package/dist/i18n/locales/pt.js +16 -1
- package/dist/i18n/locales/ro.d.ts +15 -0
- package/dist/i18n/locales/ro.js +16 -1
- package/dist/i18n/locales/ru.d.ts +15 -0
- package/dist/i18n/locales/ru.js +16 -1
- package/dist/i18n/locales/sq.d.ts +15 -0
- package/dist/i18n/locales/sq.js +16 -1
- package/dist/i18n/locales/sv.d.ts +15 -0
- package/dist/i18n/locales/sv.js +16 -1
- package/dist/i18n/locales/tr.d.ts +15 -0
- package/dist/i18n/locales/tr.js +16 -1
- package/dist/i18n/locales/zh.d.ts +15 -0
- package/dist/i18n/locales/zh.js +16 -1
- package/dist/index.js +9 -9
- package/dist/locales/ar.json +16 -1
- package/dist/locales/de.json +16 -1
- package/dist/locales/el.json +16 -1
- package/dist/locales/en.json +16 -1
- package/dist/locales/es.json +16 -1
- package/dist/locales/fr.json +16 -1
- package/dist/locales/hi.json +16 -1
- package/dist/locales/it.json +16 -1
- package/dist/locales/ja.json +16 -1
- package/dist/locales/nl.json +16 -1
- package/dist/locales/pl.json +16 -1
- package/dist/locales/pt.json +16 -1
- package/dist/locales/ro.json +16 -1
- package/dist/locales/ru.json +16 -1
- package/dist/locales/sq.json +16 -1
- package/dist/locales/sv.json +16 -1
- package/dist/locales/tr.json +16 -1
- package/dist/locales/zh.json +16 -1
- package/dist/patterns/alia-assistant/alia-types.d.ts +61 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/alia-sidebar-Be8FhKYd.js +0 -837
|
@@ -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
|
|
2
|
-
import { forwardRef as
|
|
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
|
-
|
|
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
|
|
24
|
-
const
|
|
25
|
-
let
|
|
26
|
-
const
|
|
27
|
-
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 ===
|
|
32
|
-
let
|
|
33
|
-
for (;
|
|
34
|
-
if (
|
|
35
|
-
|
|
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
|
|
43
|
-
for (;
|
|
44
|
-
if (
|
|
45
|
-
|
|
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
|
-
|
|
53
|
+
l(e), s.push({ type: "br" }), e += 1, o = e;
|
|
53
54
|
continue;
|
|
54
55
|
}
|
|
55
56
|
e += 1;
|
|
56
57
|
}
|
|
57
|
-
return
|
|
58
|
+
return l(r), s;
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
-
return
|
|
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:
|
|
66
|
+
children: s.value
|
|
66
67
|
},
|
|
67
68
|
r
|
|
68
|
-
) :
|
|
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
|
|
74
|
+
const j = y(
|
|
71
75
|
({
|
|
72
76
|
content: a,
|
|
73
|
-
isStreaming:
|
|
77
|
+
isStreaming: s,
|
|
74
78
|
renderMarkdown: r = !1,
|
|
75
|
-
ariaLive:
|
|
79
|
+
ariaLive: d = "polite",
|
|
76
80
|
size: c = "md",
|
|
77
81
|
density: u = "default",
|
|
78
|
-
className:
|
|
82
|
+
className: o,
|
|
79
83
|
...e
|
|
80
|
-
},
|
|
81
|
-
const [n,
|
|
84
|
+
}, l) => {
|
|
85
|
+
const [n, t] = v(a);
|
|
82
86
|
b(() => {
|
|
83
|
-
if (!
|
|
84
|
-
|
|
87
|
+
if (!s) {
|
|
88
|
+
t(a);
|
|
85
89
|
return;
|
|
86
90
|
}
|
|
87
|
-
const
|
|
88
|
-
return () => clearTimeout(
|
|
89
|
-
}, [a,
|
|
90
|
-
const
|
|
91
|
-
return /* @__PURE__ */
|
|
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:
|
|
95
|
-
"aria-live":
|
|
96
|
-
"aria-busy": !!
|
|
98
|
+
ref: l,
|
|
99
|
+
"aria-live": d,
|
|
100
|
+
"aria-busy": !!s,
|
|
97
101
|
"data-component": "streaming-text",
|
|
98
|
-
className:
|
|
102
|
+
className: z({ size: c, density: u, className: o }),
|
|
99
103
|
...e,
|
|
100
104
|
children: [
|
|
101
|
-
|
|
102
|
-
|
|
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
|
-
|
|
127
|
+
j.displayName = "StreamingText";
|
|
124
128
|
export {
|
|
125
|
-
|
|
129
|
+
j as S
|
|
126
130
|
};
|
|
127
|
-
//# sourceMappingURL=streaming-text-
|
|
131
|
+
//# sourceMappingURL=streaming-text-CfhDqtIT.js.map
|