@alquimia-ai/ui 1.3.1 → 1.3.2
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/components/atoms/index.js.map +1 -1
- package/dist/components/atoms/index.mjs.map +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs.map +1 -1
- package/dist/components/molecules/documents/index.js.map +1 -1
- package/dist/components/molecules/documents/index.mjs.map +1 -1
- package/dist/components/molecules/index.js.map +1 -1
- package/dist/components/molecules/index.mjs.map +1 -1
- package/dist/components/molecules/viewers/index.js.map +1 -1
- package/dist/components/molecules/viewers/index.mjs.map +1 -1
- package/dist/components/organisms/index.js +4 -1
- package/dist/components/organisms/index.js.map +1 -1
- package/dist/components/organisms/index.mjs +4 -1
- package/dist/components/organisms/index.mjs.map +1 -1
- package/dist/components/templates/cards/index.js.map +1 -1
- package/dist/components/templates/cards/index.mjs.map +1 -1
- package/dist/components/templates/index.js.map +1 -1
- package/dist/components/templates/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/dist/lib/index.d.mts +2 -1
- package/dist/lib/index.d.ts +2 -1
- package/dist/lib/index.js +4 -0
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -0
- package/dist/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/lib/index.d.mts
CHANGED
|
@@ -5,5 +5,6 @@ declare function parseTextToSpeech(content: string): string;
|
|
|
5
5
|
declare function blobToBase64(blob: Blob): Promise<string>;
|
|
6
6
|
declare const truncateString: (str: string, maxLength: number) => string;
|
|
7
7
|
declare function getCookies(name: string): string | undefined;
|
|
8
|
+
declare function hasToolResult(data: any): any;
|
|
8
9
|
|
|
9
|
-
export { blobToBase64, cn, getCookies, parseTextToSpeech, truncateString };
|
|
10
|
+
export { blobToBase64, cn, getCookies, hasToolResult, parseTextToSpeech, truncateString };
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -5,5 +5,6 @@ declare function parseTextToSpeech(content: string): string;
|
|
|
5
5
|
declare function blobToBase64(blob: Blob): Promise<string>;
|
|
6
6
|
declare const truncateString: (str: string, maxLength: number) => string;
|
|
7
7
|
declare function getCookies(name: string): string | undefined;
|
|
8
|
+
declare function hasToolResult(data: any): any;
|
|
8
9
|
|
|
9
|
-
export { blobToBase64, cn, getCookies, parseTextToSpeech, truncateString };
|
|
10
|
+
export { blobToBase64, cn, getCookies, hasToolResult, parseTextToSpeech, truncateString };
|
package/dist/lib/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __export(lib_exports, {
|
|
|
23
23
|
blobToBase64: () => blobToBase64,
|
|
24
24
|
cn: () => cn,
|
|
25
25
|
getCookies: () => getCookies,
|
|
26
|
+
hasToolResult: () => hasToolResult,
|
|
26
27
|
parseTextToSpeech: () => parseTextToSpeech,
|
|
27
28
|
truncateString: () => truncateString
|
|
28
29
|
});
|
|
@@ -57,4 +58,7 @@ function getCookies(name) {
|
|
|
57
58
|
const parts = value.split(`; ${name}=`);
|
|
58
59
|
if (parts.length === 2) return parts.pop()?.split(";").shift();
|
|
59
60
|
}
|
|
61
|
+
function hasToolResult(data) {
|
|
62
|
+
return data?.tool_output?.result && Object.keys(data.tool_output.result).length > 0;
|
|
63
|
+
}
|
|
60
64
|
//# sourceMappingURL=index.js.map
|
package/dist/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/index.ts","../../src/lib/utils.ts"],"sourcesContent":["export * from \"./utils\";\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport function parseTextToSpeech(content: string) {\n return content.replace(/[^\\p{L}\\p{N}\\s.,:]/gu, '');\n}\n\n\nexport function blobToBase64(blob: Blob): Promise<string> {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onloadend = () => resolve(reader.result as string);\n reader.onerror = reject;\n reader.readAsDataURL(blob);\n });\n};\n\nexport const truncateString = (str: string, maxLength: number): string => {\n if (str.length <= maxLength) {\n return str;\n }\n return str.slice(0, maxLength) + \"...\";\n};\n\nexport function getCookies(name: string) {\n if (typeof document === 'undefined') return undefined;\n const value = `; ${document.cookie}`;\n const parts = value.split(`; ${name}=`);\n if (parts.length === 2) return parts.pop()?.split(\";\").shift();\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,kBAAsC;AACtC,4BAAwB;AAEjB,SAAS,MAAM,QAAsB;AAC1C,aAAO,mCAAQ,kBAAK,MAAM,CAAC;AAC7B;AAEO,SAAS,kBAAkB,SAAiB;AACjD,SAAO,QAAQ,QAAQ,wBAAwB,EAAE;AACnD;AAGO,SAAS,aAAa,MAA6B;AACxD,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACtC,UAAM,SAAS,IAAI,WAAW;AAC9B,WAAO,YAAY,MAAM,QAAQ,OAAO,MAAgB;AACxD,WAAO,UAAU;AACjB,WAAO,cAAc,IAAI;AAAA,EAC3B,CAAC;AACH;AAEO,IAAM,iBAAiB,CAAC,KAAa,cAA8B;AACxE,MAAI,IAAI,UAAU,WAAW;AAC3B,WAAO;AAAA,EACT;AACA,SAAO,IAAI,MAAM,GAAG,SAAS,IAAI;AACnC;AAEO,SAAS,WAAW,MAAc;AACvC,MAAI,OAAO,aAAa,YAAa,QAAO;AAC5C,QAAM,QAAQ,KAAK,SAAS,MAAM;AAClC,QAAM,QAAQ,MAAM,MAAM,KAAK,IAAI,GAAG;AACtC,MAAI,MAAM,WAAW,EAAG,QAAO,MAAM,IAAI,GAAG,MAAM,GAAG,EAAE,MAAM;AAC/D;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/lib/index.ts","../../src/lib/utils.ts"],"sourcesContent":["export * from \"./utils\";\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport function parseTextToSpeech(content: string) {\n return content.replace(/[^\\p{L}\\p{N}\\s.,:]/gu, '');\n}\n\n\nexport function blobToBase64(blob: Blob): Promise<string> {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onloadend = () => resolve(reader.result as string);\n reader.onerror = reject;\n reader.readAsDataURL(blob);\n });\n};\n\nexport const truncateString = (str: string, maxLength: number): string => {\n if (str.length <= maxLength) {\n return str;\n }\n return str.slice(0, maxLength) + \"...\";\n};\n\nexport function getCookies(name: string) {\n if (typeof document === 'undefined') return undefined;\n const value = `; ${document.cookie}`;\n const parts = value.split(`; ${name}=`);\n if (parts.length === 2) return parts.pop()?.split(\";\").shift();\n}\n\nexport function hasToolResult(data: any) {\n return data?.tool_output?.result && Object.keys(data.tool_output.result).length > 0;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,kBAAsC;AACtC,4BAAwB;AAEjB,SAAS,MAAM,QAAsB;AAC1C,aAAO,mCAAQ,kBAAK,MAAM,CAAC;AAC7B;AAEO,SAAS,kBAAkB,SAAiB;AACjD,SAAO,QAAQ,QAAQ,wBAAwB,EAAE;AACnD;AAGO,SAAS,aAAa,MAA6B;AACxD,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACtC,UAAM,SAAS,IAAI,WAAW;AAC9B,WAAO,YAAY,MAAM,QAAQ,OAAO,MAAgB;AACxD,WAAO,UAAU;AACjB,WAAO,cAAc,IAAI;AAAA,EAC3B,CAAC;AACH;AAEO,IAAM,iBAAiB,CAAC,KAAa,cAA8B;AACxE,MAAI,IAAI,UAAU,WAAW;AAC3B,WAAO;AAAA,EACT;AACA,SAAO,IAAI,MAAM,GAAG,SAAS,IAAI;AACnC;AAEO,SAAS,WAAW,MAAc;AACvC,MAAI,OAAO,aAAa,YAAa,QAAO;AAC5C,QAAM,QAAQ,KAAK,SAAS,MAAM;AAClC,QAAM,QAAQ,MAAM,MAAM,KAAK,IAAI,GAAG;AACtC,MAAI,MAAM,WAAW,EAAG,QAAO,MAAM,IAAI,GAAG,MAAM,GAAG,EAAE,MAAM;AAC/D;AAEO,SAAS,cAAc,MAAW;AACvC,SAAO,MAAM,aAAa,UAAU,OAAO,KAAK,KAAK,YAAY,MAAM,EAAE,SAAS;AACpF;","names":[]}
|
package/dist/lib/index.mjs
CHANGED
|
@@ -27,10 +27,14 @@ function getCookies(name) {
|
|
|
27
27
|
const parts = value.split(`; ${name}=`);
|
|
28
28
|
if (parts.length === 2) return parts.pop()?.split(";").shift();
|
|
29
29
|
}
|
|
30
|
+
function hasToolResult(data) {
|
|
31
|
+
return data?.tool_output?.result && Object.keys(data.tool_output.result).length > 0;
|
|
32
|
+
}
|
|
30
33
|
export {
|
|
31
34
|
blobToBase64,
|
|
32
35
|
cn,
|
|
33
36
|
getCookies,
|
|
37
|
+
hasToolResult,
|
|
34
38
|
parseTextToSpeech,
|
|
35
39
|
truncateString
|
|
36
40
|
};
|
package/dist/lib/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport function parseTextToSpeech(content: string) {\n return content.replace(/[^\\p{L}\\p{N}\\s.,:]/gu, '');\n}\n\n\nexport function blobToBase64(blob: Blob): Promise<string> {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onloadend = () => resolve(reader.result as string);\n reader.onerror = reject;\n reader.readAsDataURL(blob);\n });\n};\n\nexport const truncateString = (str: string, maxLength: number): string => {\n if (str.length <= maxLength) {\n return str;\n }\n return str.slice(0, maxLength) + \"...\";\n};\n\nexport function getCookies(name: string) {\n if (typeof document === 'undefined') return undefined;\n const value = `; ${document.cookie}`;\n const parts = value.split(`; ${name}=`);\n if (parts.length === 2) return parts.pop()?.split(\";\").shift();\n}\n"],"mappings":";AAAA,SAAS,YAA6B;AACtC,SAAS,eAAe;AAEjB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;AAEO,SAAS,kBAAkB,SAAiB;AACjD,SAAO,QAAQ,QAAQ,wBAAwB,EAAE;AACnD;AAGO,SAAS,aAAa,MAA6B;AACxD,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACtC,UAAM,SAAS,IAAI,WAAW;AAC9B,WAAO,YAAY,MAAM,QAAQ,OAAO,MAAgB;AACxD,WAAO,UAAU;AACjB,WAAO,cAAc,IAAI;AAAA,EAC3B,CAAC;AACH;AAEO,IAAM,iBAAiB,CAAC,KAAa,cAA8B;AACxE,MAAI,IAAI,UAAU,WAAW;AAC3B,WAAO;AAAA,EACT;AACA,SAAO,IAAI,MAAM,GAAG,SAAS,IAAI;AACnC;AAEO,SAAS,WAAW,MAAc;AACvC,MAAI,OAAO,aAAa,YAAa,QAAO;AAC5C,QAAM,QAAQ,KAAK,SAAS,MAAM;AAClC,QAAM,QAAQ,MAAM,MAAM,KAAK,IAAI,GAAG;AACtC,MAAI,MAAM,WAAW,EAAG,QAAO,MAAM,IAAI,GAAG,MAAM,GAAG,EAAE,MAAM;AAC/D;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/lib/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport function parseTextToSpeech(content: string) {\n return content.replace(/[^\\p{L}\\p{N}\\s.,:]/gu, '');\n}\n\n\nexport function blobToBase64(blob: Blob): Promise<string> {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onloadend = () => resolve(reader.result as string);\n reader.onerror = reject;\n reader.readAsDataURL(blob);\n });\n};\n\nexport const truncateString = (str: string, maxLength: number): string => {\n if (str.length <= maxLength) {\n return str;\n }\n return str.slice(0, maxLength) + \"...\";\n};\n\nexport function getCookies(name: string) {\n if (typeof document === 'undefined') return undefined;\n const value = `; ${document.cookie}`;\n const parts = value.split(`; ${name}=`);\n if (parts.length === 2) return parts.pop()?.split(\";\").shift();\n}\n\nexport function hasToolResult(data: any) {\n return data?.tool_output?.result && Object.keys(data.tool_output.result).length > 0;\n}\n"],"mappings":";AAAA,SAAS,YAA6B;AACtC,SAAS,eAAe;AAEjB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;AAEO,SAAS,kBAAkB,SAAiB;AACjD,SAAO,QAAQ,QAAQ,wBAAwB,EAAE;AACnD;AAGO,SAAS,aAAa,MAA6B;AACxD,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACtC,UAAM,SAAS,IAAI,WAAW;AAC9B,WAAO,YAAY,MAAM,QAAQ,OAAO,MAAgB;AACxD,WAAO,UAAU;AACjB,WAAO,cAAc,IAAI;AAAA,EAC3B,CAAC;AACH;AAEO,IAAM,iBAAiB,CAAC,KAAa,cAA8B;AACxE,MAAI,IAAI,UAAU,WAAW;AAC3B,WAAO;AAAA,EACT;AACA,SAAO,IAAI,MAAM,GAAG,SAAS,IAAI;AACnC;AAEO,SAAS,WAAW,MAAc;AACvC,MAAI,OAAO,aAAa,YAAa,QAAO;AAC5C,QAAM,QAAQ,KAAK,SAAS,MAAM;AAClC,QAAM,QAAQ,MAAM,MAAM,KAAK,IAAI,GAAG;AACtC,MAAI,MAAM,WAAW,EAAG,QAAO,MAAM,IAAI,GAAG,MAAM,GAAG,EAAE,MAAM;AAC/D;AAEO,SAAS,cAAc,MAAW;AACvC,SAAO,MAAM,aAAa,UAAU,OAAO,KAAK,KAAK,YAAY,MAAM,EAAE,SAAS;AACpF;","names":[]}
|